Eliminate dwarf2_frame_cache recursion, don't unwind from the dwarf2 sniffer (move...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-22 Pedro Alves <palves@redhat.com>
2
3 PR 16155
4 * dwarf2-frame.c (struct dwarf2_frame_cache)
5 <checked_tailcall_bottom, entry_cfa_sp_offset,
6 entry_cfa_sp_offset_p>: New fields.
7 (dwarf2_frame_cache): Adjust to use the new cache fields instead
8 of locals. Don't call dwarf2_tailcall_sniffer_first here.
9 (dwarf2_frame_prev_register): Call it here, but only once.
10
11 2013-11-21 Doug Evans <xdje42@gmail.com>
12
13 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
14 (type_equality_entry): Move here from python/py-type.c.
15 (type_equality_entry_d): Ditto.
16 (compare_maybe_null_strings, check_types_equal): Ditto.
17 (check_types_worklist, types_deeply_equal): Ditto.
18 * gdbtypes.h (types_deeply_equal): Declare.
19 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
20 (typy_richcompare): Update.
21
22 2013-11-20 Joel Brobecker <brobecker@adacore.com>
23
24 * python/py-value.c (is_intlike): Delete.
25 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
26 by use of is_integral_type.
27 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
28 by use of is_integral_type and check for TYPE_CODE_PTR.
29
30 2013-11-20 Tom Tromey <tromey@redhat.com>
31
32 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
33 strerror module.
34 * gnulib/aclocal.m4: Update.
35 * gnulib/config.in: Update.
36 * gnulib/configure: Update.
37 * gnulib/import/Makefile.am: Update.
38 * gnulib/import/Makefile.in: Update.
39 * gnulib/import/errno.in.h: Remove.
40 * gnulib/import/intprops.h: Remove.
41 * gnulib/import/m4/errno_h.m4: Remove.
42 * gnulib/import/m4/gnulib-cache.m4: Update.
43 * gnulib/import/m4/gnulib-comp.m4: Update.
44 * gnulib/import/m4/strerror.m4: Remove.
45 * gnulib/import/m4/sys_socket_h.m4: Remove.
46 * gnulib/import/strerror-override.c: Remove.
47 * gnulib/import/strerror-override.h: Remove.
48 * gnulib/import/strerror.c: Remove.
49 * gnulib/update-gnulib.sh: Update.
50
51 2013-11-20 Yao Qi <yao@codesourcery.com>
52
53 * target-dcache.c (target_dcache_get_or_init): Call
54 set_address_space_data if 'dcache' is NULL.
55
56 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
57
58 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
59
60 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
61
62 * python/lib/gdb/command/bound_register.py: New file.
63 * gdb/data-directory/Makefile.in: copy bond_register.py to the right path to
64 be initialized at gdb startup.
65
66 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
67
68 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
69 Add MPX registers.
70 (amd64_linux_read_description): Add initialization for MPX and
71 AVX independently.
72 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
73 (amd64_linux_gregset_reg_offset): Add MPX registers.
74 (amd64_linux_core_read_description): Add initialization for MPX
75 registers.
76 (_initialize_amd64_linux_tdep): Initialize MPX targets.
77 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
78 register on the list.
79 (tdesc_amd64_mpx_linux) Add new target for MPX.
80 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
81 (amd64_mpx_names): MPX register names.
82 (amd64_init_abi): Add MPX register while initializing the ABI.
83 (_initialize_amd64_tdep): Initialize MPX targets.
84 * amd64-tdep.h (amd64_regnum): Add MPX registers.
85 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
86
87 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
88
89 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
90 registers on the range of registers to be read from
91 xsave buffer.
92 (i386_linux_read_description): Add case for MPX.
93 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
94 (i386_linux_gregset_reg_offset): Add MPX registers.
95 (i386_linux_core_read_description): Initialize also MPX.
96 (_initialize_i386_linux_tdep): Add mpx initialization.
97 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
98 mpx_register_names.
99 (i386_regnum): Add MPX registers.
100 (I386_MPX_NUM_REGS): New macro.
101 (i386_bnd_regnum_p): New function.
102 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
103 number of registers to be the number of BNDSTATUS.
104 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
105 * i386-tdep.c: Include features/i386/i386-mpx.c.
106 (i386_mpx_names): Add MPX register names array.
107 (i386_bnd_names): Add bnd pseudo register names array.
108 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
109 registers.
110 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
111 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
112 registers.
113 (i386_bnd_type): New function.
114 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
115 register types.
116 (i386_pseudo_register_read_into_value): Add bnd case.
117 (i386_pseudo_register_write): Add bnd pseudo registers.
118 (i386_register_reggroup_p): Add MPX register to the group all.
119 (i386_validate_tdesc_p): Add MPX to the target description
120 validation.
121 (i386_pseudo_register_name): Add bnd pseudo registers.
122 (i386_gdbarch_init): Add MPX for architecture initialization.
123 (_initia_initialize_i386_tdep): Add mpx initialization.
124 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
125 XSAVE buffer.
126 (XSAVE_MPX_ADDR): New macro.
127 (i387_supply_xsave): Add MPX case.
128 (i387_collect_xsave): Add MPX case.
129 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
130 (I387_BNDCFGU_REGNUM): New macro.
131 (I387_NUM_MPX_REGS): New macro.
132 (I387_NUM_BND_REGS): New macro.
133 (I387_NUM_MPX_CTRL_REGS): New macro.
134 (I387_MPXEND_REGNUM): New macro.
135 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
136 (I386_XSTATE_BNDCFG): Likewise.
137 (I386_XSTATE_MPX_MASK): Likewise.
138 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
139 (I386_XSTATE_BNDREGS_SIZE): New macro.
140 (I386_XSTATE_BNDCFG_SIZE): Likewise.
141 (I386_XSTATE_SIZE): Adapt for MPX.
142 (I386_XSTATE_MAX_SIZE): Likewise.
143
144 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
145
146 * features/i386/Makefile: Adapts for using MPX registers.
147 * features/i386/32bit-mpx.xml: New file.
148 * features/i386/64bit-mpx.xml: Likewise.
149 * features/i386/amd64-mpx-linux.c: Likewise.
150 * features/i386/amd64-mpx-linux.xml: Likewise.
151 * features/i386/amd64-mpx.c: Likewise.
152 * features/i386/amd64-mpx.xml: Likewise.
153 * features/i386/i386-mpx-linux.c: Likewise.
154 * features/i386/i386-mpx-linux.xml: Likewise.
155 * features/i386/i386-mpx.c: Likewise.
156 * features/i386/i386-mpx.xml: Likewise.
157 * regformats/i386/amd64-mpx-linux.dat: New file.
158 * regformats/i386/amd64-mpx.dat: Likewise.
159 * regformats/i386/i386-mpx-linux.dat: Likewise.
160 * regformats/i386/i386-mpx.dat: Likewise.
161
162 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
163
164 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
165 Modified logic of creating a bitfield to be in sync with
166 tdesc_gdb_type.
167
168 2013-11-20 Will Newton <will.newton@linaro.org>
169
170 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
171 error message.
172
173 2013-11-20 Yao Qi <yao@codesourcery.com>
174
175 * progspace.h (struct address_space_data): Declare.
176 * target-dcache.c: Include "progspace.h".
177 (target_dache): Remove.
178 (target_dcache_aspace_key): New.
179 (target_dcache_cleanup): New function.
180 (target_dcache_init_p): Get data through
181 target_dcache_aspace_key.
182 (target_dcache_invalidate): Likewise.
183 (target_dcache_get): Likewise.
184 (target_dcache_get_or_init): Likewise.
185 (_initialize_target_dcache): Initialize
186 target_dcache_aspace_key.
187
188 2013-11-20 Yao Qi <yao@codesourcery.com>
189
190 * progspace.c (struct address_space): Update comments.
191 <REGISTRY_FIELDS>: New fields.
192 DEFINE_REGISTRY for address_space.
193 (new_address_space): Call address_space_alloc_data.
194 (free_address_space): Call address_space_free_data.
195 * progspace.h: Use DECLARE_REGISTRY.
196
197 2013-11-20 Yao Qi <yao@codesourcery.com>
198
199 * Makefile.in (SFILES):Add target-dcache.c.
200 (HFILES_NO_SRCDIR): Add target-dcache.h.
201 (COMMON_OBS): Add target-dcache.o.
202 * dcache.c: Remove inclusion to "target.h". Include
203 "target-dcache.h".
204 * memattr.c: Include "target-dcache.h".
205 * top.c: Likewise.
206 * tracepoint.c: Likewise.
207 * target.c: (stack_cache_enabled_p_1): Move to
208 target-dcache.c.
209 (stack_cache_enabled_p): Likewise.
210 (set_stack_cache_enabled_p): Likewise.
211 (show_stack_cache_enabled_p): Likewise.
212 (target_dcache, target_dcache_init_p): Likewise.
213 (target_dcache_invalidate): Likewise.
214 (target_dcache_get, target_dcache_get_or_init): Likewise.
215 (memory_xfer_partial_1): Call function stack_cache_enabled.
216 (initialize_target): Move code to target-dcache.c.
217 * target.h (target_dcache_invalidate): Move to
218 target-dcache.h.
219 (target_dcache_get): Likewise.
220 * target-dcache.c: New.
221 * target-dcache.h: New.
222
223 2013-11-20 Yao Qi <yao@codesourcery.com>
224
225 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
226 it is initialized.
227
228 2013-11-20 Yao Qi <yao@codesourcery.com>
229
230 * dcache.c (last_cache): Remove.
231 (dcache_free, dcache_init): Update.
232 (dcache_update):
233 (dcache_print_line): Add parameter 'dcache'. Replace
234 'target_dcache' with 'dcache'.
235 (dcache_info): Move code to dcache_info_1. Call
236 'dcache_info_1'.
237 (dcache_info_1): New function.
238 (set_dcache_size): Call target_dcache_invalidate.
239 (set_dcache_line_size): Call target_dcache_invalidate.
240 * target.c (target_dcache_init_p): New function.
241 (target_dcache_invalidate): Check target_dcache_init_p first.
242 (target_dcache_get, target_dcache_get_or_init): New function.
243 (memory_xfer_partial_1): Adjust.
244 (initialize_target): Don't initialize 'target_dcache'.
245 * target.h (struct dcache_struct): Declare.
246 (target_dcache_get): Declare.
247
248 2013-11-19 Yao Qi <yao@codesourcery.com>
249
250 * varobj.c (varobj_get_type): Fix typo.
251
252 2013-11-19 Joel Brobecker <brobecker@adacore.com>
253
254 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
255
256 2013-11-19 Joel Brobecker <brobecker@adacore.com>
257
258 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
259 "stat.h".
260
261 2013-11-18 Tom Tromey <tromey@redhat.com>
262
263 * common/gdb_stat.h: Remove.
264 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
265 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
266 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
267 * corefile.c: Use sys/stat.h, not gdb_stat.h.
268 * ctf.c: Use sys/stat.h, not gdb_stat.h.
269 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
270 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
271 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
272 * exec.c: Use sys/stat.h, not gdb_stat.h.
273 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
274 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
275 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
276 * jit.c: Use sys/stat.h, not gdb_stat.h.
277 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
278 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
279 * main.c: Use sys/stat.h, not gdb_stat.h.
280 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
281 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
282 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
283 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
284 * procfs.c: Use sys/stat.h, not gdb_stat.h.
285 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
286 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
287 * remote.c: Use sys/stat.h, not gdb_stat.h.
288 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
289 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
290 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
291 * source.c: Use sys/stat.h, not gdb_stat.h.
292 * symfile.c: Use sys/stat.h, not gdb_stat.h.
293 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
294 * symtab.c: Use sys/stat.h, not gdb_stat.h.
295 * top.c: Use sys/stat.h, not gdb_stat.h.
296 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
297
298 2013-11-18 Tom Tromey <tromey@redhat.com>
299
300 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
301 sys_stat.
302 * gnulib/aclocal.m4: Update.
303 * gnulib/config.in: Update.
304 * gnulib/configure: Update.
305 * gnulib/import/Makefile.am: Update.
306 * gnulib/import/Makefile.in: Update.
307 * gnulib/import/m4/gnulib-cache.m4: Update.
308 * gnulib/import/m4/gnulib-comp.m4: Update.
309 * gnulib/import/m4/sys_stat_h.m4: New.
310 * gnulib/import/m4/time_h.m4: New.
311 * gnulib/import/sys_stat.in.h: New.
312 * gnulib/import/time.in.h: New.
313
314 2013-11-18 Tom Tromey <tromey@redhat.com>
315
316 * configure: Rebuild.
317 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
318
319 2013-11-18 Tom Tromey <tromey@redhat.com>
320
321 * configure: Rebuild.
322 * configure.ac: Don't check for unistd.h.
323
324 2013-11-18 Tom Tromey <tromey@redhat.com>
325
326 * configure: Rebuild.
327 * configure.ac: Don't check for stdlib.h
328 * defs.h: Include stdlib.h unconditionally.
329
330 2013-11-18 Tom Tromey <tromey@redhat.com>
331
332 * config.in: Rebuild.
333 * configure: Rebuild.
334 * configure.ac: Don't check for stddef.h.
335 * defs.h: Unconditionally include stddef.h. Remove duplicate
336 inclusion.
337
338 2013-11-18 Tom Tromey <tromey@redhat.com>
339
340 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
341 * common/gdb_dirent.h: Remove.
342 * common/filestuff.c: Use dirent.h.
343 * common/linux-osdata.c: Use dirent.h.
344 (NAMELEN): Define.
345 * config.in: Rebuild.
346 * configure: Rebuild.
347 * configure.ac: Don't use AC_HEADER_DIRENT.
348 * linux-fork.c: Use dirent.h
349 * linux-nat.c: Use dirent.h.
350 * nto-procfs.c: Use dirent.h.
351 * procfs.c: Use dirent.h.
352
353 2013-11-18 Tom Tromey <tromey@redhat.com>
354
355 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
356 * gnulib/aclocal.m4: Update.
357 * gnulib/config.in: Update.
358 * gnulib/configure: Update.
359 * gnulib/import/Makefile.am: Update.
360 * gnulib/import/Makefile.in: Update.
361 * gnulib/import/dirent.in.h: New.
362 * gnulib/import/m4/dirent_h.m4: New.
363 * gnulib/import/m4/gnulib-cache.m4: Update.
364 * gnulib/import/m4/gnulib-comp.m4: Update.
365
366 2013-11-18 Tom Tromey <tromey@redhat.com>
367
368 * configure: Rebuild.
369 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
370 strings.h.
371
372 2013-11-18 Tom Tromey <tromey@redhat.com>
373
374 * common/gdb_string.h: Remove.
375 * aarch64-tdep.c: Use string.h, not gdb_string.h.
376 * ada-exp.y: Use string.h, not gdb_string.h.
377 * ada-lang.c: Use string.h, not gdb_string.h.
378 * ada-lex.l: Use string.h, not gdb_string.h.
379 * ada-typeprint.c: Use string.h, not gdb_string.h.
380 * ada-valprint.c: Use string.h, not gdb_string.h.
381 * aix-thread.c: Use string.h, not gdb_string.h.
382 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
383 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
384 * alpha-nat.c: Use string.h, not gdb_string.h.
385 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
386 * alpha-tdep.c: Use string.h, not gdb_string.h.
387 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
388 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
389 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
390 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
391 * amd64-nat.c: Use string.h, not gdb_string.h.
392 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
393 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
394 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
395 * arch-utils.c: Use string.h, not gdb_string.h.
396 * arm-linux-nat.c: Use string.h, not gdb_string.h.
397 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
398 * arm-tdep.c: Use string.h, not gdb_string.h.
399 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
400 * armbsd-tdep.c: Use string.h, not gdb_string.h.
401 * armnbsd-nat.c: Use string.h, not gdb_string.h.
402 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
403 * armobsd-tdep.c: Use string.h, not gdb_string.h.
404 * avr-tdep.c: Use string.h, not gdb_string.h.
405 * ax-gdb.c: Use string.h, not gdb_string.h.
406 * ax-general.c: Use string.h, not gdb_string.h.
407 * bcache.c: Use string.h, not gdb_string.h.
408 * bfin-tdep.c: Use string.h, not gdb_string.h.
409 * breakpoint.c: Use string.h, not gdb_string.h.
410 * build-id.c: Use string.h, not gdb_string.h.
411 * buildsym.c: Use string.h, not gdb_string.h.
412 * c-exp.y: Use string.h, not gdb_string.h.
413 * c-lang.c: Use string.h, not gdb_string.h.
414 * c-typeprint.c: Use string.h, not gdb_string.h.
415 * c-valprint.c: Use string.h, not gdb_string.h.
416 * charset.c: Use string.h, not gdb_string.h.
417 * cli-out.c: Use string.h, not gdb_string.h.
418 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
419 * cli/cli-decode.c: Use string.h, not gdb_string.h.
420 * cli/cli-dump.c: Use string.h, not gdb_string.h.
421 * cli/cli-interp.c: Use string.h, not gdb_string.h.
422 * cli/cli-logging.c: Use string.h, not gdb_string.h.
423 * cli/cli-script.c: Use string.h, not gdb_string.h.
424 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
425 * cli/cli-utils.c: Use string.h, not gdb_string.h.
426 * coffread.c: Use string.h, not gdb_string.h.
427 * common/common-utils.c: Use string.h, not gdb_string.h.
428 * common/filestuff.c: Use string.h, not gdb_string.h.
429 * common/linux-procfs.c: Use string.h, not gdb_string.h.
430 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
431 * common/signals.c: Use string.h, not gdb_string.h.
432 * common/vec.h: Use string.h, not gdb_string.h.
433 * core-regset.c: Use string.h, not gdb_string.h.
434 * corefile.c: Use string.h, not gdb_string.h.
435 * corelow.c: Use string.h, not gdb_string.h.
436 * cp-abi.c: Use string.h, not gdb_string.h.
437 * cp-support.c: Use string.h, not gdb_string.h.
438 * cp-valprint.c: Use string.h, not gdb_string.h.
439 * cris-tdep.c: Use string.h, not gdb_string.h.
440 * d-lang.c: Use string.h, not gdb_string.h.
441 * dbxread.c: Use string.h, not gdb_string.h.
442 * dcache.c: Use string.h, not gdb_string.h.
443 * demangle.c: Use string.h, not gdb_string.h.
444 * dicos-tdep.c: Use string.h, not gdb_string.h.
445 * disasm.c: Use string.h, not gdb_string.h.
446 * doublest.c: Use string.h, not gdb_string.h.
447 * dsrec.c: Use string.h, not gdb_string.h.
448 * dummy-frame.c: Use string.h, not gdb_string.h.
449 * dwarf2-frame.c: Use string.h, not gdb_string.h.
450 * dwarf2loc.c: Use string.h, not gdb_string.h.
451 * dwarf2read.c: Use string.h, not gdb_string.h.
452 * elfread.c: Use string.h, not gdb_string.h.
453 * environ.c: Use string.h, not gdb_string.h.
454 * eval.c: Use string.h, not gdb_string.h.
455 * event-loop.c: Use string.h, not gdb_string.h.
456 * exceptions.c: Use string.h, not gdb_string.h.
457 * exec.c: Use string.h, not gdb_string.h.
458 * expprint.c: Use string.h, not gdb_string.h.
459 * f-exp.y: Use string.h, not gdb_string.h.
460 * f-lang.c: Use string.h, not gdb_string.h.
461 * f-typeprint.c: Use string.h, not gdb_string.h.
462 * f-valprint.c: Use string.h, not gdb_string.h.
463 * fbsd-nat.c: Use string.h, not gdb_string.h.
464 * findcmd.c: Use string.h, not gdb_string.h.
465 * findvar.c: Use string.h, not gdb_string.h.
466 * fork-child.c: Use string.h, not gdb_string.h.
467 * frame.c: Use string.h, not gdb_string.h.
468 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
469 * frv-tdep.c: Use string.h, not gdb_string.h.
470 * gdb.c: Use string.h, not gdb_string.h.
471 * gdb_bfd.c: Use string.h, not gdb_string.h.
472 * gdbarch.c: Use string.h, not gdb_string.h.
473 * gdbtypes.c: Use string.h, not gdb_string.h.
474 * gnu-nat.c: Use string.h, not gdb_string.h.
475 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
476 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
477 * go-exp.y: Use string.h, not gdb_string.h.
478 * go-lang.c: Use string.h, not gdb_string.h.
479 * go32-nat.c: Use string.h, not gdb_string.h.
480 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
481 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
482 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
483 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
484 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
485 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
486 * i386-linux-nat.c: Use string.h, not gdb_string.h.
487 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
488 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
489 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
490 * i386-tdep.c: Use string.h, not gdb_string.h.
491 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
492 * i386gnu-nat.c: Use string.h, not gdb_string.h.
493 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
494 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
495 * i387-tdep.c: Use string.h, not gdb_string.h.
496 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
497 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
498 * inf-child.c: Use string.h, not gdb_string.h.
499 * inf-ptrace.c: Use string.h, not gdb_string.h.
500 * inf-ttrace.c: Use string.h, not gdb_string.h.
501 * infcall.c: Use string.h, not gdb_string.h.
502 * infcmd.c: Use string.h, not gdb_string.h.
503 * inflow.c: Use string.h, not gdb_string.h.
504 * infrun.c: Use string.h, not gdb_string.h.
505 * interps.c: Use string.h, not gdb_string.h.
506 * iq2000-tdep.c: Use string.h, not gdb_string.h.
507 * irix5-nat.c: Use string.h, not gdb_string.h.
508 * jv-exp.y: Use string.h, not gdb_string.h.
509 * jv-lang.c: Use string.h, not gdb_string.h.
510 * jv-typeprint.c: Use string.h, not gdb_string.h.
511 * jv-valprint.c: Use string.h, not gdb_string.h.
512 * language.c: Use string.h, not gdb_string.h.
513 * linux-fork.c: Use string.h, not gdb_string.h.
514 * linux-nat.c: Use string.h, not gdb_string.h.
515 * lm32-tdep.c: Use string.h, not gdb_string.h.
516 * m2-exp.y: Use string.h, not gdb_string.h.
517 * m2-typeprint.c: Use string.h, not gdb_string.h.
518 * m32c-tdep.c: Use string.h, not gdb_string.h.
519 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
520 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
521 * m32r-rom.c: Use string.h, not gdb_string.h.
522 * m32r-tdep.c: Use string.h, not gdb_string.h.
523 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
524 * m68k-tdep.c: Use string.h, not gdb_string.h.
525 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
526 * m68klinux-nat.c: Use string.h, not gdb_string.h.
527 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
528 * m88k-tdep.c: Use string.h, not gdb_string.h.
529 * macrocmd.c: Use string.h, not gdb_string.h.
530 * main.c: Use string.h, not gdb_string.h.
531 * mdebugread.c: Use string.h, not gdb_string.h.
532 * mem-break.c: Use string.h, not gdb_string.h.
533 * memattr.c: Use string.h, not gdb_string.h.
534 * memory-map.c: Use string.h, not gdb_string.h.
535 * mep-tdep.c: Use string.h, not gdb_string.h.
536 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
537 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
538 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
539 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
540 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
541 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
542 * mi/mi-console.c: Use string.h, not gdb_string.h.
543 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
544 * mi/mi-interp.c: Use string.h, not gdb_string.h.
545 * mi/mi-main.c: Use string.h, not gdb_string.h.
546 * mi/mi-parse.c: Use string.h, not gdb_string.h.
547 * microblaze-rom.c: Use string.h, not gdb_string.h.
548 * microblaze-tdep.c: Use string.h, not gdb_string.h.
549 * mingw-hdep.c: Use string.h, not gdb_string.h.
550 * minidebug.c: Use string.h, not gdb_string.h.
551 * minsyms.c: Use string.h, not gdb_string.h.
552 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
553 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
554 * mips-tdep.c: Use string.h, not gdb_string.h.
555 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
556 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
557 * mipsread.c: Use string.h, not gdb_string.h.
558 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
559 * mn10300-tdep.c: Use string.h, not gdb_string.h.
560 * monitor.c: Use string.h, not gdb_string.h.
561 * moxie-tdep.c: Use string.h, not gdb_string.h.
562 * mt-tdep.c: Use string.h, not gdb_string.h.
563 * nbsd-tdep.c: Use string.h, not gdb_string.h.
564 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
565 * nto-procfs.c: Use string.h, not gdb_string.h.
566 * nto-tdep.c: Use string.h, not gdb_string.h.
567 * objc-lang.c: Use string.h, not gdb_string.h.
568 * objfiles.c: Use string.h, not gdb_string.h.
569 * opencl-lang.c: Use string.h, not gdb_string.h.
570 * osabi.c: Use string.h, not gdb_string.h.
571 * osdata.c: Use string.h, not gdb_string.h.
572 * p-exp.y: Use string.h, not gdb_string.h.
573 * p-lang.c: Use string.h, not gdb_string.h.
574 * p-typeprint.c: Use string.h, not gdb_string.h.
575 * parse.c: Use string.h, not gdb_string.h.
576 * posix-hdep.c: Use string.h, not gdb_string.h.
577 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
578 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
579 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
580 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
581 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
582 * printcmd.c: Use string.h, not gdb_string.h.
583 * procfs.c: Use string.h, not gdb_string.h.
584 * prologue-value.c: Use string.h, not gdb_string.h.
585 * python/py-auto-load.c: Use string.h, not gdb_string.h.
586 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
587 * ravenscar-thread.c: Use string.h, not gdb_string.h.
588 * regcache.c: Use string.h, not gdb_string.h.
589 * registry.c: Use string.h, not gdb_string.h.
590 * remote-fileio.c: Use string.h, not gdb_string.h.
591 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
592 * remote-mips.c: Use string.h, not gdb_string.h.
593 * remote-sim.c: Use string.h, not gdb_string.h.
594 * remote.c: Use string.h, not gdb_string.h.
595 * reverse.c: Use string.h, not gdb_string.h.
596 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
597 * ser-base.c: Use string.h, not gdb_string.h.
598 * ser-go32.c: Use string.h, not gdb_string.h.
599 * ser-mingw.c: Use string.h, not gdb_string.h.
600 * ser-pipe.c: Use string.h, not gdb_string.h.
601 * ser-tcp.c: Use string.h, not gdb_string.h.
602 * ser-unix.c: Use string.h, not gdb_string.h.
603 * serial.c: Use string.h, not gdb_string.h.
604 * sh-tdep.c: Use string.h, not gdb_string.h.
605 * sh64-tdep.c: Use string.h, not gdb_string.h.
606 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
607 * skip.c: Use string.h, not gdb_string.h.
608 * sol-thread.c: Use string.h, not gdb_string.h.
609 * solib-dsbt.c: Use string.h, not gdb_string.h.
610 * solib-frv.c: Use string.h, not gdb_string.h.
611 * solib-osf.c: Use string.h, not gdb_string.h.
612 * solib-spu.c: Use string.h, not gdb_string.h.
613 * solib-target.c: Use string.h, not gdb_string.h.
614 * solib.c: Use string.h, not gdb_string.h.
615 * somread.c: Use string.h, not gdb_string.h.
616 * source.c: Use string.h, not gdb_string.h.
617 * sparc-nat.c: Use string.h, not gdb_string.h.
618 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
619 * sparc-tdep.c: Use string.h, not gdb_string.h.
620 * sparc64-tdep.c: Use string.h, not gdb_string.h.
621 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
622 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
623 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
624 * spu-linux-nat.c: Use string.h, not gdb_string.h.
625 * spu-multiarch.c: Use string.h, not gdb_string.h.
626 * spu-tdep.c: Use string.h, not gdb_string.h.
627 * stabsread.c: Use string.h, not gdb_string.h.
628 * stack.c: Use string.h, not gdb_string.h.
629 * std-regs.c: Use string.h, not gdb_string.h.
630 * symfile.c: Use string.h, not gdb_string.h.
631 * symmisc.c: Use string.h, not gdb_string.h.
632 * symtab.c: Use string.h, not gdb_string.h.
633 * target.c: Use string.h, not gdb_string.h.
634 * thread.c: Use string.h, not gdb_string.h.
635 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
636 * tilegx-tdep.c: Use string.h, not gdb_string.h.
637 * top.c: Use string.h, not gdb_string.h.
638 * tracepoint.c: Use string.h, not gdb_string.h.
639 * tui/tui-command.c: Use string.h, not gdb_string.h.
640 * tui/tui-data.c: Use string.h, not gdb_string.h.
641 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
642 * tui/tui-file.c: Use string.h, not gdb_string.h.
643 * tui/tui-layout.c: Use string.h, not gdb_string.h.
644 * tui/tui-out.c: Use string.h, not gdb_string.h.
645 * tui/tui-regs.c: Use string.h, not gdb_string.h.
646 * tui/tui-source.c: Use string.h, not gdb_string.h.
647 * tui/tui-stack.c: Use string.h, not gdb_string.h.
648 * tui/tui-win.c: Use string.h, not gdb_string.h.
649 * tui/tui-windata.c: Use string.h, not gdb_string.h.
650 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
651 * typeprint.c: Use string.h, not gdb_string.h.
652 * ui-file.c: Use string.h, not gdb_string.h.
653 * ui-out.c: Use string.h, not gdb_string.h.
654 * user-regs.c: Use string.h, not gdb_string.h.
655 * utils.c: Use string.h, not gdb_string.h.
656 * v850-tdep.c: Use string.h, not gdb_string.h.
657 * valarith.c: Use string.h, not gdb_string.h.
658 * valops.c: Use string.h, not gdb_string.h.
659 * valprint.c: Use string.h, not gdb_string.h.
660 * value.c: Use string.h, not gdb_string.h.
661 * varobj.c: Use string.h, not gdb_string.h.
662 * vax-tdep.c: Use string.h, not gdb_string.h.
663 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
664 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
665 * windows-nat.c: Use string.h, not gdb_string.h.
666 * xcoffread.c: Use string.h, not gdb_string.h.
667 * xml-support.c: Use string.h, not gdb_string.h.
668 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
669 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
670
671 2013-11-18 Tom Tromey <tromey@redhat.com>
672
673 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
674 and strstr.
675 * gnulib/aclocal.m4: Update.
676 * gnulib/config.in: Update.
677 * gnulib/configure: Update.
678 * gnulib/import/Makefile.am: Update.
679 * gnulib/import/Makefile.in: Update.
680 * gnulib/import/errno.in.h: New.
681 * gnulib/import/intprops.h: New.
682 * gnulib/import/m4/errno_h.m4: New.
683 * gnulib/import/m4/gnulib-cache.m4: Update.
684 * gnulib/import/m4/gnulib-comp.m4: Update.
685 * gnulib/import/m4/strerror.m4: New.
686 * gnulib/import/m4/strstr.m4: New.
687 * gnulib/import/m4/sys_socket_h.m4: New.
688 * gnulib/import/strerror-override.c: New.
689 * gnulib/import/strerror-override.h: New.
690 * gnulib/import/strerror.c: New.
691 * gnulib/import/strstr.c: New.
692
693 2013-11-18 Tom Tromey <tromey@redhat.com>
694
695 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
696 multiple lines.
697
698 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
699
700 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
701 * sparc-tdep.h: And its prototype.
702
703 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
704 function.
705 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
706
707 2013-11-18 Pedro Alves <palves@redhat.com>
708
709 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
710 use unpack_pointer.
711
712 2013-11-18 Joel Brobecker <brobecker@adacore.com>
713
714 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
715 to -list-features output.
716
717 2013-11-17 Joel Brobecker <brobecker@adacore.com>
718
719 * dwarf2expr.h (struct dwarf_expr_context_funcs)
720 <read_addr_from_reg>: Renames "read_reg".
721 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
722 Adjust comment.
723 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
724 Use read_addr_from_reg in place of read_reg.
725 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
726 in place of read_reg.
727 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
728 dwarf_expr_read_reg.
729 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
730 with dwarf_expr_read_addr_from_reg.
731 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
732 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
733 needs_frame_read_addr_from_reg.
734
735 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
736
737 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
738
739 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
740
741 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
742 NULL.
743
744 2013-11-15 Tom Tromey <tromey@redhat.com>
745
746 PR c++/16117:
747 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
748 (classify_name): Likewise. Prefer a field of "this" over a
749 filename.
750 (classify_inner_name, yylex): Update.
751
752 2013-11-15 Joel Brobecker <brobecker@adacore.com>
753
754 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
755 Extend the documentation a bit.
756 <get_reg_value>: New field.
757 * dwarf2loc.c (dwarf_expr_get_reg_value)
758 (needs_frame_get_reg_value): New functions.
759 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
760 callback.
761 * dwarf2-frame.c (get_reg_value): New function.
762 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
763 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
764 Use new callback to compute result_val.
765
766 2013-11-15 Alan Modra <amodra@gmail.com>
767
768 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
769 (ppc64_desc_entry_point): ..this. Update comments here and at
770 call points.
771 (ppc64_standard_linkage1, ppc64_standard_linkage2,
772 ppc64_standard_linkage3): Update comments.
773 (ppc64_standard_linkage4, ppc64_standard_linkage5,
774 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
775 patterns.
776 (ppc64_standard_linkage4_target): New function.
777 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
778 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
779 nop match. Fix comment wrap.
780
781 2013-11-14 Pedro Alves <palves@redhat.com>
782
783 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
784 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
785
786 2013-11-14 Pedro Alves <palves@redhat.com>
787
788 * infrun.c (struct execution_control_state)
789 <stepped_after_stopped_by_watchpoint>: New field.
790 (get_inferior_stop_soon): New function.
791 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
792 moved to struct execution_control_state -- adjust. Use
793 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
794 new function.
795 (handle_signal_stop): New function, factored out from
796 handle_inferior_event.
797
798 2013-11-14 Pedro Alves <palves@redhat.com>
799
800 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
801 return a boolean.
802 * breakpoint.c (bpstat_explains_signal): Adjust to return a
803 boolean.
804 (explains_signal_watchpoint, base_breakpoint_explains_signal):
805 Adjust to return a boolean.
806 * breakpoint.h (enum bpstat_signal_value): Delete.
807 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
808 (bpstat_explains_signal): Likewise.
809 * infrun.c (handle_inferior_event) <random signal checks>:
810 bpstat_explains_signal now returns a boolean - adjust. No longer
811 consider hiding signals.
812
813 2013-11-14 Pedro Alves <palves@redhat.com>
814
815 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
816 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
817 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
818 BPSTAT_SIGNAL_HIDE.
819 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
820 instead of BPSTAT_SIGNAL_HIDE.
821 * infrun.c (handle_inferior_event): Rework random signal checks.
822
823 2013-11-14 Pedro Alves <palves@redhat.com>
824
825 * infrun.c (struct execution_control_state): Remove
826 'random_signal' field.
827 (handle_syscall_event): Use bpstat_causes_stop instead of
828 bpstat_explains_signal. Don't set ecs->random_signal.
829 (handle_inferior_event): New 'random_signal' local.
830 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
831 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
832 bpstat_explains_signal. Don't set ecs->random_signal.
833 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
834 ecs->random_signal.
835
836 2013-11-14 Pedro Alves <palves@redhat.com>
837
838 * infrun.c (handle_inferior_event): Move comment from the
839 function's body to the function's description, adjusted.
840
841 2013-11-14 Pedro Alves <palves@redhat.com>
842
843 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
844 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
845 Assert we never fall through out of the TARGET_WAITKIND_LOADED
846 case.
847
848 2013-11-14 Tom Tromey <tromey@redhat.com>
849
850 * python/py-linetable.c (ltpy_has_line)
851 (ltpy_get_all_source_lines): Fix loop termination condition.
852
853 2013-11-14 Joel Brobecker <brobecker@adacore.com>
854
855 * mi/mi-parse.h (struct mi_parse) <language>: New field.
856 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
857 PARSE->LANGUAGE during command execution, if set.
858 * mi/mi-parse.c: Add "language.h" #include.
859 (mi_parse): Add parsing of "--language" command option.
860
861 * NEWS: Add entry mentioning the new "--language" command option.
862
863 2013-11-14 Pedro Alves <palves@redhat.com>
864 Joel Brobecker <brobecker@adacore.com>
865
866 * cli/cli-utils.h (extract_arg_const): Add declaration.
867 * cli/cli-utils.c (extract_arg_const): New function.
868 (extract_arg): Reimplement using extract_arg_const.
869
870 2013-11-14 Joel Brobecker <brobecker@adacore.com>
871
872 * language.h: Add "symtab.h" #include.
873
874 2013-11-13 Doug Evans <xdje42@gmail.com>
875
876 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
877 specific breakpoints, don't evaluate breakpoint condition if
878 different thread.
879
880 2013-11-13 Keith Seitz <keiths@redhat.com>
881
882 PR c++/7935
883 PR c++/10541
884 * cp-support.c (insepct_type): Add support for substituting
885 namespace aliases, too.
886 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
887 for DW_TAG_imported_declaration.
888 (add_partial_symbol): Likewise.
889 (process_die): Handle namespace aliases with
890 read_namespace_alias.
891 (die_needs_namespace): Add DW_TAG_imported_declaration.
892 (read_namespace_alias): New function.
893 (load_partial_dies): Load DW_TAG_imported_declaration, too.
894 (new_symbol_full): Handle DW_TAG_imported_declaration.
895
896 2013-11-13 Keith Seitz <keiths@redhat.com>
897
898 * p-exp.y (uptok): Make first parameter const.
899 (yylex): Make `tokstart' and `tokptr' const.
900 Don't copy the lexer input to a temporary buffer.
901 Make `p' const.
902 Remove const workaround for parse_escape.
903 Create a temporary buffer for a convenience variable instead
904 of doing in-place modification of the input.
905 If a match is found with a different case from the input,
906 do not change the input at all.
907 Use `tmp' to construct the resultant stoken instead of
908 `tokstart'.
909
910 2013-11-13 Doug Evans <xdje42@gmail.com>
911
912 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
913
914 2013-11-13 Joel Brobecker <brobecker@adacore.com>
915
916 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
917 entry with "ada-exceptions".
918
919 2013-11-13 Joel Brobecker <brobecker@adacore.com>
920
921 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
922 after re-initialization of OBJFILE's obstack.
923
924 2013-11-12 Doug Evans <xdje42@gmail.com>
925
926 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
927 bs->stop != 0 on entry. Update function comment. Simplify early
928 exit for frame mismatch. Reindent rest of function.
929
930 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
931
932 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
933 NULL.
934
935 2013-11-12 Doug Evans <dje@google.com>
936
937 Work around gold/15646.
938 * dwarf2read.c (read_index_from_section): Update comment.
939 (struct dw2_symtab_iterator): New member global_seen.
940 (dw2_symtab_iter_init): Initialize it.
941 (dw2_symtab_iter_next): Skip duplicate global symbols.
942 (dw2_expand_symtabs_matching): Ditto.
943
944 2013-11-12 Joel Brobecker <brobecker@adacore.com>
945
946 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
947 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
948 command.
949 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
950 (mi_cmd_info_ada_exceptions): New function.
951 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
952
953 2013-11-12 Joel Brobecker <brobecker@adacore.com>
954
955 * ada-lang.h: #include "vec.h".
956 (struct ada_exc_info): New.
957 (ada_exc_info): New typedef.
958 (DEF_VEC_O(ada_exc_info)): New vector.
959 (ada_exceptions_list): Add declaration.
960 * ada-lang.c (ada_is_exception_sym)
961 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
962 (sort_remove_dups_ada_exceptions_list)
963 (ada_exc_search_name_matches, ada_add_standard_exceptions)
964 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
965 (ada_exceptions_list_1, ada_exceptions_list)
966 (info_exceptions_command): New function.
967 (_initialize_ada_language): Add "info exception" command.
968
969 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
970
971 PR python/15629
972 * NEWS: Add linetable feature.
973 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
974 * python/py-linetable.c: New file.
975 * python/py-symtab.c (stpy_get_linetable): New function.
976 * python/python-internal.h (symtab_to_linetable_object): Declare.
977 (gdbpy_initialize_linetable): Ditto.
978 * python/python.c (_initialize_python): Call
979 gdbpy_initialize_linetable.
980
981 2013-11-11 Joel Brobecker <brobecker@adacore.com>
982
983 * ada-lang.c (create_ada_exception_catchpoint): Enhance
984 the documentation of fields "except_string" and "condition".
985 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
986 CONDITION on the heap before passing it to
987 create_ada_exception_catchpoint.
988 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
989 CONDITION.
990
991 2013-11-11 Tom Tromey <tromey@redhat.com>
992
993 * config.in, configure: Rebuild.
994 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
995
996 2013-11-11 Joel Brobecker <brobecker@adacore.com>
997
998 * remote-sim.c (gdbsim_detach): Break declaration into
999 shorter lines. No code change.
1000
1001 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1002
1003 * remote-sim.c (gdbsim_detach): Fix prototype.
1004
1005 2013-11-08 Doug Evans <dje@google.com>
1006
1007 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1008 (create_debug_types_hash_table): Only print debugging messages for
1009 each TU if dwarf2-read >= 2.
1010 (process_queue): Ditto.
1011 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1012 Update doc string.
1013
1014 2013-11-08 Tom Tromey <tromey@redhat.com>
1015
1016 * configure: Rebuild.
1017 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1018
1019 2013-11-08 Tom Tromey <tromey@redhat.com>
1020
1021 * configure, config.in: Rebuild.
1022 * configure.ac: Remove unused configury.
1023
1024 2013-11-08 Tom Tromey <tromey@redhat.com>
1025
1026 * m32c-tdep.c: Use gdb_string.h.
1027
1028 2013-11-08 Tom Tromey <tromey@redhat.com>
1029
1030 * configure, config.in: Rebuild.
1031 * configure.ac: Remove all link.h-related checks.
1032
1033 2013-11-08 Tom Tromey <tromey@redhat.com>
1034
1035 * acinclude.m4: Include common.m4.
1036 * common/common.m4: New file.
1037 * configure, config.in: Rebuild.
1038 * configure.ac: Use GDB_AC_COMMON.
1039
1040 2013-11-08 Doug Evans <dje@google.com>
1041
1042 * NEWS: Mention that "set debug symtab-create" now accepts a
1043 verbosity level.
1044 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1045 to set the symtab's primary flag.
1046 * jit.c (finalize_symtab): Ditto.
1047 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1048 * symfile.c (allocate_symtab): Only print debugging messages for
1049 symtab_create_debug levels 2 and higher.
1050 * symtab.c (symtab_create_debug): Change type to unsigned int.
1051 (set_symtab_primary): New function.
1052 (_initialize_symtab): Change "set debug symtab-create" to a
1053 zuinteger option.
1054 * symtab.h (set_symtab_primary): Declare.
1055 (symtab_create_debug): Update decl.
1056
1057 2013-11-08 Tom Tromey <tromey@redhat.com>
1058
1059 * aix-thread.c (aix_thread_detach): Update.
1060 * corelow.c (core_detach): Update.
1061 * darwin-nat.c (darwin_detach): Update.
1062 * dec-thread.c (dec_thread_detach): Update.
1063 * gnu-nat.c (gnu_detach): Update.
1064 * go32-nat.c (go32_detach): Update.
1065 * inf-ptrace.c (inf_ptrace_detach): Update.
1066 * inf-ttrace.c (inf_ttrace_detach): Update.
1067 * linux-fork.c (linux_fork_detach): Update.
1068 * linux-fork.h (linux_fork_detach): Update.
1069 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1070 local for const-correctness.
1071 * linux-thread-db.c (thread_db_detach): Update.
1072 * monitor.c (monitor_detach): Update.
1073 * nto-procfs.c (procfs_detach): Update.
1074 * procfs.c (procfs_detach): Update.
1075 * record.c (record_detach): Update.
1076 * record.h (record_detach): Update.
1077 * remote-m32r-sdi.c (m32r_detach): Update.
1078 * remote-mips.c (mips_detach): Update.
1079 * remote-sim.c (gdbsim_detach): Update.
1080 * remote.c (remote_detach_1, remote_detach)
1081 (extended_remote_detach): Update.
1082 * sol-thread.c (sol_thread_detach): Update.
1083 * target.c (target_detach): Make "args" const.
1084 (init_dummy_target): Update.
1085 * target.h (struct target_ops) <to_detach>: Make argument const.
1086 (target_detach): Likewise.
1087 * windows-nat.c (windows_detach): Update.
1088
1089 2013-11-07 Doug Evans <dje@google.com>
1090
1091 PR 11786
1092 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1093 and align fields for PT_GNU_RELRO segments.
1094
1095 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1096
1097 PR python/15747
1098 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1099
1100 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1101
1102 * NEWS: Document Python temporary breakpoint support.
1103 * python/py-breakpoint.c (bppy_get_temporary): New function.
1104 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1105 to temporary if True.
1106
1107 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1108
1109 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1110 removed to allow analyzing unconditional branch instructions
1111 with PC-relative offsets of zero.
1112
1113 2013-11-07 Yao Qi <yao@codesourcery.com>
1114
1115 * mi/mi-cmd-var.c: Include "language.h".
1116 (mi_cmd_var_info_expression): Get language name from
1117 language_defn.
1118 * varobj.c (varobj_language_string): Remove.
1119 (variable_language): Remove declaration.
1120 (languages): Remove.
1121 (varobj_get_language): Change the type of return value.
1122 (variable_language): Remove.
1123 * varobj.h (enum varobj_languages): Remove.
1124 (varobj_language_string): Remove declaration.
1125 (varobj_get_language): Update declaration.
1126
1127 2013-11-07 Yao Qi <yao@codesourcery.com>
1128
1129 * language.h (struct language_defn) <la_natural_name>: New
1130 field.
1131 * ada-lang.c (ada_language_defn): Initialize field
1132 'la_natural_name'.
1133 * c-lang.c (c_language_defn): Likewise.
1134 (cplus_language_defn, asm_language_defn): Likewise.
1135 * d-lang.c (d_language_defn): Likewise.
1136 * f-lang.c (f_language_defn): Likewise.
1137 * go-lang.c (go_language_defn): Likewise.
1138 * jv-lang.c (java_language_defn): Likewise.
1139 * language.c (unknown_language_defn ): Likewise.
1140 (auto_language_defn): Likewise.
1141 * m2-lang.c (m2_language_defn): Likewise.
1142 * objc-lang.c (objc_language_defn): Likewise.
1143 * opencl-lang.c (opencl_language_defn): Likewise.
1144 * p-lang.c (pascal_language_defn): Likewise.
1145
1146 2013-11-07 Yao Qi <yao@codesourcery.com>
1147
1148 * language.c (language_str): Return const char *.
1149 (add_language): Add const to 'language_names'
1150 * language.h (struct language_defn) <la_name>: Add const.
1151 (language_str: Update declaration.
1152
1153 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1154
1155 * s390-linux-nat.c (s390_read_description): Consider the TE field
1156 in the HWCAP for determining 'have_regset_tdb'.
1157
1158 2013-11-06 Will Newton <will.newton@linaro.org>
1159
1160 PR gdb/12866
1161 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1162 values. (read_partial_die): Likewise.
1163
1164 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1165
1166 PR cli/16122
1167 * top.c (command_line_input): Unify interactivity tests to use
1168 input_from_terminal_p.
1169 * event-top.c (command_line_handler): Likewise.
1170
1171 2013-11-06 Yao Qi <yao@codesourcery.com>
1172
1173 * Makefile.in (check-perf): New target.
1174
1175 2013-11-05 Will Newton <will.newton@linaro.org>
1176
1177 PR gdb/7670
1178 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1179 (arm_print_float_info): Likewise.
1180
1181 2013-11-04 Anton Blanchard <anton@samba.org>
1182
1183 * target.c (memory_xfer_partial): Cap write to 4KB.
1184
1185 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1186
1187 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1188 probe scan even when the arch provides no get_longjmp_target.
1189
1190 2013-10-31 Pedro Alves <palves@redhat.com>
1191
1192 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1193 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1194 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1195 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1196 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1197 <bpstat handling>: If the bpstat chain wants the signal to be
1198 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1199 GDB_SIGNAL_TRAP.
1200
1201 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1202
1203 * breakpoint.c (update_watchpoint): Update error message and add
1204 an additional error message.
1205
1206 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1207
1208 * s390-tdep.h: Rename to...
1209 * s390-linux-tdep.h: ...here.
1210 * s390-tdep.c: Rename to...
1211 * s390-linux-tdep.c: ...here. Adjust #include.
1212 * s390-nat.c: Rename to...
1213 * s390-linux-nat.c: ...here. Adjust #include.
1214 * config/s390/s390.mh: Rename to...
1215 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1216 s390-linux-nat.o.
1217 * configure.host: Reflect host rename "s390" -> "linux".
1218 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1219 * Makefile.in (ALL_TARGET_OBS): Likewise.
1220 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1221 s390-linux-tdep.h.
1222 (ALLDEPFILES): Reflect rename of .c files.
1223
1224 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1225
1226 * s390-nat.c: Whitespace cleanup.
1227 * s390-tdep.c: Likewise.
1228 * s390-tdep.h: Remove empty line at end of file.
1229
1230 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1231
1232 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1233 siginfo_size.
1234
1235 2013-10-29 Tom Tromey <tromey@redhat.com>
1236
1237 * utils.c (reg): Move undefinition...
1238 * gdb_curses.h: ... here. Update comment to mention AIX.
1239
1240 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1241
1242 * exec.h (add_target_sections_of_objfile): New declaration.
1243 * exec.c (add_target_sections_of_objfile): New function.
1244 * symfile.c (add_symbol_file_command): Update current target sections.
1245 (remove_symbol_file_command): New command.
1246 (symfile_free_objfile): New function.
1247 (_initialize_symfile): Register observer for free_objfile events.
1248 * NEWS: Add description of the remove-symbol-file command.
1249 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1250 * objfiles.c (free_objfile): Notify free_objfile.
1251 (is_addr_in_objfile): New function.
1252 * objfiles.h (is_addr_in_objfile): New declaration.
1253 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1254 events instead of solib_unloaded events.
1255 (_initialize_printcmd): Register observer for free_objfile instead
1256 of solib_unloaded notifications.
1257 * solib.c (remove_user_added_objfile): New function.
1258 (_initialize_symfile): Add remove-symbol-file.
1259
1260 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1261
1262 * infcmd.c (default_print_one_register_info): Use val_print to
1263 print all values even optimized out or unavailable ones. Don't
1264 try to print a raw form of optimized out or unavailable values.
1265
1266 2013-10-29 Yao Qi <yao@codesourcery.com>
1267
1268 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1269 parameter 'arg' instead of from program_space_data.
1270 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1271 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1272 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1273 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1274 * inflow.c (inflow_inferior_data_cleanup): Get data from
1275 parameter 'arg' instead of inferior_data.
1276 * registry.h: Add comments.
1277
1278 2013-10-28 Pedro Alves <palves@redhat.com>
1279
1280 * breakpoint.c (watchpoints_triggered)
1281 <!target_stopped_data_address>: Hardcode return 1.
1282
1283 2013-10-28 Pedro Alves <palves@redhat.com>
1284
1285 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1286 level and reindent.
1287
1288 2013-10-28 Pedro Alves <palves@redhat.com>
1289
1290 * infrun.c (process_event_stop_test): New function, factored out
1291 from handle_inferior_event.
1292 (handle_inferior_event): 'process_event_stop_test' is now a
1293 function instead of a goto label -- adjust.
1294
1295 2013-10-28 Pedro Alves <palves@redhat.com>
1296
1297 * infrun.c (handle_inferior_event): Move process_event_stop_test
1298 goto label to the else branch of the ecs->random_signal check,
1299 along with FRAME and GDBARCH re-fetching.
1300
1301 2013-10-28 Pedro Alves <palves@redhat.com>
1302
1303 * infrun.c (switch_back_to_stepped_thread): New function, factored
1304 out from handle_inferior_event.
1305 (handle_inferior_event): Adjust to call
1306 switch_back_to_stepped_thread. Call it also at the tail of the
1307 random signal handling, and return, instead of also handling
1308 random signals just before the stepping tests.
1309
1310 2013-10-28 Pedro Alves <palves@redhat.com>
1311
1312 * infrun.c (clear_stop_func): Delete.
1313 (handle_inferior_event): Don't call clear_stop_func and don't
1314 clear 'ecs->random_signal'.
1315
1316 2013-10-27 Yao Qi <yao@codesourcery.com>
1317
1318 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1319 (varobj_create, varobj_get_path_expr): Update.
1320 (varobj_value_has_mutated, varobj_update): Likewise.
1321 (create_child_with_value, new_root_variable): Likewise.
1322 (number_of_children, name_of_variable): Likewise.
1323 (value_of_child, my_value_of_variable): Likewise.
1324 (varobj_value_is_changeable_p): Likewise.
1325
1326 2013-10-25 Yao Qi <yao@codesourcery.com>
1327
1328 * language.h (struct lang_varobj_ops): Declare.
1329 (struct language_defn) <la_varobj_ops>: New field.
1330 * ada-lang.c: Include "varobj.h"
1331 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1332 ada_varobj_ops.
1333 * c-lang.c: Include "varobj.h"
1334 (c_language_defn): Initialize field 'la_varobj_ops' with
1335 c_varobj_ops.
1336 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1337 cplus_varobj_ops.
1338 (asm_language_defn): Initialize field 'la_varobj_ops' with
1339 default_varobj_ops.
1340 (minimal_language_defn): Likewise.
1341 * d-lang.c (d_language_defn): Likewise.
1342 * f-lang.c (f_language_defn): Likewise.
1343 * go-lang.c (go_language_defn): Likewise.
1344 * m2-lang.c (m2_language_defn): Likewise.
1345 * objc-lang.c (objc_language_defn): Likewise.
1346 * opencl-lang.c (opencl_language_defn): Likewise.
1347 * p-lang.c (pascal_language_defn): Likewise.
1348 * language.c (unknown_language_defn): Likewise.
1349 (auto_language_defn): Likewise.
1350 (local_language_defn): Likewise.
1351 * jv-lang.c (java_language_defn): Initialize field
1352 'la_varobj_ops' with java_varobj_ops.
1353 * varobj.c (varobj_create): Update.
1354 * varobj.h (default_varobj_ops): Define macro.
1355
1356 2013-10-25 Pedro Alves <palves@redhat.com>
1357
1358 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1359 static field value.
1360 (cp_print_static_field): If the value is entirely optimized out,
1361 print <optimized out> here.
1362 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1363 static field value.
1364 * p-valprint.c (pascal_object_print_static_field): If the value is
1365 entirely optimized out, print <optimized out> here.
1366 * valops.c (do_search_struct_field)
1367 (value_struct_elt_for_reference): No longer handle a NULL static
1368 field value.
1369 * value.c (value_static_field): Return an optimized out value
1370 instead of NULL.
1371
1372 2013-10-25 Yao Qi <yao@codesourcery.com>
1373
1374 * remote.c (remote_traceframe_info): Return early if
1375 traceframe is not selected.
1376
1377 2013-10-25 Yao Qi <yao@codesourcery.com>
1378
1379 * tracepoint.c (traceframe_fun): Remove.
1380 (traceframe_sal): Remove.
1381 (set_traceframe_context): Add local variables.
1382
1383 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1384
1385 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1386 and parameter name.
1387
1388 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1389
1390 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1391 failure from register information collection.
1392
1393 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1394
1395 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1396 member.
1397 (linux_corefile_thread_callback): Update accordingly.
1398 (linux_make_corefile_notes): Likewise.
1399
1400 2013-10-24 Pedro Alves <palves@redhat.com>
1401
1402 * NEWS (New options): Mention set/show startup-with-shell.
1403 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1404 instead of 3.
1405 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1406 startup-with-shell'.
1407 (show_startup_with_shell): New function.
1408 (_initialize_fork_child): Register the set/show startup-with-shell
1409 commands.
1410 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1411 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1412 * procfs.c (procfs_init_inferior): Remove comment.
1413 * infcmd.c (startup_with_shell): New global.
1414 * inferior.h (startup_with_shell): Declare global.
1415 (STARTUP_WITH_SHELL): Delete.
1416 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1417
1418 2013-10-23 Pedro Alves <palves@redhat.com>
1419
1420 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1421 * common/signals.c: Include "gdb_assert.h".
1422 (signals): New field 'symbol'.
1423 (SET): Use the 'symbol' parameter.
1424 (gdb_signal_to_symbol_string): New function.
1425 * infrun.c (handle_inferior_event) <random signal>: In debug
1426 output, print the random signal enum as string in addition to its
1427 number.
1428 * target/waitstatus.c (target_waitstatus_to_string): Print the
1429 signal's enum value as string instead of the (POSIX) signal name.
1430
1431 2013-10-23 Gary Benson <gbenson@redhat.com>
1432
1433 PR 16013
1434 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1435 from 32 to 18. Adjusted fscanf format string accordingly.
1436 (Avoids leaving cmd unterminated.)
1437 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1438 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1439 that local_address and remote_address will not overflow.
1440 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1441 leaving dependencies unterminated. Parse size as "%u" to match
1442 definition.
1443
1444 2013-10-22 Pedro Alves <palves@redhat.com>
1445
1446 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1447 set ecs->random signal.
1448
1449 2013-10-22 Pedro Alves <palves@redhat.com>
1450
1451 * infrun.c (keep_going): Update comments.
1452
1453 2013-10-22 Pedro Alves <palves@redhat.com>
1454
1455 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1456 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1457
1458 2013-10-22 Pedro Alves <palves@redhat.com>
1459
1460 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1461 GDB_EXC_BAD_ACCESS.
1462 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1463 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1464 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1465 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1466 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1467 (GDB_SIGNAL_LAST): Change description string.
1468 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1469 Adjust to signal renaming.
1470 * darwin-nat.c (darwin_decode_message): Likewise.
1471
1472 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1473
1474 * MAINTAINERS (Write After Approval): Add myself to the list.
1475
1476 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1477
1478 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1479 forced off, downgrade them to software watchpoints if possible,
1480 and error out if not possible.
1481 (watch_command_1): Move watchpoint type selection closer to
1482 watchpoint creation, and extend the comments.
1483
1484 2013-10-18 Pedro Alves <palves@redhat.com>
1485
1486 PR gdb/16062
1487 * infrun.c (handle_inferior_event): Keep going if we got a random
1488 signal we should not stop for, instead of falling through to the
1489 step tests.
1490
1491 2013-10-18 Yao Qi <yao@codesourcery.com>
1492
1493 * c-varobj.c (cplus_number_of_children): Fix indentation.
1494
1495 2013-10-17 Tom Tromey <tromey@redhat.com>
1496
1497 PR gdb/15995:
1498 * printcmd.c (printcmd): Call gdb_flush.
1499
1500 2013-10-17 Tom Tromey <tromey@redhat.com>
1501
1502 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1503 (elf_locate_sections): Update.
1504
1505 2013-10-17 Yao Qi <yao@codesourcery.com>
1506
1507 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1508 * ada-varobj.c: Remove the include of ada-varobj.h.
1509 (ada_varobj_get_number_of_children): Declare.
1510 (ada_varobj_get_name_of_child): Make it static.
1511 (ada_varobj_get_path_expr_of_child): Likewise.
1512 (ada_varobj_get_value_of_child): Likewise.
1513 (ada_varobj_get_type_of_child): Likewise.
1514 (ada_varobj_get_value_of_array_variable): Likewise.
1515 * ada-varobj.h: Remove.
1516
1517 2013-10-17 Yao Qi <yao@codesourcery.com>
1518
1519 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1520 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1521 * ada-varobj.c: Include "varobj.h".
1522 (ada_number_of_children): New. Moved from varobj.c.
1523 (ada_name_of_variable, ada_name_of_child): Likewise.
1524 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1525 (ada_type_of_child, ada_value_of_variable): Likewise.
1526 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1527 (ada_varobj_ops): New.
1528 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1529 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1530 * gdbtypes.h (get_target_type): Declare.
1531 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1532 "ada-lang.h".
1533 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1534 (ANONYMOUS_UNION_NAME): Likewise.
1535 (get_type, get_value_type, get_target_type): Remove declarations.
1536 (value_get_print_value, varobj_value_get_print_value): Likewise.
1537 (c_number_of_children, c_name_of_variable): Likewise.
1538 (c_name_of_child, c_path_expr_of_child): Likewise.
1539 (c_value_of_child, c_type_of_child): Likewise.
1540 (c_value_of_variable, cplus_number_of_children): Likewise.
1541 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1542 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1543 (cplus_value_of_child, cplus_type_of_child): Likewise.
1544 (cplus_value_of_variable, java_number_of_children): Likewise.
1545 (java_name_of_variable, java_name_of_child): Likewise.
1546 (java_path_expr_of_child, java_value_of_child): Likewise.
1547 (java_type_of_child, java_value_of_variable): Likewise.
1548 (ada_number_of_children, ada_name_of_variable): Likewise.
1549 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1550 (ada_value_of_child, ada_type_of_child): Likewise.
1551 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1552 (ada_value_has_mutated): Likewise.
1553 (struct language_specific): Move it to varobj.h.
1554 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1555 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1556 Callers update.
1557 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1558 Make it extern.
1559 (is_anonymous_child): Move it to c-varobj.c and rename to
1560 varobj_is_anonymous_child. Caller update.
1561 (get_type): Move it to c-varobj.c.
1562 (get_value_type): Rename it varobj_get_value_type. Make it
1563 extern.
1564 (get_target_type): Move it gdbtypes.c.
1565 (varobj_formatted_print_options): New function.
1566 (value_get_print_value): Rename it to
1567 varobj_value_get_print_value and make it extern.
1568 (varobj_value_is_changeable_p): Make it extern.
1569 (adjust_value_for_child_access): Move it to c-varobj.c.
1570 (default_value_is_changeable_p): Rename it to
1571 varobj_default_value_is_changeable_p. Make it extern.
1572 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1573 (c_name_of_child, c_path_expr_of_child): Likewise.
1574 (c_value_of_child, c_type_of_child): Likewise.
1575 (c_value_of_variable, cplus_number_of_children): Likewise.
1576 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1577 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1578 (cplus_value_of_child, cplus_type_of_child): Likewise.
1579 (cplus_value_of_variable): Likewise.
1580 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1581 (java_name_of_child, java_path_expr_of_child): Likewise.
1582 (java_value_of_child, java_type_of_child): Likewise.
1583 (java_value_of_variable): Likewise.
1584 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1585 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1586 (ada_value_of_child, ada_type_of_child): Likewise.
1587 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1588 (ada_value_has_mutated): Likewise.
1589 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1590 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1591 (c_varobj_ops, cplus_varobj_ops): Declare.
1592 (java_varobj_ops, ada_varobj_ops): Declare.
1593 (varobj_default_value_is_changeable_p): Declare.
1594 (varobj_value_is_changeable_p): Declare.
1595 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1596 (varobj_get_path_expr_parent): Declare.
1597 (varobj_value_get_print_value): Declare.
1598 (varobj_formatted_print_options): Declare.
1599 (varobj_restrict_range): Declare.
1600
1601 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1602
1603 * target/waitstatus.h (target_waitkind): Remove spurious
1604 character from the comments.
1605
1606 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1607
1608 * gdbarch.sh (get_longjmp_target): Add method documentation.
1609 * gdbarch.h: Regenerate.
1610
1611 2013-10-16 Tom Tromey <tromey@redhat.com>
1612
1613 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1614 label.
1615
1616 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1617
1618 * gcore.in: Call GDB using the full path to the gcore script.
1619 Error out if the GDB binary is not found.
1620
1621 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1622
1623 PR gdb/16014
1624 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1625 sizeof.
1626
1627 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1628
1629 PR gdb/16042
1630 * target.c (target_disable_btrace): Fix invalid return value for
1631 void function.
1632 (target_teardown_btrace): Likewise.
1633
1634 2013-10-14 Yao Qi <yao@codesourcery.com>
1635
1636 * varobj.c (struct varobj): Move most of the fields to
1637 varobj.h.
1638 (struct varobj_dynamic): New struct.
1639 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1640 (varobj_has_more): Likewise.
1641 (dynamic_varobj_has_child_method): Likewise.
1642 (update_dynamic_varobj_children): Likewise.
1643 (varobj_get_num_children): Likewise.
1644 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1645 (install_new_value_visualizer): Likewise.
1646 (install_new_value_visualizer, install_new_value): Likewise.
1647 (varobj_update, new_variable, free_variable): Likewise.
1648 (my_value_of_variable, value_get_print_value): Likewise.
1649 (install_visualizer): Change the type of parameter 'var' to
1650 'struct varobjd_dynamic *'. Callers update.
1651 * varobj.h (struct varobj): Moved from varobj.c.
1652 (struct varobj) <dynamic>: New field.
1653
1654 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1655
1656 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1657 as the preferred name of r30.
1658 * nios2-linux-tdep.c (reg_offsets): Likewise.
1659 * features/nios2-cpu.xml: Likewise.
1660 * features/nios2-linux.c: Regenerated.
1661 * features/nios2.c: Regenerated.
1662 * regformats/nios2-linux.dat: Regenerated.
1663
1664 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1665
1666 Canonicalize directories for EXEC_FILENAME.
1667 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1668 exec_filename.
1669 * utils.c (gdb_realpath_keepfile): New function.
1670 * utils.h (gdb_realpath_keepfile): New declaration.
1671
1672 2013-10-11 Doug Evans <dje@google.com>
1673
1674 * Makefile.in (GDBFLAGS): New variable.
1675 (run): New rule.
1676
1677 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1678
1679 * NEWS: Add entry documenting the new "-catch-assert" and
1680 "-catch-exception" GDB/MI commands.
1681
1682 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1683
1684 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1685 "enabled".
1686 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1687 "enabled". Set B->ENABLE_STATE accordingly.
1688 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1689 ada-lang.c.
1690 (create_ada_exception_catchpoint): Add declaration.
1691 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1692 (create_ada_exception_catchpoint): Make non-static. Add new
1693 parameter "disabled". Use it in call to
1694 init_ada_exception_breakpoint.
1695 (catch_ada_exception_command): Add parameter "enabled" in call
1696 to create_ada_exception_catchpoint.
1697 (catch_assert_command): Likewise.
1698
1699 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1700 Add declarations.
1701 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1702 "catch-exception" commands.
1703 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1704 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1705
1706 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1707
1708 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1709 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1710 of all its enumerates with "ada_". Update the rest of this
1711 file throughout.
1712
1713 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1714
1715 * ada-lang.c (ada_decode_exception_location): Delete.
1716 (create_ada_exception_catchpoint): Remove arguments "sal",
1717 "addr_string" and "ops". Add argument "ex_kind" instead.
1718 Adjust implementation accordingly, calling ada_exception_sal
1719 to get the entities it no longer gets passed as arguments.
1720 Document the function's arguments.
1721 (catch_ada_exception_command): Use catch_ada_exception_command_split
1722 instead of ada_decode_exception_location, and update call to
1723 create_ada_exception_catchpoint.
1724 (catch_ada_assert_command_split): Renames
1725 ada_decode_assert_location. Remove parameters "addr_string" and
1726 "ops", and now returns void. Adjust implementation accordingly.
1727 Update the function documentation.
1728 (catch_assert_command): Use catch_ada_assert_command_split
1729 instead of ada_decode_assert_location. Update call to
1730 create_ada_exception_catchpoint.
1731
1732 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1733
1734 * utils.h (perror_warning_with_name): Add declaration.
1735 * utils.c (perror_warning_with_name): New function.
1736 * cli/cli-cmds.c (source_script_with_search): Add call to
1737 perror_warning_with_name if from_tty is nul.
1738
1739 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1740
1741 * utils.c (perror_string): New function, extracted out of
1742 throw_perror_with_name.
1743 (throw_perror_with_name): Rework to use perror_string.
1744
1745 2013-10-11 Yao Qi <yao@codesourcery.com>
1746
1747 * remote.c (discard_pending_stop_replies_in_queue): Update
1748 declaration.
1749 (struct stop_reply) <rs>: New field.
1750 (remove_stop_reply_of_remote_state): New function.
1751 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1752 Callers update. Pass remove_stop_reply_of_remote_state to
1753 QUEUE_iterate.
1754 (remote_parse_stop_reply): Initialize field 'rs'.
1755
1756 2013-10-10 Will Newton <will.newton@linaro.org>
1757
1758 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1759 linux_init_abi.
1760
1761 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1762
1763 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1764 serial_baud_show_cmd.
1765 (_initialize_cli_cmds): Delete the code creating the
1766 "set/show remotebaud" commands.
1767 * serial.c (baud_rate): Move here from top.c.
1768 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1769 (_initialize_serial): Create "set/show serial baud" commands.
1770 Add "set/show remotebaud" command aliases.
1771 * top.c (baud_rate): Moved to serial.c.
1772 * NEWS: Document the new "set/show serial baud" commands,
1773 replacing "set/show remotebaud".
1774
1775 2013-10-09 Pedro Alves <palves@redhat.com>
1776
1777 * breakpoint.c (insert_bp_location): Use memory_error_message to
1778 build the memory error string.
1779 * c-lang.c: Include "gdbcore.h".
1780 (c_get_string): Use memory_error to throw error.
1781 (target_xfer_memory_error): Delete.
1782 (memory_error_message): New, factored out from
1783 target_xfer_memory_error.
1784 (memory_error): Change parameter type to target_xfer_error.
1785 Rewrite.
1786 (read_memory): Use memory_error instead of
1787 target_xfer_memory_error.
1788 * gdbcore.h: Include "target.h".
1789 (memory_error): Change parameter type to target_xfer_error.
1790 (memory_error_message): Declare function.
1791 * target.c (target_read_memory, target_read_stack)
1792 (target_write_memory, target_write_raw_memory): Return
1793 TARGET_XFER_E_IO on error. Adjust comments.
1794 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1795 instead of EIO.
1796 * target.h (target_read, target_insert_breakpoint)
1797 (target_remove_breakpoint): Adjust comments.
1798 * valprint.c (partial_memory_read): Rename parameter, and adjust
1799 comment.
1800 (val_print_string): Use memory_error_message to build the memory
1801 error string.
1802
1803 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1804
1805 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1806 result variable. Rename variable fopen_e_ever_failed to
1807 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1808
1809 2013-10-09 Pedro Alves <palves@redhat.com>
1810
1811 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1812 (monitor_write_memory_longlongs, monitor_write_memory_block):
1813 Constify 'myaddr' parameter.
1814 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1815 helper.
1816 (monitor_xfer_partial): New function.
1817 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1818 hook. Install a to_xfer_partial hook.
1819
1820 2013-10-09 Tom Tromey <tromey@redhat.com>
1821
1822 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1823 bfd_get_alt_debug_link_info.
1824
1825 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1826
1827 New flag OBJF_NOT_FILENAME.
1828 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1829 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1830 allocate_objfile.
1831 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1832 symbol_file_add_from_bfd.
1833 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1834 allocate_objfile.
1835 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1836 NULL.
1837 * objfiles.h (OBJF_NOT_FILENAME): New.
1838
1839 2013-10-08 Tom Tromey <tromey@redhat.com>
1840
1841 * Makefile.in (SFILES): Add build-id.c.
1842 (HFILES_NO_SRCDIR): Add build-id.h.
1843 * build-id.c: New file, largely from elfread.c. Modified
1844 most functions.
1845 * build-id.h: New file.
1846 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1847 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1848 Search for dwz file using build-id.
1849 * elfread.c (build_id_bfd_get, build_id_verify)
1850 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1851
1852 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1853
1854 * ada-lang.c (compare_names_with_case): Renamed from
1855 compare_names, adding a new parameter "casing" and its handling.
1856 New function documentation.
1857 (compare_names): New function, implemented using
1858 compare_names_with_case.
1859
1860 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1861
1862 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1863
1864 2013-10-07 Tom Tromey <tromey@redhat.com>
1865
1866 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1867 demangled_names_hash.
1868 (free_objfile): Don't delete the demangled_names_hash.
1869 * objfiles.h (struct objfile_per_bfd_storage)
1870 <demangled_names_hash>: New field.
1871 (struct objfile) <demangled_names_hash>: Move to
1872 objfile_per_bfd_storage.
1873 * symfile.c (reread_symbols): Don't delete the
1874 demangled_names_hash.
1875 * symtab.c (create_demangled_names_hash): Update.
1876 (symbol_set_names): Update.
1877
1878 2013-10-07 Tom Tromey <tromey@redhat.com>
1879
1880 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1881 needs_relocations>: New fields.
1882 (gdb_bfd_requires_relocations): New function.
1883 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1884 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1885 the BFD needs relocations applied.
1886
1887 2013-10-07 Pedro Alves <palves@redhat.com>
1888
1889 PR breakpoints/11568
1890 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1891 the thread list" instead of "gone".
1892
1893 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1894
1895 * NEWS: Mention new convenience variable $_exitsignal.
1896 * corelow.c (core_open): Reset exit convenience variables. Set
1897 $_exitsignal to the uncaught signal which generated the corefile.
1898 * infrun.c (handle_inferior_event): Reset exit convenience
1899 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1900 (clear_exit_convenience_vars): New function.
1901 * inferior.h (clear_exit_convenience_vars): New prototype.
1902
1903 2013-10-06 Yao Qi <yao@codesourcery.com>
1904
1905 * varobj.h: Add comments to enum varobj_languages.
1906
1907 2013-10-04 Doug Evans <dje@google.com>
1908
1909 Add support for DWP file format version 2.
1910 * NEWS: Mention support for DWP file format version 2.
1911 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1912 union of asection, containing_section. New fields virtual_offset
1913 and is_virtual. Change type of readin filed from int to char.
1914 (dwo_sections, dwo_file): Tweak comments.
1915 (dwp_v2_section_ids): New enum.
1916 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1917 str_offsets, types.
1918 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1919 All uses updated.
1920 (virtual_v2_dwo_sections): New struct.
1921 (dwp_hash_table): New fields version, nr_columns. Change type of
1922 section_pool field to a union.
1923 (dwp_file): New field version.
1924 (dwarf2_has_info): Check for virtual sections.
1925 (get_containing_section): New function.
1926 (get_section_bfd_owner, get_section_bfd_section): Call it.
1927 (dwarf2_locate_sections): Update.
1928 (dwarf2_section_empty_p): Update.
1929 (dwarf2_read_section): Handle virtual sections.
1930 (locate_dwz_sections): Update.
1931 (create_dwp_hash_table): Document and handle V2 format.
1932 (locate_v1_virtual_dwo_sections): Renamed from
1933 locate_virtual_dwo_sections and update. All callers updated.
1934 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1935 Delete arg htab. Rename arg section_index to unit_index.
1936 All callers updated.
1937 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1938 All uses updated.
1939 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1940 (lookup_dwo_unit_in_dwp): Add V2 support.
1941 (dwarf2_locate_dwo_sections): Update.
1942 (dwarf2_locate_common_dwp_sections): Renamed from
1943 dwarf2_locate_dwp_sections and update. All callers updated.
1944 (dwarf2_locate_v2_dwp_sections): New function.
1945 (open_and_init_dwp_file): Add V2 support.
1946 (read_str_index): New locals str_section, str_offsets_section.
1947
1948 2013-10-04 Pedro Alves <palves@redhat.com>
1949
1950 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1951 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1952 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1953 describing comments with references to ptid.h.
1954 * common/ptid.h: Remove intro description of constructors,
1955 accessors and predicates.
1956 (struct ptid): Reformat.
1957 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1958 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1959 describing comments.
1960
1961 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1962
1963 * aix-thread.c (sync_threadlists): Add missing ')' in call
1964 to ptid_build.
1965
1966 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1967
1968 * procfs.c (procfs_init_inferior): Fix typo causing the build
1969 to fail.
1970
1971 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1972
1973 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1974
1975 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1976
1977 * mi/mi-main.c (run_one_inferior): Add function description.
1978 Make ARG a pointer to an integer whose value determines whether
1979 we should "run" or "start" the program.
1980 (mi_cmd_exec_run): Add handling of the "--start" option.
1981 Reject all other command-line options.
1982 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1983
1984 2013-10-04 Yao Qi <yao@codesourcery.com>
1985
1986 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1987 (struct notif_client) <pending_event>: Moved
1988 to struct remote_notif_state.
1989 <id>: New field.
1990 (struct remote_notif_state) <pending_event>: New field.
1991 (notif_event_xfree): Declare.
1992 * remote-notif.c (handle_notification): Adjust.
1993 (notif_event_xfree): New function.
1994 (do_notif_event_xfree): Call notif_event_xfree.
1995 (remote_notif_state_xfree): Call notif_event_xfree to free
1996 each element in field pending_event.
1997 * remote.c (discard_pending_stop_replies): Remove declaration.
1998 (discard_pending_stop_replies_in_queue): Declare.
1999 (remote_close): Call discard_pending_stop_replies_in_queue
2000 instead of discard_pending_stop_replies.
2001 (remote_start_remote): Adjust.
2002 (stop_reply_xfree): Call notif_event_xfree.
2003 (notif_client_stop): Adjust initialization.
2004 (remote_notif_remove_all): Rename it to ...
2005 (remove_stop_reply_for_inferior): ... this. Update comments.
2006 Don't check INF is NULL.
2007 (discard_pending_stop_replies): Return early if notif_state is
2008 NULL. Adjust. Don't check INF is NULL.
2009 (remote_notif_get_pending_events): Adjust.
2010 (discard_pending_stop_replies_in_queue): New function.
2011 (remote_wait_ns): Likewise.
2012
2013 2013-10-04 Yao Qi <yao@codesourcery.com>
2014
2015 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2016 (notif_queue): Remove.
2017 (remote_notif_process): Add one parameter 'notif_queue'.
2018 Update comments. Callers update.
2019 (remote_async_get_pending_events_token): Remove.
2020 (remote_notif_register_async_event_handler): Remove.
2021 (remote_notif_unregister_async_event_handler): Remove.
2022 (handle_notification): Add parameter 'notif_queue'. Update
2023 comments. Callers update.
2024 (notif_xfree): Remove.
2025 (remote_notif_state_allocate): New function.
2026 (remote_notif_state_xfree): New function.
2027 (_initialize_notif): Remove code to allocate queue.
2028 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2029 (struct remote_notif_state): New.
2030 (handle_notification): Update declaration.
2031 (remote_notif_process): Likewise.
2032 (remote_notif_register_async_event_handler): Remove.
2033 (remote_notif_unregister_async_event_handler): Remove.
2034 (remote_notif_state_allocate): Declare.
2035 (remote_notif_state_xfree): Declare.
2036 * remote.c (struct remote_state) <notif_state>: New field.
2037 (remote_close): Don't call
2038 remote_notif_unregister_async_event_handler. Call
2039 remote_notif_state_xfree.
2040 (remote_open_1): Don't call
2041 remote_notif_register_async_event_handler. Call
2042 remote_notif_state_allocate.
2043
2044 2013-10-04 Yao Qi <yao@codesourcery.com>
2045
2046 * varobj.c (create_child_with_value): Remove 'const' from the
2047 type of parameter 'name'.
2048 (varobj_add_child): Likewise.
2049 (install_dynamic_child): Remove 'const' from the type of
2050 parameter 'name'.
2051 (varobj_add_child): Likewise.
2052 (create_child_with_value): Likewise. Update comments. Don't
2053 duplicate 'name'.
2054 (update_dynamic_varobj_children): Duplicate 'name'
2055 and pass it to install_dynamic_child.
2056
2057 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2058
2059 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2060 conversion logic to occur after PyLong_Check. Comment on order
2061 change significance.
2062 * python/py-arch.c (archpy_disassemble): Comment on order of
2063 conversion for integers and longs.
2064
2065 2013-10-03 Pedro Alves <palves@redhat.com>
2066
2067 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2068 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2069 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2070 PTRACE_O_TRACEFORK is not supported.
2071 (linux_test_for_tracesysgood): New function.
2072 (linux_test_for_tracefork): New function, factored out from
2073 linux_check_ptrace_features, and also don't kill child_pid here.
2074
2075 2013-10-03 Tristan Gingold <gingold@adacore.com>
2076
2077 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2078 Remove verbose error reporting. Use detected state to
2079 thread_set_state call.
2080 (i386_darwin_dr_get): Fix return type. Remove verbose error
2081 report.
2082 Remove trailing spaces.
2083
2084 2013-10-02 Pedro Alves <palves@redhat.com>
2085
2086 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2087 val_print_optimized_out.
2088 * jv-valprint.c (java_print_value_fields): Likewise.
2089 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2090 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2091 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2092 new optimized out value.
2093 * findvar.c (address_from_register): Likewise.
2094 * frame.c (put_frame_register): Tweak error string to say the
2095 register was not saved, rather than optimized out.
2096 * infcmd.c (default_print_one_register_info): Adjust call to
2097 val_print_optimized_out. Use value_of_register instead of
2098 get_frame_register_value.
2099 * mi/mi-main.c (output_register): Use value_of_register instead of
2100 get_frame_register_value.
2101 * valprint.c (valprint_check_validity): Likewise.
2102 (val_print_optimized_out): New value parameter. If the value is
2103 lval_register, print <not saved> instead.
2104 (value_check_printable, val_print_scalar_formatted): Adjust calls
2105 to val_print_optimized_out.
2106 * valprint.h (val_print_optimized_out): New value parameter.
2107 * value.c (struct value) <optimized_out>: Extend comment.
2108 (error_value_optimized_out): New function.
2109 (require_not_optimized_out): Use it. Use a different string for
2110 lval_register values.
2111 * value.h (error_value_optimized_out): New declaration.
2112 * NEWS: Mention <not saved>.
2113
2114 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2115
2116 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2117 strcmp to compare two symtab filenames.
2118
2119 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2120
2121 * symtab.c (search_symbols_equal): Delete.
2122 (sort_search_symbols_remove_dups): Replace call to
2123 search_symbols_equal by call to compare_search_syms,
2124 adjusting as necessary.
2125
2126 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2127
2128 PR python/15579
2129 * python/python.c: Document gdb.execute command in Python help.
2130
2131 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2132
2133 * python/py-frame.c (frame_info_to_frame_object): Use
2134 gdbpy_convert_exception. Clean up Python object on failure.
2135
2136 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2137
2138 * python/lib/gdb/command/frame_filters.py
2139 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2140 (ShowFrameFilterPriority.invoke): Ditto.
2141
2142 2013-10-01 Keith Seitz <keiths@redhat.com>
2143
2144 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2145 (parse_linespec): Make 'argptr' const.
2146 Remove temporary cast of 'argptr' to const char **.
2147 (decode_line_full): Pass const pointer to parse_linespec.
2148 (decode_line_1): Likewise.
2149 (decode_objc): Make local variable 'new_argptr' const.
2150 (find_function_symbols): Remove temporary cast to char *
2151 to find_imps.
2152 * objc-lang.c (find_imps): Make argument 'method' const.
2153 Return const.
2154 * objc-lang.h (find_imps): Likewise.
2155
2156 2013-10-01 Keith Seitz <keiths@redhat.com>
2157
2158 * completer.c (skip_quoted_chars): Make all arguments const.
2159 Return const.
2160 (skip_quoted): Likewise.
2161 * completer.h (skip_quoted_chars): Likewise.
2162 (skip_quoted): Likewise.
2163 * defs.h (skip_quoted): Remove duplicate declaration.
2164 * jv-exp.y: Include completer.h.
2165 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2166 * p-exp.y: Include completer.h.
2167
2168 2013-10-01 Keith Seitz <keiths@redhat.com>
2169
2170 * c-exp.y (parse_number): Make first argument const.
2171 Make a copy of the input to manipulate.
2172 (c_parse_escape): Make first argument const.
2173 Make local variable 'tokptr' const.
2174 (parse_string_or_char): Make first two arguments const.
2175 (macro_original_text): Make const.
2176 (lex_one_token): Make local variable 'tokstart' const.
2177 Likewise for local variables named 'p'.
2178 Cast away const for struct stoken (temporary).
2179 * c-lang.h (c_parse_escpae): Make first argument const.
2180 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2181 const.
2182 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2183 var_string case.
2184 * f-exp.y (parse_number): Make first argument const.
2185 (match_string_literal): Make local variable 'tokstart'
2186 const.
2187 (yylex): Make local variable 'p' const.
2188 Cast away const for struct stoken (temporary).
2189 * go-exp.y (parse_number): Make first argument const.
2190 (parse_string_or_char): Likewise.
2191 Make local variable 'tokstart' const.
2192 (lex_one_token): Likewise for numerous locals called 'p'.
2193 Cast away const for struct stoken (temporary).
2194 * jv-exp.y (parse_number): Make first argument const.
2195 Make local variables 'tokstart' and 'tokptr' const.
2196 Cast away const for call to skip_quoted (temporary).
2197 (yylex): Make local variable 'p' const.
2198 Cast away const for struct stoken (temporary).
2199 * m2-exp.y (parse_number): Make local variable 'p' const.
2200 (yylex): Likewise for 'tokstart'.
2201 Cast away const for struct stoken (temporary).
2202 Make local variable 'p' const.
2203 * macroexp.c (get_character_constant): Pass a const string
2204 to c_parse_escape.
2205 (get_string_literal): Likewise.
2206 (macro_expand_next): Make first argument const.
2207 Cast away const for init_shared_buffer.
2208 * macroexp.h (macro_expand_next): Make first argument const.
2209 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2210 Pass a const string to c_parse_escape.
2211 Make local variables 'p' and 'namestart' const.
2212 * parse.c (lexptr): Make const.
2213 (prev_lexptr): Likewise.
2214 (find_template_name_end): Return const.
2215 Make argument const, too.
2216 (parse_exp_in_context): Make first argument const.
2217 Remove the entire const_hack.
2218 (parse_exp_in_context_1): Make first argument const.
2219 * parser-defs.h (find_template_name_end): Return const.
2220 Make argument const, too.
2221 (lexptr): Make const.
2222 (prev_lexptr): Likewise.
2223 * utils.c (parse_escape): Make second argument const.
2224 * utils.h (parse_escape): Likewise.
2225
2226 2013-10-01 Keith Seitz <keiths@redhat.com>
2227
2228 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2229 is now const.
2230 (block_lookup): Make 'raw_name' and 'name' const.
2231 * ada-lex.l (processString): Update for struct stoken.ptr.
2232 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2233 (operator_stoken): Likewise.
2234 (lex_one_token): Remove temporary cast to char * for
2235 'yylval.sval.ptr'.
2236 * f-exp.y (yylex): Likewise.
2237 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2238 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2239 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2240 'yylval.sval.ptr'.
2241 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2242 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2243 * linespec.c (struct ls_parser): Make 'stream' const.
2244 (find_parameter_list_end): Make argument 'input' and local
2245 variable 'p' const.
2246 (linespec_lexer_lex_string): Make local variables 'start' and
2247 'p' const.
2248 Use skip_spaces_const instead of skip_spaces.
2249 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2250 const.
2251 (parse_linespec): Temporarily cast 'argptr' to const for
2252 'parser->lexer.stream'.
2253 * m2-exp.y (yylex): Remove temporary cast to char * for
2254 'yylval.sval.ptr'.
2255 * objc-lang.c (add_msglist): Make local variable 'p' const.
2256 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2257 (exp : STRING): Make 'sp' const.
2258 (parse_number): Make argument 'p' const.
2259 * parser-defs.h (struct stoken): Make 'ptr' const.
2260
2261 2013-10-01 Doug Evans <dje@google.com>
2262
2263 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2264
2265 2013-10-01 Yao Qi <yao@codesourcery.com>
2266
2267 * varobj.c (c_value_of_root): Remove declaration.
2268 (cplus_value_of_root, java_value_of_root): Likewise.
2269 (ada_value_of_root): Likewise.
2270 (struct language_specific) <value_of_root>: Remove.
2271 (languages): Update initialization.
2272 (check_scope): Move earlier.
2273 (c_value_of_root): Move earlier and rename to ...
2274 (value_of_root_1): ... this.
2275 (value_of_root): Caller update.
2276 (cplus_value_of_root, java_value_of_root): Remove.
2277 (ada_value_of_root): Remove.
2278
2279 2013-10-01 Yao Qi <yao@codesourcery.com>
2280
2281 * varobj.c (varobj_format_string): Remove "unknown".
2282 (languages): Remove the first element.
2283 * varobj.h (enum varobj_languages): Remove vlang_c.
2284
2285 2013-10-01 Yao Qi <yao@codesourcery.com>
2286
2287 * varobj.c (struct language_specific) <language>: Remove.
2288 (languages): Update the initialization.
2289
2290 2013-10-01 Yao Qi <yao@codesourcery.com>
2291
2292 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2293 "solib-target.h". Include "windows-tdep.h".
2294 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2295 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2296 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2297 windows-tdep.o to gdb_target_obs.
2298
2299 2013-10-01 Yao Qi <yao@codesourcery.com>
2300
2301 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2302 "solib-target.h".
2303 (amd64_windows_init_abi): Don't call set_solib_ops and
2304 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2305 windows_init_abi instead.
2306 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2307 "solib-target.h".
2308 (i386_cygwin_init_abi): Don't call set_solib_ops,
2309 set_gdbarch_has_dos_based_file_system and
2310 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2311 windows_init_abi instead.
2312 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2313 (windows_init_abi): New function.
2314 (windows_iterate_over_objfiles_in_search_order): Make it
2315 static.
2316 * windows-tdep.h (windows_init_abi): Declare.
2317 (windows_iterate_over_objfiles_in_search_order): Remove
2318 declaration.
2319
2320 2013-10-01 Jerome Guitton <guitton@adacore.com>
2321
2322 Checked in by Joel Brobecker <brobecker@adacore.com>
2323 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2324 incomplete dictionnary instead of None in case of missing
2325 environment variables.
2326 (elinos_init): in case of an incomplete environment, best
2327 effort to load system libraries instead of abort.
2328
2329 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2330
2331 * ada-lang.c (ada_has_this_exception_support): Ignore
2332 mst_solib_trampoline minimal symbols.
2333
2334 2013-09-30 Tristan Gingold <gingold@adacore.com>
2335
2336 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2337 hardware watchpoint.
2338 (i386_darwin_dr_set): Support 32 and 64 bit states.
2339 (i386_darwin_dr_get): Likewise.
2340 (i386_darwin_dr_set_control): Make static.
2341 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2342 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2343
2344 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2345
2346 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2347 Replace TIDGET with ptid_get_lwp.
2348 Replace GET_LWP with ptid_get_lwp.
2349 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2350 Replace BUILD_THREAD with ptid_build.
2351 Replace BUILD_LWP with ptid_build.
2352 Replace PIDGET with ptid_get_pid.
2353 Replace TIDGET with ptid_get_lwp.
2354 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2355 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2356 Replace TIDGET with ptid_get_lwp.
2357 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2358 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2359 Replace TIDGET with ptid_get_lwp.
2360 Replace GET_LWP with ptid_get_lwp.
2361 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2362 * auxv.c: Likewise.
2363 * breakpoint.c: Likewise.
2364 * common/ptid.c (ptid_is_pid): Condense check for
2365 null_ptid and minus_one_ptid.
2366 (ptid_lwp_p): New function.
2367 (ptid_tid_p): New function.
2368 * common/ptid.h: Update comments for accessors.
2369 (ptid_lwp_p): New prototype.
2370 (ptid_tid_p): New prototype.
2371 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2372 * gcore.c: Replace PIDGET with ptid_get_pid.
2373 * gdbthread.h: Likewise.
2374 * gnu-nat.c: Likewise.
2375 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2376 Replace TIDGET with ptid_get_lwp.
2377 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2378 * hppanbsd-nat.c: Likewise.
2379 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2380 Replace TIDGET with ptid_get_lwp.
2381 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2382 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2383 * infcmd.c: Likewise.
2384 * inferior.h: Likewise.
2385 * inflow.c: Likewise.
2386 * infrun.c: Likewise.
2387 * linux-fork.c: Likewise.
2388 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2389 Replace GET_PID with ptid_get_pid.
2390 Replace is_lwp with ptid_lwp_p.
2391 Replace GET_LWP with ptid_get_lwp.
2392 Replace BUILD_LWP with ptid_build.
2393
2394 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2395
2396 * common/linux-btrace.c: Move sys/syscall.h out of the
2397 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2398 Also check for SYS_perf_event_open before attempting to buid.
2399
2400 2013-09-27 Doug Evans <dje@google.com>
2401
2402 * dwarf2read.c (dwarf2_section_info): Add comment.
2403 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2404 All uses updated.
2405 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2406 (dwarf2_read_section): Delete unused local "header". Add section
2407 name to error message.
2408 (create_dwo_in_dwp): Tweak comment.
2409 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2410
2411 * dwarf2read.c (die_reader_specs): Tweak comment.
2412 (get_section_bfd_owner, get_section_bfd_section): New functions.
2413 (get_section_name, get_section_file_name): New functions.
2414 (get_section_id, get_section_flags): New functions.
2415 (*): Use new functions to access section fields.
2416
2417 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2418 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2419 arg "htab". All callers updated.
2420 (create_debug_types_hash_table): Remove redundant copy of
2421 abbrev_section.
2422 (create_dwo_in_dwp): Tweak comments.
2423 (read_str_index): Tweak comment. Record dwarf form name in static
2424 local.
2425
2426 2013-09-27 Pedro Alves <palves@redhat.com>
2427
2428 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2429 (remote_filename_p): Add comment.
2430 * remote.c (remote_filename_p): Adjust to use
2431 REMOTE_SYSROOT_PREFIX.
2432 * solib.c (solib_find): When deciding whether we need to add a
2433 directory separator, check whether the sysroot is "remote:"
2434 instead of checking whether the patch has a drive spec. Add
2435 comments.
2436
2437 2013-09-27 Pedro Alves <palves@redhat.com>
2438
2439 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2440 Delete fields.
2441 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2442 directly.
2443
2444 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2445
2446 Fix set debug frame output.
2447 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2448 SENTINEL_FRAME entry lower to match enum frame_type order.
2449
2450 2013-09-26 Pierre Muller <muller@sourceware.org>
2451
2452 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2453 AMD64_R15_REGNUM when a register index is expected.
2454 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2455 Substitute in array.
2456 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2457 (amd64_push_arguments): Substitute in integer_regnum array.
2458
2459 2013-09-25 Doug Evans <dje@google.com>
2460
2461 * objfiles.c (allocate_objfile): Move comment to better place.
2462
2463 New option "set debug symfile on".
2464 * NEWS: Mention "set debug symfile".
2465 * Makefile.in (SFILES): Add symfile-debug.c.
2466 (COMMON_OBS): Add symfile-debug.o.
2467 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2468 objfile's symbol functions.
2469 * objfiles.h (objfile_set_sym_fns): Declare.
2470 * symfile-debug.c: New file.
2471 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2472 objfile's symbol functions.
2473 (reread_symbols): Ditto.
2474
2475 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2476 All uses updated.
2477 (add_symtab_fns): Update prototype.
2478 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2479 (registered_sym_fns): ... this.
2480 (symtab_fns): Update.
2481 (add_symtab_fns): New arg "flavour". All callers updated.
2482 (find_sym_fns): Rewrite to use new sym_fns registry.
2483
2484 * symfile.h (struct sym_fns): Add "objfile" argument to
2485 sym_read_linetable. All uses updated.
2486
2487 * symtab.c (domain_name, search_domain_name): New functions.
2488 * symtab.h (domain_name, search_domain_name): Declare.
2489
2490 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2491 map_matching_symbols so objfile is first. All uses updated.
2492 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2493 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2494
2495 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2496
2497 PR shlibs/8882
2498 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2499 link map entries.
2500
2501 2013-09-24 Doug Evans <dje@google.com>
2502
2503 * objfiles.c (free_objfile): Move comment.
2504
2505 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2506
2507 * ada-exp.y (string_to_operator): Delete.
2508 (dummy_string_to_ada_operator): Delete.
2509
2510 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2511
2512 Revert:
2513 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2514 amd64-tdep.c.
2515 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2516 call_dummy_integer_regs, and classify.
2517 * amd64-tdep.h (amd64_classify): Add declaration.
2518 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2519 (amd64_reg_class): Delete, moved to i386-tdep.h.
2520 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2521 Replace call to amd64_classify by call to tdep->classify.
2522 (amd64_push_arguments): Get the list of registers to use for
2523 passing integer parameters from the gdbarch tdep structure,
2524 rather than using a hardcoded one. Replace calls to amd64_classify
2525 by calls to tdep->classify.
2526 (amd64_push_dummy_call): Get the register number used for
2527 the "hidden" argument from tdep->call_dummy_integer_regs.
2528 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2529 and tdep->call_dummy_integer_regs. Set tdep->classify.
2530
2531 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2532
2533 Revert:
2534 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2535 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2536 where tdep->memory_args_by_pointer is non-zero.
2537
2538 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2539
2540 Revert:
2541 * i386-tdep.h (struct gdbarch_tdep): Add new field
2542 integer_param_regs_saved_in_caller_frame.
2543 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2544 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2545
2546 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2547
2548 * amd64-windows-tdep.c: #include "value.h"
2549 (amd64_windows_classify): Delete.
2550 (amd64_windows_passed_by_integer_register)
2551 (amd64_windows_passed_by_xmm_register)
2552 (amd64_windows_passed_by_pointer)
2553 (amd64_windows_adjust_args_passed_by_pointer)
2554 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2555 (amd64_windows_push_dummy_call): New functions.
2556 (amd64_windows_init_abi): Remove setting of
2557 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2558 tdep->classify, tdep->memory_args_by_pointer and
2559 tdep->integer_param_regs_saved_in_caller_frame.
2560 Add call to set_gdbarch_push_dummy_call.
2561
2562 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2563
2564 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2565 objfile->original_name.
2566
2567 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2568
2569 Pass down original filename for objfile.
2570 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2571 * elfread.c (elf_symfile_read): Likewise.
2572 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2573 longer set ORIGINAL_NAME.
2574 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2575 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2576 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2577 symbol_file_add_from_bfd call.
2578 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2579 (macho_check_dsym): Add parameter filenamep. Change function comment.
2580 Set *filenamep.
2581 (macho_symfile_read): New variable dsym_filename. Update
2582 macho_check_dsym call. Use it for symbol_file_add_separate.
2583 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2584 it. Use it for objfile->original_name.
2585 (objfile_name): Return OBFD's filename, if available.
2586 * objfiles.h (allocate_objfile): Add new parameter name.
2587 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2588 * symfile-mem.c (symbol_file_add_from_memory): Update
2589 symbol_file_add_from_bfd call.
2590 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2591 comment for it.
2592 (symbol_file_add_with_addrs): New parameter name, add function comment
2593 for it. Remove variable name. Update allocate_objfile call.
2594 (symbol_file_add_separate): New parameter name, add function comment
2595 for it. Update symbol_file_add_with_addrs call.
2596 (symbol_file_add_from_bfd): New parameter name. Update
2597 symbol_file_add_with_addrs call.
2598 (symbol_file_add): Update symbol_file_add_from_bfd call.
2599 (reread_symbols): New variable original_name. Save
2600 objfile->original_name by it.
2601 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2602 second parameter.
2603
2604 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2605
2606 Code cleanup: Add objfile_name accessor function.
2607 * ada-lang.c (is_known_support_routine): Use objfile_name.
2608 * auto-load.c (source_gdb_script_for_objfile)
2609 (auto_load_objfile_script): Likewise.
2610 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2611 * dbxread.c (dbx_symfile_read): Likewise.
2612 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2613 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2614 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2615 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2616 (lookup_dwp_signatured_type, lookup_dwo_unit)
2617 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2618 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2619 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2620 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2621 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2622 (read_subrange_type, load_partial_dies, read_partial_die)
2623 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2624 (die_containing_type, build_error_marker_type, lookup_die_type)
2625 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2626 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2627 (get_DW_AT_signature_type, write_psymtabs_to_index)
2628 (save_gdb_index_command): Likewise.
2629 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2630 Likewise.
2631 * expprint.c (dump_subexp_body_standard): Likewise.
2632 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2633 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2634 original_name.
2635 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2636 obj_name, use objfile_name for it, use the variable.
2637 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2638 Use objfile_name.
2639 * machoread.c (macho_symtab_read, macho_check_dsym)
2640 (macho_symfile_relocate): Likewise.
2641 * maint.c (maintenance_translate_address): Likewise.
2642 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2643 * minsyms.c (install_minimal_symbols): Likewise.
2644 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2645 original_name.
2646 (filter_overlapping_sections): Use objfile_name.
2647 (objfile_name): New function.
2648 * objfiles.h (struct objfile): Rename field name to original_name.
2649 (objfile_name): New prototype.
2650 * printcmd.c (sym_info, address_info): Use objfile_name.
2651 * probe.c (parse_probes, collect_probes, compare_probes)
2652 (info_probes_for_ops): Likewise.
2653 * progspace.c (clone_program_space): Likewise.
2654 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2655 (maintenance_info_psymtabs): Likewise.
2656 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2657 (source_section_scripts): Likewise.
2658 * python/py-objfile.c (objfpy_get_filename): Likewise.
2659 * python/py-progspace.c (pspy_get_filename): Likewise.
2660 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2661 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2662 * solib.c (solib_read_symbols): Likewise.
2663 * stabsread.c (scan_file_globals): Likewise.
2664 * stap-probe.c (handle_stap_probe): Likewise.
2665 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2666 (find_separate_debug_file_by_debuglink): Likewise.
2667 (reread_symbols): Likewise. Use the objfile field name renamed to
2668 original_name.
2669 (allocate_symtab): Use objfile_name.
2670 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2671 (dump_objfile, dump_msymbols, dump_symtab_1)
2672 (maintenance_print_msymbols, maintenance_print_objfiles)
2673 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2674 * target.c (target_translate_tls_address, target_info): Likewise.
2675 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2676 objfile_name.
2677
2678 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2679
2680 Code cleanup.
2681 * probe.c (parse_probes): Rename variable objfile_name to
2682 objfile_namestr.
2683
2684 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2685
2686 Remove solib-sunos.c.
2687 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2688 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2689 * objfiles.c (rt_common_objfile): Remove.
2690 (free_objfile): Remove rt_common_objfile comparison.
2691 * objfiles.h (rt_common_objfile): Remove.
2692 * solib-sunos.c: Remove.
2693 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2694
2695 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2696
2697 Remove a.out NetBSD and OpenBSD hosts.
2698 * NEWS (Removed native configurations): New.
2699 * config/arm/nbsdaout.mh: Remove.
2700 * config/i386/nbsdaout.mh: Remove.
2701 * config/i386/obsdaout.mh: Remove.
2702 * config/m68k/nbsdaout.mh: Remove.
2703 * config/sparc/nbsdaout.mh: Remove.
2704 * config/vax/nbsdaout.mh: Remove.
2705 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2706 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2707 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2708 error.
2709 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2710 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2711 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2712
2713 2013-09-23 Tom Tromey <tromey@redhat.com>
2714
2715 * linespec.c (struct minsym_and_objfile): Remove.
2716 (minsym_and_objfile_d): Remove.
2717 (struct linespec, struct collect_info, linespec_parse_basic)
2718 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2719 (compare_msymbols, find_method, find_function_symbols)
2720 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2721 (add_minsym, search_minsyms_for_name): Update.
2722
2723 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2724
2725 * regcache.c: Add include of valprint.h.
2726 (dump_endian_bytes): Delete.
2727 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2728
2729 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2730
2731 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2732
2733 2013-09-19 Pedro Alves <palves@redhat.com>
2734
2735 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2736 breakpoints.
2737
2738 2013-09-19 Pedro Alves <palves@redhat.com>
2739 Thomas Schwinge <thomas@codesourcery.com>
2740 Yue Lu <hacklu.newborn@gmail.com>
2741
2742 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2743 Take a gdb_byte pointer instead of a char pointer.
2744
2745 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2746 gnu_xfer_partial helper.
2747 (gnu_xfer_partial): New function.
2748 (gnu_target): Don't install a deprecated_xfer_memory hook.
2749 Install a to_xfer_partial hook.
2750
2751 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2752
2753 Constification.
2754 * main.c (captured_main): Replace catch_command_errors by
2755 catch_command_errors_const. Twice.
2756 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2757 (symbol_file_add): Make name parameter const.
2758 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2759 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2760 variable name. Change their usage accordingly.
2761 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2762 const.
2763 (symbol_file_add_main): Make args parameter const.
2764
2765 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2766 Ulrich Weigand <uweigand@de.ibm.com>
2767
2768 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2769 of c_value member.
2770 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2771
2772 2013-09-18 Pedro Alves <palves@redhat.com>
2773 Yue Lu <hacklu.newborn@gmail.com>
2774
2775 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2776 (gnu_create_inferior)
2777 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2778 (set_sig_thread_cmd): Use the lwpid field of ptids to
2779 store/extract thread ids instead of the tid field.
2780 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2781
2782 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2783
2784 * infcmd.c (default_print_one_register_info): Add detection of
2785 optimized out values.
2786 (default_print_registers_info): Switch to using
2787 get_frame_register_value.
2788
2789 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2790
2791 * infrun.c (handle_inferior_event): Check if we know the
2792 function start address before setting a resume breakpoint.
2793
2794 2013-09-18 Pedro Alves <palves@redhat.com>
2795
2796 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2797 minus_one_ptid instead of looking at the ptid's tid field and
2798 comparing that to -1.
2799
2800 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2801
2802 * main.h (get_gdb_program_name): Remove extra whitespace.
2803
2804 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2805
2806 * main.h (get_gdb_program_name): Add declaration.
2807 * main.c (get_gdb_program_name): Add definition.
2808
2809 2013-09-17 Doug Evans <dje@google.com>
2810
2811 * dwarf2read.c: Move definitions of complaint functions to after
2812 forward declarations of local functions.
2813
2814 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2815 Pedro Alves <palves@redhat.com>
2816
2817 PR gdb/11568
2818 * breakpoint.c (remove_threaded_breakpoints): New function.
2819 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2820 as thread_exit observer.
2821
2822 2013-09-17 Pedro Alves <palves@redhat.com>
2823
2824 PR gdb/15911
2825 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2826 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2827 * corelow.c (core_open):
2828 * frame.h (print_stack_frame, print_frame_info): New
2829 'set_current_sal' parameter.
2830 * infcmd.c (finish_command, kill_command): Adjust call to
2831 print_stack_frame.
2832 * inferior.c (inferior_command): Likewise.
2833 * infrun.c (normal_stop): Likewise.
2834 * linux-fork.c (linux_fork_context): Likewise.
2835 * record-full.c (record_full_goto_entry, record_full_restore):
2836 Likewise.
2837 * remote-mips.c (common_open): Likewise.
2838 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2839 Use it.
2840 (print_frame_info): New 'set_current_sal' parameter. Set the last
2841 displayed sal depending on the new paremeter instead of looking at
2842 print_what.
2843 (backtrace_command_1, select_and_print_frame, frame_command)
2844 (current_frame_command, up_command, down_command): Adjust call to
2845 print_stack_frame.
2846 * thread.c (print_thread_info, restore_selected_frame)
2847 (do_captured_thread_select): Adjust call to print_stack_frame.
2848 * tracepoint.c (tfind_1): Likewise.
2849 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2850 (mi_cmd_stack_info_frame): Likewise.
2851 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2852 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2853
2854 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2855
2856 * value.c (isvoid_internal_fn): Replace "parameter" with
2857 "argument".
2858
2859 2013-09-16 Stan Shebs <stan@codesourcery.com>
2860
2861 * README: Update references to writing code for GDB.
2862 * configure.ac (build_warnings): Remove obsolete comment.
2863 * configure: Regenerate.
2864 * gdbarch.sh: Remove references to gdbint.texinfo.
2865 * gdbarch.h: Regenerate.
2866 * gdbtypes.c (objfile_type): Remove comments referencing internals
2867 manual and D10V.
2868
2869 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2870
2871 * NEWS: Mention new convenience function $_isvoid.
2872 * value.c (isvoid_internal_fn): New function.
2873 (_initialize_values): Add new convenience function $_isvoid.
2874
2875 2013-09-16 Pierre Muller <muller@sourceware.org>
2876
2877 * arm-linux-tdep.c: Add "elf/common.h" header.
2878 Remove AT_HWCAP macro definintion as it is provided in
2879 added include file.
2880 * s390-tdep.c: Remove system header <elf.h>
2881 Add "elf/common.h" header for AT_HWCAP definition.
2882 (s390_core_read_description): Use correct CORE_ADDR
2883 for hwcap local variable used as third parameter
2884 of function target_auxv_search.
2885
2886 2013-09-14 Pierre Muller <muller@sourceware.org>
2887 Tom Tromey <tromey@redhat.com>
2888 Pedro Alves <palves@redhat.com>
2889
2890 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2891 mode if operating system doesn't know O_CLOEXEC.
2892
2893 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2894
2895 Code cleanup.
2896 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2897 inner block.
2898
2899 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2900
2901 * NEWS: Mention TDB support.
2902 * features/s390-tdb.xml: New file.
2903 * features/s390-te-linux64.xml: New file.
2904 * features/s390x-te-linux64.xml: New file.
2905 * features/Makefile (WHICH): Add new tdescs above.
2906 (s390-te-linux64-expedite): Set.
2907 (s390x-te-linux64-expedite): Set.
2908 * features/s390-te-linux64.c: New file (generated).
2909 * features/s390x-te-linux64.c: New file (generated).
2910 * regformats/s390-te-linux64.dat: New file (generated).
2911 * regformats/s390x-te-linux64.dat: New file (generated).
2912 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2913 (HWCAP_S390_TE): Likewise.
2914 (S390_TDB_DWORD0_REGNUM): Likewise.
2915 (S390_TDB_DWORD0_REGNUM): Likewise.
2916 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2917 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2918 (S390_TDB_ATIA_REGNUM): Likewise.
2919 (S390_TDB_R0_REGNUM): Likewise.
2920 (S390_TDB_R1_REGNUM): Likewise.
2921 (S390_TDB_R2_REGNUM): Likewise.
2922 (S390_TDB_R3_REGNUM): Likewise.
2923 (S390_TDB_R4_REGNUM): Likewise.
2924 (S390_TDB_R5_REGNUM): Likewise.
2925 (S390_TDB_R6_REGNUM): Likewise.
2926 (S390_TDB_R7_REGNUM): Likewise.
2927 (S390_TDB_R8_REGNUM): Likewise.
2928 (S390_TDB_R9_REGNUM): Likewise.
2929 (S390_TDB_R10_REGNUM): Likewise.
2930 (S390_TDB_R11_REGNUM): Likewise.
2931 (S390_TDB_R12_REGNUM): Likewise.
2932 (S390_TDB_R13_REGNUM): Likewise.
2933 (S390_TDB_R14_REGNUM): Likewise.
2934 (S390_TDB_R15_REGNUM): Likewise.
2935 (S390_NUM_REGS): Increase.
2936 (S390_IS_TDBREGSET_REGNUM): New macro.
2937 (s390_regmap_tdb): Declare.
2938 (s390_sizeof_tdbregset): Define.
2939 (tdesc_s390_te_linux64): Declare.
2940 (tdesc_s390x_te_linux64): Likewise.
2941 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2942 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2943 (s390_regmap_tdb): New regmap.
2944 (s390_supply_tdb_regset): New function.
2945 (s390_tdb_regset): New regset.
2946 (s390_linux64v2_regset_sections): Add TDB regset to list.
2947 (s390x_linux64v2_regset_sections): Likewise.
2948 (s390_regset_from_core_section): Recognize TDB core note section.
2949 (s390_core_read_description): If HWCAP indicates TE support,
2950 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2951 (s390_gdbarch_init): Handle TDB regset.
2952 (_initialize_s390_tdep): Initialize new tdescs.
2953 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2954 (have_regset_tdb): New variable.
2955 (s390_native_supply): Support register invalidation.
2956 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2957 (check_regset): Treat ENODATA as "regset exists".
2958 (s390_linux_fetch_inferior_registers): Add TDB.
2959 (s390_read_description): Check for TDB existence and select
2960 appropriate tdesc.
2961 * gdbserver/Makefile.in (clean): Add removal of new makefile
2962 targets.
2963 (s390-te-linux64.c): New makefile target.
2964 (s390x-te-linux64.c): Likewise.
2965 * gdbserver/configure.srv (srv_regobj): Append new objects
2966 s390-te-linux64.o and s390x-te-linux64.o.
2967 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2968 s390x-te-linux64.xml, and s390-tdb.xml.
2969 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2970 declaration.
2971 (tdesc_s390_te_linux64): Likewise.
2972 (init_registers_s390x_te_linux64): Likewise.
2973 (tdesc_s390x_te_linux64): Likewise.
2974 (s390_check_regset): Treat ENODATA as "regset exists".
2975 (s390_arch_setup): Add TDB regset support.
2976 (initialize_low_arch): Initialize registers for new tdescs.
2977
2978 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2979
2980 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2981 (S390_IS_FPREGSET_REGNUM): New macro.
2982 * s390-tdep.c (s390_dwarf_regmap): Make const.
2983 (regnum_is_gpr_full): New function for replacing repeated code.
2984 (s390_pseudo_register_name): Use it.
2985 (s390_pseudo_register_type): Likewise.
2986 (s390_pseudo_register_read): Likewise.
2987 (s390_pseudo_register_write): Likewise.
2988 (s390_unwind_pseudo_register): Likewise.
2989 (s390_regmap_gregset): New format for regmap.
2990 (s390x_regmap_gregset): Likewise.
2991 (s390_regmap_fpregset): Likewise.
2992 (s390_regmap_upper): Likewise.
2993 (s390_regmap_last_break): Likewise.
2994 (s390_regmap_system_call): Likewise.
2995 (s390_supply_regset): Adjust to new regmap format.
2996 (s390_collect_regset): Likewise.
2997 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2998 (s390_native_collect): Likewise.
2999 (supply_gregset): Likewise.
3000 (fill_gregset): Likewise.
3001 (supply_fpregset): Likewise.
3002 (fill_fpregset): Likewise.
3003 (fetch_regset): Likewise.
3004 (store_regset): Likewise.
3005 (s390_linux_fetch_inferior_registers): Likewise.
3006 (s390_linux_fetch_inferior_registers): Likewise.
3007
3008 2013-09-12 Andrew Pinski <apinski@cavium.com>
3009
3010 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3011
3012 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3013
3014 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3015
3016 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3017
3018 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3019
3020 2013-09-06 Pedro Alves <palves@redhat.com>
3021
3022 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3023 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3024 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3025 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3026 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3027 gdb_stdlog.
3028
3029 2013-09-06 Pedro Alves <palves@redhat.com>
3030
3031 * remote-sim.c (dump_mem): Constify buf parameter.
3032 gdbsim_xfer_inferior_memory): Rename to ...
3033 (gdbsim_xfer_memory): ... this. Adjust interface as
3034 target_xfer_partial helper.
3035 (gdbsim_xfer_partial): New function.
3036 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3037 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3038
3039 2013-09-06 Pedro Alves <palves@redhat.com>
3040
3041 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3042 host_address_to_string, and send debug output to gdb_stdlog.
3043
3044 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3045
3046 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3047 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3048 gdb_target_obs for cris target.
3049 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3050 (cris_gdbarch_init): Move calls to
3051 set_gdbarch_fetch_tls_load_module_address and
3052 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3053 Add call to gdbarch_init_osabi.
3054 * cris-linux-tdep.c: New file.
3055 * cris-tdep.h: New file.
3056
3057 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3058
3059 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3060 to deprecated_init_ui_hook.
3061
3062 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3063
3064 * cli/cli-interp.c (_initialize_cli_interp): Add a
3065 command_loop_proc to interp_procs.
3066 * event-top.c (cli_command_loop): Change signature to match
3067 interp_command_loop_ftype.
3068 * event-top.h (cli_command_loop): Same.
3069 * interps.c (interp_new): Require every interpreter to have a
3070 command_loop_proc.
3071 (current_interp_command_loop): Just call the command_loop_proc on
3072 the current interpreter.
3073 * tui/tui-interp.c (_initialize_tui_interp): Add a
3074 command_loop_proc to interp_procs.
3075
3076 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3077
3078 * cris-tdep.c (cris_gdbarch_init): Add call to
3079 get_gdbarch_fetch_tls_load_module_address.
3080
3081 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3082
3083 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3084 (cris_elf_gregset_t): Rename from elf_gregset_t.
3085 (crisv32_elf_gregset_t): Adjust.
3086 (cris_supply_gregset, fetch_core_registers): Adjust.
3087
3088 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3089
3090 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3091
3092 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3093
3094 * defs.h (deprecated_command_loop_hook): Remove, including
3095 references in comments.
3096 * interps.c (current_interp_command_loop): No longer use
3097 deprecated_command_loop_hook.
3098 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3099 setup.
3100 * top.c (deprecated_command_loop_hook): Remove.
3101
3102 2013-09-05 Pedro Alves <palves@redhat.com>
3103
3104 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3105 local is now int instead of ULONGEST. Print it with %d
3106 instead of paddress.
3107
3108 2013-09-05 Tristan Gingold <gingold@adacore.com>
3109
3110 * MAINTAINERS: Remove avr maintainership.
3111
3112 2013-09-05 Pedro Alves <palves@redhat.com>
3113
3114 * findvar.c (value_of_register): Rework in terms of
3115 value_of_register_lazy.
3116
3117 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3118
3119 * symfile.c (add_symbol_file_command): Remove trailing
3120 whitespaces and blank line after comment.
3121
3122 2013-09-05 Pedro Alves <palves@redhat.com>
3123
3124 * tui/tui-regs.c (tui_register_format): Don't look at the
3125 register's name here. Return string representing register
3126 value instead of storing it in the data element.
3127 (tui_get_register): Compare register string representations
3128 instead of register value states and contents.
3129
3130 2013-09-05 Pedro Alves <palves@redhat.com>
3131
3132 PR tui/15933
3133 * tui/tui-regs.c (tui_show_registers): Show registers of the
3134 selected frame, not the current frame.
3135
3136 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3137
3138 * MAINTAINERS (Write After Approval): Add myself to the list.
3139
3140 2013-09-04 Doug Evans <dje@google.com>
3141
3142 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3143 (queue_and_load_dwo_tu): New function.
3144 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3145 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3146 Make dependent_cu optional.
3147 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3148 and an older .gdb_index is in use, queue and load all its TUs too.
3149
3150 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3151
3152 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3153 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3154 variable search_flags.
3155 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3156 (OPF_RETURN_REALPATH): ... here.
3157 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3158 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3159 call. Twice.
3160 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3161 openp call.
3162 * solib.c (solib_find): Likewise. Four times.
3163 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3164 in the function comment and for the realpath_fptr variable.
3165 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3166 (find_and_open_source): Likewise. Twice.
3167 * symfile.c (symfile_bfd_open): Likewise, also twice.
3168
3169 2013-09-04 Doug Evans <dje@google.com>
3170
3171 * progspace.c (save_current_space_and_thread): Remove unnecessary
3172 call to save_current_inferior.
3173
3174 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3175
3176 * sh64-tdep.c (sh64_do_register): Return after printing message
3177 about unavailable register contents.
3178
3179 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3180 Pedro Alves <palves@redhat.com>
3181
3182 * symfile.c (add_symbol_file_command): Error out on unknown
3183 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3184 options and collapse into single conditional branch.
3185
3186 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3187
3188 * inf-child.c (inf_child_follow_fork): New parameter
3189 detach_fork.
3190 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3191 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3192 * inferior.h (detach_fork): Remove.
3193 * infrun.c (detach_fork): Adjust comment and make it
3194 static.
3195 (follow_fork): Pass detach_fork parameter to
3196 target_follow_fork.
3197 * linux-nat.c (linux_child_follow_fork): New parameter
3198 detach_fork.
3199 * target.c (target_follow_fork): New parameter detach_fork.
3200 Pass detach_fork as parameter and print its value.
3201 * target.h (struct target_ops) <to_follow_fork>: New int
3202 parameter.
3203 (target_follow_fork): New parameter detach_fork.
3204
3205 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3206
3207 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3208 Replace sec->bfd by sec->the_bfd_section->owner.
3209
3210 2013-09-03 Yao Qi <yao@codesourcery.com>
3211
3212 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3213 from linux_has_shared_address_space.
3214 (linux_has_shared_address_space): Call linux_is_uclinux.
3215 * linux-tdep.h (linux_is_uclinux): Declare.
3216 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3217 linux_is_uclinux.
3218
3219 2013-09-03 Yao Qi <yao@codesourcery.com>
3220
3221 * config/djgpp/fnchange.lst: Remove entry of
3222 i386-interix-nat.c and i386-interix-tdep.c.
3223 * configure.ac: Remove '*-*-interix*'.
3224 * configure: Re-generated.
3225 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3226 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3227 obsolete comments.
3228 * osabi.c (gdb_osabi_names): Remove "Interix".
3229
3230 2013-09-03 Yao Qi <yao@codesourcery.com>
3231
3232 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3233
3234 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3235
3236 * record.h (record_print_flag) <record_print_src_line,
3237 record_print_insn_range>: Rename into ...
3238 (record_print_flag) <record_print_src_line,
3239 record_print_insn_range>: ... this. Update all users.
3240
3241 2013-09-02 Pierre Muller <muller@sourceware.org>
3242
3243 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3244 error code.
3245
3246 2013-09-02 Pierre Muller <muller@sourceware.org>
3247
3248 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3249 by use of plongest function.
3250
3251 2013-09-02 Tristan Gingold <gingold@adacore.com>
3252
3253 * NEWS: Add entry mentioning support for native Windows x64
3254 SEH data.
3255
3256 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3257 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3258 (struct amd64_windows_frame_cache): New struct.
3259 (amd64_windows_w2gdb_regnum): New global.
3260 (pc_in_range, amd64_windows_frame_decode_epilogue)
3261 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3262 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3263 (amd64_windows_frame_this_id): New functions.
3264 (amd64_windows_frame_unwind): New static global.
3265 (amd64_windows_skip_prologue): New function.
3266 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3267 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3268 with amd64_windows_skip_prologue.
3269
3270 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3271
3272 GDB 7.6.1 released.
3273
3274 2013-08-30 Pedro Alves <palves@redhat.com>
3275
3276 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3277 SRC_AND_LOC.
3278
3279 2013-08-30 Pedro Alves <palves@redhat.com>
3280
3281 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3282 warning text.
3283
3284 2013-08-30 Pedro Alves <palves@redhat.com>
3285
3286 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3287 Adjust arguments to print_stack_frame.
3288
3289 2013-08-30 Pedro Alves <palves@redhat.com>
3290
3291 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3292
3293 2013-08-30 Pedro Alves <palves@redhat.com>
3294
3295 * frame.h (show_and_print_stack_frame): Delete declaration.
3296
3297 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3298
3299 PR python/15461
3300 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3301 (archpy_name): Check for valid architecture.
3302 (archpy_disassemble): Ditto.
3303
3304 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3305
3306 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3307 instead of "long long" in call to ptrace64.
3308
3309 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3310
3311 * mi/mi-interp.c (mi_command_loop): Change signature to match
3312 interp_command_loop_ftype.
3313 (mi1_command_loop): Remove.
3314 (mi2_command_loop): Remove.
3315 (mi3_command_loop): Remove.
3316 (mi_interpreter_resume): Remove setting of
3317 deprecated_command_loop_hook.
3318 (_initialize_mi_interp): Set mi_command_loop as the command loop
3319 callback.
3320
3321 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3322
3323 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3324 value_type.
3325
3326 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3327
3328 * value.c (allocate_value_contents): Make static.
3329 * value.h (allocate_value_contents): Remove prototype.
3330
3331 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3332
3333 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3334 of assembling value via allocate_value_lazy and attribute setter.
3335 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3336 assembling value via allocate_value_lazy and attribute setter.
3337 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3338 assembling value via allocate_value_lazy and attribute setter.
3339
3340 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3341
3342 * value.c (value_from_contents_and_address): Replace allocate_value and
3343 memcpy with value_from_contents.
3344
3345 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3346
3347 * python/py-framefilter.c (py_print_frame): Remove usage of
3348 PyString_AsString. Use python_string_to_host_string instead.
3349 Refactor function to work with a string as a new allocation
3350 instead of a pointer.
3351 (py_print_frame): Ditto.
3352 * python/lib/gdb/frames.py (return_list): Cain iterators together
3353 instead of adding them as a list.
3354 (_sort_list): Call return_list, and remove duplicate code.
3355 (execute_frame_filters): Convert iterator to a list with list().
3356 * python/lib/gdb/command/frame_filters.py
3357 (SetFrameFilterPriority._set_filter_priority): Convert priority
3358 attribute to an integer.
3359 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3360 wrapper function __next__.
3361 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3362 define as "str".
3363
3364 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3365
3366 PR python/15752
3367 * python/py-framefilter.c (apply_frame_filter): Check
3368 gdb_python_initialized. Exit if the Python frame-filter code
3369 cannot be initialized.
3370
3371 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3372
3373 PR cli/15842
3374 * top.c (print_gdb_version): Remove erroneous newline after help
3375 text.
3376
3377 2013-08-29 Yao Qi <yao@codesourcery.com>
3378
3379 * varobj.c (install_dynamic_child): Remove trailing space.
3380 Add one blank line after variable declaration.
3381
3382 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3383
3384 PR gdb/15415
3385 * corefile.c (get_exec_file): Use exec_filename.
3386 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3387 * exec.c (exec_close): Free EXEC_FILENAME.
3388 (exec_file_attach): New variable canonical_pathname. Use
3389 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3390 EXEC_FILENAME.
3391 * exec.h (exec_filename): New.
3392 * inferior.c (print_inferior, inferior_command): Use
3393 PSPACE_EXEC_FILENAME.
3394 * mi/mi-main.c (print_one_inferior): Likewise.
3395 * progspace.c (clone_program_space, print_program_space): Likewise.
3396 * progspace.h (struct program_space): New field pspace_exec_filename.
3397 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3398 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3399
3400 2013-08-28 Will Newton <will.newton@linaro.org>
3401
3402 * common/linux-ptrace.c: Include stdint.h unconditionally.
3403
3404 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3405
3406 Code cleanup.
3407 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3408
3409 2013-08-28 Yao Qi <yao@codesourcery.com>
3410 Pedro Alves <palves@redhat.com>
3411
3412 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3413 instead of stdio_fileopen.
3414 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3415 .Call stderr_fileopen instead of stdio_fileopen.
3416 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3417 [__MINGW32__] (stderr_file_fputs): New function.
3418 (stderr_fileopen): New function.
3419 * ui-file.h (stderr_fileopen): Declare.
3420
3421 2013-08-27 Doug Evans <dje@google.com>
3422
3423 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3424 (struct dwarf2_per_cu_data): Ditto.
3425 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3426 (process_imported_unit_die): Ditto.
3427 (follow_die_sig_1): Simplify assert.
3428
3429 2013-08-27 Pedro Alves <palves@redhat.com>
3430
3431 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3432 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3433 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3434 windows_xfer_memory directly.
3435 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3436
3437 2013-08-27 Pedro Alves <palves@redhat.com>
3438
3439 * darwin-nat.c (darwin_xfer_memory): Delete.
3440 (_initialize_darwin_inferior): Don't install a
3441 deprecated_xfer_memory method.
3442
3443 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3444 Yao Qi <yao@codesourcery.com>
3445
3446 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3447 (parse_no_frames_option): Remove.
3448 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3449 (mi_cmd_stack_list_args): Adjust.
3450 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3451 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3452 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3453 Caller update.
3454 (list_args_or_locals): New parameter 'skip_unavailable'.
3455 Handle it.
3456 * valprint.c (scalar_type_p): Rename to ...
3457 (val_print_scalar_type_p): ... this. Make extern.
3458 (val_print, value_check_printable): Adjust.
3459 * valprint.h (val_print_scalar_type_p): Declare.
3460 * value.c (value_entirely_unavailable): New function.
3461 * value.h (value_entirely_unavailable): Declare.
3462
3463 * NEWS: Mention the new option "--skip-unavailable" to MI
3464 commands '-stack-list-locals', '-stack-list-arguments' and
3465 '-stack-list-variables'.
3466
3467 2013-08-27 Yao Qi <yao@codesourcery.com>
3468
3469 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3470 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3471 options.
3472 * mi/mi-getopt.c (mi_getopt): Remove.
3473 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3474 'error_on_unknown'.
3475 (mi_getopt): Call mi_getopt_1.
3476 (mi_getopt_silent): New.
3477 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3478
3479 2013-08-26 Doug Evans <dje@google.com>
3480
3481 PR symtab/15885
3482 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3483 .gdb_index is in use.
3484 * symfile.c (reread_symbols): Reset objfile->sf.
3485
3486 * NEWS: Document "mt print objfiles" now takes optional regexp.
3487 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3488 regexp of objfiles to print.
3489 (_initialize_symmisc): Update doc string for "mt print objfiles".
3490
3491 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3492 missing debug info checks.
3493
3494 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3495 Ulrich Weigand <uweigand@de.ibm.com>
3496
3497 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3498 line tables generated by XLC compiled binaries.
3499
3500 2013-08-23 Doug Evans <dje@google.com>
3501
3502 * symmisc.c (dump_symtab): Delete prototype.
3503 (dump_msymbols, dump_objfile): Ditto.
3504 (maintenance_info_symtabs): Mark as dont_repeat.
3505 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3506
3507 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3508 debugging printf to better location.
3509
3510 2013-08-23 Pedro Alves <palves@redhat.com>
3511
3512 * target.c (target_read_live_memory): Change type of 'ret' local
3513 to LONGEST.
3514
3515 2013-08-23 Pedro Alves <palves@redhat.com>
3516
3517 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3518 (remote_read_bytes): Change return type to LONGEST, and adjust to
3519 return a target_xfer_error on error.
3520 (remote_xfer_memory): Delete.
3521 (remote_flash_write): Change type of 'ret' local to LONGEST.
3522 (remote_xfer_partial, remote_xfer_partial): Adjust.
3523 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3524
3525 2013-08-23 Pierre Muller <muller@sourceware.org>
3526
3527 ARI fix: Push # directives to start of line.
3528 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3529
3530 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3531
3532 PR gdb/15501
3533 * breakpoint.c (enable_command, disable_command): Iterate over
3534 all specified breakpoint locations.
3535
3536 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3537
3538 * common/linux-ptrace.c (linux_fork_to_function): Push #
3539 directives to the start of the line.
3540 (linux_check_ptrace_features): Fix warning message to use
3541 the "_" markup.
3542
3543 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3544
3545 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3546 nat/linux-waitpid.h.
3547 (linux-waitpid.o): New object file rule.
3548 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3549 (current_ptrace_options): Moved from linux-nat.c.
3550 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3551 parameters.
3552 (linux_fork_to_function): New function.
3553 (linux_grandchild_function): Likewise.
3554 (linux_child_function): Likewise.
3555 (linux_check_ptrace_features): New function, heavily
3556 based on linux-nat.c:linux_test_for_tracefork.
3557 (linux_enable_event_reporting): New function.
3558 (ptrace_supports_feature): Likewise.
3559 (linux_supports_tracefork): Likewise.
3560 (linux_supports_traceclone): Likewise.
3561 (linux_supports_tracevforkdone): Likewise.
3562 (linux_supports_tracesysgood): Likewise.
3563 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3564 gdbserver/linux-low.c.
3565 (linux_enable_event_reporting): New declaration.
3566 (linux_supports_tracefork): Likewise.
3567 (linux_supports_traceclone): Likewise.
3568 (linux_supports_tracevforkdone): Likewise.
3569 (linux_supports_tracesysgood): Likewise.
3570 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3571 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3572 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3573 * config/arm/linux.mh (NATDEPFILES): Likewise.
3574 * config/i386/linux.mh (NATDEPFILES): Likewise.
3575 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3576 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3577 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3578 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3579 * config/mips/linux.mh (NATDEPFILES): Likewise.
3580 * config/pa/linux.mh (NATDEPFILES): Likewise..
3581 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3582 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3583 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3584 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3585 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3586 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3587 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3588 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3589 ptrace's 4th argument's types.
3590 Check the type of PTRACE_TYPE_ARG4.
3591 * configure: Regenerate.
3592 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3593 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3594 (linux_supports_tracefork_flag): Remove.
3595 (linux_supports_tracesysgood_flag): Likewise.
3596 (linux_supports_tracevforkdone_flag): Likewise.
3597 (current_ptrace_options): Moved to
3598 common/linux-ptrace.c.
3599 (linux_tracefork_child): Remove.
3600 (my_waitpid): Remove.
3601 (linux_test_for_tracefork): Renamed to
3602 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3603 (linux_test_for_tracesysgood): Remove.
3604 (linux_supports_tracesysgood): Remove.
3605 (linux_supports_tracefork): Remove.
3606 (linux_supports_tracevforkdone): Remove.
3607 (linux_enable_tracesysgood): Remove.
3608 (linux_enable_event_reporting): Remove.
3609 (linux_init_ptrace): New function.
3610 (linux_child_post_attach): Call linux_init_ptrace.
3611 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3612 (linux_child_follow_fork): Call linux_supports_tracefork
3613 and linux_supports_tracevforkdone.
3614 (linux_child_insert_fork_catchpoint): Call
3615 linux_supports_tracefork.
3616 (linux_child_insert_vfork_catchpoint): Likewise.
3617 (linux_child_set_syscall_catchpoint): Call
3618 linux_supports_tracesysgood.
3619 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3620 * nat/linux-nat.h: New file.
3621 * nat/linux-waitpid.c: New file.
3622 * nat/linux-waitpid.h: New file.
3623
3624 2013-08-22 Samuel Bronson <naesten@gmail.com>
3625
3626 ARM Linux support for `catch syscall'.
3627 * syscalls/arm-linux.py: New file.
3628 * syscalls/arm-linux.xml: Likewise.
3629 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3630 (arm_linux_init_abi): Register the new function and syscall xml file.
3631 * data-directory/Makefile.in: Install the new syscall xml file.
3632 * NEWS: Brag about this.
3633
3634 2013-08-22 Pedro Alves <palves@redhat.com>
3635
3636 PR gdb/15871
3637 * corefile.c (target_xfer_memory_error): New function.
3638 (memory_error): Defer EIO to target_memory_error.
3639 (read_memory): Use target_xfer_partial, and handle finer-grained
3640 target xfer errors.
3641 * target.c (target_xfer_error_to_string): New function.
3642 (memory_xfer_partial_1): If memory is known to be
3643 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3644 (target_xfer_partial): Make extern.
3645 * target.h (enum target_xfer_error): New enum.
3646 (target_xfer_error_to_string): Declare function.
3647 (target_xfer_partial): Declare function.
3648 (struct target_ops) <xfer_partial>: Adjust describing comment.
3649
3650 2013-08-22 Alan Modra <amodra@gmail.com>
3651
3652 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3653 * configure.tgt: Likewise as targets.
3654
3655 2013-08-20 Doug Evans <dje@google.com>
3656
3657 * buildsym.c (subfile_stack): Move here from buildsym.h.
3658 (pending_macros): Ditto.
3659 (get_macro_table): New function.
3660 (buildsym_init): Initialize subfile_stack.
3661 * coffread.c (type_vector,type_vector_length): Moved here from
3662 buildsym.h.
3663 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3664 (coff_symtab_read): Use it.
3665 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3666 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3667 with call to get_macro_table.
3668 * stabsread.c (type_vector,type_vector_length): Moved here from
3669 buildsym.h.
3670 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3671 * buildsym.h (get_macro_table): Declare.
3672
3673 2013-08-20 Tom Tromey <tromey@redhat.com>
3674
3675 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3676 Update.
3677 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3678
3679 2013-08-20 Doug Evans <dje@google.com>
3680
3681 * blockframe.c: Remove #include "psymtab.h".
3682 * cp-support.c: Ditto.
3683 * source.c: Ditto.
3684 * stack.c: Ditto.
3685
3686 2013-08-20 Tom Tromey <tromey@redhat.com>
3687
3688 PR python/15816:
3689 * exceptions.h (return_mask): Now an enum.
3690 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3691 enum constants.
3692
3693 2013-08-20 Tom Tromey <tromey@redhat.com>
3694
3695 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3696 get_objfile_arch.
3697 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3698 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3699 * jit.c (jit_object_close_impl): Update.
3700 * jv-lang.c (get_dynamics_objfile): Update.
3701 * linespec.c (add_minsym): Use get_dynamics_objfile.
3702 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3703 (allocate_objfile): Don't initialize 'gdbarch' field.
3704 (get_objfile_arch): Update.
3705 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3706 moved from...
3707 (struct objfile) <gdbarch>: ... here. Remove.
3708 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3709 get_objfile_arch.
3710 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3711
3712 2013-08-20 Alan Modra <amodra@gmail.com>
3713
3714 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3715 for IBM long double nan and inf.
3716 (floatformat_is_negative, floatformat_classify,
3717 floatformat_mantissa): Similarly.
3718 (floatformat_ieee_single, floatformat_ieee_double,
3719 floatformat_ieee_quad, floatformat_arm_ext,
3720 floatformat_ia64_spill): Delete unused vars.
3721 (_initialize_doublest): Delete unused function.
3722 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3723 little-endian variants of floatformat_ibm_long_double.
3724
3725 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3726
3727 * Makefile.in (SFILES): Remove common/target-common.c and
3728 add target/waitstatus.c.
3729 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3730 target/resume.h, target/wait.h and target/waitstatus.h.
3731 (COMMON_OBS): Remove target-common.o and add
3732 waitstatus.o.
3733 (target-common.o): Remove.
3734 (waitstatus.o): New target object file.
3735 * common/target-common.c: Move contents to
3736 target/waitstatus.c and remove.
3737 * common/target-common.h: Move contents to other files and
3738 remove.
3739 (enum resume_kind: Move to target/resume.h.
3740 (TARGET_WNOHANG): Move to target/wait.h.
3741 (enum target_waitkind): Move to target/waitstatus.h.
3742 (struct target_waitstatus): Likewise.
3743 * target.h: Do not include target-common.h and
3744 include target/resume.h, target/wait.h and
3745 target/waitstatus.h.
3746 * target/resume.h: New file.
3747 * target/wait.h: New file.
3748 * target/waitstatus.h: New file.
3749 * target/waitstatus.c: New file.
3750
3751 2013-08-19 Pedro Alves <palves@redhat.com>
3752
3753 * linux-nat.c (linux_test_for_tracefork)
3754 (linux_test_for_tracesysgood, linux_child_follow_fork)
3755 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3756 (linux_nat_wait_1): Extend comment.
3757 (linux_async_pipe): Add comment.
3758
3759 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3760
3761 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3762 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3763 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3764 Update to account for fact that PC is now a pseudo-register.
3765 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3766 cases for RL78_PC_REGNUM.
3767
3768 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3769
3770 PR cli/15841
3771 * top.c (quit_force): Skip writing history file
3772 if input is not from terminal.
3773
3774 2013-08-14 Tom Tromey <tromey@redhat.com>
3775
3776 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3777 resultthreadlist>: New fields.
3778 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3779 (remote_get_threadlist, remote_threadlist_iterator): Use
3780 new fields. Remove static variables.
3781
3782 2013-08-14 Tom Tromey <tromey@redhat.com>
3783
3784 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3785 remote_watch_data_address>: New fields.
3786 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3787 (process_stop_reply, remote_wait_as)
3788 (remote_check_watch_resources, remote_stopped_data_address): Update.
3789
3790 2013-08-14 Tom Tromey <tromey@redhat.com>
3791
3792 * remote.c (struct remote_state) <async_client_callback,
3793 async_client_context>: New fields.
3794 (async_client_callback, async_client_context): Remove.
3795 (remote_async_serial_handler, remote_async): Update.
3796
3797 2013-08-14 Tom Tromey <tromey@redhat.com>
3798
3799 * remote.c (sizeof_pkt): Remove.
3800 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3801
3802 2013-08-14 Tom Tromey <tromey@redhat.com>
3803
3804 * remote.c (struct remote_state) <use_threadinfo_query,
3805 use_threadextra_query>: New fields.
3806 (remote_threads_info, remote_threads_extra_info)
3807 (remote_open_1): Update.
3808
3809 2013-08-14 Tom Tromey <tromey@redhat.com>
3810
3811 * remote.c (struct remote_state) <finished_object,
3812 finished_annex, finished_offset>: New fields.
3813 (remote_read_qxfer): Use remote_state fields; remove static
3814 variables.
3815
3816 2013-08-14 Tom Tromey <tromey@redhat.com>
3817
3818 * remote.c (struct remote_state) <last_sent_step>:
3819 New field.
3820 (last_sent_step): Remove.
3821 (remote_resume, remote_wait_as): Update.
3822
3823 2013-08-14 Tom Tromey <tromey@redhat.com>
3824
3825 * remote.c (struct remote_state) <last_sent_signal>:
3826 New field.
3827 (last_sent_signal): Remove.
3828 (new_remote_state, remote_resume, remote_wait_as): Update.
3829
3830 2013-08-14 Tom Tromey <tromey@redhat.com>
3831
3832 * remote.c (struct remote_state) <last_program_signals_packet>:
3833 New field.
3834 (last_program_signals_packet): Remove.
3835 (remote_program_signals, remote_open_1): Update.
3836
3837 2013-08-14 Tom Tromey <tromey@redhat.com>
3838
3839 * remote.c (struct remote_state) <last_pass_packet>:
3840 New field.
3841 (last_pass_packet): Remove.
3842 (remote_pass_signals, remote_open_1): Update.
3843
3844 2013-08-14 Tom Tromey <tromey@redhat.com>
3845
3846 * remote.c (struct remote_state) <remote_traceframe_number>:
3847 New field.
3848 (remote_traceframe_number): Remove.
3849 (new_remote_state, remote_open_1, set_remote_traceframe)
3850 (remote_trace_find): Update.
3851
3852 2013-08-14 Tom Tromey <tromey@redhat.com>
3853
3854 * remote.c (struct remote_state) <general_thread, continue_thread>:
3855 New fields.
3856 (general_thread, continue_thread): Remove.
3857 (record_currthread, set_thread, set_general_process)
3858 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3859 (extended_remote_mourn_1): Update.
3860
3861 2013-08-14 Tom Tromey <tromey@redhat.com>
3862
3863 * remote.c (struct remote_state) <remote_desc>: New field.
3864 (remote_desc): Remove.
3865 (remote_threads_info, remote_threads_extra_info, remote_close)
3866 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3867 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3868 (remote_hostio_send_command, remote_file_put, remote_file_get)
3869 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3870 (remote_async, remote_new_objfile, set_range_stepping): Update.
3871
3872 2013-08-14 Tom Tromey <tromey@redhat.com>
3873
3874 * remote.c (remote_state): Now a pointer.
3875 (get_remote_state_raw): Update.
3876 (new_remote_state): New function.
3877 (_initialize_remote): Use new_remote_state.
3878
3879 2013-08-14 Tom Tromey <tromey@redhat.com>
3880
3881 * remote.c (remote_protocol_features): Now const.
3882
3883 2013-08-14 Tom Tromey <tromey@redhat.com>
3884
3885 * remote.c (crc32_table, crc32): Remove.
3886 (remote_verify_memory): Use xcrc32.
3887
3888 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3889
3890 * value.h (create_internalvar_type_lazy): Adjust prototype
3891 declaration.
3892
3893 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3894
3895 * common/format.c (parse_format_string): Don't allow '#' flag for
3896 pointer arguments in format string.
3897
3898 2013-08-13 Pierre Muller <muller@sourceware.org>
3899
3900 * utils.c (init_page_info): Only call tgetnum function
3901 if rl_get_screen_size did not return useful values.
3902
3903 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3904
3905 PR breakpoints/15117
3906 * linespec.c (linespec_parse_basic): Check for convenience
3907 variable or history value while parsing.
3908
3909 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3910
3911 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3912 AVR.
3913 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3914 different signals between the generic Linux kernel implementation
3915 and AVR's.
3916 (avr_linux_gdb_signal_from_target): Delete.
3917 (avr_linux_gdb_signal_to_target): Delete.
3918 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3919
3920 2013-08-09 Doug Evans <dje@google.com>
3921
3922 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3923 entries.
3924
3925 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3926
3927 * linux-tdep.c: Define enum with generic signal numbers.
3928 (linux_gdb_signal_from_target): New function.
3929 (linux_gdb_signal_to_target): Likewise.
3930 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3931 methods to the functions above.
3932 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3933 (linux_gdb_signal_to_target): Likewise.
3934 * alpha-linux-tdep.c: Define new enum with signals different
3935 from generic Linux kernel.
3936 (alpha_linux_gdb_signal_from_target): New function.
3937 (alpha_linux_gdb_signal_to_target): Likewise.
3938 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3939 with the functions mentioned above.
3940 * avr-tdep.c: Define enum with differences between Linux kernel
3941 and AVR signals.
3942 (avr_linux_gdb_signal_from_target): New function.
3943 (avr_linux_gdb_signal_to_target): Likewise.
3944 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3945 the functions mentioned above.
3946 * sparc-linux-tdep.c: Define enum with differences between SPARC
3947 and generic Linux kernel signal numbers.
3948 (sparc32_linux_gdb_signal_from_target): New function.
3949 (sparc32_linux_gdb_signal_to_target): Likewise.
3950 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3951 to the functions defined above.
3952 * xtensa-linux-tdep.c: Define enum with differences between
3953 Xtensa and Linux kernel generic signals.
3954 (xtensa_linux_gdb_signal_from_target): New function.
3955 (xtensa_linux_gdb_signal_to_target): Likewise.
3956 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3957 to the functions defined above.
3958 * mips-linux-tdep.c: Define enum with differences between
3959 signals in MIPS and Linux kernel generic ones.
3960 (mips_gdb_signal_to_target): New function.
3961 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3962 only different signals from the Linux kernel generic.
3963 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3964 the functions defined above.
3965 * mips-linux-tdep.h (enum mips_signals): Remove.
3966
3967 2013-08-09 Pedro Alves <palves@redhat.com>
3968
3969 * avr-tdep.c (XMALLOC): Delete macro.
3970 * cli/cli-dump.c (XMALLOC): Delete macro.
3971
3972 2013-08-09 Pedro Alves <palves@redhat.com>
3973
3974 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3975 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3976 (fopen_with_cleanup, add_dump_command): Make static.
3977 * cli/cli-dump.h: Delete file.
3978 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3979 cli/cli-dump.h.
3980
3981 2013-08-09 Pedro Alves <palves@redhat.com>
3982
3983 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3984 error message.
3985
3986 2013-08-09 Pedro Alves <palves@redhat.com>
3987
3988 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3989 error message.
3990
3991 2013-08-09 Pedro Alves <palves@redhat.com>
3992
3993 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3994 (gcore_command): Use tilde_expand here, and when showing the
3995 filename to the user, show the expanded version.
3996
3997 2013-08-09 Yao Qi <yao@codesourcery.com>
3998
3999 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4000 'entryval' is set.
4001
4002 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4003
4004 * gcore.c (create_gcore_bfd): Use tilde_expand.
4005
4006 2013-08-08 Yao Qi <yao@codesourcery.com>
4007
4008 * frame.h (read_frame_local): Declare.
4009 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4010 read_frame_local.
4011 * stack.c (read_frame_local): New.
4012
4013 2013-08-08 Yao Qi <yao@codesourcery.com>
4014
4015 * mi/mi-cmd-stack.c: Update comments to function
4016 list_args_or_locals.
4017
4018 2013-08-07 Tom Tromey <tromey@redhat.com>
4019
4020 PR symtab/15028:
4021 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4022 (process_psymtab_comp_unit_reader): Use it.
4023 (process_psymtab_comp_unit): Update. Add "pretend_language"
4024 argument.
4025 (dwarf2_build_psymtabs_hard): Update.
4026 (scan_partial_symbols): Pass CU's language to
4027 process_psymtab_comp_unit.
4028
4029 2013-08-07 Tom Tromey <tromey@redhat.com>
4030
4031 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4032 (dwarf2_gdb_index_functions): Update.
4033 * psymtab.c (find_symbol_file_from_partial): Remove.
4034 (psym_functions): Update.
4035 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4036 Remove.
4037
4038 2013-08-07 Tom Tromey <tromey@redhat.com>
4039
4040 * symfile.c (set_initial_language): Look up "main" symbol
4041 and use its language.
4042 * symtab.c (find_main_filename): Remove.
4043 * symtab.h (find_main_filename): Remove.
4044
4045 2013-08-07 Tom Tromey <tromey@redhat.com>
4046
4047 * dwarf2read.c (recursively_compute_inclusions): Add
4048 "immediate_parent" argument. Set symtab's "user" field
4049 if not set.
4050 (compute_symtab_includes): Update.
4051
4052 2013-08-07 Tom Tromey <tromey@redhat.com>
4053
4054 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4055 when adding label symbols.
4056
4057 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4058 Ulrich Weigand <uweigand@de.ibm.com>
4059
4060 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4061 * configure.host (powerpc64-*-aix*): Likewise.
4062
4063 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4064 Ulrich Weigand <uweigand@de.ibm.com>
4065
4066 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4067 is defined.
4068 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4069 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4070 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4071 * configure.ac: Check for ptrace64.
4072 * configure, config.in: Regenerate.
4073
4074 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4075 Ulrich Weigand <uweigand@de.ibm.com>
4076
4077 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4078 Call ptrace64 instead of ptrace if defined.
4079 Add macro addr_ptr to take care of ptrace address argument.
4080 (pdc_read_regs): Likewise.
4081 (pdc_write_regs): Likewise.
4082 (aix_thread_resume): Likewise.
4083 (fetch_regs_kernel_thread): Likewise.
4084 (store_regs_kernel_thread): Likewise.
4085
4086 2013-08-07 Anton Blanchard <anton@samba.org>
4087
4088 * MAINTAINERS: Add myself to Write After Approval.
4089
4090 2013-08-05 Tom Tromey <tromey@redhat.com>
4091
4092 * aix-thread.c (_initialize_aix_thread): Use
4093 complete_target_initialization.
4094 * bsd-uthread.c (_initialize_bsd_uthread): Use
4095 complete_target_initialization.
4096 * dec-thread.c (_initialize_dec_thread): Use
4097 complete_target_initialization.
4098 * ravenscar-thread.c (_initialize_ravenscar): Use
4099 complete_target_initialization.
4100 * sol-thread.c (_initialize_sol_thread): Use
4101 complete_target_initialization.
4102 * spu-multiarch.c (_initialize_spu_multiarch): Use
4103 complete_target_initialization.
4104
4105 2013-08-05 Tom Tromey <tromey@redhat.com>
4106
4107 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4108 * ada-lang.c (ada_lookup_simple_minsym): Return
4109 bound_minimal_symbol.
4110 * ada-lang.h (ada_lookup_simple_minsym): Update.
4111 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4112 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4113 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4114 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4115 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4116 * minsyms.c (msymbol_objfile): Remove.
4117 (lookup_minimal_symbol_internal): New function, from
4118 lookup_minimal_symbol.
4119 (lookup_minimal_symbol): Rewrite using
4120 lookup_minimal_symbol_internal.
4121 (lookup_bound_minimal_symbol): New function.
4122 * minsyms.h (msymbol_objfile): Remove.
4123 (lookup_bound_minimal_symbol): Declare.
4124 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4125 * parse.c (write_exp_msymbol): Change parameter to a
4126 bound_minimal_symbol.
4127 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4128 * parser-defs.h (write_exp_msymbol): Update.
4129 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4130 * symfile.c (simple_read_overlay_table): Use
4131 lookup_bound_minimal_symbol.
4132 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4133 (search_symbols): Likewise.
4134 (print_msymbol_info): Take a bound_minimal_symbol argument.
4135 (symtab_symbol_info, rbreak_command): Update.
4136 * symtab.h (struct symbol_search) <msymbol>: Change type
4137 to bound_minimal_symbol.
4138 * valops.c (find_function_in_inferior): Use
4139 lookup_bound_minimal_symbol.
4140 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4141
4142 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4143
4144 Code cleanup.
4145 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4146 to ...
4147 (async_cleanup_sigint_signal_handler): ... this.
4148 (initialize_sigint_signal_handler): Remove declaration.
4149 (handle_remote_sigint): Rename the declaration to ...
4150 (async_handle_remote_sigint): ... this.
4151 (handle_remote_sigint_twice): Rename the declaration to ...
4152 (async_handle_remote_sigint_twice): ... this.
4153 (async_remote_interrupt, async_remote_interrupt_twice)
4154 (remote_interrupt): Remove the declarations.
4155 (remote_interrupt_twice): Rename the declaration ...
4156 (sync_remote_interrupt_twice): ... this.
4157 (sigint_remote_twice_token): Rename the variable to ...
4158 (async_sigint_remote_twice_token): ... this.
4159 (sigint_remote_token): Rename the variable to ...
4160 (async_sigint_remote_token): ... this.
4161 (initialize_sigint_signal_handler): Rename the function to ...
4162 (async_initialize_sigint_signal_handler): ... this. Update the name
4163 inside.
4164 (handle_remote_sigint): Rename the function to ...
4165 (async_handle_remote_sigint): ... this. Update the names inside.
4166 (handle_remote_sigint_twice): Rename the function to ...
4167 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4168 (cleanup_sigint_signal_handler): Rename the function to ...
4169 (async_cleanup_sigint_signal_handler): ... this.
4170 (remote_interrupt): Rename the function to ...
4171 (sync_remote_interrupt): this. Update the names inside.
4172 (remote_interrupt_twice): Rename the function to ...
4173 (sync_remote_interrupt_twice): this. Update the names inside.
4174 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4175 (_initialize_remote): Update the names inside.
4176
4177 2013-08-02 Tom Tromey <tromey@redhat.com>
4178
4179 PR symtab/15719:
4180 * breakpoint.c (update_watchpoint, watchpoint_check)
4181 (watch_command_1): Update.
4182 * eval.c (fetch_subexp_value): Add "preserve_errors"
4183 parameter.
4184 * ppc-linux-nat.c (check_condition): Update.
4185 * value.h (fetch_subexp_value): Update.
4186
4187 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4188
4189 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4190 add_file_handler.
4191
4192 2013-08-01 Doug Evans <dje@google.com>
4193
4194 PR symtab/15691
4195 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4196 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4197 Add assert of sig_entry->dwo_unit == NULL.
4198 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4199 had already been read.
4200 (read_signatured_type): Set per_cu.tu_read.
4201
4202 PR symtab/15695
4203 * valops.c (value_struct_elt): Add missing call to check_typedef.
4204 (value_find_oload_method_list): Ditto.
4205
4206 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4207 effectively, struct symbol_search **.
4208 (make_cleanup_free_search_symbols): Change arg to struct
4209 symbol_search **. All callers updated.
4210 (compare_search_syms): Compare symtab file name and block as well.
4211 (search_symbols_equal): New function.
4212 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4213 New args new_head, new_tail. Result is now void. Remove dups after
4214 sorting the symbols.
4215 (search_symbols): Sort all found symbols once, after all have been
4216 found, and remove duplicates. Simplify cleanup tracking of result.
4217 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4218
4219 Further workarounds for binutils/15021.
4220 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4221 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4222 Watch for duplicate symtabs coming from type units.
4223 (compute_symtab_includes): Update call to
4224 recursively_compute_inclusions. Build vector of included symtabs
4225 instead of per_cus.
4226 * symtab.h (symtab_ptr): New typedef.
4227 (DEF_VEC_P (symtab_ptr)): New VEC type.
4228 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4229 instead.
4230
4231 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4232
4233 * cli/cli-script.c (script_from_file): Remove use of
4234 error_pre_print.
4235 * main.c (captured_main): Remove use of error_pre_print and
4236 quit_pre_print.
4237 * utils.c (error_pre_print, quit_pre_print): Remove.
4238 * utils.h (error_pre_print, quit_pre_print): Likewise.
4239
4240 2013-08-01 Yao Qi <yao@codesourcery.com>
4241
4242 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4243 with mi_getopt.
4244 (mi_cmd_stack_list_variables): Likewise.
4245
4246 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4247
4248 * exceptions.c (deprecated_throw_reason): Remove.
4249 * exceptions.h (deprecated_throw_reason): Remove.
4250
4251 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4252
4253 * remote-mips.c (mips_error): Replace use of
4254 deprecated_throw_reason with throw_verror. Use the error message
4255 passed to mips_error as the error message for throw_verror.
4256
4257 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4258
4259 * monitor.c (monitor_interrupt_query): Replace use of
4260 deprecated_throw_reason with quit.
4261 * nto-procfs.c (interrupt_query): Likewise.
4262 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4263 * remote-mips.c (mips_kill): Likewise.
4264 * remote.c (interrupt_query): Likewise.
4265
4266 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4267
4268 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4269 with call to fatal.
4270
4271 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4272 Yao Qi <yao@codesourcery.com>
4273
4274 * tracepoint.c (trace_dump_command): Select the current frame.
4275
4276 2013-07-30 Doug Evans <dje@google.com>
4277
4278 * dwarf2read.c (process_queue): Add type signature to debug output.
4279
4280 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4281
4282 * value.c (value_fetch_lazy): Mark optimized out values as such
4283 rather than raising an error.
4284
4285 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4286
4287 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4288 before checking which bits of the parent, not the child, value are
4289 valid.
4290
4291 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4292
4293 PR gdb/15715
4294 * top.c: Include "filenames.h".
4295 (set_history_filename): New function.
4296 (init_main): Install it as set hook of the "set history filename"
4297 command.
4298
4299 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4300
4301 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4302 attribute parameter.
4303 (dwarf2_const_value_data): Constify struct attribute parameter.
4304 (dwarf2_const_value): Constify struct attribute parameter.
4305 (dwarf2_const_value_attr): Constify struct attribute parameter.
4306 (lookup_die_type): Constify struct attribute parameter.
4307 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4308 (follow_die_ref_or_sig): Constify struct attribute parameter.
4309 (follow_die_ref): Constify struct attribute parameter.
4310 (follow_die_sig): Constify struct attribute parameter.
4311 (get_DW_AT_signature_type): Constify struct attribute parameter.
4312 (get_type_unit_group): Constify struct attribute parameter.
4313 (fill_in_loclist_baton): Constify struct attribute parameter.
4314 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4315 (type_unit_group): Constify struct attribute parameter.
4316
4317 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4318
4319 * dwarf2read.c (attr_form_is_block): Make argument const.
4320 (attr_form_is_section_offset): Make argument const.
4321 (attr_form_is_constant): Make argument const.
4322 (attr_form_is_ref): Make argument const.
4323
4324 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4325
4326 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4327 All uses updated.
4328 (attr_form_is_ref): Moved below attr_form_is_constant.
4329
4330 2013-07-29 Doug Evans <dje@google.com>
4331
4332 * main.c (captured_command_loop): Tweak comment.
4333
4334 * target.c (target_async_permitted_1): Fix comment.
4335
4336 * symtab.c (iterate_over_some_symtabs): Add comment.
4337
4338 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4339
4340 2013-07-27 Yao Qi <yao@codesourcery.com>
4341
4342 * NEWS: Mention that GDBserver now supports hardware
4343 watchpoints on the MIPS GNU/Linux target.
4344
4345 2013-07-27 Yao Qi <yao@codesourcery.com>
4346
4347 * Makefile.in (HFILES_NO_SRCDIR): Add
4348 common/mips-linux-watch.h.
4349 (mips-linux-watch.o): New rule.
4350 * common/mips-linux-watch.c: New.
4351 * common/mips-linux-watch.h: New.
4352 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4353 * mips-linux-nat.c: Include mips-linux-watch.h.
4354 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4355 to common/mips-linux-watch.h.
4356 (MAX_DEBUG_REGISTER): Likewise.
4357 (enum pt_watch_style): Likewise.
4358 (struct mips32_watch_regs): Likewise.
4359 (struct mips64_watch_regs): Likewise.
4360 (struct pt_watch_regs): Likewise.
4361 (struct mips_watchpoint): Likewise.
4362 (mips_linux_watch_get_irw_mask): Move to
4363 common/mips-linux-watch.c.
4364 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4365 (mips_linux_watch_get_watchlo): Likewise.
4366 (mips_linux_watch_set_watchlo): Likewise.
4367 (mips_linux_watch_get_watchhi): Likewise.
4368 (mips_linux_watch_set_watchhi): Likewise.
4369 (mips_linux_read_watch_registers): Likewise.
4370 (mips_linux_watch_type_to_irw): Likewise.
4371 (mips_linux_stopped_data_address, fill_mask): Likewise.
4372 (mips_linux_watch_try_one_watch): Likewise.
4373 (mips_linux_watch_populate_regs): Likewise.
4374
4375 2013-07-27 Yao Qi <yao@codesourcery.com>
4376
4377 * mips-linux-nat.c (get_irw_mask): Rename to ...
4378 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4379 'set' to 'n'. Update function comment. All callers changed.
4380 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4381 function comment. All callers changed.
4382 (get_num_valid): Rename to ...
4383 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4384 'set' to 'n'. Update function comment. All callers changed.
4385 (get_watchlo): Rename to ...
4386 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4387 'set' to 'n'. Update function comment. All callers changed.
4388 (set_watchlo): Rename to ...
4389 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4390 'set' to 'n'. Update function comment. All callers changed.
4391 (get_watchhi): Rename to ...
4392 (mips_linux_watch_get_watchhi): ... this. Update function
4393 comment. All callers changed.
4394 (set_watchhi): Rename to ...
4395 (mips_linux_watch_set_watchhi): ... this. Update function
4396 comment. All callers changed.
4397 (mips_linux_read_watch_registers): Update function comment.
4398 Add new parameters 'lwpid', 'watch_readback', and
4399 'watch_readback_valid'. Update.
4400 (type_to_irw): Rename to ...
4401 (mips_linux_watch_type_to_irw): ... this. Update function
4402 comment. All callers changed.
4403 (fill_mask): Update function comment.
4404 (try_one_watch): Rename to ...
4405 (mips_linux_watch_try_one_watch): ... this. Change the type
4406 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4407 (populate_regs_from_watches): Rename to ...
4408 (mips_linux_watch_populate_regs): ... this. Add parameter
4409 'current_watches'. All callers changed.
4410
4411 2013-07-27 Yao Qi <yao@codesourcery.com>
4412
4413 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4414 the code.
4415 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4416 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4417 (struct pt_watch_regs): Likewise.
4418 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4419 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4420 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4421 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4422 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4423
4424 2013-07-27 Yao Qi <yao@codesourcery.com>
4425
4426 * breakpoint.h: Include break-common.h.
4427 (enum target_hw_bp_type): Move to ...
4428 * common/break-common.h: ... here. New.
4429
4430 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4431
4432 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4433 process group regardless of having tty on stdin.
4434
4435 2013-07-25 Doug Evans <dje@google.com>
4436
4437 * linux-fork.h (detach_fork): Delete.
4438
4439 2013-07-25 Tom Tromey <tromey@redhat.com>
4440
4441 PR remote/15256, PR remote/15266:
4442 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4443 * monitor.c (monitor_detach): Use unpush_target.
4444 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4445 * remote-mips.c (mips_detach): Use unpush_target. Don't
4446 call mips_close.
4447 * remote-sim.c (gdbsim_detach): Use unpush_target.
4448 * target.c (pop_target): Remove.
4449 (pop_all_targets_above): Don't call target_close.
4450 (target_close): Assert that the target is unpushed.
4451 * target.h (pop_target): Don't declare.
4452 * tracepoint.c (tfile_open): Use unpush_target.
4453
4454 2013-07-25 Tom Tromey <tromey@redhat.com>
4455
4456 * linux-thread-db.c (init_thread_db_ops): Call
4457 complete_target_initialization.
4458 (_initialize_thread_db): Don't call add_target.
4459 * target.c (complete_target_initialization): New function.
4460 (add_target_with_completer): Call it.
4461 * target.h (complete_target_initialization): Declare.
4462
4463 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4464
4465 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4466 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4467 (HPPANBSD_SIZEOF_GREGS): New define.
4468 (hppaobsd_supply_gregset): Handle additional registers.
4469 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4470 we provide more registers now.
4471 (hppabsd_supply_gregset): Supply additional registers.
4472 (hppabsd_collect_gregset): Collect additional registers.
4473
4474 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4475
4476 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4477 (hppabsd_dwarf2_frame_init_reg): New function.
4478 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4479
4480 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4481
4482 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4483 'z' format code. Remove error for optimized out values, standard
4484 code will handle these fine.
4485
4486 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4487
4488 * NEWS: Mention new 'z' formatter.
4489 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4490 (_initialize_printcmd): Mention 'z' formatter in help text of the
4491 'x' command.
4492
4493 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4494
4495 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4496 formatting.
4497
4498 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4499
4500 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4501 interface can evaluate arguments. Fallback to the old mode if it
4502 cannot.
4503 (create_exception_master_breakpoint): Likewise.
4504 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4505 (struct sym_probe_fns elf_probe_fns): Export function above to the
4506 probe interface.
4507 * probe.c (can_evaluate_probe_arguments): New function.
4508 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4509 function pointer.
4510 (can_evaluate_probe_arguments): New function prototype.
4511 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4512 probe interface can evaluate arguments. Fallback to the old mode
4513 if it cannot.
4514 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4515 interface can evaluate arguments. Warning the user if it cannot.
4516 (stap_can_evaluate_probe_arguments): New function.
4517 (struct probe_ops stap_probe_ops): Export function above to the
4518 probe interface.
4519 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4520 New function pointer.
4521
4522 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4523
4524 * Makefile.in (SFILES): Add common/target-common.c.
4525 Add common/target-common.h to headers.
4526 (COMMON_OBS): Add target-common.o.
4527 (target-common.o): New target.
4528 * linux-nat.h (resume_kind): Move to common/target-common.h.
4529 * target.c (target_waitstatus_to_string): Move to
4530 common/target-common.c.
4531 * target.h: Include target-common.h.
4532 (target_waitkind): Move to common/target-common.h.
4533 (target_waitstatus): Likewise.
4534 (TARGET_WNOHANG): Likewise.
4535 * common/target-common.c: New file.
4536 * common/target-common.h: New file.
4537
4538 2013-07-24 Doug Evans <dje@google.com>
4539
4540 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4541 a warning.
4542
4543 2013-07-23 Yao Qi <yao@codesourcery.com>
4544
4545 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4546 parameter 'gdbarch'.
4547 (i386_stack_tramp_frame_sniffer): Caller update.
4548 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4549 parameter 'gdbarch' and 'target'.
4550 (i386_linux_core_read_description): Caller update.
4551 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4552 Likewise.
4553 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4554 declaration.
4555
4556 2013-07-23 Tom Tromey <tromey@redhat.com>
4557
4558 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4559 2013-07-22.
4560
4561 2013-07-22 Doug Evans <dje@google.com>
4562
4563 * exec.h (remove_target_sections): Delete arg abfd.
4564 * exec.c (exec_close): Update call to remove_target_sections.
4565 (remove_target_sections): Delete arg abfd.
4566 * solib.c (update_solib_list): Ditto.
4567 (reload_shared_libraries_1): Ditto.
4568 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4569 * target.h (struct target_section): Rename key to owner.
4570 All uses updated.
4571
4572 2013-07-22 Tom Tromey <tromey@redhat.com>
4573
4574 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4575
4576 2013-07-22 Tom Tromey <tromey@redhat.com>
4577
4578 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4579 Simplify cleanup handling.
4580
4581 2013-07-22 Tom Tromey <tromey@redhat.com>
4582
4583 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4584 on all return paths.
4585
4586 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4587
4588 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4589 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4590 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4591
4592 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4593
4594 * top.c (print_gdb_version): Add help, apropos description and
4595 url to online documentation.
4596
4597 2013-07-19 Hui Zhu <hui@codesourcery.com>
4598
4599 PR gdb/15692
4600 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4601
4602 2013-07-19 Yao Qi <yao@codesourcery.com>
4603
4604 * target.c (update_current_target): Change the default action
4605 of 'to_traceframe_info' from tcomplain to return_zero.
4606 * target.h (struct target_ops) <to_traceframe_info>: Add more
4607 comments.
4608 * valops.c (read_value_memory): Call
4609 traceframe_available_memory unconditionally.
4610
4611 2013-07-18 Yao Qi <yao@codesourcery.com>
4612
4613 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4614 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4615 symbol without prefix. If found, set its type to
4616 'mst_solib_trampoline'.
4617
4618 2013-07-17 Doug Evans <dje@google.com>
4619
4620 * NEWS: Mention "set print raw frame-arguments".
4621 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4622 * stack.c (print_raw_frame_arguments): New static global.
4623 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4624 (_initialize_stack): New command "set/show print raw frame-arguments".
4625 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4626 (set_print_raw, show_print_raw): New functions.
4627 (_initialize_valprint): New prefix command "set/show print raw".
4628 * valprint.h (value_print_options): Improve comments.
4629
4630 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4631 of all *list variables.
4632
4633 * gdbcmd.h (togglelist): Delete.
4634 * cli/cli-cmds.c (togglelist): Delete.
4635 (init_cmd_lists): Update.
4636 * cli/cli-cmds.h (togglelist): Delete.
4637
4638 2013-07-17 Tom Tromey <tromey@redhat.com>
4639
4640 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4641 dwarf2_per_objfile.
4642
4643 2013-07-16 Doug Evans <dje@google.com>
4644
4645 * nto-tdep.c (nto_relocate_section_addresses): Update,
4646 target_section.bfd deleted.
4647 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4648 * s390-tdep.c (s390_load): Ditto.
4649 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4650
4651 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4652
4653 * common/format.c (parse_format_string): Add checks for NULL
4654 character before calling strchr.
4655
4656 2013-07-16 Doug Evans <dje@google.com>
4657
4658 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4659 temp_pathname argument.
4660 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4661 when opening the file fails.
4662
4663 * target.h (struct target_section): Delete member bfd.
4664 All users updated to use the_bfd_section->owner instead.
4665 * exec.c (add_to_section_table): Assert bfd is expected value.
4666 Remove initialization of target_section.bfd.
4667 (remove_target_sections): Update.
4668 (section_table_available_memory): Update.
4669 (section_table_xfer_memory_partial): Update.
4670 (print_section_info): Update.
4671 (exec_set_section_address): Update.
4672 * record-full.c (record_full_core_xfer_partial): Update.
4673 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4674 * solib-target.c (solib_target_relocate_section_addresses): Update.
4675 * symfile.c (build_section_addr_info_from_section_table): Update.
4676 * target.c (memory_xfer_live_readonly_partial): Update.
4677 (memory_xfer_partial_1): Update.
4678
4679 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4680
4681 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4682 now available for embedded (BookE) and server (BookS) processors,
4683 correct mentions of 'booke' and adjust comments accordingly in order to
4684 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4685 (have_ptrace_booke_interface): Rename function and variable
4686 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4687 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4688 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4689 'hwdebug_point_cmp'. Update all uses.
4690 (booke_find_thread_points_by_tid): Rename function
4691 'booke_find_thread_points_by_tid' to
4692 'hwdebug_find_thread_points_by_tid'. Update all uses.
4693 (booke_insert_point): Rename function 'booke_insert_point' to
4694 'hwdebug_insert_point'. Update all uses.
4695 (booke_remove_point): Rename function 'booke_remove_point' to
4696 'hwdebug_remove_point'. Update all uses.
4697
4698 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4699
4700 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4701 numbers with enum values.
4702
4703 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4704
4705 PR threads/13217
4706 * thread.c (thread_apply_all_command): Check for valid threads
4707 and thread count.
4708 (thread_array_cleanup): New struct.
4709 (set_thread_refcount): New function.
4710
4711 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4712
4713 * infcmd.c (default_print_one_register_info): Reuse function
4714 print_hex_chars.
4715
4716 2013-07-10 Tom Tromey <tromey@redhat.com>
4717
4718 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4719 (ada-exp.o): New target.
4720
4721 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4722
4723 * mt-tdep.c (mt_registers_info): Call
4724 get_no_prettyformat_print_options instead of
4725 get_raw_print_options (regression by last patch from Doug
4726 Evans).
4727
4728 2013-07-09 Pedro Alves <palves@redhat.com>
4729
4730 Checked in by Joel Brobecker <brobecker@adacore.com>.
4731 * ada-lang.c (coerce_unspec_val_to_type): Use
4732 value_optimized_out_const.
4733 * value.c (value_optimized_out_const): New function.
4734 * value.h (value_optimized_out_const): New declaration.
4735
4736 2013-07-09 Doug Evans <dje@google.com>
4737
4738 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4739 Enum values rename as well. All uses updated.
4740 * valprint.h (value_print_options): Rename member pretty to
4741 pretty format. Rename member prettyprint_arrays to
4742 prettyformat_arrays. Rename member prettyprint_structs to
4743 prettyformat_structs. All uses updated.
4744 (get_no_prettyformat_print_options): Renamed from
4745 get_raw_print_options.
4746 * valprint.c (get_no_prettyformat_print_options): Renamed from
4747 get_raw_print_options. All callers updated.
4748 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4749 All callers updated.
4750 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4751 All callers updated.
4752 (_initialize_valprint): Improve help text for "set print pretty" and
4753 "set print arrays".
4754
4755 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4756
4757 * value.c (value_bits_valid): Revert previous change, and change
4758 by Pedro on 2013-07-04, due to regressions in
4759 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4760
4761 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4762 Pedro Alves <palves@redhat.com>
4763
4764 * value.c (value_bits_valid): If the value is not lval_computed
4765 or has no check validity handler then the answer is the
4766 optimized_out flag, otherwise defer to the handler.
4767
4768 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4769
4770 * top.c (print_gdb_configuration): Explain in output of
4771 --configuration what does "relocatable" mean.
4772
4773 * main.c (print_gdb_help): Regroup options in the --help text.
4774 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4775 the relevant discussions.
4776
4777 2013-07-06 Yao Qi <yao@codesourcery.com>
4778
4779 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4780 Remove parameter 'lsal'.
4781 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4782 to inner block. Caller update.
4783 (base_breakpoint_create_breakpoints_sal): Update.
4784 (bkpt_create_breakpoints_sal): Likewise.
4785 (tracepoint_create_breakpoints_sal): Likewise.
4786 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4787 element 0 of vector 'canonical->sals'.
4788
4789 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4790
4791 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4792 register number instead of the pseudo register one.
4793 (rs6000_dwarf2_reg_to_regnum): Likewise.
4794
4795 2013-07-04 Pedro Alves <palves@redhat.com>
4796
4797 * findvar.c (value_of_register): Use allocate_optimized_out_value
4798 if the register has been optimized out, instead of
4799 set_value_optimized_out.
4800 * frame-unwind.c (frame_unwind_got_optimized): Use
4801 allocate_optimized_out_value.
4802
4803 2013-07-04 Pedro Alves <palves@redhat.com>
4804
4805 * value.c (value_bits_valid): If the value is not lval_computed,
4806 or doesn't have a check_validity hook, assume the value is entirely
4807 valid.
4808
4809 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4810
4811 * stack.c (read_frame_arg): No longer fetch lazy values.
4812 * value.c (value_optimized_out): If the value is not already
4813 marked optimized out, and is lazy then fetch it.
4814 (value_primitive_field): Move optimized out check to later in the
4815 function, after we have loaded any lazy values.
4816 (value_fetch_lazy): Use optimized out flag directly rather than
4817 calling optimized_out method.
4818
4819 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4820
4821 * valops.c: Don't include "user-regs.h".
4822 (value_fetch_lazy): Moved to value.c.
4823 * value.c: Include "user-regs.h".
4824 (value_fetch_lazy): Moved from valops.c.
4825
4826 2013-07-04 Yao Qi <yao@codesourcery.com>
4827
4828 Revert:
4829 2013-06-27 Yao Qi <yao@codesourcery.com>
4830
4831 * common/create-version.sh: Update comments. Handle the case
4832 that TARGET_ALIAS is empty.
4833
4834 2013-07-03 Pedro Alves <palves@redhat.com>
4835
4836 * Makefile.in (config.status): Depend on development.sh.
4837 (aclocal_m4_deps): Add libmcheck.m4.
4838 * acinclude.m4: Include libmcheck.m4.
4839 * configure.ac: Source development.sh instead of setting
4840 'development' here. --enable-libmcheck/--disable-libmcheck code
4841 factored out to GDB_AC_LIBMCHECK. Run it.
4842 * development.sh: New file.
4843 * libmcheck.m4: New file.
4844 * configure: Regenerate.
4845
4846 2013-07-02 Tom Tromey <tromey@redhat.com>
4847
4848 * contrib/ari/update-web-ari.sh: Update for version.in change.
4849
4850 2013-07-02 Tom Tromey <tromey@redhat.com>
4851
4852 * common/ptid.h: Comment fixes.
4853
4854 2013-07-01 Tom Tromey <tromey@redhat.com>
4855
4856 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4857 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4858 (dwarf2_read_index, create_all_comp_units): Update.
4859
4860 2013-07-01 Tom Tromey <tromey@redhat.com>
4861
4862 * configure.ac (build_warnings): Add -Wold-style-definition.
4863 * configure: Rebuild.
4864 * machoread.c (_initialize_machoread): Use "(void)".
4865 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4866 use "(void)".
4867
4868 2013-07-01 Tom Tromey <tromey@redhat.com>
4869
4870 * configure.ac (build_warnings): Add -Wold-style-declaration.
4871 * configure: Rebuild.
4872 * dsrec.c (make_srec): Use "static const", not "const static".
4873 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4874 not "const static".
4875 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4876 Use "static const", not "const static".
4877 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4878 not "const static".
4879 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4880 not "const static".
4881 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4882 not "const static".
4883 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4884 not "const static".
4885 (v850_dbtrap_breakpoint_from_pc): Likewise.
4886 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4887 not "const static".
4888
4889 2013-07-01 Tom Tromey <tromey@redhat.com>
4890
4891 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4892 * configure: Rebuild.
4893
4894 2013-07-01 Pedro Alves <palves@redhat.com>
4895
4896 * defs.h: Include "pathmax.h".
4897 * utils.c: Don't include sys/param.h.
4898 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4899 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4900 instead of MAXPATHLEN.
4901 * solib-sunos.c: Don't include sys/param.h.
4902 * xcoffread.c: Don't include sys/param.h.
4903 * bsd-kvm.c: Don't include sys/param.h.
4904 * darwin-nat.c: Don't include sys/param.h.
4905 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4906 * darwin-nat-info.c: Don't include sys/param.h.
4907 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4908 MAXPATHLEN.
4909 * i386obsd-nat.c: Don't include sys/param.h.
4910 * inf-child.c: Don't include sys/param.h.
4911 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4912 * linux-fork.c: Don't include sys/param.h.
4913 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4914 * linux-nat.c: Don't include sys/param.h.
4915 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4916 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4917 * m68klinux-nat.c: Don't include sys/param.h.
4918 * nbsd-nat.c: Don't include sys/param.h.
4919 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4920 * ppc-linux-nat.c: Don't include sys/param.h.
4921 * rs6000-nat.c: Don't include sys/param.h.
4922 * spu-linux-nat.c. Don't include sys/param.h.
4923 * windows-nat.c: Don't include sys/param.h.
4924 * xtensa-linux-nat.c: Don't include sys/param.h.
4925 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4926
4927 2013-07-01 Pedro Alves <palves@redhat.com>
4928
4929 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4930 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4931 * gnulib/aclocal.m4: Regenerate.
4932 * gnulib/config.in: Regenerate.
4933 * gnulib/configure: Regenerate.
4934 * gnulib/import/pathmax.h: New file.
4935 * gnulib/import/Makefile.am: Regenerate.
4936 * gnulib/import/Makefile.in: Regenerate.
4937 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4938 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4939 * gnulib/import/m4/pathmax.m4: New file.
4940
4941 2013-07-01 Pedro Alves <palves@redhat.com>
4942
4943 * configure.ac (GDBINIT): Define, depending on host.
4944 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4945 * top.c (PATH_MAX): Delete fallback definition.
4946 (GDBINIT_FILENAME): Delete.
4947 (gdbinit): Reimplement as const char array set to the GDBINIT
4948 string constant.
4949 * top.h (gdbinit): Make const.
4950 * configure, config.in: Regenerate.
4951
4952 2013-07-01 Pedro Alves <palves@redhat.com>
4953
4954 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4955 * cli/cli-cmds.h (source_script): Likewise.
4956 * exceptions.c (catch_command_errors_const): New function.
4957 * exceptions.h (catch_command_errors_const): Declare.
4958 * main.c (get_init_files): Make parameters const, and adjust.
4959 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4960 'local_gdbinit' locals const. Adjust to use
4961 catch_command_errors_const.
4962 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4963 'local_gdbinit' locals const.
4964
4965 2013-07-01 Pedro Alves <palves@redhat.com>
4966
4967 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4968 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4969 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4970 <unistd.h>.
4971
4972 2013-07-01 Pedro Alves <palves@redhat.com>
4973
4974 Import the "unistd" gnulib module.
4975 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4976 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4977 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4978 import/m4/unistd_h.m4.
4979 * gnulib/aclocal.m4: Renenerate.
4980 * gnulib/config.in: Renenerate.
4981 * gnulib/configure: Renenerate.
4982 * gnulib/import/Makefile.am: Renenerate.
4983 * gnulib/import/Makefile.in: Renenerate.
4984 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4985 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4986 * gnulib/import/m4/off_t.m4: New file.
4987 * gnulib/import/m4/ssize_t.m4: New file.
4988 * gnulib/import/m4/sys_types_h.m4: New file.
4989 * gnulib/import/m4/unistd_h.m4: New file.
4990 * gnulib/import/sys_types.in.h: New file.
4991 * gnulib/import/unistd.c: New file.
4992 * gnulib/import/unistd.in.h: New file.
4993
4994 2013-07-01 Pedro Alves <palves@redhat.com>
4995
4996 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4997 defined instead of checking HAVE_UNISTD_H.
4998
4999 2013-07-01 Pedro Alves <palves@redhat.com>
5000
5001 Reimport gnulib from scratch.
5002 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5003 import/m4/onceonly.m4.
5004 * gnulib/aclocal.m4: Renegerate.
5005 * gnulib/config.in: Renegerate.
5006 * gnulib/configure: Renegerate.
5007 * gnulib/import/Makefile.in: Renegerate.
5008 * gnulib/import/extra/update-copyright: Renegerate.
5009 * gnulib/import/m4/onceonly.m4: Delete.
5010
5011 2013-07-01 Pedro Alves <palves@redhat.com>
5012
5013 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5014
5015 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5016
5017 Code cleanup.
5018 * remote.c (async_remote_interrupt_twice): Make it static.
5019 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5020
5021 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5022
5023 * ia64-linux-tdep.c: Include <ctype.h>.
5024 (ia64_linux_stap_is_single_operand): New function.
5025 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5026
5027 2013-06-28 Tom Tromey <tromey@redhat.com>
5028
5029 * Makefile.in (version.c): Use version.in, not
5030 common/version.in.
5031 * common/create-version.sh: Likewise.
5032 * common/version.in: Move...
5033 * version.in: ...here.
5034
5035 2013-06-28 Pedro Alves <palves@redhat.com>
5036
5037 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5038 here.
5039 * utils.h (pagination_enabled): Declare.
5040
5041 2013-06-28 Pedro Alves <palves@redhat.com>
5042
5043 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5044 Move higher up in file.
5045
5046 2013-06-28 Tom Tromey <tromey@redhat.com>
5047
5048 * tracepoint.c (deprecated_readline_begin_hook)
5049 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5050 declare.
5051
5052 2013-06-28 Pedro Alves <palves@redhat.com>
5053
5054 PR tui/14880
5055 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5056 checking if they're available.
5057 * value.c (value_available_contents_eq): Change comment.
5058 * value.h (value_available_contents_eq): Expand comment.
5059
5060 2013-06-27 Tom Tromey <tromey@redhat.com>
5061
5062 * target.c (find_run_target): Remove.
5063 * target.h (find_run_target): Remove.
5064
5065 2013-06-27 Tom Tromey <tromey@redhat.com>
5066
5067 * corelow.c (core_gdbarch): Now static.
5068
5069 2013-06-27 Tom Tromey <tromey@redhat.com>
5070
5071 * target.c (target_struct_index): Remove.
5072
5073 2013-06-27 Pedro Alves <palves@redhat.com>
5074
5075 * infrun.c: Remove comment describing the 'stepping over runtime
5076 loader dynamic symbol resolution code' mechanism; moved to
5077 gdbint.texinfo.
5078
5079 2013-06-27 Pedro Alves <palves@redhat.com>
5080
5081 * exceptions.c (catch_command_errors): Remove spurious space.
5082 * exceptions.h (catch_command_errors): Second parameter is "arg",
5083 not "command".
5084
5085 2013-06-27 Yao Qi <yao@codesourcery.com>
5086
5087 * common/create-version.sh: Update comments. Handle the case
5088 that TARGET_ALIAS is empty.
5089
5090 2013-06-26 Pedro Alves <palves@redhat.com>
5091
5092 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5093 comment.
5094
5095 2013-06-26 Pedro Alves <palves@redhat.com>
5096
5097 * infrun.c: Update comments on stepping over runtime loader
5098 dynamic symbol resolution code.
5099
5100 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5101
5102 * ax-gdb.h (union exp_element): Forward declare.
5103 * parser-defs.h: Include expression.h.
5104
5105 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5106
5107 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5108
5109 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5110
5111 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5112
5113 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5114
5115 Fix trace-status to output proper start-time and stop-time.
5116 * tracepoint.c (trace_status_command): Fix type of printf arg to
5117 prevent improper type conversion.
5118 (trace_status_mi): Likewise.
5119
5120 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5121
5122 * mips-tdep.c (mips_next_pc): Fix a typo.
5123
5124 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5125
5126 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5127
5128 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5129 Yao Qi <yao@codesourcery.com>
5130
5131 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5132 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5133 * mi/mi-main.c (print_variable_or_computed): New function.
5134 (mi_cmd_trace_frame_collected): New function.
5135 * tracepoint.c (find_trace_state_variable_by_number): New.
5136 (struct traceframe_info): Move to tracepoint.h
5137 (struct collection_list): Likewise.
5138 (do_collect_symbol): Include locals and arguments in the
5139 collected variables list.
5140 (clear_collection_list): Clear wholly collected variables list
5141 and computed variables list.
5142 (append_exp): New function.
5143 (encode_actions_1): Include variables in the wholly
5144 collected variables list. Include memory ranges and
5145 full-fledged expressions in the computed expressions list.
5146 (encode_actions): Move some code to ...
5147 Return the cleanup chain.
5148 (encode_actions_rsp): ... here. New function.
5149 (get_traceframe_location, get_traceframe_info): Remove static.
5150 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5151 (struct collection_list): Moved from tracepoint.c. Add two
5152 new fields 'wholly_collected' and 'computed'.
5153 (find_trace_state_variable_by_number): Declare.
5154 (encode_actions): Adjust declaration.
5155 (encode_actions_rsp): Declare.
5156 (get_traceframe_info, get_traceframe_location): Declare.
5157
5158 * NEWS: Mention new MI command -trace-frame-collected.
5159
5160 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5161 Yao Qi <yao@codesourcery.com>
5162
5163 * ctf.c (ctf_traceframe_info): Push trace state variables
5164 present in the trace data into the traceframe info object.
5165 * breakpoint.c (DEF_VEC_I): Remove.
5166 * common/filestuff.c (DEF_VEC_I): Likewise.
5167 * dwarf2loc.c (DEF_VEC_I): Likewise.
5168 * mi/mi-main.c (DEF_VEC_I): Likewise.
5169 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5170 * features/traceframe-info.dtd: Add tvar element and its
5171 attributes.
5172 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5173 (build_traceframe_info): Push trace state variables present in
5174 the trace data into the traceframe info object.
5175 (traceframe_info_start_tvar): New function.
5176 (tvar_attributes): New.
5177 (traceframe_info_children): Add "tvar" element.
5178 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5179
5180 * NEWS: Mention the change in GDB and GDBserver.
5181
5182 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5183 Yao Qi <yao@codesourcery.com>
5184
5185 * tracepoint.c (trace_dump_command): Move code to ...
5186 (get_traceframe_location): ... here. New.
5187
5188 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5189 Yao Qi <yao@codesourcery.com>
5190
5191 * tracepoint.c (trace_dump_command): GDB emits an error
5192 instead of a warning when a traceframe is not selected.
5193
5194 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5195 Yao Qi <yao@codesourcery.com>
5196
5197 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5198 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5199 in collection_list.
5200 (do_clear_collection_list, init_collection_list): New.
5201 (encode_actions): Add local variables 'tracepoint_list' and
5202 'stepping_list'. Call init_collection_list and make cleanup
5203 which calls do_clear_collection_list. Don't call
5204 clear_collection_list.
5205 (_initialize_tracepoint): Delete references to
5206 'tracepoint_list' and 'stepping_list'.
5207
5208 2013-06-25 Tom Tromey <tromey@redhat.com>
5209
5210 * common/create-version.sh (date): Use "$", not "$$" in sed
5211 expression.
5212
5213 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5214
5215 * NEWS (New targets): Add entry for TI MSP430.
5216
5217 2013-06-25 Yao Qi <yao@codesourcery.com>
5218
5219 * remote.c (remote_start_remote): Move code to upload tsv
5220 earlier.
5221
5222 2013-06-25 Yao Qi <yao@codesourcery.com>
5223 Hui Zhu <hui@codesourcery.com>
5224 Pedro Alves <palves@redhat.com>
5225
5226 PR breakpoints/15075
5227 PR breakpoints/15434
5228 * breakpoint.c (bpstat_stop_status): Call
5229 b->ops->after_condition_true.
5230 (update_dprintf_command_list): Don't append "continue" command
5231 to the command list of dprintf breakpoint.
5232 (base_breakpoint_after_condition_true): New function.
5233 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5234 (dprintf_after_condition_true): New function.
5235 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5236 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5237
5238 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5239
5240 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5241 (ALLDEPFILES): Add msp430-tdep.c.
5242 * configure.tgt (msp430*-*-elf): New target.
5243 * msp430-tdep.c: New file.
5244
5245 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5246
5247 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5248 microMIPS synthetic symbols.
5249
5250 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5251
5252 * objfiles.h (pc_in_section): New prototype.
5253 (in_plt_section): Remove name argument, replace prototype with
5254 static inline function.
5255 * mips-tdep.h: Include "objfiles.h".
5256 (in_mips_stubs_section): New function.
5257 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5258 in_solib_call_trampoline member.
5259 (hppa_in_solib_call_trampoline): Remove name argument.
5260 * objfiles.c (pc_in_section): New function.
5261 (in_plt_section): Remove function.
5262 * mips-linux-tdep.c: Include "objfiles.h".
5263 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5264 name argument. Return 1 rather than the low 16-bit halfword of
5265 any instruction examined.
5266 (mips_linux_in_dynsym_resolve_code): Update
5267 mips_linux_in_dynsym_stub call accordingly.
5268 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5269 rather than an equivalent hand-coded sequence.
5270 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5271 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5272 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5273 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5274 in_opd_section.
5275 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5276 on call to tdep->in_solib_call_trampoline.
5277 (hppa_in_solib_call_trampoline): Remove name argument, update
5278 according to in_plt_section change.
5279 (hppa_skip_trampoline_code): Update according to in_plt_section
5280 change.
5281 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5282 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5283 Likewise.
5284 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5285 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5286 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5287 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5288 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5289 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5290 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5291 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5292 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5293 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5294 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5295 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5296 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5297
5298 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5299
5300 * common/create-version.sh: Fix expansion of $host_alias
5301 and $target_alias in generation of HOST_NAME and TARGET_NAME
5302 (resp.).
5303
5304 2013-06-24 Tom Tromey <tromey@redhat.com>
5305
5306 * common/create-version.sh: New file.
5307 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5308 create-version.sh.
5309 (HFILES_NO_SRCDIR): Use common/version.h.
5310 * version.in: Move to ...
5311 * common/version.in: ... here. Replace date with "DATE".
5312 * version.h: Move to ...
5313 * common/version.h: ... here.
5314
5315 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5316
5317 * gdb/gnulib/Makefile.in: Update date in copyright header.
5318 * gdb/gnulib/configure.ac: Ditto.
5319 * gdb/gnulib/update-gnulib.sh: Ditto.
5320
5321 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5322
5323 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5324 "gdb/gnulib/import".
5325
5326 2013-06-21 Will Newton <will.newton@linaro.org>
5327
5328 * doublest.c (ldfrexp): Remove function.
5329 (convert_doublest_to_floatformat): Call frexpl instead of
5330 ldfrexp.
5331
5332 2013-06-21 Will Newton <will.newton@linaro.org>
5333
5334 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5335 * gnulib/aclocal.m4: Regenerate.
5336 * gnulib/config.in: Regenerate.
5337 * gnulib/configure: Regenerate.
5338 * gnulib/import/Makefile.am: Update.
5339 * gnulib/import/Makefile.in: Update.
5340 * gnulib/import/m4/gnulib-cache.m4: Update.
5341 * gnulib/import/m4/gnulib-comp.m4: Update.
5342 * gnulib/import/float+.h: Import.
5343 * gnulib/import/float.c: Import.
5344 * gnulib/import/float.in.h: Import.
5345 * gnulib/import/fpucw.h: Import.
5346 * gnulib/import/frexp.c: Import.
5347 * gnulib/import/frexpl.c: Import.
5348 * gnulib/import/isnan.c: Import.
5349 * gnulib/import/isnand-nolibm.h: Import.
5350 * gnulib/import/isnand.c: Import.
5351 * gnulib/import/isnanl-nolibm.h: Import.
5352 * gnulib/import/isnanl.c: Import.
5353 * gnulib/import/itold.c: Import.
5354 * gnulib/import/m4/exponentd.m4: Import.
5355 * gnulib/import/m4/exponentl.m4: Import.
5356 * gnulib/import/m4/float_h.m4: Import.
5357 * gnulib/import/m4/fpieee.m4: Import.
5358 * gnulib/import/m4/frexp.m4: Import.
5359 * gnulib/import/m4/frexpl.m4: Import.
5360 * gnulib/import/m4/isnand.m4: Import.
5361 * gnulib/import/m4/isnanl.m4: Import.
5362 * gnulib/import/m4/math_h.m4: Import.
5363 * gnulib/import/math.c: Import.
5364 * gnulib/import/math.in.h: Import.
5365
5366 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5367
5368 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5369 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5370 signature_INTEL_edx comparisons.
5371
5372 2013-06-20 Doug Evans <dje@google.com>
5373
5374 symtab/15652
5375 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5376 All callers updated.
5377 (open_dwp_file): If we can't find the dwp file, search the basename
5378 in debug-file-directory.
5379
5380 * dwarf2read.c (struct dwp_file): Fix comment.
5381 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5382
5383 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5384 better.
5385
5386 2013-06-20 Yao Qi <yao@codesourcery.com>
5387
5388 * breakpoint.c (create_breakpoint): Fix code indentation.
5389
5390 2013-06-20 Yao Qi <yao@codesourcery.com>
5391
5392 * breakpoint.c (create_breakpoints_sal_default): Remove
5393 parameter 'lsal'. Update declaration.
5394 (bkpt_create_breakpoints_sal): Caller update.
5395 (tracepoint_create_breakpoints_sal): Likewise.
5396
5397 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5398 Yao Qi <yao@codesourcery.com>
5399
5400 * NEWS: Mention the new option '--skip-unavailable' of command
5401 -data-list-register-values.
5402 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5403 --skip-unavailable option. Adjust to use output_register.
5404 (output_register): Add new 'skip_unavailable' parameter.
5405 Handle it.
5406
5407 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5408
5409 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5410 common/i386-gcc-cpuid.h.
5411 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5412 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5413 Copy the latest version from upstream gcc.
5414 * common/linux-btrace.c: Include i386-cpuid.h.
5415 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5416 call to i386_cpuid.
5417 (cpu_supports_btrace): Likewise.
5418 * go32-nat.c: Include i386-cpuid.h.
5419 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5420
5421 2013-06-19 Doug Evans <dje@google.com>
5422
5423 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5424 (get_section_index): Ditto.
5425
5426 2013-06-19 Tom Tromey <tromey@redhat.com>
5427
5428 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5429 "dprintf" help.
5430
5431 2013-06-18 Doug Evans <dje@google.com>
5432
5433 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5434 before using it.
5435 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5436 Move test of cu_index closer to use. Print complaint if cu_index
5437 is bad.
5438
5439 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5440
5441 * machoread.c (oso_vector): Delete this global.
5442 (macho_register_oso): Add new parameter "oso_vector_ptr".
5443 Use it instead of the "oso_vector" global.
5444 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5445 (macho_symfile_read): Use a local oso_vector, to be free'ed
5446 at the end of this function, in place of the old "oso_vector"
5447 global. Update various function calls accordingly. Use one
5448 single cleanup chain for the entire function.
5449
5450 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5451
5452 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5453 DWARF2_PER_OBJFILE by uses of DATA instead.
5454
5455 2013-06-18 Tom Tromey <tromey@redhat.com>
5456
5457 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5458 argument.
5459 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5460 Special case signals other than GDB_SIGNAL_TRAP.
5461 (explains_signal_watchpoint): New function.
5462 (base_breakpoint_explains_signal): Add 'sig' argument.
5463 (initialize_breakpoint_ops): Set 'explains_signal' method for
5464 watchpoints.
5465 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5466 signal argument.
5467 (bpstat_explains_signal): Likewise.
5468 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5469
5470 2013-06-18 Tom Tromey <tromey@redhat.com>
5471
5472 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5473
5474 2013-06-18 Tom Tromey <tromey@redhat.com>
5475
5476 * python/python.c (finish_python_initialization): Decref
5477 'pythondir' on failure path as well.
5478
5479 2013-06-18 Tom Tromey <tromey@redhat.com>
5480
5481 PR symtab/15391:
5482 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5483 after taking bits_to_skip into account. Sign extend byte_offset.
5484 * utils.h (gdb_sign_extend): Declare.
5485 * utils.c (gdb_sign_extend): New function.
5486
5487 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5488
5489 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5490
5491 2013-06-17 Pierre Muller <muller@sourceware.org>
5492
5493 * corelow.c (core_open): Print GDB signal name instead of target
5494 signal number.
5495
5496 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5497
5498 * .gitignore: Add /gcore.
5499
5500 2013-06-13 Doug Evans <dje@google.com>
5501
5502 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5503 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5504
5505 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5506
5507 * stack.c (backtrace_command_1): Fix indentation.
5508
5509 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5510
5511 * window-nat.c (thread_rec): Add missing empty line after
5512 local variable declaration.
5513
5514 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5515
5516 * windows-nat.c (thread_rec): Revert format used to print
5517 error code returned by SuspendThread from %d back to %u.
5518
5519 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5520
5521 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5522 ID in debug trace.
5523 (get_windows_debug_event): Likewise, for all debug traces.
5524
5525 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5526
5527 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5528 warning message.
5529
5530 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5531 Yao Qi <yao@codesourcery.com>
5532
5533 * mi/mi-main.c (get_register): Remove declaration.
5534 (output_register): Declare.
5535 (mi_cmd_data_list_register_values): Remove local variable
5536 'tuple_cleanup'. Move some code into output_register.
5537 (get_register): Renamed to ...
5538 (output_register): ... this. Output the register's
5539 "number" ui_out tuple here.
5540
5541 2013-06-07 Pedro Alves <palves@redhat.com>
5542
5543 * darwin-nat.c: Fix formating in copyright header.
5544 * darwin-nat.h: Likewise.
5545 * gnu-nat.c: Likewise.
5546 * machoread.c: Likewise.
5547
5548 2013-06-07 Pedro Alves <palves@redhat.com>
5549
5550 PR server/14823
5551 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5552 static. Output a global target description pointer.
5553 (init_registers_${name}): Adjust to initialize a
5554 target description structure.
5555
5556 2013-06-07 Will Newton <will.newton@linaro.org>
5557
5558 * printcmd.c (build_address_symbolic): Call
5559 gdbarch_addr_bits_remove for text minimal symbols.
5560
5561 2013-06-07 Will Newton <will.newton@linaro.org>
5562
5563 * MAINTAINERS: Add myself to Write After Approval.
5564
5565 2013-06-07 Yao Qi <yao@codesourcery.com>
5566
5567 * tracepoint.c (start_tracing): Move code to ...
5568 (trace_reset_local_state): ... here. New.
5569 (disconnect_tracing): Don't call set_current_traceframe,
5570 set_tracepoint_num, and set_traceframe_context. Call
5571 trace_reset_local_state instead.
5572 (tfile_close): Call trace_reset_local_state.
5573 * ctf.c (ctf_close): Likewise.
5574 * remote.c (remote_close): Likewise.
5575 * tracepoint.h (trace_reset_local_state): Declare.
5576
5577 2013-06-06 Doug Evans <dje@google.com>
5578
5579 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5580 and fix header docs.
5581
5582 2013-06-05 Doug Evans <dje@google.com>
5583 Keith Seitz <keiths@redhat.com>
5584
5585 PR 15519
5586 * cp-namespace.c (find_symbol_in_baseclass): Call
5587 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5588 Check result of call to lookup_symbol_static.
5589 Call lookup_static_symbol_aux unconditionally.
5590 Call check_typedef on base types before accessing them.
5591 (cp_lookup_nested_symbol): Fix comment.
5592
5593 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5594
5595 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5596 minimal symbols pointing to function descriptors.
5597
5598 2013-06-05 Tom Tromey <tromey@redhat.com>
5599
5600 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5601
5602 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5603 Pedro Alves <palves@redhat.com>
5604
5605 * remote.c (remote_wait_as): Restore signal handler before returning
5606 when GDB gets a notification.
5607
5608 2013-06-04 Gary Benson <gbenson@redhat.com>
5609
5610 PR 2328
5611 * breakpoint.h (handle_solib_event): Moved function declaration
5612 to solib.h.
5613 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5614 (bpstat_stop_status): Pass new argument to handle_solib_event.
5615 * solib.h (update_solib_breakpoints): New function declaration.
5616 (handle_solib_event): Moved function declaration from
5617 breakpoint.h.
5618 * solib.c (update_solib_breakpoints): New function.
5619 (handle_solib_event): Moved function from breakpoint.c.
5620 Updated to call solib_ops->handle_event if not NULL.
5621 * solist.h (target_so_ops): New fields "update_breakpoints" and
5622 "handle_event".
5623 * infrun.c (set_stop_on_solib_events): New function.
5624 (_initialize_infrun): Use the above for "set
5625 stop-on-solib-events".
5626 (handle_inferior_event): Pass new argument to handle_solib_event.
5627 * solib-svr4.c (probe.h): New include.
5628 (svr4_free_library_list): New forward declaration.
5629 (probe_action): New enum.
5630 (probe_info): New struct.
5631 (probe_info): New static variable.
5632 (NUM_PROBES): New definition.
5633 (svr4_info): New fields "using_xfer", "probes_table" and
5634 "solib_list".
5635 (free_probes_table): New function.
5636 (free_solib_list): New function.
5637 (svr4_pspace_data_cleanup): Free probes table and solib list.
5638 (svr4_copy_library_list): New function.
5639 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5640 (svr4_read_so_list): New parameter "prev_lm".
5641 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5642 (svr4_current_sos): New function.
5643 (probe_and_action): New struct.
5644 (hash_probe_and_action): New function.
5645 (equal_probe_and_action): Likewise.
5646 (register_solib_event_probe): Likewise.
5647 (solib_event_probe_at): Likewise.
5648 (solib_event_probe_action): Likewise.
5649 (solist_update_full): Likewise.
5650 (solist_update_incremental): Likewise.
5651 (disable_probes_interface_cleanup): Likewise.
5652 (svr4_handle_solib_event): Likewise.
5653 (svr4_update_solib_event_breakpoint): Likewise.
5654 (svr4_update_solib_event_breakpoints): Likewise.
5655 (svr4_create_solib_event_breakpoints): Likewise.
5656 (enable_break): Free probes table before creating breakpoints.
5657 Use svr4_create_solib_event_breakpoints to create breakpoints.
5658 (svr4_solib_create_inferior_hook): Free the solib list.
5659 (_initialize_svr4_solib): Initialise
5660 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5661
5662 2013-06-04 Gary Benson <gbenson@redhat.com>
5663
5664 * target.h (target_ops): New field
5665 "to_augmented_libraries_svr4_read".
5666 (target_augmented_libraries_svr4_read): New macro.
5667 * target.c (update_current_target): Handle
5668 to_augmented_libraries_svr4_read.
5669 * remote.c (remote_state): New field
5670 "augmented_libraries_svr4_read".
5671 (remote_augmented_libraries_svr4_read_feature): New function.
5672 (remote_protocol_features): Add entry for
5673 "augmented-libraries-svr4-read".
5674 (remote_augmented_libraries_svr4_read): New function.
5675 (init_remote_ops): Initialize
5676 remote_ops.to_augmented_libraries_svr4_read.
5677
5678 2013-06-04 Gary Benson <gbenson@redhat.com>
5679
5680 * NEWS: Update.
5681
5682 2013-06-04 Gary Benson <gbenson@redhat.com>
5683
5684 * objfiles.h (inhibit_section_map_updates): New function
5685 declaration.
5686 (resume_section_map_updates): Likewise.
5687 (resume_section_map_updates_cleanup): Likewise.
5688 * objfiles.c (objfile_pspace_info): Removed field
5689 "objfiles_changed_p". New fields "new_objfiles_available",
5690 "section_map_dirty" and "inhibit_updates".
5691 (allocate_objfile): Set new_objfiles_available.
5692 (free_objfile): Set section_map_dirty.
5693 (objfile_relocate1): Likewise.
5694 (in_plt_section): Likewise.
5695 (find_pc_section): Update the conditions under which the
5696 section map will be updated.
5697 (inhibit_section_map_updates): New function.
5698 (resume_section_map_updates): Likewise.
5699 (resume_section_map_updates_cleanup): Likewise.
5700
5701 2013-06-04 Gary Benson <gbenson@redhat.com>
5702
5703 * probe.h (get_probe_argument_count): New declaration.
5704 (evaluate_probe_argument): Likewise.
5705 * probe.c (get_probe_argument_count): New function.
5706 (evaluate_probe_argument): Likewise.
5707 (probe_safe_evaluate_at_pc): Use the above new functions.
5708
5709 2013-06-04 Alan Modra <amodra@gmail.com>
5710
5711 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5712 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5713 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5714 target mem reads on optional insns.
5715 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5716 ppc_insns_match_pattern calls.
5717 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5718 Add match for power7 thread safety insns, and new order of
5719 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5720 invocation in comment, and update rest of comment.
5721 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5722 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5723 (ppc64_standard_linkage2_target): Update insn offsets.
5724 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5725 stubs first. Update calls.
5726
5727 2013-06-04 Yao Qi <yao@codesourcery.com>
5728
5729 * solib.c (solib_find): Don't need dir separator if path has
5730 drive spec.
5731
5732 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5733
5734 Revert (indirectly causes a SIGSEGV):
5735 * machoread.c (macho_symfile_read): Assign first cleanup to
5736 'back_to'.
5737
5738 2013-06-03 Yao Qi <yao@codesourcery.com>
5739
5740 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5741 mi-parse.c. Make them static.
5742 (mi_all_values): Likewise.
5743 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5744 mi_parse_print_values. Make it external.
5745 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5746 Remove the declarations.
5747 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5748 * mi/mi-parse.h (mi_parse_print_values): Declare.
5749 * mi/mi-cmd-stack.c: Include mi-parse.h.
5750 (parse_print_values): Remove
5751 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5752 of parse_print_values.
5753 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5754
5755 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5756 Yao Qi <yao@codesourcery.com>
5757
5758 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5759 (encode_actions): Move code to ...
5760 (all_tracepoint_actions_and_cleanup): ... here. New.
5761 (trace_dump_command): Likewise.
5762
5763 2013-05-30 Tom Tromey <tromey@redhat.com>
5764
5765 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5766
5767 2013-05-30 Tom Tromey <tromey@redhat.com>
5768
5769 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5770 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5771 'old_chain' argument. Add 'parser_result' argument.
5772 (gdb_xml_create_parser_and_cleanup): Remove old version.
5773 (gdb_xml_parse_quick): Update.
5774 (xml_process_xincludes): Update.
5775 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5776 declare.
5777
5778 2013-05-30 Tom Tromey <tromey@redhat.com>
5779
5780 * probe.c (collect_probes): Check arguments for NULL before
5781 calling compile_rx_or_error.
5782 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5783 Remove NULL return.
5784
5785 2013-05-30 Tom Tromey <tromey@redhat.com>
5786
5787 * infrun.c (adjust_pc_after_break): Introduce an outer null
5788 cleanup.
5789
5790 2013-05-30 Tom Tromey <tromey@redhat.com>
5791
5792 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5793
5794 2013-05-30 Tom Tromey <tromey@redhat.com>
5795
5796 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5797 for 'old_chain'. Do not check 'head' before processing
5798 cleanups.
5799
5800 2013-05-30 Tom Tromey <tromey@redhat.com>
5801
5802 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5803 "cleanup_tuple".
5804
5805 2013-05-30 Tom Tromey <tromey@redhat.com>
5806
5807 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5808 inner scope. Unconditionally call do_cleanups.
5809
5810 2013-05-30 Tom Tromey <tromey@redhat.com>
5811
5812 * source.c (find_and_open_source): Call do_cleanups.
5813
5814 2013-05-30 Tom Tromey <tromey@redhat.com>
5815
5816 * linux-thread-db.c (thread_db_load_search): Unconditionally
5817 call do_cleanups.
5818
5819 2013-05-30 Tom Tromey <tromey@redhat.com>
5820
5821 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5822 for 'cleanup'; instead use a later one.
5823
5824 2013-05-30 Tom Tromey <tromey@redhat.com>
5825
5826 * python/py-breakpoint.c (bppy_get_commands): Use
5827 explicit, unconditional return.
5828 * python/py-frame.c (frapy_read_var): Likewise.
5829 * python/python.c (gdbpy_decode_line): Likewise.
5830
5831 2013-05-30 Tom Tromey <tromey@redhat.com>
5832
5833 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5834 do_cleanups on all return paths.
5835
5836 2013-05-30 Tom Tromey <tromey@redhat.com>
5837
5838 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5839
5840 2013-05-30 Tom Tromey <tromey@redhat.com>
5841
5842 * stabsread.c (read_struct_type): Call do_cleanups along
5843 all return paths.
5844
5845 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5846
5847 * mips-linux-tdep.c: Adjust formatting throughout.
5848
5849 2013-05-30 Tom Tromey <tromey@redhat.com>
5850
5851 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5852 along all return paths.
5853
5854 2013-05-30 Tom Tromey <tromey@redhat.com>
5855
5856 * symfile.c (find_separate_debug_file): Call do_cleanups
5857 along all return paths.
5858
5859 2013-05-30 Tom Tromey <tromey@redhat.com>
5860
5861 * symtab.c (search_symbols): Introduce a null cleanup for
5862 'retval_chain'.
5863
5864 2013-05-30 Tom Tromey <tromey@redhat.com>
5865
5866 * python/py-value.c (valpy_binop): Call do_cleanups before
5867 exiting loop.
5868
5869 2013-05-30 Tom Tromey <tromey@redhat.com>
5870
5871 * python/py-prettyprint.c (print_children): Remove extra
5872 do_cleanups call.
5873
5874 2013-05-30 Tom Tromey <tromey@redhat.com>
5875
5876 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5877 all return paths.
5878
5879 2013-05-30 Tom Tromey <tromey@redhat.com>
5880
5881 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5882 along all return paths.
5883
5884 2013-05-30 Tom Tromey <tromey@redhat.com>
5885
5886 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5887 call do_cleanups.
5888
5889 2013-05-30 Tom Tromey <tromey@redhat.com>
5890
5891 * varobj.c (c_value_of_root): Call do_cleanups along all
5892 return paths.
5893
5894 2013-05-30 Tom Tromey <tromey@redhat.com>
5895
5896 * tracepoint.c (trace_dump_command): Unconditionally call
5897 do_cleanups.
5898
5899 2013-05-30 Tom Tromey <tromey@redhat.com>
5900
5901 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5902 do_cleanups earlier.
5903
5904 2013-05-30 Tom Tromey <tromey@redhat.com>
5905
5906 * machoread.c (macho_symfile_read): Assign first cleanup to
5907 'back_to'.
5908
5909 2013-05-30 Tom Tromey <tromey@redhat.com>
5910
5911 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5912
5913 2013-05-30 Tom Tromey <tromey@redhat.com>
5914
5915 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5916
5917 2013-05-30 Tom Tromey <tromey@redhat.com>
5918
5919 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5920 call discard_cleanups.
5921 (inf_ptrace_attach): Likewise.
5922
5923 2013-05-30 Tom Tromey <tromey@redhat.com>
5924
5925 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5926 return paths.
5927 (mips_initialize): Likewise.
5928 (common_open): Call do_cleanups.
5929
5930 2013-05-30 Tom Tromey <tromey@redhat.com>
5931
5932 * utils.c (internal_vproblem): Call do_cleanups.
5933
5934 2013-05-30 Tom Tromey <tromey@redhat.com>
5935
5936 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5937
5938 2013-05-30 Tom Tromey <tromey@redhat.com>
5939
5940 * cli/cli-script.c (setup_user_args): Don't return after error.
5941
5942 2013-05-30 Tom Tromey <tromey@redhat.com>
5943
5944 * somread.c (som_symtab_read): Call do_cleanups.
5945
5946 2013-05-30 Tom Tromey <tromey@redhat.com>
5947
5948 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5949
5950 2013-05-30 Tom Tromey <tromey@redhat.com>
5951
5952 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5953 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5954 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5955 * source.c (show_substitute_path_command): Call do_cleanups.
5956 (unset_substitute_path_command, set_substitute_path_command):
5957 Likewise.
5958 * symfile.c (load_command): Call do_cleanups.
5959
5960 2013-05-30 Tom Tromey <tromey@redhat.com>
5961
5962 * contrib/cleanup_check.py: New file.
5963 * contrib/gcc-with-excheck: Add option parsing.
5964
5965 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5966
5967 * windows-nat.c (windows_delete_thread): Add missing space
5968 in cast expression.
5969
5970 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5971
5972 * inferior.c (top level): Include tilde.h.
5973 (add_inferior_command): Call tilde_expand on the value of 'exec'
5974 argument.
5975
5976 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5977 Yao Qi <yao@codesourcery.com>
5978
5979 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5980 Caller update.
5981 (encode_actions): Likewise.
5982 * remote.c (remote_download_tracepoint): Caller update.
5983 * tracepoint.h (encode_actions): Update declaration.
5984
5985 2013-05-30 Pedro Alves <palves@redhat.com>
5986
5987 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5988 pointer.
5989
5990 2013-05-30 Yao Qi <yao@codesourcery.com>
5991
5992 * remote.c (remote_check_symbols): Remove unused parameter
5993 'objfile'.
5994 Declaration update.
5995 (remote_start_remote, remote_new_objfile): Caller update.
5996
5997 2013-05-30 Yao Qi <yao@codesourcery.com>
5998
5999 * mi/mi-cmds.c (mi_cmds): Define MI command
6000 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6001 DEF_MI_CMD_CLI.
6002
6003 2013-05-29 Pedro Alves <palves@redhat.com>
6004
6005 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6006 (remote_insert_watchpoint, remote_remove_watchpoint)
6007 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6008 (remote_verify_memory, compare_sections_command)
6009 (remote_search_memory): Set the general process/thread on the
6010 remote side.
6011
6012 2013-05-29 Pedro Alves <palves@redhat.com>
6013
6014 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6015 (_initialize_aarch64_tdep): Don't call
6016 initialize_tdesc_aarch64_without_fpu.
6017 * features/Makefile (WHICH): Remove reference to
6018 aarch64-without-fpu.
6019 * features/aarch64-without-fpu.c: Delete file.
6020 * regformats/aarch64-without-fpu.dat: Delete file.
6021
6022 2013-05-28 Yao Qi <yao@codesourcery.com>
6023
6024 * tracepoint.c (stringify_collection_list): Remove parameter
6025 'string'.
6026 (encode_actions): Caller update. Remove local variables.
6027
6028 2013-05-24 Yao Qi <yao@codesourcery.com>
6029
6030 * tracepoint.c (TFILE_PID): Remove.
6031 (tfile_open): Don't add thread and inferior.
6032 (tfile_close): Don't set 'inferior_ptid'. Don't call
6033 exit_inferior_silent.
6034 (tfile_thread_alive): Remove.
6035 (init_tfile_ops): Don't set field 'to_thread_alive' of
6036 tfile_ops.
6037
6038 2013-05-23 Doug Evans <dje@google.com>
6039
6040 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6041
6042 2013-05-23 Pedro Alves <palves@redhat.com>
6043
6044 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6045 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6046 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6047 Only define if HAVE_SOCKETS is defined.
6048 * configure.ac: Check for sys/socket.h.
6049 * config.in, configure: Regenerate.
6050
6051 2013-05-23 Pedro Alves <palves@redhat.com>
6052
6053 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6054 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6055 printing uint32_t variables.
6056
6057 2013-05-23 Pedro Alves <palves@redhat.com>
6058
6059 * NEWS: Mention GDBserver range stepping support.
6060
6061 2013-05-23 Yao Qi <yao@codesourcery.com>
6062 Pedro Alves <palves@redhat.com>
6063
6064 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6065 field.
6066 * infcmd.c (step_once, until_next_command): Enable range stepping.
6067 * infrun.c (displaced_step_prepare): Disable range stepping.
6068 (resume): Disable range stepping if stepping over a breakpoint or
6069 we have software watchpoints. If range stepping is enabled,
6070 assert the thread is in the stepping range.
6071 (clear_proceed_status_thread): Clear may_range_step.
6072 (handle_inferior_event): Disable range stepping as soon as we know
6073 the thread that hit the event. Re-enable it whenever we're going
6074 to step with a step range.
6075 * remote.c (struct vCont_action_support) <r>: New field.
6076 (use_range_stepping): New global.
6077 (remote_vcont_probe): Handle 'r' action.
6078 (append_resumption): Append an 'r' action if the thread may range
6079 step.
6080 (show_range_stepping): New function.
6081 (set_range_stepping): New function.
6082 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6083 'set range-stepping' and 'show range-stepping' commands.
6084 * NEWS: Mention range stepping, the new vCont;r action, and the
6085 new "set/show range-stepping" commands.
6086
6087 2013-05-23 Yao Qi <yao@codesourcery.com>
6088 Pedro Alves <palves@redhat.com>
6089
6090 * remote.c (struct vCont_action_support): New struct.
6091 (struct remote_state) <support_vCont_t>: Remove field.
6092 <vCont_actions_support>: New field.
6093 (remote_vcont_probe, remote_stop_ns): Update.
6094
6095 2013-05-23 Yao Qi <yao@codesourcery.com>
6096 Pedro Alves <palves@redhat.com>
6097
6098 * gdbthread.h (pc_in_thread_step_range): New declaration.
6099 * thread.c (pc_in_thread_step_range): New function.
6100 * infrun.c (handle_inferior_event): Use it.
6101
6102 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6103
6104 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6105 of sprintf.
6106
6107 2013-05-22 Keith Seitz <keiths@redhat.com>
6108
6109 * ada-lang.c (is_known_support_routine): Add explicit free of
6110 'func_name' from find_frame_funname.
6111 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6112 for func_name from find_frame_funname.
6113 * python/py-frame.c (frapy_name): Add explicit free of
6114 'name' from find_frame_funname.
6115 * stack.c (find_frame_funname): Add comment explaining that
6116 funcp must be freed by the caller.
6117 Return copy of symbol names instead of pointers.
6118 (print_frame): Add a cleanup for 'funname' from
6119 find_frame_funname.
6120 * stack.h (find_frame_funname): Remove "const" from
6121 'funname' parameter.
6122
6123 2013-05-22 Tom Tromey <tromey@redhat.com>
6124
6125 PR c++/15401:
6126 * c-valprint.c (c_value_print): Use value_addr for
6127 references. Convert back to reference type with value_ref.
6128
6129 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6130
6131 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6132 unloaded DLL, it will be done by handle_solib_event. See
6133 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6134 details.
6135
6136 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6137
6138 * ui-out.c: Create typedef ui_out_level_p and define vector
6139 operations for that type.
6140 (struct ui_out): Use a vector instead of an array.
6141 (current_level): Return level from a vector.
6142 (push_level): Create a level in a vector.
6143 (pop_level): Delete a level in a vector.
6144 (ui_out_new): Create initial level zero level, and store in a
6145 vector.
6146 (ui_out_destroy): Add vector cleanup.
6147
6148 2013-05-22 Pedro Alves <palves@redhat.com>
6149
6150 * python/python-internal.h (gdb_Py_DECREF): Tag with
6151 "ARI: editCase function".
6152
6153 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6154
6155 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6156
6157 2013-05-21 Pedro Alves <palves@redhat.com>
6158
6159 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6160 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6161 * python/py-utils.c (py_decref): Don't check for NULL before
6162 calling Py_DECREF.
6163
6164 2013-05-21 Pedro Alves <palves@redhat.com>
6165
6166 * python/py-utils.c (py_decref): Remove extra braces.
6167 (gdb_pymodule_addobject): Remove extra braces.
6168 * python-internal.h (gdb_Py_DECREF): New static inline function.
6169 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6170
6171 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6172
6173 * breakpoints.c (detach_breakpoints): Do not
6174 detach breakpoints locations with loc_type bp_loc_other.
6175
6176 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6177
6178 Workaround Python 2.6.
6179 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6180 a block.
6181
6182 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6183
6184 Code cleanup: constification.
6185 * solib.c (solib_ops): Make return type and ops variable type const.
6186 (set_solib_ops): Make the new_ops parameter and ops variable const.
6187 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6188 (solib_add, solib_keep_data_in_core, clear_solib)
6189 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6190 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6191 const.
6192 * solib.h (set_solib_ops): Make the new_ops parameter const.
6193
6194 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6195
6196 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6197 variable.
6198 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6199 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6200 (SYSTEM_GDBINIT_FILES): New variables.
6201 (all): Add stamp-system-gdbinit.
6202 (stamp-system-gdbinit): New rule.
6203 (clean-system-gdbinit, install-system-gdbinit)
6204 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6205 (install-only): Add dependency on install-system-gdbinit.
6206 (uninstall): Add dependency on uninstall-system-gdbinit.
6207 (clean): Add dependency on clean-system-gdbinit.
6208 * system-gdbinit/elinos.py: New file.
6209 * system-gdbinit/wrs-linux.py: New file.
6210
6211 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6212
6213 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6214
6215 2013-05-21 Hui Zhu <hui@codesourcery.com>
6216
6217 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6218 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6219 * mi/mi-cmd-break.c (ctype.h): New include.
6220 (gdb_obstack.h): New include.
6221 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6222 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6223 (mi_cmd_dprintf_insert): New.
6224 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6225 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6226
6227 2013-05-20 Tom Tromey <tromey@redhat.com>
6228
6229 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6230
6231 2013-05-20 Tom Tromey <tromey@redhat.com>
6232
6233 * python/py-value.c (valpy_get_dynamic_type): Simplify
6234 dynamic_type assignment. Use Py_XINCREF.
6235
6236 2013-05-20 Tom Tromey <tromey@redhat.com>
6237
6238 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6239
6240 2013-05-20 Tom Tromey <tromey@redhat.com>
6241
6242 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6243 (gdbpy_selected_frame): Move object-construction code
6244 out of TRY_CATCH.
6245
6246 2013-05-20 Tom Tromey <tromey@redhat.com>
6247
6248 * python/py-arch.c (gdbpy_initialize_arch): Use
6249 gdb_pymodule_addobject.
6250 * python/py-block.c (gdbpy_initialize_blocks): Use
6251 gdb_pymodule_addobject.
6252 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6253 gdb_pymodule_addobject.
6254 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6255 gdb_pymodule_addobject.
6256 * python/py-event.c (gdbpy_initialize_event_generic): Use
6257 gdb_pymodule_addobject.
6258 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6259 gdb_pymodule_addobject.
6260 * python/py-evts.c (add_new_registry): Use
6261 gdb_pymodule_addobject.
6262 (gdbpy_initialize_py_events): Likewise.
6263 * python/py-finishbreakpoint.c
6264 (gdbpy_initialize_finishbreakpoints): Use
6265 gdb_pymodule_addobject.
6266 * python/py-frame.c (gdbpy_initialize_frames): Use
6267 gdb_pymodule_addobject.
6268 * python/py-function.c (gdbpy_initialize_functions): Use
6269 gdb_pymodule_addobject.
6270 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6271 gdb_pymodule_addobject.
6272 * python/py-infthread.c (gdbpy_initialize_thread): Use
6273 gdb_pymodule_addobject.
6274 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6275 gdb_pymodule_addobject.
6276 * python/py-param.c (gdbpy_initialize_parameters): Use
6277 gdb_pymodule_addobject.
6278 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6279 gdb_pymodule_addobject.
6280 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6281 gdb_pymodule_addobject.
6282 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6283 gdb_pymodule_addobject.
6284 * python/py-type.c (gdbpy_initialize_types): Use
6285 gdb_pymodule_addobject.
6286 * python/py-utils.c (gdb_pymodule_addobject): New function.
6287 * python/py-value.c (gdbpy_initialize_values): Use
6288 gdb_pymodule_addobject.
6289 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6290 * python/python.c (_initialize_python): Use
6291 gdb_pymodule_addobject.
6292
6293 2013-05-20 Tom Tromey <tromey@redhat.com>
6294
6295 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6296 * python/py-param.c (get_set_value, get_show_value): Use
6297 explicit decrefs.
6298 * python/python.c (start_type_printers, apply_type_printers):
6299 Use explicit decrefs.
6300
6301 2013-05-20 Tom Tromey <tromey@redhat.com>
6302
6303 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6304 incref the module.
6305
6306 2013-05-20 Tom Tromey <tromey@redhat.com>
6307
6308 * python/python.c (gdbpy_run_events): Decref the result
6309 of PyObject_CallObject.
6310
6311 2013-05-20 Tom Tromey <tromey@redhat.com>
6312
6313 * python/py-symtab.c (set_sal): Use
6314 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6315 (symtab_and_line_to_sal_object): Update.
6316
6317 2013-05-20 Tom Tromey <tromey@redhat.com>
6318
6319 * python/py-param.c (compute_enum_values): Decref 'item'.
6320
6321 2013-05-20 Tom Tromey <tromey@redhat.com>
6322
6323 * mi/mi-main.c: Include python-internal.h.
6324 (mi_cmd_list_features): Check gdb_python_initialized.
6325 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6326 (python_inferior_exit, python_new_objfile, add_thread_object)
6327 (delete_thread_object, py_free_inferior): Check
6328 gdb_python_initialized.
6329 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6330 gdb_python_initialized.
6331 * python/py-type.c (save_objfile_types): Check
6332 gdb_python_initialized.
6333 * python/python-internal.h (gdb_python_initialized): Declare.
6334 * python/python.c (ensure_python_env): Throw exception if
6335 Python not initialized.
6336 (before_prompt_hook, source_python_script_for_objfile)
6337 (start_type_printers, apply_type_printers,
6338 free_type_printers): Check gdb_python_initialized.
6339 * varobj.c (varobj_get_display_hint)
6340 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6341 (install_new_value_visualizer, varobj_set_visualizer)
6342 (value_get_print_value): Check gdb_python_initialized.
6343
6344 2013-05-20 Tom Tromey <tromey@redhat.com>
6345
6346 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6347 Check errors.
6348 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6349 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6350 Check errors.
6351 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6352 Check errors.
6353 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6354 Check errors.
6355 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6356 Check errors.
6357 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6358 init function to return 'int'.
6359 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6360 Return 'int'. Check errors.
6361 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6362 Check errors.
6363 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6364 Return 'int'. Check errors.
6365 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6366 Check errors.
6367 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6368 Check errors.
6369 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6370 Check errors.
6371 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6372 Check errors.
6373 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6374 Check errors.
6375 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6376 Check errors.
6377 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6378 Check errors.
6379 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6380 Check errors.
6381 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6382 Check errors.
6383 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6384 Check errors.
6385 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6386 Check errors.
6387 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6388 Check errors.
6389 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6390 Check errors.
6391 * python/python-internal.h (gdbpy_initialize_auto_load,
6392 gdbpy_initialize_values, gdbpy_initialize_frames,
6393 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6394 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6395 gdbpy_initialize_blocks, gdbpy_initialize_types,
6396 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6397 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6398 gdbpy_initialize_finishbreakpoints,
6399 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6400 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6401 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6402 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6403 gdbpy_initialize_signal_event,
6404 gdbpy_initialize_breakpoint_event,
6405 gdbpy_initialize_continue_event,
6406 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6407 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6408 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6409 * python/python.c (gdb_python_initialized): New global.
6410 (gdbpy_initialize_events): Return 'int'. Check errors.
6411 (_initialize_python): Check errors. Set
6412 gdb_python_initialized.
6413
6414 2013-05-20 Tom Tromey <tromey@redhat.com>
6415
6416 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6417 Decref the reslut of PyObject_CallMethod.
6418
6419 2013-05-20 Tom Tromey <tromey@redhat.com>
6420
6421 * python/py-event.c (gdbpy_initialize_event_generic): Return
6422 early if PyType_Ready fails.
6423
6424 2013-05-20 Tom Tromey <tromey@redhat.com>
6425
6426 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6427 as 'default' in the switch.
6428
6429 2013-05-20 Tom Tromey <tromey@redhat.com>
6430
6431 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6432 get_addr_from_python calls out of TRY_CATCH.
6433 (infpy_write_memory, infpy_search_memory): Likewise.
6434 * python/py-utils.c (get_addr_from_python): Return negative
6435 value on error. Use TRY_CATCH.
6436 * python/python-internal.h (get_addr_from_python): Use
6437 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6438
6439 2013-05-20 Tom Tromey <tromey@redhat.com>
6440
6441 * python/py-event.c (evpy_emit_event): Decref the
6442 result of PyObject_CallFunctionObjArgs.
6443
6444 2013-05-20 Tom Tromey <tromey@redhat.com>
6445
6446 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6447 Correctly decref.
6448
6449 2013-05-20 Tom Tromey <tromey@redhat.com>
6450
6451 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6452
6453 2013-05-20 Tom Tromey <tromey@redhat.com>
6454
6455 * python/py-event.h (gdbpy_initialize_event_generic): Use
6456 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6457 * python/py-evts.c (add_new_registry): Use
6458 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6459 * python/python-internal.h
6460 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6461
6462 2013-05-20 Tom Tromey <tromey@redhat.com>
6463
6464 * python/py-arch.c (archpy_disassemble): Update.
6465 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6466 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6467 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6468 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6469 macro.
6470 (GDB_PY_HANDLE_EXCEPTION): Update.
6471 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6472
6473 2013-05-20 Tom Tromey <tromey@redhat.com>
6474
6475 * python/python-internal.h (events_object_type): Remove.
6476
6477 2013-05-20 Tom Tromey <tromey@redhat.com>
6478
6479 * python/py-event.h (evpy_emit_event): Use
6480 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6481 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6482 New macro.
6483
6484 2013-05-20 Tom Tromey <tromey@redhat.com>
6485
6486 * py-evtregistry.c (create_event_object): Decref
6487 eventregistry_object if PyList_New fails.
6488
6489 2013-05-20 Tom Tromey <tromey@redhat.com>
6490
6491 * py-cmd.c (gdbpy_string_to_argv): Check result of
6492 PyList_New.
6493
6494 2013-05-20 Tom Tromey <tromey@redhat.com>
6495
6496 * python/python.c (before_prompt_hook): Add cleanup to
6497 decref 'hook'.
6498
6499 2013-05-20 Tom Tromey <tromey@redhat.com>
6500
6501 * python/py-function.c (fnpy_init): Decref result of
6502 PyObject_GetAttrString.
6503
6504 2013-05-20 Tom Tromey <tromey@redhat.com>
6505
6506 * python/py-threadevent.c (get_event_thread): Use
6507 CPYCHECKER_RETURNS_BORROWED_REF.
6508 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6509 New define.
6510 (pspace_to_pspace_object, objfile_to_objfile_object)
6511 (find_thread_object): Use it.
6512
6513 2013-05-20 Tom Tromey <tromey@redhat.com>
6514
6515 * python/py-arch.c (arch_object_type): Use
6516 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6517 * python/py-block.c (block_syms_iterator_object_type):
6518 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6519 * python/py-bpevent.c (breakpoint_event_object_type):
6520 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6521 * python/py-cmd.c (cmdpy_object_type): Use
6522 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6523 * python/py-continueevent.c (continue_event_object_type):
6524 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6525 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6526 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6527 * python/py-events.h (thread_event_object_type):
6528 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6529 * python/py-evtregistry.c (eventregistry_object_type): Use
6530 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6531 * python/py-exitedevent.c (exited_event_object_type):
6532 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6533 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6534 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6535 * python/py-function.c (fnpy_object_type): Use
6536 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6537 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6538 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6539 * python/py-infthread.c (thread_object_type): Use
6540 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6541 * python/py-lazy-string.c (lazy_string_object_type):
6542 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6543 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6544 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6545 * python/py-objfile.c (objfile_object_type): Use
6546 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6547 * python/py-param.c (parmpy_object_type):
6548 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6549 * python/py-progspace.c (pspace_object_type):
6550 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6551 * python/py-signalevent.c (signal_event_object_type):
6552 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6553 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6554 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6555 * python/py-type.c (type_object_type, field_object_type)
6556 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6557 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6558 define.
6559 (value_object_type, block_object_type, symbol_object_type)
6560 (event_object_type, stop_event_object_type, breakpoint_object_type)
6561 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6562
6563 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6564
6565 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6566 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6567
6568 2013-05-20 Doug Evans <dje@google.com>
6569
6570 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6571 For Fission.
6572 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6573 reading_dwo_directly.
6574 (struct signatured_type): New member dwo_unit.
6575 (struct die_reader_specs): New member comp_dir.
6576 (create_signatured_type_table_from_index): Use malloc for
6577 all_type_units instead of objfile's obstack.
6578 (create_all_type_units): Ditto.
6579 (fill_in_sig_entry_from_dwo_entry): New function.
6580 (add_type_unit): New function.
6581 (lookup_dwo_signatured_type): New function.
6582 (lookup_dwp_signatured_type): New function.
6583 (lookup_signatured_type): New arg cu. All callers updated.
6584 (init_cu_die_reader): Initialize comp_dir.
6585 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6586 Change assert of matching type signatures to call error on mismatch.
6587 (lookup_dwo_unit): Add assert.
6588 (init_tu_and_read_dwo_dies): New function.
6589 (init_cutu_and_read_dies): Call it.
6590 (build_type_unit_groups): Handle case of no type unit groups created.
6591 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6592 (lookup_dwo_cutu): Tweak complaint.
6593 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6594 (dwarf2_per_objfile_free): Free all_type_units.
6595
6596 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6597
6598 * windows-nat.c (handle_unload_dll): Add missing empty line.
6599
6600 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6601
6602 * dwarf2read.c (prototyped_function_p): New function.
6603 (read_subroutine_type): Use it.
6604
6605 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6606
6607 * rs6000-aix-tdep.c: De-indent some example code provided
6608 as a comment.
6609
6610 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6611
6612 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6613 region is ok for a hardware watchpoint using the new ptrace interface
6614 on Power servers.
6615
6616 2013-05-17 Doug Evans <dje@google.com>
6617
6618 * NEWS: Mention new maintenance commands check-symtabs, and
6619 expand-symtabs, and renamed check-psymtabs.
6620 * psymtab.c (maintenance_check_psymtabs): Renamed from
6621 maintenance_check_symtabs. Only process already-expanded symbol
6622 tables.
6623 (_initialize_psymtab): Update.
6624 * symmisc.c (maintenance_check_symtabs): New function.
6625 (maintenance_expand_name_matcher): New function
6626 (maintenance_expand_file_matcher): New function
6627 (maintenance_expand_symtabs): New function.
6628 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6629 commands.
6630
6631 2013-05-17 Tom Tromey <tromey@redhat.com>
6632
6633 * python/py-inferior.c (infpy_read_memory): Don't call
6634 PyErr_SetString if PyObject_New fails.
6635 * python/py-frame.c (frame_info_to_frame_object): Don't call
6636 PyErr_SetString if PyObject_New fails.
6637
6638 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6639
6640 * acinclude.m4: Add check for dlopen in libdl.
6641 * configure.ac: Ditto.
6642 * configure: Regenerate.
6643
6644 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6645
6646 * frame.c (frame_stash): Convert to htab.
6647 (frame_addr_hash): New function.
6648 (frame_addr_hash_eq): New function.
6649 (frame_stash_create): Convert function to create
6650 a hash table.
6651 (frame_stash_add): Convert function to add an entry to a hash
6652 table.
6653 (frame_stash_find): Convert function to search the hash table.
6654 (frame_stash_invalidate): Convert function to empty the hash
6655 table.
6656 (get_frame_id): Only add to stash if a frame_id is created.
6657 (_initialize_frame): Call frame_stash_create.
6658
6659 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6660
6661 * configure.ac: Ensure MIG is available when building for GNU Hurd
6662 hosts.
6663 * configure: Regenerate.
6664
6665 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6666
6667 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6668
6669 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6670
6671 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6672 all cleanups are done before returning from this function.
6673
6674 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6675
6676 * utils.h: #include "exceptions.h".
6677 (enum errors): Remove partial declaration.
6678
6679 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6680
6681 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6682 * gdbarch.h, gdbarch.c: Regenerate.
6683 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6684 handling.
6685
6686 * rs6000-aix-tdep.h: New file.
6687 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6688 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6689 "xml-utils.h".
6690 (struct field_info, struct ld_info_desc): New types.
6691 (ld_info32_desc, ld_info64_desc): New static constants.
6692 (struct ld_info): New type.
6693 (rs6000_aix_extract_ld_info): New function.
6694 (rs6000_aix_shared_library_to_xml): Likewise.
6695 (rs6000_aix_ld_info_to_xml): Likewise.
6696 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6697 (rs6000_aix_init_osabi): Add call to
6698 set_gdbarch_core_xfer_shared_libraries_aix.
6699 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6700 Remove "xml-utils.h" include.
6701 (LdInfo): Delete typedef.
6702 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6703 Delete macros.
6704 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6705 Adjust code accordingly.
6706 (rs6000_core_ldinfo): Delete, folded into
6707 rs6000_aix_core_xfer_shared_libraries_aix.
6708 (rs6000_xfer_shared_library): Delete.
6709 (rs6000_xfer_shared_libraries): Reimplement.
6710
6711 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6712
6713 * record.c (record_goto_cmdlist): New.
6714 (cmd_record_goto): Split into this ...
6715 (cmd_record_goto_begin): ... this
6716 (cmd_record_goto_end): ... and this.
6717 (_initialize_record): Change "record goto" to prefix command.
6718 Add commands for "record goto begin" and "record goto end".
6719 Add an alias for "record goto start" to "record goto begin".
6720
6721 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6722
6723 * linespec.c (convert_linespec_to_sals): New comment for
6724 SOURCE_FILENAME assignment.
6725
6726 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6727
6728 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6729 internal_warning.
6730
6731 2013-05-14 Tom Tromey <tromey@redhat.com>
6732
6733 * eval.c (parse_and_eval_long): Make 'exp' const.
6734 * value.h (parse_and_eval_long): Update.
6735
6736 2013-05-14 Tom Tromey <tromey@redhat.com>
6737
6738 * ui-file.c (gdb_fopen): Make arguments const.
6739 * ui-file.h (gdb_fopen): Make arguments const.
6740
6741 2013-05-14 Tom Tromey <tromey@redhat.com>
6742
6743 * remote.c (remote_set_trace_notes): Make arguments const.
6744 * target.c (update_current_target): Update cast.
6745 * target.h (to_set_trace_notes): Make arguments const.
6746
6747 2013-05-14 Tom Tromey <tromey@redhat.com>
6748
6749 * go32-nat.c (go32_terminal_info): Make 'args' const.
6750 * inferior.h (child_terminal_info): Update.
6751 * inflow.c (child_terminal_info): Make 'args' const.
6752 * target.c (default_terminal_info): Make 'args' const.
6753 (debug_to_terminal_save_ours): Likewise.
6754 * target.h (struct target_ops) <to_terminal_info>: Make argument
6755 const.
6756
6757 2013-05-13 Tom Tromey <tromey@redhat.com>
6758
6759 * gcore.c (create_gcore_bfd): Make 'filename' const.
6760 * gcore.h (create_gcore_bfd): Make 'filename' const.
6761 * record-full.c (record_full_save): Make 'recfilename' const.
6762 * target.c (target_save_record): Make 'filename' const.
6763 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6764 const.
6765 (target_save_record): Likewise.
6766
6767 2013-05-13 Tom Tromey <tromey@redhat.com>
6768
6769 PR gdb/15338:
6770 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6771 ranges section has been read.
6772
6773 2013-05-13 Tom Tromey <tromey@redhat.com>
6774
6775 PR exp/15364:
6776 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6777 STRUCTOP_PTR>: Return a not_lval value for
6778 EVAL_AVOID_SIDE_EFFECTS.
6779 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6780 for EVAL_AVOID_SIDE_EFFECTS.
6781
6782 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6783
6784 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6785 floating point registers to register type before storing
6786 value.
6787 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6788 Likewise.
6789
6790 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6791 Tom Tromey <tromey@redhat.com>
6792
6793 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6794 New functions.
6795 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6796 Declare.
6797 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6798 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6799 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6800 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6801
6802 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6803 Tom Tromey <tromey@redhat.com>
6804
6805 PR build/15414:
6806 * configure: Rebuild.
6807 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6808 with -Wno-format.
6809
6810 2013-05-10 Pedro Alves <palves@redhat.com>
6811
6812 * remote.c (_initialize_remote): Fix spelling of
6813 qXfer:traceframe-info:read packet in packet config command.
6814
6815 2013-05-10 David Taylor <dtaylor@emc.com>
6816
6817 PR remote/15455
6818
6819 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6820 "QTro" at start of packet.
6821
6822 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6823
6824 * solib-aix.c (solib_aix_relocate_section_addresses):
6825 For the .bss section action, apply the same offset as
6826 the .data section.
6827
6828 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6829
6830 * solib-aix.c (solib_aix_relocate_section_addresses):
6831 Remove FIXME comment.
6832
6833 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6834
6835 PR tdep/15420:
6836 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6837 New functions, directly copied from sparc-sol-thread.c.
6838 * sparc-sol-thread.c: Delete.
6839 * configure.ac: Remove code handling sparc-solaris-thread.c.
6840 * configure: Regenerate.
6841
6842 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6843
6844 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6845 filter logic.
6846 (backtrace_command): Add "no-filters" option parsing.
6847 (_initialize_stack): Alter help to reflect "no-filters" option.
6848 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6849 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6850 (py-frame.o): Add target
6851 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6852 filter files.
6853 * python/python.h: Add new frame filter constants, and flag enum.
6854 (apply_frame_filter): Add definition.
6855 * python/python.c (apply_frame_filter): New non-Python
6856 enabled function.
6857 * python/py-utils.c (py_xdecref): New function.
6858 (make_cleanup_py_xdecref): Ditto.
6859 * python/py-objfile.c: Declare frame_filters dictionary.
6860 (objfpy_dealloc): Add frame_filters dealloc.
6861 (objfpy_new): Initialize frame_filters attribute.
6862 (objfile_to_objfile_object): Ditto.
6863 (objfpy_get_frame_filters): New function.
6864 (objfpy_set_frame_filters): New function.
6865 * python/py-progspace.c: Declare frame_filters dictionary.
6866 (pspy_dealloc): Add frame_filters dealloc.
6867 (pspy_new): Initialize frame_filters attribute.
6868 (pspacee_to_pspace_object): Ditto.
6869 (pspy_get_frame_filters): New function.
6870 (pspy_set_frame_filters): New function.
6871 * python/py-framefilter.c: New file.
6872 * python/lib/gdb/command/frame_filters.py: New file.
6873 * python/lib/gdb/frames.py: New file.
6874 * python/lib/gdb/__init__.py: Initialize global frame_filters
6875 dictionary
6876 * python/lib/gdb/FrameDecorator.py: New file.
6877 * python/lib/gdb/FrameIterator.py: New file.
6878 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6879 * mi/mi-cmds.h: Declare.
6880 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6881 --no-frame-filter logic, and Python frame filter logic.
6882 (stack_enable_frame_filters): New function.
6883 (parse_no_frame_option): Ditto.
6884 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6885 filter logic.
6886 (mi_cmd_stack_list_locals): Ditto.
6887 (mi_cmd_stack_list_args): Ditto.
6888 (mi_cmd_stack_list_variables): Ditto.
6889 * NEWS: Add frame filter note.
6890
6891 2013-05-09 Doug Evans <dje@google.com>
6892
6893 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6894 All callers updated.
6895 (syms_from_objfile): Ditto. Make static.
6896 (symbol_file_add_with_addrs): Renamed from
6897 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6898 num_offsets. All callers updated.
6899 * symfile.h (syms_from_objfile): Delete.
6900
6901 * symfile.c (decrement_reading_symtab): Add assert.
6902 (increment_reading_symtab): Ditto.
6903
6904 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6905
6906 * source.c (forward_search_command): Replace call to getc
6907 by call to fgetc.
6908 (reverse_search_command): Likewise.
6909
6910 2013-05-08 Doug Evans <dje@google.com>
6911
6912 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6913 matching test.
6914
6915 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6916
6917 * sol-thread.c (info_cb): Factorize the code a little.
6918
6919 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6920
6921 * sol-thread.c (info_cb): Rework the output of the "maintenance
6922 info sol-threads" command a bit.
6923
6924 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6925
6926 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6927 Replace ti.ti_startfunc by ti.ti_pc.
6928
6929 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6930
6931 * solib-aix.c (solib_aix_free_library_list): New function
6932 for the case where HAVE_LIBEXPAT is not defined.
6933
6934 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6935
6936 PR breakpoints/15413:
6937 * breakpoint.c (condition_completer): Simplify the code to
6938 disconsider multiple locations of breakpoints when completing the
6939 "condition" command.
6940
6941 2013-05-07 Pierre Muller <muller@sourceware.org>
6942
6943 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6944 instead of <sys/wait.h>.
6945
6946 2013-05-07 Pierre Muller <muller@sourceware.org>
6947
6948 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6949 trailing new line from warning message.
6950
6951 2013-05-07 Pierre Muller <muller@sourceware.org>
6952
6953 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6954 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6955
6956 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6957
6958 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6959 error message (ARI fix).
6960
6961 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6962
6963 * features/library-list-aix.dtd: Replace library-list by
6964 library-list-aix.
6965 * rs6000-nat.c: Replace library-list by library-list-aix
6966 throughout.
6967 * solib-aix.c: Likewise.
6968
6969 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6970
6971 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6972 Renames TARGET_OBJECT_AIX_LIBRARIES.
6973 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6974 TARGET_OBJECT_LIBRARIES_AIX throughout.
6975 * solib-aix.c: Likwise.
6976
6977 2013-05-07 Yao Qi <yao@codesourcery.com>
6978
6979 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6980 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6981
6982 2013-05-07 Yao Qi <yao@codesourcery.com>
6983
6984 * solib-dsbt.c (enable_break): Declare.
6985 (dsbt_current_sos): Remove call to enable_break2.
6986 (enable_break2): Rename to enable_break. Set solib breakpoint
6987 on '_dl_debug_state'.
6988 (enable_break): Remove.
6989
6990 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6991
6992 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6993 debug state prior to replicating existing hardware watchpoints or
6994 breakpoints.
6995
6996 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6997
6998 * gcore.c (gcore_create_callback): Ignore sections with
6999 separate_debug_objfile_backlink != NULL.
7000
7001 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7002 Andrew Jenner <andrew@codesourcery.com>
7003 Chung-Lin Tang <cltang@codesourcery.com>
7004 Julian Brown <julian@codesourcery.com>
7005
7006 Based on the nios2-elf port from Altera Corporation.
7007
7008 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7009 nios2-linux-tdep.o.
7010 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7011 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7012 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7013 * nios2-tdep.h: New.
7014 * nios2-tdep.c: New.
7015 * nios2-linux-tdep.c: New.
7016 * features/Makefile (WHICH): Add nios2-linux.
7017 (nios2-linux-expedite): Set.
7018 * features/nios2-cpu.xml: New.
7019 * features/nios2.xml: New.
7020 * features/nios2-linux.xml: New.
7021 * features/nios2.c: New (autogenerated).
7022 * features/nios2-linux.c: New (autogenerated).
7023 * regformats/nios2-linux.dat: New (autogenerated).
7024 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7025 and commands.
7026
7027 2013-05-06 Doug Evans <dje@google.com>
7028
7029 * symfile.c: Whitespace cleanup.
7030
7031 * solist.h (struct target_so_ops): New member clear_so.
7032 * solib-svr4.c (svr4_clear_so): New function.
7033 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7034 * solib.c (clear_so): Renamed from free_so_symbols.
7035 All callers updated. Call target clear_so if it exists.
7036
7037 2013-05-06 Tom Tromey <tromey@redhat.com>
7038
7039 * ada-lang.c (ada_value_primitive_packed_val): Don't
7040 call value_incref.
7041 * value.c (set_value_parent): Incref the new parent and decref
7042 the old parent.
7043 (value_copy, value_primitive_field): Use set_value_parent.
7044
7045 2013-05-06 Tom Tromey <tromey@redhat.com>
7046
7047 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7048 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7049 if needed.
7050 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7051 * dwarf2read.c (write_constant_as_bytes)
7052 (dwarf2_fetch_constant_bytes): New functions.
7053
7054 2013-05-06 Tom Tromey <tromey@redhat.com>
7055
7056 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7057 parameters.
7058 (dwarf2_const_value_attr): Update.
7059
7060 2013-05-06 Tom Tromey <tromey@redhat.com>
7061
7062 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7063 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7064 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7065 Remove declaration.
7066
7067 2013-05-06 Tom Tromey <tromey@redhat.com>
7068
7069 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7070 objfile's obstack.
7071
7072 2013-05-06 Doug Evans <dje@google.com>
7073
7074 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7075 * stabsread.h (process_one_symbol): Update declaration.
7076 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7077 * elfread.c (elf_symfile_relocate_probe): Ditto.
7078 * psymtab.c (relocate_psymtabs): Ditto.
7079 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7080 (objfile_relocate): Ditto.
7081 * objfiles.h (objfile_relocate): Update declaration.
7082 * symfile.c (relative_addr_info_to_section_offsets): Constify
7083 addrs parameter.
7084 (default_symfile_offsets): Ditto.
7085 (syms_from_objfile_1): Constify offsets parameter.
7086 (syms_from_objfile): Ditto.
7087 (symbol_file_add_with_addrs_or_offsets): Ditto.
7088 (symfile_map_offsets_to_segments): Constify data parameter.
7089 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7090 delta parameters of member relocate.
7091 (struct sym_probe_fns): Constify new_offsets,
7092 delta parameters of member sym_relocate_probe.
7093 (struct sym_fns): Constify section_addr_info parameter of member
7094 sym_offsets.
7095 (relative_addr_info_to_section_offsets): Update declaration.
7096 (default_symfile_offsets): Ditto.
7097 (syms_from_objfile): Ditto.
7098 (symfile_map_offsets_to_segments): Ditto.
7099
7100 * symfile.c (syms_from_objfile_1): Use correct section count when
7101 objfile->sf == NULL.
7102
7103 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7104
7105 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7106
7107 2013-05-06 Doug Evans <dje@google.com>
7108
7109 * psympriv.h (struct partial_symtab): Augment comment for member
7110 section_offsets.
7111
7112 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7113
7114 Reimplement shared library support on ppc-aix...
7115 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7116 * features/library-list-aix.dtd: New file.
7117 * solib-aix.h, solib-aix.c: New file.
7118 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7119 (rs6000_find_toc_address_hook): Delete.
7120 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7121 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7122 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7123 "xml-utils.h".
7124 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7125 (vmap_symtab, fixup_breakpoints): Delete.
7126 (rs6000_xfer_shared_libraries): New function.
7127 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7128 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7129 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7130 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7131 (rs6000_xfer_shared_library): New function.
7132 (find_toc_address): Delete.
7133 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7134 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7135 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7136 before creating minimal symbol. Adjust function description
7137 accordingly.
7138 (scan_xcoff_symtab): Replace call to
7139 prim_record_minimal_symbol_and_info by call to
7140 record_minimal_symbol.
7141 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7142 around default_symfile_offsets.
7143 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7144 powerpc-aix targets.
7145 * config/rs6000/nm-rs6000.h: Delete.
7146 * config/powerpc/aix.mh (NAT_FILE): Delete.
7147 (NATDEPFILES): Remove xcoffsolib.o.
7148 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7149 (ALL_TARGET_OBS): Add solib-aix.o.
7150 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7151 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7152 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7153 * xcoffsolib.h, xcoffsolib.c: Delete.
7154
7155 * solib.c (reload_shared_libraries): Remove reference to
7156 SOLIB_CREATE_INFERIOR_HOOK.
7157 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7158 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7159 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7160 comment.
7161 * corelow.c (deprecated_core_resize_section_table): Delete.
7162 * exec.c: Remove include of xcoffsolib.h".
7163 (map_vmap, vmap): Delete.
7164 (exec_close_1): Remove references to vmap.
7165 (exec_file_attach): Remove vmap handling code, and reference
7166 to DEPRECATED_IBM6000_TARGET.
7167 (bfdsec_to_vmap): Delete.
7168 (exec_files_info): Remove block of code handling VMAP.
7169 * infcmd.c (post_create_inferior): Remove reference to
7170 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7171 * infrun.c (follow_exec): Remove reference to
7172 SOLIB_CREATE_INFERIOR_HOOK.
7173 * stack.c (print_frame): Remove reference to PC_SOLIB.
7174 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7175 (dsbt_relocate_main_executable): Likewise.
7176 * solib-frv.c (frv_current_sos): Likewise.
7177
7178 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7179
7180 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7181 to target_write_memory and target_read_memory.
7182
7183 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7184
7185 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7186 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7187
7188 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7189
7190 * darwin-nat.c: Replace all "%x" instances in format strings
7191 into "0x%x" throughout.
7192
7193 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7194
7195 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7196 gdb_assert by call to MACH_CHECK_ERROR.
7197 (darwin_attach_pid): Raise an error rather than a failed
7198 assertion when various system calls failed. Report a warning
7199 instead of raising a failed assertion when PREV_NOT is not NULL
7200 after call to mach_port_request_notification.
7201 (darwin_ptrace_me): Raise an error rather than a failed
7202 assertion when read returns nonzero.
7203
7204 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7205
7206 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7207
7208 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7209
7210 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7211
7212 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7213
7214 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7215 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7216 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7217 a stale cleanup. Fix double free of NAME.
7218
7219 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7220
7221 * windows-nat.c (windows_delete_thread): Accept an additional
7222 argument, the thread's exit code, and announce thread death when
7223 print_thread_events is non-zero and we are deleting a thread that
7224 is not the main thread.
7225 (get_windows_debug_event): Pass thread exit code to
7226 windows_delete_thread.
7227
7228 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7229
7230 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7231 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7232 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7233 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7234 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7235 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7236 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7237 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7238 (gdbarch_tdep): New struct.
7239 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7240 E_NUM_REGS.
7241 (v850e3v5_register_name): New function.
7242 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7243 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7244 code handling the struct return conventions for the RH850 ABI.
7245 Update all callers.
7246 (v850_eight_byte_align_p): New function.
7247 (v850_push_call_dummy): Push structs by value, not by reference
7248 for the RH850 ABI. Add support for eight byte alignment.
7249 (v850_dbtrap_breakpoint_from_pc): New function.
7250 (v850_gdbarch_init): Add ABI detection code. Register
7251 v850e3v5_register_name for the v850e3v5 architecture. Set the
7252 number of registers for v850e3v5. Register
7253 v850_dbtrap_breakpoint_from_pc as appropriate.
7254 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7255
7256 2013-05-03 Doug Evans <dje@google.com>
7257
7258 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7259 of bfd_count_sections.
7260 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7261 * symfile.c (default_symfile_offsets): Ditto.
7262 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7263 one entry, not bfd_count_sections entries.
7264
7265 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7266
7267 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7268 `save' and `restore' register groups. Don't include SPL
7269 or SPH in these groups.
7270 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7271 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7272 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7273 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7274 dwarf2_append_unwinders().
7275
7276 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7277
7278 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7279 ignore SIGINT and SIGTRAP in case these internal signals are
7280 caught explicitely.
7281
7282 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7283
7284 * darwin-nat.c (darwin_read_write_inferior): Change types
7285 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7286 of copy_count to "mach_msg_type_number_t".
7287 (darwin_read_dyld_info): Change type of parameter
7288 rdaddr to "gdb_byte *".
7289
7290 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7291
7292 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7293 of &info->load_map from "char *" to "gdb_byte *".
7294
7295 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7296
7297 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7298 from "char *" to "gdb_byte *".
7299 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7300
7301 2013-04-30 Doug Evans <dje@google.com>
7302
7303 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7304 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7305 DWO stub. If DWO isn't found, just use stub.
7306 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7307
7308 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7309 calling init_cutu_and_read_dies.
7310
7311 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7312
7313 * target-descriptions.c (maint_print_c_tdesc_cmd):
7314 Add case to parse structures as register types and
7315 bitfields.
7316
7317 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7318
7319 * MAINTAINERS (Write After Approval): Add myself to the list.
7320
7321 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7322
7323 * sol-thread.c (rw_common): Change type of parameter "buf"
7324 to "gdb_byte *".
7325 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7326 rw_common to "gdb_byte *" instead of "char *".
7327
7328 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7329
7330 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7331 of local variable msym to const struct bound_minimal_symbol.
7332 Adjust use accordingly.
7333 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7334
7335 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7336
7337 * i386gnu-nat.c (CREG_OFFSET): New macro.
7338 (creg_offset): New array.
7339 (CREG_ADDR): Use creg_offset instead of reg_offset.
7340
7341 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7342
7343 * mep-tdep.c (mep_write_pc): Delete.
7344 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7345 Add call to set_gdbarch_pc_regnum.
7346
7347 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7348
7349 * common/filestuff.c: Replace #include <dirent.h> by
7350 #include "gdb_dirent.h".
7351
7352 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7353
7354 * common/filestuff.c: Replace #include <sys/stat.h> by
7355 #include "gdb_stat.h".
7356
7357 2013-04-29 Pierre Muller <muller@sourceware.org>
7358
7359 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7360 editCase function rule.
7361 (get_DW_AT_signature_type): Likewise.
7362
7363 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7364
7365 * m32r-tdep.c (m32r_write_pc): Delete.
7366 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7367 Add call to set_gdbarch_pc_regnum.
7368
7369 2013-04-29 Pierre Muller <muller@sourceware.org>
7370
7371 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7372
7373 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7374
7375 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7376
7377 2013-04-28 Yao Qi <yao@codesourcery.com>
7378
7379 * solib-dsbt.c (fetch_loadmap): Re-indent.
7380 (displacement_from_map, enable_break2): Likewise.
7381 (dsbt_relocate_section_addresses): Likewise.
7382
7383 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7384
7385 GDB 7.6 released.
7386
7387 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7388
7389 PR corefiles/14983:
7390 * dwarf2read.c (process_full_comp_unit): Always create a static
7391 block.
7392
7393 2013-04-25 Hui Zhu <hui@codesourcery.com>
7394
7395 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7396 to loc->cmd_bytecode.
7397
7398 2013-04-24 Doug Evans <dje@google.com>
7399
7400 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7401
7402 2013-04-22 Keith Seitz <keiths@redhat.com>
7403
7404 * tracepoint.c (trace_save): Call the writer's start method.
7405
7406 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7407
7408 PR gdb/10462
7409 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7410 before argument.
7411
7412 2013-04-23 Tom Tromey <tromey@redhat.com>
7413
7414 * common/filestuff.c: Check USE_WIN32API before including
7415 sys/socket.h.
7416 (HAVE_F_GETFD): New define.
7417 (mark_cloexec): Check HAVE_F_GETFD.
7418 (gdb_open_cloexec): Change 'mode' to unsigned long.
7419 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7420 (gdb_pipe_cloexec): Check HAVE_PIPE.
7421 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7422 long.
7423
7424 2013-04-23 Hui Zhu <hui@codesourcery.com>
7425
7426 PR gdb/15293
7427 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7428
7429 2013-04-23 Hui Zhu <hui@codesourcery.com>
7430
7431 PR gdb/15165
7432 * breakpoint.c (dprintf_print_recreate): New.
7433 (save_breakpoints): Let it not save dprintf commands.
7434 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7435
7436 2013-04-22 Tom Tromey <tromey@redhat.com>
7437
7438 PR gdb/7912:
7439 * Makefile.in (SFILES): Add filestuff.c
7440 (COMMON_OBS): Add filestuff.o.
7441 (filestuff.o): New target.
7442 * auto-load.c (auto_load_objfile_script_1): Use
7443 gdb_fopen_cloexec.
7444 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7445 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7446 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7447 * common/agent.c (gdb_connect_sync_socket): Use
7448 gdb_socket_cloexec.
7449 * common/filestuff.c: New file.
7450 * common/filestuff.h: New file.
7451 * common/linux-osdata.c (linux_common_core_of_thread)
7452 (command_from_pid, commandline_from_pid, print_source_lines)
7453 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7454 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7455 gdb_fopen_cloexec.
7456 * common/linux-procfs.c (linux_proc_get_int)
7457 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7458 * config.in, configure: Rebuild.
7459 * configure.ac: Don't check for sys/socket.h. Check for
7460 fdwalk, pipe2.
7461 * corelow.c (core_open): Use gdb_open_cloexec.
7462 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7463 * fork-child.c (fork_inferior): Call close_most_fds.
7464 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7465 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7466 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7467 Use gdb_fopen_cloexec.
7468 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7469 gdb_open_cloexec.
7470 (linux_async_pipe): Use gdb_pipe_cloexec.
7471 * remote-fileio.c (remote_fileio_func_open): Use
7472 gdb_open_cloexec.
7473 * remote.c (remote_file_put, remote_file_get): Use
7474 gdb_fopen_cloexec.
7475 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7476 close_most_fds.
7477 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7478 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7479 * solib.c (solib_find): Use gdb_open_cloexec.
7480 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7481 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7482 (tfile_open): Use gdb_open_cloexec.
7483 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7484 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7485 * xml-support.c (xml_fetch_content_from_file): Use
7486 gdb_fopen_cloexec.
7487 * main.c (captured_main): Call notice_open_fds.
7488
7489 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7490
7491 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7492 'char *' to 'gdb_byte *'.
7493 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7494 'gdb_byte'.
7495
7496 2013-04-22 Yao Qi <yao@codesourcery.com>
7497
7498 * infrun.c: Fix typo in comment.
7499
7500 2013-04-22 Andrew Haley <aph@redhat.com>
7501
7502 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7503 instead of "long".
7504
7505 2013-04-20 Yao Qi <yao@codesourcery.com>
7506
7507 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7508 'char *' to 'gdb_byte *'. Cast the return value of
7509 'bt_ctf_get_char_array' to 'gdb_byte *'.
7510
7511 2013-04-19 Pedro Alves <palves@redhat.com>
7512
7513 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7514 -Wpointer-sign.
7515 * configure: Regenerate.
7516
7517 2013-04-19 Pedro Alves <palves@redhat.com>
7518
7519 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7520 'void *'.
7521
7522 2013-04-19 Pedro Alves <palves@redhat.com>
7523
7524 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7525 Change type of 'myaddr' parameter to gdb_byte pointer.
7526 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7527 to 'long long' pointer instead of to 'unsigned long long'.
7528 (monitor_write_memory_block, monitor_read_memory_single)
7529 (monitor_read_memory): Change type of 'myaddr' parameter to
7530 gdb_byte pointer.
7531
7532 2013-04-19 Pedro Alves <palves@redhat.com>
7533
7534 * record.c (validate_history_size): Make parameter 'setting'
7535 unsigned.
7536
7537 2013-04-19 Pedro Alves <palves@redhat.com>
7538
7539 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7540 to 'gdb_byte *'.
7541
7542 2013-04-19 Pedro Alves <palves@redhat.com>
7543
7544 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7545 local to int.
7546
7547 2013-04-19 Pedro Alves <palves@redhat.com>
7548
7549 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7550 * ada-tasks.c (read_fat_string_value): Likewise.
7551
7552 2013-04-19 Pedro Alves <palves@redhat.com>
7553
7554 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7555 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7556 'offset', and adjust.
7557
7558 2013-04-19 Pedro Alves <palves@redhat.com>
7559
7560 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7561 (read_index_from_section): Add cast to 'char *'.
7562
7563 2013-04-19 Pedro Alves <palves@redhat.com>
7564
7565 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7566
7567 2013-04-19 Pedro Alves <palves@redhat.com>
7568
7569 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7570
7571 2013-04-19 Pedro Alves <palves@redhat.com>
7572
7573 * record-full.c (record_full_get_bookmark): Change local 'ret'
7574 type to char * and add cast to gdb_byte *.
7575 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7576 string.
7577 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7578
7579 2013-04-19 Pedro Alves <palves@redhat.com>
7580
7581 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7582 * python/py-prettyprint.c (print_string_repr): Change type of
7583 'output' local to char *. Add cast to gdb_byte * in
7584 LA_PRINT_STRING call.
7585 (print_children): Change type of 'output' local to char *.
7586 * python/py-value.c (valpy_string): Add cast to const char * in
7587 PyUnicode_Decode call.
7588
7589 2013-04-19 Pedro Alves <palves@redhat.com>
7590
7591 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7592 and change its type to 'const char *'. Adjust.
7593 (mips_send_packet): Add cast to 'char *', and remove cast to
7594 'unsigned char *'.
7595 (mips_receive_packet): Remove cast to 'unsigned char *'.
7596 (mips_load_srec): Use bfd_byte.
7597 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7598 (pmon_checkset): Make 'value' parameter unsigned.
7599
7600 2013-04-19 Pedro Alves <palves@redhat.com>
7601
7602 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7603
7604 2013-04-19 Pedro Alves <palves@redhat.com>
7605
7606 * remote.c (remote_write_bytes_aux, compare_sections_command)
7607 (remote_read_qxfer)
7608 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7609 (remote_hostio_readlink, remote_bfd_iovec_pread)
7610 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7611 binary buffer, and char when buffer is used as string.
7612 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7613 (trace_save, tfile_open, traceframe_walk_blocks)
7614 (tfile_fetch_registers): Likewise.
7615
7616 2013-04-19 Pedro Alves <palves@redhat.com>
7617
7618 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7619 buffer and size_t size. Adjust.
7620 * ser-base.h (ser_base_write): Adjust.
7621 * ser-go32.c (cnts): Change type to size_t.
7622 (dos_write): Change prototype -- take 'void *'
7623 buffer and size_t size. Adjust.
7624 (dos_info): Print elements of 'cnts' as unsigned long.
7625 * serial.c (serial_write): Likewise.
7626 * serial.h (serial_write): Adjust.
7627 (struct serial_ops) <write>: Change prototype -- take 'void *'
7628 buffer and size_t size. Adjust.
7629
7630 2013-04-19 Pedro Alves <palves@redhat.com>
7631
7632 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7633 gdb_byte *.
7634 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7635
7636 2013-04-19 Pedro Alves <palves@redhat.com>
7637
7638 * alpha-tdep.c (alpha_extract_return_value): Use
7639 regcache_cooked_read_unsigned to read 'v0'.
7640
7641 2013-04-19 Pedro Alves <palves@redhat.com>
7642
7643 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7644 parameters 'at', 'as' and 'offset' to uint32_t.
7645
7646 2013-04-19 Pedro Alves <palves@redhat.com>
7647
7648 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7649 'is64' to signed 'int'.
7650
7651 2013-04-19 Pedro Alves <palves@redhat.com>
7652
7653 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7654 parameter to int *.
7655
7656 2013-04-19 Pedro Alves <palves@redhat.com>
7657
7658 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7659 'insnbuf' buffer type to unsigned int[].
7660
7661 2013-04-19 Pedro Alves <palves@redhat.com>
7662
7663 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7664
7665 2013-04-19 Pedro Alves <palves@redhat.com>
7666
7667 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7668 unsigned long *.
7669
7670 2013-04-19 Pedro Alves <palves@redhat.com>
7671
7672 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7673 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7674 UINT_MAX.
7675 * mips-tdep.c (heuristic_fence_post): Change type to int.
7676 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7677
7678 2013-04-19 Pedro Alves <palves@redhat.com>
7679
7680 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7681 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7682 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7683
7684 2013-04-19 Pedro Alves <palves@redhat.com>
7685
7686 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7687 it to get a string view of the byte buffer.
7688 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7689 type to gdb_byte *. Adjust.
7690 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7691 Change local to char *.
7692 * solib-darwin.c (find_program_interpreter): Change return type to
7693 char *. Adjust.
7694 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7695 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7696 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7697 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7698 * solib-svr4.c (find_program_interpreter): Change return type to
7699 char *. Adjust.
7700 (enable_break): Change local 'interp_name' to char *.
7701 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7702 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7703 (spu_pseudo_register_write_spu): Use char for string buffer.
7704 Adjust.
7705 (info_spu_event_command, info_spu_signal_command): Add casts to
7706 'char *'.
7707
7708 2013-04-19 Pedro Alves <palves@redhat.com>
7709
7710 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7711 gdb_byte[].
7712 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7713 * ada-lang.c (ada_value_assign): Use gdb_byte.
7714 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7715 (alphanbsd_sigtramp_offset): Use gdb_byte.
7716 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7717 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7718 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7719 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7720 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7721 * arm-tdep.c (arm_stub_unwind_sniffer)
7722 (arm_displaced_init_closure): Use gdb_byte.
7723 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7724 (arm_default_thumb_le_breakpoint)
7725 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7726 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7727 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7728 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7729 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7730 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7731 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7732 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7733 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7734 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7735 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7736 (cris_store_return_value, cris_extract_return_value): Use
7737 gdb_byte.
7738 (constraint): Change type of parameter to char * from signed
7739 char*. Use gdb_byte.
7740 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7741 of local buffer to gdb_byte *.
7742 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7743 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7744 (add_address_entry): Change type of local buffer to gdb_byte[].
7745 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7746 (frv_push_dummy_call): Use gdb_byte.
7747 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7748 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7749 (hppa_hpux_supply_save_state): Use gdb_byte.
7750 * hppa-tdep.c (hppa32_push_dummy_call)
7751 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7752 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7753 (slotN_contents, replace_slotN_contents): Change type of parameter
7754 to gdb_byte *.
7755 (fetch_instruction, ia64_pseudo_register_write)
7756 (ia64_register_to_value, ia64_value_to_register)
7757 (ia64_extract_return_value, ia64_store_return_value)
7758 (ia64_push_dummy_call): Use gdb_byte.
7759 * m32c-tdep.c (m32c_return_value): Remove cast.
7760 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7761 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7762 gdb_byte.
7763 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7764 * mn10300-tdep.c (mn10300_store_return_value)
7765 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7766 gdb_byte.
7767 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7768 (moxie_process_record): Remove casts.
7769 * ppc-ravenscar-thread.c (supply_register_at_address)
7770 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7771 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7772 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7773 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7774 * remote.c (compare_sections_command): Use gdb_byte.
7775 * score-tdep.c (score7_free_memblock): Change type of parameter to
7776 gdb_byte *.
7777 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7778 gdb_byte *. Use gdb_byte.
7779 (sh_push_dummy_call_fpu): Use gdb_byte.
7780 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7781 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7782 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7783 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7784 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7785 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7786 (sh64_store_return_value, sh64_register_convert_to_virtual):
7787 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7788 (sh64_pseudo_register_write): Use gdb_byte.
7789 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7790 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7791 buffer.
7792 (irix_current_sos): Use gdb_byte.
7793 * solib-som.c (som_current_sos): Use gdb_byte.
7794 * sparc-ravenscar-thread.c (supply_register_at_address)
7795 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7796 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7797 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7798 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7799 'gdb_byte *'.
7800 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7801 'gdb_byte *'.
7802 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7803 * xstormy16-tdep.c (xstormy16_extract_return_value)
7804 (xstormy16_store_return_value): Change parameter type to
7805 'gdb_byte *'. Adjust.
7806 (xstormy16_push_dummy_call): Use gdb_byte.
7807 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7808 (call0_analyze_prologue, execute_code): Use gdb_byte.
7809
7810 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7811 Pedro Alves <palves@redhat.com>
7812
7813 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7814 value contents.
7815
7816 2013-04-17 Doug Evans <dje@google.com>
7817
7818 * dwarf2read.c (struct signatured_type): New member type.
7819 (struct attribute): Replace member signatured_type with signature.
7820 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7821 (read_call_site_scope): Call follow_die_ref instead of
7822 follow_die_ref_or_sig.
7823 (read_structure_type): Rewrite handling of signatured types.
7824 (read_enumeration_type): Ditto.
7825 (read_attribute_value): Update.
7826 (build_error_marker_type): New function.
7827 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7828 Don't call error for bad types, just build an error marker type.
7829 (dump_die_shallow): Update.
7830 (follow_die_sig_1): Renamed from follow_die_sig.
7831 Don't call error for bad types, instead return NULL.
7832 (follow_die_sig): New function.
7833 (get_signatured_type, get_DW_AT_signature_type): New functions.
7834
7835 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7836
7837 * aarch64-tdep.c (aarch64_write_pc): Removed.
7838 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7839 function.
7840
7841 2013-04-17 Yao Qi <yao@codesourcery.com>
7842
7843 * top.c (print_gdb_configuration): Print configure-time
7844 parameter on using libbabeltrace or not.
7845
7846 2013-04-16 Pedro Alves <palves@redhat.com>
7847
7848 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7849
7850 2013-04-16 Pedro Alves <palves@redhat.com>
7851
7852 * common/glibc_thread_db.h: Update from upstream glibc
7853 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7854
7855 2013-04-16 Pedro Alves <palves@redhat.com>
7856
7857 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7858 * common/glibc_thread_db.h: ... this new file ...
7859 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7860
7861 2013-04-16 Will Newton <will.newton@gmail.com>
7862 Pedro Alves <palves@redhat.com>
7863
7864 PR build/11881
7865
7866 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7867 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7868 HAVE_THREAD_DB_H.
7869
7870 2013-04-16 Pedro Alves <palves@redhat.com>
7871 Eli Zaretskii <eliz@gnu.org>
7872
7873 * NEWS: Mention "set foo unlimited".
7874
7875 2013-04-15 Doug Evans <dje@google.com>
7876
7877 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7878 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7879 (create_dwo_cu_reader): Renamed from
7880 create_dwo_debug_info_hash_table_reader.
7881 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7882 Remove support for multiple CUs in a DWO file.
7883 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7884
7885 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7886 instead of phex.
7887 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7888 (create_dwo_in_dwp): Ditto.
7889
7890 2013-04-15 Tom Tromey <tromey@redhat.com>
7891
7892 * NEWS: Move recent entries into "since 7.6" section.
7893
7894 2013-04-15 Tom Tromey <tromey@redhat.com>
7895
7896 PR c++/13588:
7897 * NEWS: Update.
7898 * break-catch-throw.c (struct exception_catchpoint)
7899 <exception_rx, pattern>: New fields.
7900 (fetch_probe_arguments, dtor_exception_catchpoint)
7901 (check_status_exception_catchpoint)
7902 (print_one_detail_exception_catchpoint): New functions.
7903 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7904 Compile regular expression if needed.
7905 (extract_exception_regexp): New function.
7906 (catch_exception_command_1): Use extract_exception_regexp.
7907 (compute_exception): Use fetch_probe_arguments.
7908 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7909 and check_status fields.
7910 * cp-abi.c (cplus_typename_from_type_info): New function.
7911 * cp-abi.h (cplus_typename_from_type_info): Declare.
7912 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7913 * gdb_regex.h (compile_rx_or_error): Declare.
7914 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7915 comment.
7916 (init_gnuv3_ops): Set get_type_from_type_info field.
7917 * probe.c (compile_rx_or_error): Move...
7918 * utils.c (compile_rx_or_error): ... here.
7919
7920 2013-04-15 Tom Tromey <tromey@redhat.com>
7921
7922 PR c++/15176:
7923 * NEWS: Update.
7924 * break-catch-throw.c (compute_exception): New function.
7925 (exception_funcs): New global.
7926 (_initialize_break_catch_throw): Create $_exception.
7927 * cp-abi.c (cplus_type_from_type_info): New function.
7928 * cp-abi.h (cplus_type_from_type_info): Declare.
7929 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7930 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7931 (gnuv3_get_type_from_type_info): New functions.
7932 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7933
7934 2013-04-15 Tom Tromey <tromey@redhat.com>
7935
7936 * break-catch-throw.c (struct exception_names): New.
7937 (exception_functions): Change type.
7938 (re_set_exception_catchpoint): Look for SDT probes.
7939
7940 2013-04-15 Tom Tromey <tromey@redhat.com>
7941
7942 PR c++/10119:
7943 * break-catch-throw.c (exception_functions): New global.
7944 (gnu_v3_exception_catchpoint_ops): Move earlier.
7945 (struct exception_catchpoint): New.
7946 (classify_exception_breakpoint): Rewrite.
7947 (re_set_exception_catchpoint): New function.
7948 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7949 Allocate a struct exception_catchpoint.
7950 (catch_exception_command_1): Update.
7951 (initialize_throw_catchpoint_ops): Set 're_set' method.
7952
7953 2013-04-15 Tom Tromey <tromey@redhat.com>
7954
7955 * Makefile.in (SFILES): Add break-catch-throw.c
7956 (COMMON_OBS): Add break-catch-throw.o.
7957 * break-catch-throw.c: New file.
7958 * breakpoint.c: Move exception-catching code to new file.
7959 (ep_parse_optional_if_clause): No longer static.
7960 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7961
7962 2013-04-15 Tom Tromey <tromey@redhat.com>
7963
7964 PR c++/9065:
7965 * NEWS: Update.
7966 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7967 * c-exp.y (TYPEID): New token.
7968 (exp): Add new TYPEID productions.
7969 (ident_tokens): Add "typeid".
7970 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7971 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7972 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7973 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7974 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7975 case.
7976 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7977 (build_std_type_info_type, gnuv3_get_typeid_type)
7978 (gnuv3_get_typeid): New functions.
7979 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7980 new fields on ABI object.
7981 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7982 * std-operator.def (OP_TYPEID): New.
7983
7984 2013-04-15 Tom Tromey <tromey@redhat.com>
7985
7986 * elfread.c (elf_symtab_read): Install versioned symbol under
7987 unversioned name as well.
7988
7989 2013-04-15 Tom Tromey <tromey@redhat.com>
7990
7991 PR c++/11990:
7992 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7993 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7994 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7995 (gdb_demangle): New function.
7996 * cp-support.h (gdb_demangle): Declare.
7997 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7998 (dwarf2_name): Use gdb_demangle.
7999 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8000 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8001 suffixes from name.
8002 (gnuv3_print_method_ptr): Use gdb_demangle.
8003 * jv-lang.c (java_demangle): Use gdb_demangle.
8004 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8005 * language.c (unk_lang_demangle): Use gdb_demangle.
8006 * symtab.c (symbol_find_demangled_name)
8007 (demangle_for_lookup): Use gdb_demangle.
8008
8009 2013-04-15 Tom Tromey <tromey@redhat.com>
8010
8011 PR c++/12824:
8012 * NEWS: Update.
8013 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8014 New constant.
8015 (classify_exception_breakpoint): New function.
8016 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8017 (print_mention_exception_catchpoint)
8018 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8019 (catch_exception_command_1): Handle "rethrow" catchpoint.
8020 (catch_rethrow_command): New function.
8021 (_initialize_breakpoint): Add "catch rethrow" command.
8022
8023 2013-04-15 Pierre Muller <muller@sourceware.org>
8024
8025 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8026 set_gdbarch_write_pc as deprecated anymore.
8027
8028 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8029
8030 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8031 declarations.
8032
8033 2013-04-13 Yao Qi <yao@codesourcery.com>
8034
8035 * ctf.c (_initialize_ctf): Include "completer.h".
8036 Call add_target_with_completer instead of add_target.
8037
8038 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8039
8040 Fix GDB regression related to PR binutils/14813.
8041 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8042 * minidebug.c (lzma_close): Add return value comment.
8043 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8044 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8045 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8046
8047 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8048
8049 * config.in: Regenerate.
8050
8051 2013-04-12 Tom Tromey <tromey@redhat.com>
8052
8053 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8054 const.
8055 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8056 (struct die_reader_specs) <buffer>: Likewise.
8057 (die_reader_func_ftype): Make 'info_ptr' const.
8058 (struct line_header) <include_dirs, statement_program_start,
8059 statement_program_end>: Now const.
8060 (struct file_entry) <name>: Likewise.
8061 (struct partial_die_info) <sibling>: Likewise.
8062 (struct dwarf_block) <data>: Likewise.
8063 (dwarf2_read_section): Remove cast.
8064 (dwarf2_get_section_info): Make 'bufp' const.
8065 (read_index_from_section): Constify.
8066 (dw2_get_file_names_reader): Make 'info_ptr' const.
8067 (dw2_get_primary_filename_reader): Likewise.
8068 (read_comp_unit_head): Make 'info_ptr' and return type const.
8069 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8070 Likewise.
8071 (read_abbrev_offset): Constify.
8072 (dwarf2_create_include_psymtab): Make 'name' const.
8073 (create_debug_types_hash_table): Update.
8074 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8075 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8076 Constify.
8077 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8078 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8079 (read_comp_units_from_section): Constify.
8080 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8081 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8082 const.
8083 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8084 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8085 (create_dwp_hash_table, dwarf2_ranges_read)
8086 (dwarf2_record_block_ranges): Constify.
8087 (read_die_and_children, read_die_and_siblings_1)
8088 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8089 const.
8090 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8091 (abbrev_table_read_table): Constify.
8092 (load_partial_dies): Make 'info_ptr' const.
8093 (read_partial_die, read_attribute_value, read_attribute): Make
8094 'info_ptr' and return type const.
8095 (read_address, read_initial_length)
8096 (read_checked_initial_length_and_offset, read_offset)
8097 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8098 const.
8099 (read_direct_string): Make 'buf' and return type const.
8100 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8101 (read_indirect_string): Make return type const.
8102 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8103 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8104 'info_ptr' const.
8105 (read_str_index): Make return type const.
8106 (add_include_dir): Make 'include_dir' const.
8107 (add_file_name): Make 'name' const.
8108 (dwarf_decode_line_header): Constify.
8109 (psymtab_include_file_name): Make return type const.
8110 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8111 (dwarf2_start_subfile): Make 'filename' const.
8112 (dwarf2_const_value_attr): Make 'bytes' const.
8113 (read_signatured_type_reader): Make 'info_ptr' const.
8114 (decode_locdesc): Constify.
8115 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8116 const.
8117 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8118 'mac_end', and return type const.
8119 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8120 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8121 type const.
8122 (per_cu_header_read_in): Constify.
8123 * symfile.h (dwarf2_get_section_info): Update.
8124
8125 2013-04-12 Tom Tromey <tromey@redhat.com>
8126
8127 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8128
8129 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8130
8131 * NEWS: Mention "show configuration", --configuration.
8132 * top.c (print_gdb_configuration): New function, displays the
8133 details about GDB configure-time parameters.
8134 (print_gdb_version): Mention "show configuration".
8135 * cli/cli-cmds.c (show_configuration): New function.
8136 (_initialize_cli_cmds): Add the "show configuration" command.
8137 * main.c (captured_main) <print_configuration>: New static var.
8138 <long_options>: Use it.
8139 If --configuration was given, call print_gdb_configuration.
8140
8141 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8142 Pedro Alves <palves@redhat.com>
8143
8144 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8145 (generated_files): Add gcore.
8146 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8147 HAVE_NATIVE_GCORE_HOST.
8148 (gcore): New.
8149 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8150 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8151 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8152 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8153 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8154 Add HAVE_NATIVE_GCORE_HOST.
8155 * configure: Regenerate.
8156 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8157 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8158 AC_CONFIG_FILES for gcore.
8159 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8160 gdb_have_gcore.
8161 * gdb_gcore.sh: Rename to ...
8162 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8163 and GCORE_TRANSFORM_NAME substitutions.
8164
8165 Fix parsing tabs in ${gdb_target_obs}.
8166 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8167
8168 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8169
8170 * remote.c (unpush_and_perror): Add output message final dot.
8171
8172 2013-04-11 Yao Qi <yao@codesourcery.com>
8173
8174 * tracepoint.c (tfile_interp_line): Fit parameters line and
8175 utpp in one line.
8176
8177 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8178
8179 * solib.c (solib_map_sections): Remove code overwriting
8180 SO->SO_NAME with the bfd's filename.
8181
8182 2013-04-10 Pedro Alves <palves@redhat.com>
8183
8184 * cli/cli-decode.c (integer_unlimited_completer): New function.
8185 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8186 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8187 completer.
8188 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8189 (is_unlimited_literal): New function.
8190 (do_set_command): Handle literal "unlimited" arguments.
8191 * frame.c (_initialize_frame) <set backtrace limit>: Document
8192 "unlimited".
8193 * printcmd.c (_initialize_printcmd) <set print
8194 max-symbolic-offset>: Add help text.
8195 * record-full.c (_initialize_record_full) <set record full
8196 insn-number-max>: Likewise.
8197 * record.c (_initialize_record) <set record
8198 instruction-history-size, set record function-call-history-size>:
8199 Add help text.
8200 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8201 help text.
8202 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8203 Likewise.
8204 * source.c (_initialize_source) <set listsize>: Add help text.
8205 * utils.c (initialize_utils) <set height, set width>: Likewise.
8206 <set pagination>: Mention "set height unlimited".
8207 * valprint.c (_initialize_valprint) <set print elements, set print
8208 repeats>: Document "unlimited".
8209
8210 2013-04-10 Pedro Alves <palves@redhat.com>
8211
8212 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8213 instead of disconnect_tracing.
8214 * infcmd.c (detach_command, disconnect_command): Call
8215 query_if_trace_running. Adjust.
8216 * top.c: Include "tracepoint.h".
8217 (quit_target): Delete. Contents moved ...
8218 (quit_force): ... here. Wrap each stage of teardown in
8219 TRY_CATCH. Call disconnect_tracing before detaching.
8220
8221 2013-04-10 Hui Zhu <hui@codesourcery.com>
8222 Yao Qi <yao@codesourcery.com>
8223
8224 * configure.ac: Check libbabeltrace is installed.
8225 * config.in: Regenerate.
8226 * configure: Regenerate.
8227 * Makefile.in (LIBBABELTRACE): New.
8228 (CLIBS): Add LIBBABELTRACE.
8229 * ctf.c: Include "exec.h".
8230 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8231 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8232 (ctf_save_metadata_header): Define new type aliases in
8233 metadata.
8234 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8235 in metadata. Start a new faked packet for trace status.
8236 (ctf_write_status): Write trace status to CTF.
8237 (ctf_write_uploaded_tsv): Write TSV to CTF.
8238 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8239 (ctf_write_definition_end): End the faked packet.
8240
8241 (ctx, ctf_iter, trace_dirname): New.
8242 (start_pos): New variable.
8243 (ctf_destroy, ctf_open_dir, ctf_open): New.
8244 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8245 macros.
8246 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8247 (ctf_fetch_registers, ctf_xfer_partial): New.
8248 (ctf_get_trace_state_variable_value): New.
8249 (ctf_get_tpnum_from_frame_event): New.
8250 (ctf_get_traceframe_address): New.
8251 (ctf_trace_find, ctf_has_stack): New.
8252 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8253 (ctf_get_trace_status, ctf_read_status): New.
8254 (_initialize_ctf): New.
8255 * tracepoint.c (get_tracepoint_number): New
8256 (get_uploaded_tsv): Remove 'static'.
8257 (struct traceframe_info, trace_regblock_size): Move it to ...
8258 * tracepoint.h: ... here.
8259 (get_tracepoint_number): Declare it.
8260 (get_uploaded_tsv): Declare it.
8261
8262 * NEWS: Mention new configure option.
8263
8264 2013-04-10 Pedro Alves <palves@redhat.com>
8265 Hui Zhu <hui@codesourcery.com>
8266
8267 * breakpoint.c (dprintf_re_set): New.
8268 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8269 to dprintf_re_set.
8270
8271 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8272
8273 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8274 Remove solib-svr4.o from the list.
8275
8276 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8277
8278 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8279 Use gdb_assert_not_reached instead of invalid boolean expression.
8280
8281 2013-04-09 Pedro Alves <palves@redhat.com>
8282
8283 * remote.c (unpush_and_perror): New function.
8284 (readchar, remote_serial_write): Use it.
8285
8286 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8287
8288 * NEWS: Mention new btrace RSP packets.
8289
8290 2013-04-08 Tom Tromey <tromey@redhat.com>
8291
8292 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8293 long.
8294
8295 2013-04-08 Tom Tromey <tromey@redhat.com>
8296
8297 * maint.c (print_bfd_section_info): Print the section index.
8298 * symmisc.c (dump_msymbols): Print the section index.
8299
8300 2013-04-08 Tom Tromey <tromey@redhat.com>
8301
8302 PR symtab/8424:
8303 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8304 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8305 * breakpoint.c (resolve_sal_pc): Update.
8306 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8307 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8308 (minsym_lookup_iterator_cb): Use it.
8309 (default_read_var_value): Update.
8310 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8311 Update.
8312 * infcmd.c (jump_command): Update.
8313 * linespec.c (minsym_found): Update.
8314 * maint.c (maintenance_translate_address): Update.
8315 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8316 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8317 * parse.c (write_exp_msymbol): Update.
8318 * printcmd.c (address_info): Update.
8319 * psymtab.c (find_pc_sect_psymbol): Update.
8320 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8321 SYMBOL_OBJ_SECTION.
8322 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8323 Don't initialize SYMBOL_OBJ_SECTION.
8324 * spu-tdep.c (spu_catch_start): Update.
8325 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8326 * symmisc.c (dump_msymbols, print_symbol): Update.
8327 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8328 how fallback section is computed.
8329 (fixup_symbol_section): Update.
8330 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8331 Update.
8332 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8333 Initialize SYMBOL_SECTION.
8334 * symtab.h (struct general_symbol_info) <section>: Update comment.
8335 <obj_section>: Remove.
8336 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8337 (SYMBOL_OBJFILE): New macro.
8338
8339 2013-04-08 Tom Tromey <tromey@redhat.com>
8340
8341 * coffread.c (record_minimal_symbol): Update.
8342 * dbxread.c (record_minimal_symbol): Update.
8343 * elfread.c (record_minimal_symbol): Update.
8344 * machoread.c (macho_symtab_add_minsym): Update.
8345 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8346 Update.
8347 * minsyms.c (prim_record_minimal_symbol): Update.
8348 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8349 argument.
8350 (prim_record_minimal_symbol_and_info): Likewise.
8351 * minsyms.h (prim_record_minimal_symbol_full)
8352 (prim_record_minimal_symbol_and_info): Update.
8353 * symtab.c (allocate_symbol, initialize_symbol)
8354 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8355 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8356 Update.
8357
8358 2013-04-08 Tom Tromey <tromey@redhat.com>
8359
8360 PR symtab/8423:
8361 * solib-som.c (som_solib_section_offsets): Use BFD section
8362 indices. Set offsets for all sections.
8363 * somread.c (som_symtab_read): Compute BFD section for
8364 symbol. Use prim_record_minimal_symbol_and_info.
8365 (som_symfile_read): Fix comment.
8366 (struct find_section_offset_arg): New.
8367 (find_section_offset, set_section_index): New functions.
8368 (som_symfile_offsets): Use set_section_index to compute
8369 section indices.
8370
8371 2013-04-08 Tom Tromey <tromey@redhat.com>
8372
8373 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8374 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8375 gdb_bfd_section_index.
8376 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8377 New functions.
8378 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8379 Declare.
8380 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8381 Update.
8382 * objfiles.c (add_to_objfile_sections_full): New function.
8383 (add_to_objfile_sections): Use it.
8384 (build_section_table): Rewrite.
8385 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8386 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8387 (struct objfile) <sections>: Update comment.
8388 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8389 is NULL.
8390 (ALL_OBJSECTIONS): Use it.
8391 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8392 * solib-frv.c (frv_relocate_main_executable): Update.
8393 * solib-target.c (solib_target_relocate_section_addresses):
8394 Use gdb_bfd_section_index.
8395 * symfile.c (build_section_addr_info_from_section_table):
8396 Use gdb_bfd_section_index.
8397 (build_section_addr_info_from_bfd, place_section): Likewise.
8398 * symtab.c (fixup_section): Update.
8399 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8400
8401 2013-04-08 Tom Tromey <tromey@redhat.com>
8402
8403 * minsyms.h (struct bound_minimal_symbol): New.
8404 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8405 Remove objfile argument.
8406 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8407 Return bound_minimal_symbol.
8408 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8409 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8410 Return bound_minimal_symbol.
8411 (in_gnu_ifunc_stub): Update.
8412 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8413 Remove 'objfile_p' argument.
8414 (lookup_solib_trampoline_symbol_by_pc): Update.
8415 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8416 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8417 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8418 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8419 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8420 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8421 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8422 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8423 stack.c, symtab.c, tui/tui-disasm.c: Update.
8424
8425 2013-04-08 Tom Tromey <tromey@redhat.com>
8426
8427 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8428 Use symbol's obstack, not an objfile.
8429 * coffread.c (process_coff_symbol): Update.
8430 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8431 * jv-lang.c (add_class_symbol): Update.
8432 * mdebugread.c (new_symbol): Update.
8433 * minsyms.c (prim_record_minimal_symbol_full)
8434 (terminate_minimal_symbol_table): Update.
8435 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8436 * stabsread.c (define_symbol, read_enum_type): Update.
8437 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8438 Handle Ada specially.
8439 (symbol_set_language): Add 'obstack' argument.
8440 (symbol_set_names): Update.
8441 (symbol_natural_name, symbol_demangled_name): Always use
8442 ada_decode_symbol.
8443 * symtab.h (struct general_symbol_info)
8444 <language_specific::obstack>: New field.
8445 <ada_mangled>: New field.
8446 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8447 (symbol_set_language): Update.
8448
8449 2013-04-08 Tom Tromey <tromey@redhat.com>
8450
8451 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8452 Take an obstack, not an objfile.
8453 (symbol_set_names): Update.
8454 * symtab.h (symbol_set_demangled_name): Update.
8455
8456 2013-04-08 Tom Tromey <tromey@redhat.com>
8457
8458 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8459 allocate_symbol.
8460 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8461 (read_func_scope): Call allocate_template_symbol.
8462 (new_symbol_full): Call allocate_symbol.
8463 * jit.c (finalize_symtab): Call allocate_symbol.
8464 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8465 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8466 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8467 (common_block_end): Call allocate_symbol.
8468 * symtab.c (allocate_symbol, initialize_symbol)
8469 (allocate_template_symbol): New functions.
8470 * symtab.c (allocate_symbol, initialize_symbol)
8471 (allocate_template_symbol): Declare.
8472 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8473
8474 2013-04-08 Pedro Alves <palves@redhat.com>
8475 Keith Seitz <keiths@redhat.com>
8476
8477 * breakpoint.c (create_breakpoint): Rename
8478 "parse_condition_and_thread" parameter to "parse_arg". Update
8479 describing comment. If !PARSE_ARG, then error out if ARG is not
8480 the empty string after extracting the location.
8481 * breakpoint.h (create_breakpoint): Rename
8482 "parse_condition_and_thread" parameter to "parse_arg".
8483
8484 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8485
8486 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8487
8488 2013-04-07 Yao Qi <yao@codesourcery.com>
8489
8490 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8491 and 'addr2' to CORE_ADDR.
8492 * target.c (update_current_target): Update.
8493 * target.h (struct target_ops) <to_trace_find>: Change parameter
8494 type to CORE_ADDR.
8495 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8496 'addr2' to CORE_ADDR.
8497 (tfile_trace_find): Likewise.
8498 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8499 Change local variable 'addr' to type CORE_ADDR.
8500 * tracepoint.h (tfind_1): Update declaration.
8501
8502 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8503
8504 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8505 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8506 Include main.h.
8507
8508 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8509 here...
8510 * main.h (windows_get_absolute_argv0): ...to here.
8511
8512 2013-04-05 Doug Evans <dje@google.com>
8513
8514 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8515 (read_cutu_die_from_dwo): Add comments.
8516 (read_structure_type): Update comment.
8517 (read_enumeration_type, read_namespace_type): Update comment.
8518 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8519
8520 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8521
8522 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8523 * Makefile.in (gdb.z): Remove.
8524 (install-only): Remove $(man1dir) and gdb.1 installation.
8525 * gdb.1: Remove.
8526
8527 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8528
8529 Fix compatibility with Linux kernel 3.8.3.
8530 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8531 to more inner block. Remove parsing of NUMBER from outer block.
8532 Parse NUMBER only if KEYWORD has been identified.
8533
8534 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8535
8536 Fix variable name shadowing.
8537 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8538 filename to mapsfilename and update its uses.
8539
8540 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8541
8542 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8543 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8544 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8545 details of the problem.
8546
8547 2013-04-04 Pedro Alves <palves@redhat.com>
8548 Hui Zhu <hui@codesourcery.com>
8549
8550 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8551 tracepoint, reset its STEP_COUNT and call validate_actionline.
8552
8553 2013-04-03 Doug Evans <dje@google.com>
8554
8555 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8556 read_die_and_siblings.
8557 (read_die_and_siblings): New function.
8558 (read_cutu_die_from_dwo): Dump die if requested.
8559 (read_die_and_children): Call read_full_die_1 and
8560 read_die_and_siblings_1.
8561 (read_full_die): Dump die if requested.
8562
8563 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8564
8565 * dwarf2read.c (struct dwo_file): New member comp_dir.
8566 Rename member name to dwo_name. All uses updated.
8567 (hash_dwo_file): Include comp_dir in computation.
8568 (eq_dwo_file): Ditto.
8569 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8570 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8571
8572 * psymtab.c (read_psymtabs_with_fullname): Don't call
8573 psymtab_to_fullname if the basenames are different.
8574
8575 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8576
8577 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8578 New entry about "fullname" presence.
8579
8580 2013-04-03 Pedro Alves <palves@redhat.com>
8581
8582 * NEWS: Mention x86_64/Cygwin as new native configuration.
8583
8584 2013-04-02 Doug Evans <dje@google.com>
8585
8586 * dwarf2read.c (read_structure_type): Fix typo in comment.
8587
8588 2013-04-02 Pedro Alves <palves@redhat.com>
8589
8590 * NEWS: Mention "set/show debug aarch64", "set/show debug
8591 coff-pe-read" and "set/show debug mach-o".
8592
8593 2013-04-02 Pedro Alves <palves@redhat.com>
8594
8595 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8596
8597 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8598
8599 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8600 gdb_string.h is now in common/.
8601
8602 2013-04-02 Pedro Alves <palves@redhat.com>
8603
8604 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8605 under "New options".
8606
8607 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8608
8609 Revert this patch:
8610 PR gdb/15275
8611 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8612
8613 2013-04-02 Pedro Alves <palves@redhat.com>
8614
8615 PR gdb/15275
8616
8617 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8618 (remote_serial_write): New function.
8619 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8620
8621 2013-04-01 Jiong Wang <jiwang@tilera.com>
8622
8623 * NEWS: Mention TILE-Gx in "New native configurations" and
8624 "New targets" sections.
8625
8626 2013-04-01 Doug Evans <dje@google.com>
8627
8628 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8629 (process_enumeration_scope): Simplify.
8630
8631 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8632 type_unit_group ...
8633 (struct signatured_type): ... to here.
8634 (sig_type_ptr): New typedef.
8635 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8636 out of union 't'. All uses updated.
8637 (dw2_get_file_names_reader): Assert not called for a type unit.
8638 (dw2_get_file_names): Assert not called for a type unit or type
8639 unit group.
8640 (build_type_psymtabs_reader): Assert called for a type unit.
8641 (build_type_psymtab_dependencies): Assert called for a type unit group.
8642
8643 * dwarf2read.c (free_dwo_file): Add comment.
8644 (dwarf2_per_objfile_free): Unref dwp bfd.
8645
8646 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8647
8648 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8649 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8650 (read_pe_exported_syms): Remove unused 'exportix'.
8651 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8652 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8653 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8654
8655 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8656
8657 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8658 (print_it_watchpoint): Remove unused 'bl'.
8659 (say_where): Remove unused 'uiout'.
8660 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8661 (bkpt_breakpoint_hit): Remove unused 'b'.
8662 (internal_bkpt_print_it): Remove unused 'uiout'.
8663 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8664
8665 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8666
8667 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8668 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8669
8670 2013-03-29 Doug Evans <dje@google.com>
8671
8672 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8673 Delete arg is_dwp. All callers updated.
8674 (open_dwp_file): New function.
8675 (open_and_init_dwp_file): Call it.
8676 (get_dwp_file): New function.
8677 (lookup_dwo_cutu): Call it.
8678
8679 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8680 unnecessary, cleanup.
8681
8682 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8683
8684 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8685 (lookup_dwo_unit): New function.
8686 (init_cutu_and_read_dies): Move DWO handling to new functions.
8687
8688 * dwarf2read.c (struct signatured_type): Tweak comment.
8689 (struct dwo_unit): Tweak comment.
8690 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8691 (create_dwo_debug_info_hash_table): Tweak comment.
8692 (dwarf2_per_cu_offset_and_type): Tweak comment.
8693
8694 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8695 missing .debug_types section.
8696
8697 2013-03-29 Yao Qi <yao@codesourcery.com>
8698
8699 * corelow.c: Include "completer.h".
8700 (_initialize_corelow): Call add_target_with_completer with
8701 argument 'filename_completer'.
8702 * tracepoint.c: Likewise.
8703 * exec.c (_initialize_exec): Likewise.
8704 * target.c (add_target): Rename to ...
8705 (add_target_with_completer): ... this. Call set_cmd_completer
8706 if parameter completer is not NULL.
8707 (add_target): New.
8708 * target.h: Include "command.h".
8709 (add_target_with_completer): Declare it.
8710
8711 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8712
8713 * coffread.c (is_import_fixup_symbol): New function.
8714 (record_minimal_symbol): Use is_import_fixup_symbol to
8715 detect import fixup symbols, and discard them.
8716
8717 2013-03-28 Doug Evans <dje@google.com>
8718
8719 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8720 types hash table until we know we need it.
8721
8722 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8723 index numbers.
8724
8725 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8726 All callers updated.
8727 (dw2_print_stats): Print #read CUs too.
8728 (dump_die_shallow): Print signatured types better.
8729
8730 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8731 info_or_types_section to section. All uses updated.
8732 (struct dwo_unit): Ditto.
8733
8734 2013-03-28 Pedro Alves <palves@redhat.com>
8735
8736 * NEWS (New options): New section.
8737 (New options): Mention set/show remote trace-status-packet.
8738 * remote.c (PACKET_qTStatus): New enumeration value.
8739 (remote_get_trace_status): Skip sending qTStatus if the packet is
8740 disabled. Use packet_ok.
8741 (_initialize_remote): Register a configuration command for
8742 qTStatus packet.
8743
8744 2013-03-28 Doug Evans <dje@google.com>
8745
8746 * symfile.c (find_separate_debug_file): Add comment.
8747 (terminate_after_last_dir_separator): Tweak comment.
8748
8749 * dwarf2read.c (create_partial_symtab): Add forward decl.
8750 (create_partial_symtab): Move to be closer to other psymtab functions.
8751 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8752
8753 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8754 (compute_symtab_includes): Remove unnecessary forward declaration.
8755 (die_needs_namespace): Add comment marking group of functions for
8756 dwarf2 name computation.
8757
8758 * typeprint.c (_initialize_typeprint): Improve type help text.
8759
8760 * python/python.c (finish_python_initialization): Provide suggestion
8761 for how to tell gdb to find its python files.
8762
8763 2013-03-28 Pedro Alves <palves@redhat.com>
8764
8765 PR gdb/15294
8766
8767 * source.c (_initialize_source): Change back "set listsize" to an
8768 integer command.
8769
8770 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8771
8772 PR gdb/15275
8773 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8774
8775 2013-03-27 Pedro Alves <palves@redhat.com>
8776
8777 * top.c (history_size): Rename to ...
8778 (history_size_setshow_var): ... this. Add comment.
8779 (show_commands): Use readline's 'history_length' instead of
8780 computing the history length by calling history_get in a loop.
8781 (set_history_size_command): Error out for sizes over INT_MAX.
8782 Restore previous history size on invalid size.
8783 (init_history): If HISTSIZE is negative, leave the history size as
8784 zero. Add comments.
8785 (init_main): Adjust.
8786
8787 2013-03-27 Pedro Alves <palves@redhat.com>
8788
8789 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8790 coff_pe_read" command to "set debug coff-pe-read".
8791
8792 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8793
8794 * record.c (command_size_to_target_size): Fix size comparison.
8795 Change parameter type from pointer to integer to integer.
8796 Update all users.
8797
8798 2013-03-27 Pierre Muller <muller@sourceware.org>
8799
8800 * windows-nat.c (handle_output_debug_string): Avoid typecast
8801 from integer of different size warning.
8802
8803 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8804
8805 * windows-nat.c (handle_output_debug_string): Add empty line
8806 after local block variable definition.
8807
8808 2013-03-26 Pedro Alves <palves@redhat.com>
8809
8810 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8811 (net_open): Make 'polls' local unsigned.
8812
8813 2013-03-26 Pedro Alves <palves@redhat.com>
8814
8815 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8816 a zuinteger command instead of uinteger.
8817
8818 2013-03-26 Pedro Alves <palves@redhat.com>
8819
8820 * record-full.c (record_full_insn_num): Make it unsigned.
8821 (record_full_check_insn_num, record_full_message)
8822 (record_full_registers_change, record_full_xfer_partial): Remove
8823 record_full_insn_max_num check (it's always != 0).
8824 (record_full_info, record_full_restore): Use %u as format string.
8825 (): Use %u as format string.
8826 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8827 check (it's always != 0).
8828
8829 2013-03-26 Pedro Alves <palves@redhat.com>
8830
8831 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8832 and "set dcache size" commands zuinteger instead of uinteger.
8833
8834 2013-03-26 Pedro Alves <palves@redhat.com>
8835
8836 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8837 command zuinteger instead of uinteger.
8838
8839 2013-03-26 Pedro Alves <palves@redhat.com>
8840
8841 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8842 zuinteger instead of uinteger.
8843
8844 2013-03-26 Pedro Alves <palves@redhat.com>
8845
8846 * record.c (record_insn_history_size_setshow_var)
8847 (record_call_history_size_setshow_var): New globals.
8848 (command_size_to_target_size): New function.
8849 (cmd_record_insn_history, cmd_record_call_history): Use
8850 command_size_to_target_size instead of cast.
8851 (validate_history_size, set_record_insn_history_size)
8852 (set_record_call_history_size): New functions.
8853 (_initialize_record): Install set_record_insn_history_size and
8854 set_record_call_history_size as "set" hooks of "set record
8855 instruction-history-size" and "set record
8856 function-call-history-size".
8857
8858 2013-03-26 Pedro Alves <palves@redhat.com>
8859
8860 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8861 use with history_max_entries use. Remove FIXME note.
8862
8863 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8864
8865 * record-btrace.c (record_btrace_close): Call
8866 record_btrace_auto_disable.
8867
8868 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8869
8870 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8871
8872 2013-03-25 Doug Evans <dje@google.com>
8873
8874 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8875
8876 2013-03-25 Tom Tromey <tromey@redhat.com>
8877
8878 PR symtab/11462:
8879 * c-exp.y (exp): Add new productions for destructors after '.' and
8880 '->'.
8881 (write_destructor_name): New function.
8882
8883 2013-03-25 Tom Tromey <tromey@redhat.com>
8884
8885 PR c++/9197:
8886 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8887 value_struct_elt, not lookup_struct_elt_type.
8888 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8889 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8890 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8891
8892 2013-03-25 Yao Qi <yao@codesourcery.com>
8893
8894 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8895 instead of '_mkdir'.
8896
8897 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8898
8899 * windows-nat.c (windows_get_absolute_argv0): New function.
8900 * windows-nat.h: Add its prototype.
8901
8902 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8903 Use IS_DIR_SEPARATOR instead of looking for a character inside
8904 SLASH_STRING. Include filenames.h.
8905 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8906 relocate_gdb_directory works when passed gdb_program_name.
8907 Include windows-nat.h.
8908
8909 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8910
8911 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8912 * remote.c (trace_error): Remove the special handling of '2'.
8913 (readchar) <SERIAL_EOF>
8914 (readchar) <SERIAL_ERROR>
8915 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8916 (remote_get_trace_status): Call throw_exception if EX is
8917 TARGET_CLOSE_ERROR.
8918 * utils.c (perror_with_name): Rename to ...
8919 (throw_perror_with_name): ... here. New parameter errcode, describe it
8920 in the function comment.
8921 (perror_with_name): New function wrapper.
8922 * utils.h (enum errors): New stub declaration.
8923 (throw_perror_with_name): New declaration.
8924
8925 2013-03-22 Pedro Alves <palves@redhat.com>
8926 Yao Qi <yao@codesourcery.com>
8927 Mark Kettenis <kettenis@gnu.org>
8928
8929 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8930 Don't let the user set the value to UINT_MAX directly.
8931 <var_integer>: Don't let the user set the value to INT_MAX
8932 directly.
8933
8934 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8935
8936 * remote.c (remote_unpush_target): New function.
8937 (remote_open_1): Remove two pop_target calls, update one comment, add
8938 comment to target_preopen call. Replace pop_target call by
8939 remote_unpush_target call.
8940 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8941 pop_target calls by remote_unpush_target calls.
8942
8943 2013-03-22 Pedro Alves <palves@redhat.com>
8944
8945 * linux-nat.c (linux_child_follow_fork): Don't call
8946 linux_enable_event_reporting.
8947 (linux_handle_extended_wait): Don't call
8948 linux_enable_event_reporting.
8949
8950 2013-03-22 Pedro Alves <palves@redhat.com>
8951
8952 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8953 use it to rewrite the trampoline buffers with type gdb_byte[], and
8954 undefine the macro. Remove char* cast.
8955
8956 2013-03-21 Doug Evans <dje@google.com>
8957
8958 New commands "mt set per-command {space,time,symtab} {on,off}".
8959 * NEWS: Add entry.
8960 * event-top.c: #include "maint.h".
8961 * main.c: #include "maint.h".
8962 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8963 timeval-utils.h, maint.h, cli/cli-setshow.h.
8964 (per_command_time, per_command_space): New static globals.
8965 (per_command_symtab): New static global.
8966 (per_command_setlist, per_command_showlist): New static globals.
8967 (struct cmd_stats): Move here from utils.c.
8968 (set_per_command_time): Renamed from set_display_time in utils.c
8969 and moved here. All callers updated.
8970 (set_per_command_space): Renamed from set_display_space in utils.c
8971 and moved here. All callers updated.
8972 (count_symtabs_and_blocks): New function.
8973 (report_command_stats): Moved here from utils.c. Add support for
8974 printing symtab stats. Only print data if enabled before command
8975 executed.
8976 (make_command_stats_cleanup): Ditto.
8977 (sert_per_command_cmd, show_per_command_cmd): New functions.
8978 (_initialize_maint_cmds): Add new commands
8979 mt set per-command {space,time,symtab} {on,off}.
8980 * maint.h: New file.
8981 * top.c: #include "maint.h".
8982 * utils.c (reset_prompt_for_continue_wait_time): New function.
8983 (get_prompt_for_continue_wait_time): New function.
8984 * utils.h (reset_prompt_for_continue_wait_time): Declare
8985 (get_prompt_for_continue_wait_time): Declare.
8986 (make_command_stats_cleanup): Moved to maint.h.
8987 (set_display_time, set_display_space): Moved to maint.h and renamed
8988 to set_per_command_time, set_per_command_space.
8989 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8990 parse_binary_operation and made non-static. Don't call error,
8991 just return an error marker. All callers updated.
8992 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8993
8994 2013-03-21 Tom Tromey <tromey@redhat.com>
8995
8996 * symfile.c (alloc_section_addr_info): Update header. Don't set
8997 'num_sections' field.
8998 (build_section_addr_info_from_section_table): Set 'num_sections'.
8999 (build_section_addr_info_from_bfd): Likewise.
9000 (build_section_addr_info_from_objfile): Remove dead loop
9001 condition.
9002 (free_section_addr_info): Unconditionally call xfree.
9003 (relative_addr_info_to_section_offsets, addrs_section_sort)
9004 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9005 condition.
9006 (syms_from_objfile_1): Remove dead 'if' condition. Check
9007 'num_sections'.
9008 (add_symbol_file_command): Set 'num_sections'.
9009 * symfile-mem.c (symbol_file_add_from_memory): Set
9010 'num_sections'.
9011 * somread.c (som_symfile_offsets): Remove dead loop condition.
9012 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9013 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9014
9015 2013-03-21 Tom Tromey <tromey@redhat.com>
9016
9017 * tracepoint.h (decode_agent_options): Add 'trace_string'
9018 argument.
9019 * tracepoint.c (decode_agent_options): Add 'trace_string'
9020 argument.
9021 (validate_actionline): Update.
9022 (collect_symbol): Add 'trace_string' argument.
9023 (struct add_local_symbols_data) <trace_string>: New field.
9024 (do_collect_symbol): Update.
9025 (add_local_symbols): Add 'trace_string' argument.
9026 (encode_actions_1): Update.
9027 (trace_dump_actions): Update.
9028 * dwarf2loc.c (access_memory): Update.
9029 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9030 * ax-general.c (new_agent_expr): Update.
9031 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9032 (gen_trace_for_return_address): Add argument.
9033 (trace_kludge, trace_string_kludge): Remove.
9034 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9035 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9036 (gen_trace_for_var): Add 'trace_string' argument.
9037 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9038 (gen_printf, agent_eval_command_one): Update.
9039
9040 2013-03-21 Tom Tromey <tromey@redhat.com>
9041
9042 PR exp/15109:
9043 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9044 Handle FILENAME token.
9045
9046 2013-03-21 Tom Tromey <tromey@redhat.com>
9047
9048 * c-exp.y (YYPRINT): Define.
9049 (c_print_token): New function.
9050
9051 2013-03-21 Tom Tromey <tromey@redhat.com>
9052
9053 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9054
9055 2013-03-21 Yao Qi <yao@codesourcery.com>
9056
9057 * ctf.c: Include "gdb_stat.h".
9058 [USE_WIN32API]: New macro 'mkdir'.
9059 (ctf_start): Use permission bits macros if they are defined.
9060
9061 2013-03-20 Keith Seitz <keiths@redhat.com>
9062
9063 * breakpoint.h (struct breakpoint): Add comment to
9064 extra_string indicating that this member is mallod'd.
9065 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9066
9067 2013-03-20 Pedro Alves <palves@redhat.com>
9068
9069 PR gdb/15289
9070
9071 * cli/cli-setshow.c (do_set_command)
9072 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9073 the result of parsing the command argument. Throw error if the
9074 value is greater than UINT_MAX. Print the invalid value with
9075 plongest.
9076 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9077 result of parsing the command argument. Throw error if the value
9078 is greater than INT_MAX, not greater or equal. Also throw error
9079 if the value is less than INT_MIN. Print the invalid value with
9080 plongest.
9081 <var_zuinteger_unlimited>: Throw error if the value is greater
9082 than INT_MAX, not greater or equal.
9083 (do_show_command) <var_integer, var_zinteger,
9084 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9085
9086 2013-03-20 Tom Tromey <tromey@redhat.com>
9087
9088 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9089 if possible.
9090 * dwarf2read.c (read_func_scope): Remove old FIXME.
9091 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9092 not LOC_COMPUTED.
9093 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9094 Unconditionally call via computed ops, if possible.
9095 * printcmd.c (address_info): Unconditionally call via computed ops,
9096 if possible.
9097 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9098 if possible.
9099 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9100 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9101 if possible.
9102
9103 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9104 Tom Tromey <tromey@redhat.com>
9105
9106 PR symtab/8421:
9107 * coffread.c (coff_register_index): New global.
9108 (process_coff_symbol, coff_read_enum_type): Set
9109 SYMBOL_ACLASS_INDEX.
9110 (_initialize_coffread): Initialize new global.
9111 * dwarf2loc.c (locexpr_find_frame_base_location)
9112 (dwarf2_block_frame_base_locexpr_funcs)
9113 (loclist_find_frame_base_location)
9114 (dwarf2_block_frame_base_loclist_funcs): New.
9115 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9116 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9117 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9118 (dwarf2_block_frame_base_loclist_funcs): New.
9119 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9120 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9121 globals.
9122 (read_func_scope): Update.
9123 (fixup_go_packaging, mark_common_block_symbol_computed)
9124 (var_decode_location, new_symbol_full, dwarf2_const_value):
9125 Set SYMBOL_ACLASS_INDEX.
9126 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9127 (_initialize_dwarf2_read): Initialize new globals.
9128 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9129 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9130 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9131 globals.
9132 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9133 (_initialize_mdebugread): Initialize new globals.
9134 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9135 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9136 (stab_register_index, stab_regparm_index): New globals.
9137 (define_symbol, read_enum_type, common_block_end): Set
9138 SYMBOL_ACLASS_INDEX.
9139 (_initialize_stabsread): Initialize new globals.
9140 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9141 globals.
9142 (MAX_SYMBOL_IMPLS): New define.
9143 (register_symbol_computed_impl, register_symbol_block_impl)
9144 (register_symbol_register_impl)
9145 (initialize_ordinary_address_classes): New functions.
9146 (_initialize_symtab): Call initialize_ordinary_address_classes.
9147 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9148 (struct symbol_impl): New.
9149 (SYMBOL_ACLASS_BITS): New define.
9150 (struct symbol) <aclass, ops>: Remove fields.
9151 <aclass_index>: New field.
9152 (symbol_impls): Declare.
9153 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9154 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9155 (register_symbol_computed_impl, register_symbol_block_impl)
9156 (register_symbol_register_impl): Declare.
9157 (struct symbol_computed_ops): Add location_has_loclist.
9158 (struct symbol_block_ops): New.
9159 (SYMBOL_BLOCK_OPS): New.
9160 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9161
9162 2013-03-20 Tom Tromey <tromey@redhat.com>
9163
9164 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9165 (print_partial_symbols, recursively_search_psymtabs): Use
9166 PSYMBOL_CLASS.
9167
9168 2013-03-20 Pierre Muller <muller@sourceware.org>
9169
9170 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9171 addtion, subtraction, multiplication and division binary operator.
9172
9173 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9174
9175 Code cleanup.
9176 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9177 * bsd-kvm.c (bsd_kvm_close): Likewise.
9178 * bsd-uthread.c (bsd_uthread_close): Likewise.
9179 * corelow.c (core_close): Likewise.
9180 (core_close_cleanup): Remove parameter quitting from a caller.
9181 * event-top.c (async_disconnect): Likewise.
9182 * exec.c (exec_close_1): Remove parameter quitting.
9183 * go32-nat.c (go32_close): Likewise.
9184 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9185 parameter quitting from a caller.
9186 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9187 variable.
9188 (mips_linux_close): Remove parameter quitting. Remove parameter
9189 quitting from a caller.
9190 * monitor.c (monitor_close): Remove parameter quitting.
9191 * monitor.h (monitor_close): Likewise.
9192 * record-btrace.c (record_btrace_close): Likewise.
9193 * record-full.c (record_full_close): Likewise.
9194 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9195 it also from fprintf_unfiltered.
9196 * remote-mips.c (mips_close): Remove parameter quitting.
9197 (mips_detach): Remove parameter quitting from a caller.
9198 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9199 (gdbsim_close): Remove duplicate function comment. Remove parameter
9200 quitting and remove it also from printf_filtered.
9201 * remote.c (remote_close): Remove parameter quitting.
9202 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9203 * target.c (update_current_target): Remove parameter int from to_close
9204 de_fault.
9205 (push_target, unpush_target, pop_target): Remove parameter quitting from
9206 a caller.
9207 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9208 Remove parameter quitting from a caller.
9209 (target_preopen): Remove parameter quitting from a caller.
9210 (target_close): Remove parameter quitting. Remove parameter quitting
9211 from a caller two times. Remove parameter quitting also from
9212 fprintf_unfiltered.
9213 * target.h (struct target_ops): Remove parameter quitting and as int
9214 from fields to_xclose and to_close.
9215 (extern struct target_ops current_target):
9216 (target_close, pop_all_targets): Remove parameter quitting. Update the
9217 comment.
9218 (pop_all_targets_above): Remove parameter quitting.
9219 * top.c (quit_target): Remove parameter quitting from a caller.
9220 * tracepoint.c (tfile_close): Remove parameter quitting.
9221 * windows-nat.c (windows_close): Remove parameter quitting.
9222
9223 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9224
9225 * windows-nat.c (handle_output_debug_string): Replace call
9226 to string_to_core_addr with call to strtoull.
9227
9228 2013-03-20 Yao Qi <yao@codesourcery.com>
9229
9230 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9231 and write it to CTF metadata.
9232
9233 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9234
9235 * windows-nat.c (handle_output_debug_string): Change type of n to
9236 SIZE_T to avoid crash on 64 bit systems.
9237
9238 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9239
9240 * python/python-internal.h (HAVE_SNPRINTF)
9241 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9242 about redefinition of snprintf by pyerrors.h.
9243
9244 2013-03-15 Steve Ellcey <sellcey@mips.com>
9245
9246 * remote-sim.c (sim_command_completer): Make char arguments const.
9247
9248 2013-03-15 Tom Tromey <tromey@redhat.com>
9249
9250 PR c++/15116:
9251 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9252
9253 2013-03-14 Tom Tromey <tromey@redhat.com>
9254
9255 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9256 New fields.
9257 (get_file_crc): Move from symfile.c.
9258 (gdb_bfd_crc): New function.
9259 * gdb_bfd.h (gdb_bfd_crc): Declare.
9260 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9261 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9262 (separate_debug_file_exists): Use gdb_bfd_crc.
9263
9264 2013-03-14 Tom Tromey <tromey@redhat.com>
9265
9266 * symfile.c (get_debug_link_info): Remove.
9267 (find_separate_debug_file_by_debuglink): Use
9268 bfd_get_debug_link_info.
9269
9270 2013-03-14 Tom Tromey <tromey@redhat.com>
9271
9272 * symtab.c (error_in_psymtab_expansion): New function.
9273 (lookup_symbol_aux_quick)
9274 (basic_lookup_transparent_type_quick): Remove "last resort"
9275 code. Use error_in_psymtab_expansion.
9276
9277 2013-03-14 Doug Evans <dje@google.com>
9278 Jan Kratochvil <jan.kratochvil@redhat.com>
9279
9280 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9281 any successful compare_filenames_for_search or FILENAME_CMP.
9282 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9283 * symtab.c (iterate_over_some_symtabs): Likewise.
9284
9285 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9286
9287 * source.c (print_source_lines_base): Make a local copy of
9288 symtab_to_fullname.
9289
9290 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9291 Jan Kratochvil <jan.kratochvil@redhat.com>
9292
9293 * source.c (print_source_lines_base): Suppress "file" for TUI.
9294
9295 2013-03-14 Keith Seitz <keiths@redhat.com>
9296 Alan Matsuoka <alanm@redhat.com>
9297
9298 PR c++/15203
9299 PR c++/15210
9300 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9301 TYPE_CODE_METHOD.
9302 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9303 symbols.
9304
9305 2013-03-14 Yao Qi <yao@codesourcery.com>
9306
9307 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9308 status to tfile if trace is stopped by command 'tstop'.
9309
9310 2013-03-14 Yao Qi <yao@codesourcery.com>
9311
9312 * tracepoint.c (tfile_write_status): Write trace notes and user
9313 name into tfile if they are not NULL.
9314
9315 2013-03-14 Hui Zhu <hui@codesourcery.com>
9316 Yao Qi <yao@codesourcery.com>
9317
9318 * Makefile.in (REMOTE_OBS): Add ctf.o.
9319 (SFILES): Add ctf.c.
9320 (HFILES_NO_SRCDIR): Add ctf.h.
9321 * ctf.c, ctf.h: New files.
9322 * tracepoint.c: Include 'ctf.h'.
9323 (collect_pseudocommand): Remove static.
9324 (trace_save_command): Parse option "-ctf".
9325 Produce different trace file writers per option.
9326 Adjust output message.
9327 (trace_save_tfile, trace_save_ctf): New.
9328 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9329 * mi/mi-main.c: Include 'ctf.h'.
9330 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9331 trace_save_tfile or trace_save_ctf.
9332 * NEWS: Mention these changes.
9333
9334 2013-03-14 Yao Qi <yao@codesourcery.com>
9335
9336 * tracepoint.c (trace_file_writer_xfree): New.
9337 (struct tfile_writer_data): New.
9338 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9339 (tfile_write_header, tfile_write_regblock_type): New.
9340 (tfile_write_status, tfile_write_uploaded_tsv): New.
9341 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9342 (tfile_write_raw_data, (tfile_end): New.
9343 (tfile_write_ops): New global variable.
9344 (TRACE_WRITE_R_BLOCK): New macro.
9345 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9346 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9347 (TRACE_WRITE_V_BLOCK): New macro.
9348 (trace_save): Add extra one parameter WRITER. Make it static.
9349 Use WRITER to writer trace.
9350 (tfile_trace_file_writer_new): New.
9351 (trace_save_command): Caller update.
9352 (trace_save_tfile): Write trace data in TFILE format.
9353 * tracepoint.h (struct trace_frame_write_ops): New.
9354 (struct trace_file_write_ops): New.
9355 (struct trace_file_writer): New.
9356 (trace_save): Remove its declaration.
9357 (trace_save_tfile): Declare it.
9358 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9359 instead of trace_save.
9360
9361 2013-03-13 Pedro Alves <palves@redhat.com>
9362
9363 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9364
9365 2013-03-13 Pedro Alves <palves@redhat.com>
9366
9367 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9368 commented out code.
9369 * demangle.c (current_demangling_style_string): Make it const.
9370 (set_demangling_command): Assert the demangling style is known.
9371 Remove all handling of unknown styles. Set
9372 'current_demangling_style_string' to an element of the
9373 demangling_style_names array.
9374 (set_demangling_style): Delete.
9375 (_initialize_demangler): Set current_demangling_style_string to the
9376 element of the demangling_style_names array that corresponds to
9377 the default demangling style. Remove FIXME note. Don't call
9378 set_demangling_style.
9379 * gdb-demangle.h (set_demangling_style): Remove declaration.
9380
9381 2013-03-13 Pedro Alves <palves@redhat.com>
9382
9383 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9384 fields const.
9385 (ada_make_symbol_completion_list): Make "text0" parameter const.
9386 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9387 * breakpoint.c (condition_completer): Make "text" and "word"
9388 parameters const. Adjust.
9389 (check_tracepoint_command): Adjust to validate_actionline
9390 prototype change.
9391 (catch_syscall_completer): Make "text" and "word" parameters
9392 const.
9393 * cli/cli-cmds.c (show_user): Make "comname" local const.
9394 (valid_command_p): Make "command" parameter const.
9395 (alias_command): Make "alias_prefix" and "command_prefix" locals
9396 const.
9397 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9398 (add_alias_cmd): Make "name" and "oldname" parameters const.
9399 Adjust. No longer make copy of OLDNAME.
9400 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9401 (add_setshow_cmd_full, add_setshow_enum_cmd)
9402 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9403 (add_setshow_filename_cmd, add_setshow_string_cmd)
9404 (add_setshow_string_noescape_cmd)
9405 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9406 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9407 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9408 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9409 Make "name" parameter const.
9410 (help_cmd): Rename "command" parameter to "arg". New const local
9411 "command".
9412 (find_cmd): Make "command" parameter const.
9413 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9414 deprecated_cmd_warning prototype change.
9415 (undef_cmd_error): Make "cmdtype" parameter const.
9416 (lookup_cmd): Make "line" parameter const.
9417 (deprecated_cmd_warning): Change type of "text" parameter to
9418 pointer to const char, from pointer to pointer to char. Adjust.
9419 (lookup_cmd_composition): Make "text" parameter const.
9420 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9421 parameters const.
9422 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9423 const.
9424 * cli/cli-script.c (validate_comname): Make "tem" local const.
9425 (define_command): New const local "tem_c". Use it in calls to
9426 lookup_cmd.
9427 (document_command): Make "tem" and "comfull" locals const.
9428 (show_user_1): Make "prefix" and "name" parameters const.
9429 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9430 const.
9431 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9432 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9433 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9434 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9435 (complete_on_enum, add_setshow_enum_cmd)
9436 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9437 (add_setshow_filename_cmd, add_setshow_string_cmd)
9438 (add_setshow_string_noescape_cmd)
9439 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9440 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9441 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9442 Change prototypes, constifying strings.
9443 * completer.c (noop_completer, filename_completer): Make "text"
9444 and "prefix" parameters const.
9445 (location_completer, expression_completer)
9446 (complete_line_internal): Make "text" and "prefix" parameters
9447 const and adjust.
9448 (command_completer, signal_completer): Make "text" and "prefix"
9449 parameters const.
9450 * completer.h (noop_completer, filename_completer)
9451 (expression_completer, location_completer, command_completer)
9452 (signal_completer): Change prototypes.
9453 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9454 parameters const.
9455 * cp-abi.c (cp_abi_completer): Likewise.
9456 * expression.h (parse_expression_for_completion): Change
9457 prototype.
9458 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9459 parameters const.
9460 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9461 * infrun.c (handle_completer): Make "text" and "word" parameters
9462 const.
9463 * interps.c (interpreter_completer): Make "text" and "word"
9464 parameters const.
9465 * language.h (struct language_defn)
9466 <la_make_symbol_completion_list>: Make "text" and "word"
9467 parameters const.
9468 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9469 (parse_exp_in_context): Rename to ...
9470 (parse_exp_in_context_1): ... this.
9471 (parse_exp_in_context): Reimplement, with const hack from
9472 parse_exp_1.
9473 (parse_expression_for_completion): Make "string" parameter const.
9474 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9475 to pointer to const char. Adjust.
9476 (print_command_1): Make "exp" parameter const.
9477 (output_command): Rename to ...
9478 (output_command_const): ... this. Make "exp" parameter const.
9479 (output_command): Reimplement.
9480 (x_command): Adjust.
9481 (display_command): Rename "exp" parameter to "arg". New "exp"
9482 local, const version of "arg".
9483 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9484 "cmd_name" local const.
9485 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9486 call.
9487 (cmdpy_completer): Make "text" and "word" parameters const.
9488 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9489 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9490 const.
9491 * remote.c (_initialize_remote): Make "cmd_name" local const.
9492 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9493 parameters const. Adjust.
9494 (completion_list_add_fields): Make "sym_text", "text" and "word"
9495 parameters const.
9496 (struct add_name_data) <sym_text, text, word>: Make fields const.
9497 (default_make_symbol_completion_list_break_on): Make "text" and
9498 "word" parameters const. Adjust locals.
9499 (default_make_symbol_completion_list)
9500 (make_symbol_completion_list, make_symbol_completion_type)
9501 (make_symbol_completion_list_fn): Make "text" and "word"
9502 parameters const.
9503 (make_file_symbol_completion_list): Make "text", "word" and
9504 "srcfile" parameters const. Adjust locals.
9505 (add_filename_to_list): Make "text" and "word" parameters const.
9506 (struct add_partial_filename_data) <text, word>: Make fields
9507 const.
9508 (make_source_files_completion_list): Make "text" and "word"
9509 parameters const.
9510 * symtab.h (default_make_symbol_completion_list_break_on)
9511 (default_make_symbol_completion_list, make_symbol_completion_list)
9512 (make_symbol_completion_type enum type_code)
9513 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9514 (make_source_files_completion_list): Change prototype.
9515 * top.c (execute_command): Adjust to pass pointer to pointer to
9516 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9517 change.
9518 (set_verbose): Make "cmdname" local const.
9519 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9520 and adjust.
9521 (validate_actionline): Make "line" parameter a pointer to const
9522 char, and adjust.
9523 (encode_actions_1): Make "action_exp" local const, and adjust.
9524 (encode_actions): Adjust.
9525 (replace_comma): Delete.
9526 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9527 const, and adjust. Don't frob the action string while splitting
9528 it at commas. Instead, make a copy of each split substring in
9529 turn.
9530 (trace_dump_command): Adjust to validate_actionline prototype
9531 change.
9532 * tracepoint.h (decode_agent_options, decode_agent_options)
9533 (encode_actions, validate_actionline): Change prototypes.
9534 * valprint.h (output_command): Delete declaration.
9535 (output_command_const): Declare.
9536 * value.c (function_destroyer): Cast const away in xfree call.
9537
9538 2013-03-13 Pedro Alves <palves@redhat.com>
9539
9540 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9541 rather than casting 'const char * const *' to 'const char **'.
9542 * ada-lex.l (processInt): Make "trailer" local const. Remove
9543 'const char **' cast.
9544 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9545 locals, and use those as strtol output pointer, instead than doing
9546 invalid casts to from 'const char **' to 'char **'.
9547 (_initialize_demangle): Remove cast.
9548 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9549 locals, and use those as strtol output pointer, instead than doing
9550 invalid casts to from 'const char **' to 'char **'.
9551 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9552 casts.
9553 * stap-probe.c (stap_parse_register_operand)
9554 (stap_parse_single_operand): Likewise.
9555
9556 2013-03-13 Yao Qi <yao@codesourcery.com>
9557
9558 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9559 the last matched 'V' blcok in trace frame.
9560
9561 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9562
9563 * NEWS: Create a new section for the next release branch.
9564 Rename the section of the current branch, now that it has
9565 been cut.
9566
9567 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9568
9569 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9570 * version.in: Bump version to 7.6.50.20130312-cvs.
9571
9572 2013-03-12 Keith Seitz <keiths@redhat.com>
9573
9574 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9575 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9576 Remove temporary copy of input string.
9577 (mi_execute_command_wrapper): Make "cmd" const.
9578 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9579 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9580 Use const strings.
9581 (mi_parse): Make "cmd" const.
9582 Use const strings.
9583 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9584
9585 2013-03-12 Keith Seitz <keiths@redhat.com>
9586
9587 * ada-lang.c (ada_read_renaming_var_value): Pass const
9588 pointer to expression string to parse_exp_1.
9589 (create_excep_cond_exprs): Likewise.
9590 * ax-gdb.c (agent_eval_command_one): Likewise.
9591 (maint_agent_printf_command): Likewise.
9592 Constify much of the string handling/parsing.
9593 * breakpoint.c (set_breakpoint_condition): Pass const
9594 pointer to expression string to parse_exp_1.
9595 (update_watchpoint): Likewise.
9596 (parse_cmd_to_aexpr): Constify string handling.
9597 Pass const pointer to parse_exp_1.
9598 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9599 (find_condition_and_thread): Likewise.
9600 Make TOK const.
9601 (watch_command_1): Make "arg" const.
9602 Constify string handling.
9603 Copy the expression string instead of changing the input
9604 string.
9605 (update_breakpoint_location): Pass const pointer to
9606 parse_exp_1.
9607 * eval.c (parse_and_eval_address): Make "exp" const.
9608 (parse_to_comma_and_eval): Make "expp" const.
9609 (parse_and_eval): Make "exp" const.
9610 * expression.h (parse_expression): Make argument const.
9611 (parse_exp_1): Make first argument const.
9612 * findcmd.c (parse_find_args): Treat "args" as const.
9613 * linespec.c (parse_linespec): Pass const pointer to
9614 linespec_expression_to_pc.
9615 (linespec_expression_to_pc): Make "exp_ptr" const.
9616 * parse.c (parse_exp_1): Make "stringptr" const.
9617 Make a copy of the expression to pass to parse_exp_in_context until
9618 this whole interface can be constified.
9619 (parse_expression): Make "string" const.
9620 * printcmd.c (ui_printf): Treat "arg" as const.
9621 Handle const strings.
9622 * tracepoint.c (validate_actionline): Pass const pointer to
9623 all calls to parse_exp_1.
9624 (encode_actions_1): Likewise.
9625 * value.h (parse_to_comma_and_eval): Make argument const.
9626 (parse_and_eval_address): Likewise.
9627 (parse_and_eval): Likewise.
9628 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9629 (varobj_set_value): Likewise.
9630 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9631 constify string handling.
9632 Pass const pointers to parse_and_eval_address and
9633 parse_to_comman_and_eval.
9634 * cli/cli-utils.c (skip_to_space): Rename to ...
9635 (skip_to_space_const): ... this. Handle const strings.
9636 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9637 skip_to_space_const.
9638 (skip_to_space_const): Declare.
9639 * common/format.c (parse_format_string): Make "arg" const.
9640 Handle const strings.
9641 * common/format.h (parse_format_string): Make "arg" const.
9642 * gdbserver/ax.c (ax_printf): Make "format" const.
9643 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9644 of the expression string.
9645
9646 2013-03-12 Hui Zhu <hui@codesourcery.com>
9647
9648 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9649
9650 2013-03-12 Yao Qi <yao@codesourcery.com>
9651 Hui Zhu <hui@codesourcery.com>
9652
9653 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9654 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9655 DW_OP_deref_size.
9656
9657 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9658
9659 * ada-lex.l (rules): Only recognize 'thread' as a
9660 delimiter when followed by numerals, as for c-exp.y.
9661 Use new rewind_to_char function to rewind the input for
9662 expression-delimiting tokens.
9663 (rewind_to_char): New function.
9664
9665 2013-03-11 Pedro Alves <palves@redhat.com>
9666 Jan Kratochvil <jan.kratochvil@redhat.com>
9667
9668 * configure: Regenerate.
9669 * configure.ac (check dynamic export flag): Link python test with
9670 $PYTHON_LIBS.
9671
9672 2013-03-11 Doug Evans <dje@google.com>
9673 Keith Seitz <keiths@redhat.com>
9674
9675 * linespec.c (find_linespec_symbols): Call find_function_symbols
9676 first, and then call lookup_prefix_sym/find_method.
9677
9678 2013-03-11 Pedro Alves <palves@redhat.com>
9679
9680 * charset.c (convert_between_encodings): Don't cast between
9681 different pointer to pointer types. Instead, make the 'inp' local
9682 be of the type iconv expects.
9683 (wchar_iterate): Don't cast between different pointer to pointer
9684 types. Instead, use new pointer local of the type iconv expects.
9685 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9686 Add new local of type char pointer, and use it to get a
9687 char/string view of the byte buffer, instead of casting between
9688 pointer to pointer types.
9689
9690 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9691
9692 * remote.c (remote_set_trace_buffer_size): Move != operator
9693 to the start of next line to fix an ARI warning.
9694
9695 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9696
9697 * NEWS: Add record changes.
9698
9699 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9700
9701 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9702 the instruction history disassembly.
9703 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9704 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9705
9706 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9707
9708 * Makefile.in (SFILES): Add record-btrace.c
9709 (COMMON_OBS): Add record-btrace.o
9710 * record-btrace.c: New.
9711 * objfiles.c: Include btrace.h.
9712 (free_objfile): call btrace_free_objfile.
9713
9714 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9715
9716 * target.c (target_call_history, target_call_history_from,
9717 target_call_history_range): New.
9718 * target.h (target_ops) <to_call_history, to_call_history_from,
9719 to_call_history_range>: New fields.
9720 (target_call_history, target_call_history_from,
9721 target_call_history_range): New declaration.
9722 * record.c (get_call_history_modifiers, cmd_record_call_history,
9723 record_call_history_size): New.
9724 (_initialize_record): Add the "record function-call-history" command.
9725 Add "set/show record function-call-history-size" commands.
9726 * record.h (record_print_flag): New.
9727
9728 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9729
9730 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9731 to_insn_history_range>: New fields.
9732 (target_insn_history): New.
9733 (target_insn_history_from): New.
9734 (target_insn_history_range): New.
9735 * target.c (target_insn_history): New.
9736 (target_insn_history_from): New.
9737 (target_insn_history_range): New.
9738 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9739 (record_insn_history_size): New.
9740 (get_insn_number): New.
9741 (get_context_size): New.
9742 (no_chunk): New.
9743 (get_insn_history_modifiers): New.
9744 (cmd_record_insn_history): New.
9745 (_initialize_record): Add "set/show record instruction-history-size"
9746 command. Add "record instruction-history" command.
9747
9748 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9749
9750 * record.h (record_disconnect): New.
9751 (record_detach): New.
9752 (record_mourn_inferior): New.
9753 (record_kill): New.
9754 * record-full.c (record_disconnect, record_detach,
9755 record_mourn_inferior, record_kill): Move to...
9756 * record.c: ...here.
9757 (DEBUG): New.
9758 (record_stop): New.
9759 (record_unpush): New.
9760 (cmd_record_stop): Call record_stop. Replace unpush_target
9761 call with record_unpush call.
9762 (record_disconnect, record_detach): Assert that the target
9763 is of record stratum. Call record_unpush, record_stop, and
9764 DEBUG.
9765 (record_mourn_inferior, record_kill): Assert that the target
9766 is of record stratum. Call record_unpush and DEBUG.
9767
9768 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9769
9770 * record-full.h, record-full.c (record_memory_query): Rename
9771 to ...
9772 (record_full_memory_query): ...this. Update all users.
9773 (record_arch_list_add_reg): Rename to ...
9774 (record_full_arch_list_add_reg): ...this. Update all users.
9775 (record_arch_list_add_mem): Rename to ...
9776 (record_full_arch_list_add_mem): ...this. Update all users.
9777 (record_arch_list_add_end): Rename to ...
9778 (record_full_arch_list_add_end): ...this. Update all users.
9779 (record_gdb_operation_disable_set): Rename to ...
9780 (record_full_gdb_operation_disable_set): ...this.
9781 Update all users.
9782
9783 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9784
9785 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9786 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9787 (RECORD_IS_REPLAY): Renamed to ...
9788 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9789 (RECORD_FILE_MAGIC): Renamed to ...
9790 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9791 (record_mem_entry): Renamed to ...
9792 (record_full_mem_entry): ... this. Updated all users.
9793 (record_reg_entry): Renamed to ...
9794 (record_full_reg_entry): ... this. Updated all users.
9795 (record_end_entry): Renamed to ...
9796 (record_full_end_entry): ... this. Updated all users.
9797 (record_type) <record_end, record_reg, record_mem>: Renamed
9798 to ...
9799 (record_full_type) <record_full_end, record_full_reg,
9800 record_full_mem>: ... this. Updated all users.
9801 (record_entry): Renamed to ...
9802 (record_full_entry): ... this. Updated all users.
9803 (record_core_buf_entry): Renamed to ...
9804 (record_full_core_buf_entry): ... this. Updated all users.
9805 (record_core_regbuf): Renamed to ...
9806 (record_full_core_regbuf): ... this. Updated all users.
9807 (record_core_start): Renamed to ...
9808 (record_full_core_start): ... this. Updated all users.
9809 (record_core_end): Renamed to ...
9810 (record_full_core_end): ... this. Updated all users.
9811 (record_core_buf_list): Renamed to ...
9812 (record_full_core_buf_list): ... this. Updated all users.
9813 (record_first): Renamed to ...
9814 (record_full_first): ... this. Updated all users.
9815 (record_list): Renamed to ...
9816 (record_full_list): ... this. Updated all users.
9817 (record_arch_list_head): Renamed to ...
9818 (record_full_arch_list_head): ... this. Updated all users.
9819 (record_arch_list_tail): Renamed to ...
9820 (record_full_arch_list_tail): ... this. Updated all users.
9821 (record_stop_at_limit): Renamed to ...
9822 (record_full_stop_at_limit): ... this. Updated all users.
9823 (record_insn_max_num): Renamed to ...
9824 (record_full_insn_max_num): ... this. Updated all users.
9825 (record_insn_num): Renamed to ...
9826 (record_full_insn_num): ... this. Updated all users.
9827 (record_insn_count): Renamed to ...
9828 (record_full_insn_count): ... this. Updated all users.
9829 (record_ops): Renamed to ...
9830 (record_full_ops): ... this. Updated all users.
9831 (record_core_ops): Renamed to ...
9832 (record_full_core_ops): ... this. Updated all users.
9833 (set_record_cmdlist): Renamed to ...
9834 (set_record_full_cmdlist): ... this. Updated all users.
9835 (show_record_cmdlist): Renamed to ...
9836 (show_record_full_cmdlist): ... this. Updated all users.
9837 (record_cmdlist): Renamed to ...
9838 (record_full_cmdlist): ... this. Updated all users.
9839 (record_beneath_to_resume_ops): Renamed to ...
9840 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9841 (record_beneath_to_resume): Renamed to ...
9842 (record_full_beneath_to_resume): ... this. Updated all users.
9843 (record_beneath_to_wait_ops): Renamed to ...
9844 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9845 (record_beneath_to_wait): Renamed to ...
9846 (record_full_beneath_to_wait): ... this. Updated all users.
9847 (record_beneath_to_store_registers_ops): Renamed to ...
9848 (record_full_beneath_to_store_registers_ops): ... this.
9849 Updated all users.
9850 (record_beneath_to_store_registers): Renamed to ...
9851 (record_full_beneath_to_store_registers): ... this.
9852 Updated all users.
9853 (record_beneath_to_xfer_partial_ops): Renamed to ...
9854 (record_full_beneath_to_xfer_partial_ops): ... this.
9855 Updated all users.
9856 (record_beneath_to_xfer_partial): Renamed to ...
9857 (record_full_beneath_to_xfer_partial): ... this.
9858 Updated all users.
9859 (record_beneath_to_insert_breakpoint): Renamed to ...
9860 (record_full_beneath_to_insert_breakpoint): ... this.
9861 Updated all users.
9862 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9863 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9864 Updated all users.
9865 (record_beneath_to_stopped_data_address): Renamed to ...
9866 (record_full_beneath_to_stopped_data_address): ... this.
9867 Updated all users.
9868 (record_beneath_to_async): Renamed to ...
9869 (record_full_beneath_to_async): ... this. Updated all users.
9870 (record_goto_insn): Renamed to ...
9871 (record_full_goto_insn): ... this. Updated all users.
9872 (record_save): Renamed to ...
9873 (record_full_save): ... this. Updated all users.
9874 (record_reg_alloc): Renamed to ...
9875 (record_full_reg_alloc): ... this. Updated all users.
9876 (record_reg_release): Renamed to ...
9877 (record_full_reg_release): ... this. Updated all users.
9878 (record_mem_alloc): Renamed to ...
9879 (record_full_mem_alloc): ... this. Updated all users.
9880 (record_mem_release): Renamed to ...
9881 (record_full_mem_release): ... this. Updated all users.
9882 (record_end_alloc): Renamed to ...
9883 (record_full_end_alloc): ... this. Updated all users.
9884 (record_end_release): Renamed to ...
9885 (record_full_end_release): ... this. Updated all users.
9886 (record_entry_release): Renamed to ...
9887 (record_full_entry_release): ... this. Updated all users.
9888 (record_list_release): Renamed to ...
9889 (record_full_list_release): ... this. Updated all users.
9890 (record_list_release_following): Renamed to ...
9891 (record_full_list_release_following): ... this.
9892 Updated all users.
9893 (record_list_release_first): Renamed to ...
9894 (record_full_list_release_first): ... this. Updated all users.
9895 (record_arch_list_add): Renamed to ...
9896 (record_full_arch_list_add): ... this. Updated all users.
9897 (record_get_loc): Renamed to ...
9898 (record_full_get_loc): ... this. Updated all users.
9899 (record_check_insn_num): Renamed to ...
9900 (record_full_check_insn_num): ... this. Updated all users.
9901 (record_arch_list_cleanups): Renamed to ...
9902 (record_full_arch_list_cleanups): ... this. Updated all users.
9903 (record_message): Renamed to ...
9904 (record_full_message): ... this. Updated all users.
9905 (record_message_wrapper): Renamed to ...
9906 (record_full_message_wrapper): ... this. Updated all users.
9907 (record_message_wrapper_safe): Renamed to ...
9908 (record_full_message_wrapper_safe): ... this. Updated all users.
9909 (record_gdb_operation_disable): Renamed to ...
9910 (record_full_gdb_operation_disable): ... this. Updated all users.
9911 (record_hw_watchpoint): Renamed to ...
9912 (record_full_hw_watchpoint): ... this. Updated all users.
9913 (record_exec_insn): Renamed to ...
9914 (record_full_exec_insn): ... this. Updated all users.
9915 (record_restore): Renamed to ...
9916 (record_full_restore): ... this. Updated all users.
9917 (record_async_inferior_event_token): Renamed to ...
9918 (record_full_async_inferior_event_token): ... this.
9919 Updated all users.
9920 (record_async_inferior_event_handler): Renamed to ...
9921 (record_full_async_inferior_event_handler): ... this.
9922 Updated all users.
9923 (record_core_open_1): Renamed to ...
9924 (record_full_core_open_1): ... this. Updated all users.
9925 (record_open_1): Renamed to ...
9926 (record_full_open_1): ... this. Updated all users.
9927 (record_open): Renamed to ...
9928 (record_full_open): ... this. Updated all users.
9929 (record_close): Renamed to ...
9930 (record_full_close): ... this. Updated all users.
9931 (record_resume_step): Renamed to ...
9932 (record_full_resume_step): ... this. Updated all users.
9933 (record_resumed): Renamed to ...
9934 (record_full_resumed): ... this. Updated all users.
9935 (record_execution_dir): Renamed to ...
9936 (record_full_execution_dir): ... this. Updated all users.
9937 (record_resume): Renamed to ...
9938 (record_full_resume): ... this. Updated all users.
9939 (record_get_sig): Renamed to ...
9940 (record_full_get_sig): ... this. Updated all users.
9941 (record_sig_handler): Renamed to ...
9942 (record_full_sig_handler): ... this. Updated all users.
9943 (record_wait_cleanups): Renamed to ...
9944 (record_full_wait_cleanups): ... this. Updated all users.
9945 (record_wait_1): Renamed to ...
9946 (record_full_wait_1): ... this. Updated all users.
9947 (record_wait): Renamed to ...
9948 (record_full_wait): ... this. Updated all users.
9949 (record_stopped_by_watchpoint): Renamed to ...
9950 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9951 (record_disconnect): Renamed to ...
9952 (record_full_disconnect): ... this. Updated all users.
9953 (record_detach): Renamed to ...
9954 (record_full_detach): ... this. Updated all users.
9955 (record_mourn_inferior): Renamed to ...
9956 (record_full_mourn_inferior): ... this. Updated all users.
9957 (record_kill): Renamed to ...
9958 (record_full_kill): ... this. Updated all users.
9959 (record_stopped_data_address): Renamed to ...
9960 (record_full_stopped_data_address): ... this. Updated all users.
9961 (record_registers_change): Renamed to ...
9962 (record_full_registers_change): ... this. Updated all users.
9963 (record_store_registers): Renamed to ...
9964 (record_full_store_registers): ... this. Updated all users.
9965 (record_xfer_partial): Renamed to ...
9966 (record_full_xfer_partial): ... this. Updated all users.
9967 (record_breakpoint): Renamed to ...
9968 (record_full_breakpoint): ... this. Updated all users.
9969 (record_breakpoint_p): Renamed to ...
9970 (record_full_breakpoint_p): ... this. Updated all users.
9971 (record_breakpoints): Renamed to ...
9972 (record_full_breakpoints): ... this. Updated all users.
9973 (record_sync_record_breakpoints): Renamed to ...
9974 (record_full_sync_record_breakpoints): ... this.
9975 Updated all users.
9976 (record_init_record_breakpoints): Renamed to ...
9977 (record_full_init_record_breakpoints): ... this.
9978 Updated all users.
9979 (record_insert_breakpoint): Renamed to ...
9980 (record_full_insert_breakpoint): ... this. Updated all users.
9981 (record_remove_breakpoint): Renamed to ...
9982 (record_full_remove_breakpoint): ... this. Updated all users.
9983 (record_can_execute_reverse): Renamed to ...
9984 (record_full_can_execute_reverse): ... this. Updated all users.
9985 (record_get_bookmark): Renamed to ...
9986 (record_full_get_bookmark): ... this. Updated all users.
9987 (record_goto_bookmark): Renamed to ...
9988 (record_full_goto_bookmark): ... this. Updated all users.
9989 (record_async): Renamed to ...
9990 (record_full_async): ... this. Updated all users.
9991 (record_can_async_p): Renamed to ...
9992 (record_full_can_async_p): ... this. Updated all users.
9993 (record_is_async_p): Renamed to ...
9994 (record_full_is_async_p): ... this. Updated all users.
9995 (record_execution_direction): Renamed to ...
9996 (record_full_execution_direction): ... this. Updated all users.
9997 (record_info): Renamed to ...
9998 (record_full_info): ... this. Updated all users.
9999 (record_delete): Renamed to ...
10000 (record_full_delete): ... this. Updated all users.
10001 (record_is_replaying): Renamed to ...
10002 (record_full_is_replaying): ... this. Updated all users.
10003 (record_goto_entry): Renamed to ...
10004 (record_full_goto_entry): ... this. Updated all users.
10005 (record_goto_begin): Renamed to ...
10006 (record_full_goto_begin): ... this. Updated all users.
10007 (record_goto_end): Renamed to ...
10008 (record_full_goto_end): ... this. Updated all users.
10009 (record_goto): Renamed to ...
10010 (record_full_goto): ... this. Updated all users.
10011 (init_record_ops): Renamed to ...
10012 (init_record_full_ops): ... this. Updated all users.
10013 (record_core_resume): Renamed to ...
10014 (record_full_core_resume): ... this. Updated all users.
10015 (record_core_kill): Renamed to ...
10016 (record_full_core_kill): ... this. Updated all users.
10017 (record_core_fetch_registers): Renamed to ...
10018 (record_full_core_fetch_registers): ... this. Updated all users.
10019 (record_core_prepare_to_store): Renamed to ...
10020 (record_full_core_prepare_to_store): ... this. Updated all users.
10021 (record_core_store_registers): Renamed to ...
10022 (record_full_core_store_registers): ... this. Updated all users.
10023 (record_core_xfer_partial): Renamed to ...
10024 (record_full_core_xfer_partial): ... this. Updated all users.
10025 (record_core_insert_breakpoint): Renamed to ...
10026 (record_full_core_insert_breakpoint): ... this. Updated all users.
10027 (record_core_remove_breakpoint): Renamed to ...
10028 (record_full_core_remove_breakpoint): ... this. Updated all users.
10029 (record_core_has_execution): Renamed to ...
10030 (record_full_core_has_execution): ... this. Updated all users.
10031 (init_record_core_ops): Renamed to ...
10032 (init_record_full_core_ops): ... this. Updated all users.
10033 (cmd_record_restore): Renamed to ...
10034 (cmd_record_full_restore): ... this. Updated all users.
10035 (record_save_cleanups): Renamed to ...
10036 (record_full_save_cleanups): ... this. Updated all users.
10037 (cmd_record_start): Renamed to ...
10038 (cmd_record_full_start): ... this. Updated all users.
10039 (set_record_insn_max_num): Renamed to ...
10040 (set_record_full_insn_max_num): ... this. Updated all users.
10041 (set_record_command): Renamed to ...
10042 (set_record_full_command): ... this. Updated all users.
10043 (show_record_command): Renamed to ...
10044 (show_record_full_command): ... this. Updated all users.
10045 (_initialize_record): Renamed to ...
10046 (_initialize_record_full): ... this. Updated all users.
10047
10048 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10049
10050 * record.h: Split into this and ...
10051 * record-full.h: ... this.
10052 * record.c: Split into this and ...
10053 * record-full.c: ... this.
10054 * target.h (target_ops): Add new fields to_info_record,
10055 to_save_record, to_delete_record, to_record_is_replaying,
10056 to_goto_record_begin, to_goto_record_end, to_goto_record.
10057 (target_info_record): New.
10058 (target_save_record): New.
10059 (target_supports_delete_record): New.
10060 (target_delete_record): New.
10061 (target_record_is_replaying): New.
10062 (target_goto_record_begin): New.
10063 (target_goto_record_end): New.
10064 (target_goto_record): New.
10065 * target.c (target_info_record): New.
10066 (target_save_record): New.
10067 (target_supports_delete_record): New.
10068 (target_delete_record): New.
10069 (target_record_is_replaying): New.
10070 (target_goto_record_begin): New.
10071 (target_goto_record_end): New.
10072 (target_goto_record): New.
10073 * record.h: Declare struct cmd_list_element.
10074 (record_cmdlist): New declaration.
10075 (set_record_cmdlist): New declaration.
10076 (show_record_cmdlist): New declaration.
10077 (info_record_cmdlist): New declaration.
10078 (cmd_record_goto): New declaration.
10079 * record.c: Remove unnecessary includes.
10080 Include inferior.h.
10081 (cmd_record_goto): Remove declaration.
10082 (record_cmdlist): Now extern. Initialize.
10083 (set_record_cmdlist): Now extern. Initialize.
10084 (show_record_cmdlist): Now extern. Initialize.
10085 (info_record_cmdlist): Now extern. Initialize.
10086 (find_record_target): New.
10087 (require_record_target): New.
10088 (cmd_record_start): Update.
10089 (cmd_record_delete): Remove target-specific code.
10090 Call target_delete_record.
10091 (cmd_record_stop): Unpush any record target.
10092 (set_record_insn_max_num): Move to record-full.c
10093 (set_record_command): Add comment.
10094 (show_record_command): Add comment.
10095 (info_record_command): Update comment.
10096 Remove target-specific code.
10097 Call the record target's to_info_record.
10098 (cmd_record_start): New.
10099 (cmd_record_goto): Now extern.
10100 Remove target-specific code.
10101 Call target_goto_begin, target_goto_end, or target_goto.
10102 (_initialize_record): Move record target ops initialization to
10103 record-full.c.
10104 Change "record" command help text.
10105 Move "record restore", "record set", and "record show" commands to
10106 record-full.c.
10107 * Makefile.in (SFILES): Add record-full.c.
10108 (HFILES_NO_SRCDIR): Add record-full.h.
10109 (COMMON_OBS): Add record-full.o.
10110 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10111 * arm-tdep.c: Include record-full.h.
10112 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10113 * i386-tdep.c: Include record-full.h.
10114 * infrun.c: Include record-full.h.
10115 * linux-record.c: Include record-full.h.
10116 * moxie-tdep.c: Include record-full.h.
10117 * record-full.c: Include record-full.h.
10118 Change module comment.
10119 (set_record_full_cmdlist): New.
10120 (show_record_full_cmdlist): New.
10121 (record_full_cmdlist): New.
10122 (record_goto_insn): New declaration.
10123 (record_save): New declaration.
10124 (record_check_insn_num): Change query string.
10125 (record_info): New.
10126 (record_delete): New.
10127 (record_is_replaying): New.
10128 (record_goto_entry): New.
10129 (record_goto_begin): New.
10130 (record_goto_end): New.
10131 (record_goto): New.
10132 (init_record_ops): Update.
10133 (init_record_core_ops): Update.
10134 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10135 (cmd_record_start): New.
10136 (set_record_insn_max_num): Moved from record.c
10137 (set_record_full_command): New.
10138 (show_record_full_command): New.
10139 (_initialize_record_full): New.
10140
10141 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10142
10143 * target.h (add_deprecated_target_alias): New.
10144 * target.c (add_deprecated_target_alias): New.
10145
10146 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10147
10148 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10149 and signal.h.
10150 (linux_supports_btrace): Add kernel and
10151 cpuid check.
10152 (kernel_supports_btrace): New function.
10153 (cpu_supports_btrace): New function.
10154 (intel_supports_btrace): New function.
10155
10156 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10157
10158 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10159 * remote.c: Include btrace.h.
10160 (struct btrace_target_info): New struct.
10161 (remote_supports_btrace): New function.
10162 (send_Qbtrace): New function.
10163 (remote_enable_btrace): New function.
10164 (remote_disable_btrace): New function.
10165 (remote_teardown_btrace): New function.
10166 (remote_read_btrace): New function.
10167 (init_remote_ops): Add btrace ops.
10168 (enum <unnamed>): Add btrace packets.
10169 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10170 (_initialize_remote): Add packet configuration for branch tracing.
10171
10172 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10173
10174 * features/btrace.dtd: New file.
10175 * Makefile.in (XMLFILES): Add btrace.dtd.
10176 * btrace.h (parse_xml_btrace): New declaration.
10177 * btrace.c: Include xml-support.h.
10178 (parse_xml_btrace): New function.
10179 (parse_xml_btrace_block): New function.
10180 (block_attributes): New struct.
10181 (btrace_attributes): New struct.
10182 (btrace_children): New struct.
10183 (btrace_elements): New struct.
10184
10185 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10186
10187 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10188 (amd64_linux_enable_btrace): New.
10189 (amd64_linux_disable_btrace): New.
10190 (amd64_linux_teardown_btrace): New.
10191 (_initialize_amd64_linux_nat): Initialize btrace ops.
10192 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10193 (i386_linux_enable_btrace): New.
10194 (i386_linux_disable_btrace): New.
10195 (i386_linux_teardown_btrace): New.
10196 (_initialize_i386_linux_nat): Initialize btrace ops.
10197 * config/i386/linux.mh: Add linux-btrace.o.
10198 * config/i386/linux64.mh: Add linux-btrace.o.
10199
10200 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10201
10202 * common/linux_btrace.h: New file.
10203 * common/linux_btrace.c: New file.
10204 * Makefile.in (SFILES): Add btrace.c.
10205 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10206 (COMMON_OBS): Add btrace.o.
10207 (linux-btrace.o): New rule.
10208
10209 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10210
10211 * target.h: Include btrace.h.
10212 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10213 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10214 * target.c (target_supports_btrace): New function.
10215 (target_enable_btrace): New function.
10216 (target_disable_btrace): New function.
10217 (target_teardown_btrace): New function.
10218 (target_read_btrace): New function.
10219 * btrace.h: New file.
10220 * btrace.c: New file.
10221 * Makefile.in: Add btrace.c.
10222 * gdbthread.h: Include btrace.h.
10223 (struct thread_info): Add btrace field.
10224 * thread.c: Include btrace.h.
10225 (clear_thread_inferior_resources): Call target_teardown_btrace.
10226 * common/btrace-common.h: New file.
10227
10228 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10229
10230 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10231 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10232 kill_status to outer block.
10233
10234 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10235
10236 Fix entry-values if the callee called a noreturn function.
10237 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10238 get_frame_address_in_block. Add new comment.
10239
10240 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10241
10242 Fix entry-values in C++ across CUs.
10243 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10244 lookup_minimal_symbol. Add a comment.
10245 * dwarf2read.c
10246 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10247 DW_AT_linkage_name.
10248
10249 2013-03-08 Yao Qi <yao@codesourcery.com>
10250
10251 * tracepoint.c (_initialize_tracepoint): Indent the code.
10252
10253 2013-03-08 Pedro Alves <palves@redhat.com>
10254
10255 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10256 (parse_find_args, find_command): Change type of pattern buffer
10257 locals to 'gdb_byte *'.
10258
10259 2013-03-08 Stan Shebs <stan@codesourcery.com>
10260 Hafiz Abid Qadeer <abidh@codesourcery.com>
10261
10262 * NEWS: Mention set and show trace-buffer-size commands.
10263 Mention new packet.
10264 * target.h (struct target_ops): New method
10265 to_set_trace_buffer_size.
10266 (target_set_trace_buffer_size): New macro.
10267 * target.c (update_current_target): Set up new method.
10268 * tracepoint.c (trace_buffer_size): New global.
10269 (start_tracing): Send it to the target.
10270 (set_trace_buffer_size): New function.
10271 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10272 * remote.c (remote_set_trace_buffer_size): New function.
10273 (_initialize_remote): Use it.
10274 (QTBuffer:size) New remote command.
10275 (PACKET_QTBuffer_size): New enum.
10276 (remote_protocol_features): Add an entry for
10277 PACKET_QTBuffer_size.
10278
10279 2013-03-08 Tom Tromey <tromey@redhat.com>
10280
10281 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10282 variable.
10283
10284 2013-03-07 Pedro Alves <palves@redhat.com>
10285
10286 * target.c (target_read_stralloc, target_fileio_read_alloc):
10287 *Cast pointer to 'gdb_byte *' in target call.
10288
10289 2013-03-07 Pedro Alves <palves@redhat.com>
10290
10291 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10292 call.
10293
10294 2013-03-07 Keith Seitz <keiths@redhat.com>
10295
10296 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10297 (trace_pass_command): Likewise.
10298 * cli/cli-cmds.c: Include cli/cli-utils.h.
10299 (source_command): Use skip-spaces.
10300 (disassemble_command): Likewise.
10301 * findcmd.c: Include cli/cli-utils.h.
10302 (parse_find_args): Use skip_spaces.
10303 * go32-nat.c: Include cli/cli-utils.h.
10304 (go32_sldt): Use skip_spaces.
10305 (go32_sgdt): Likewise.
10306 (go32_sidt): Likewise.
10307 (go32_pde): Likewise.
10308 (go32_pte): Likewise.
10309 (go32_pte_for_address): Likewise.
10310 * infcmd.c: Include cli/cli-utils.h.
10311 (registers_info): Use skip_spaces.
10312 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10313 (linux_info_proc): Likewise.
10314 * linux-thread-db.c: Include cli/cli-utils.h.
10315 (info_auto_load_libthread_db): Use skip_spaces_const.
10316 * m32r-rom.c: Include cli/cli-utils.h.
10317 (m32r_upload_command): Use skip_spaces.
10318 * maint.c: Include cli/cli-utils.h.
10319 (maintenance_translate_address): Use skip_spaces.
10320 * mi/mi-parse.c: Include cli/cli-utils.h.
10321 (mi_parse_argv): Use skip_spaces.
10322 (mi_parse): Likewise.
10323 * minsyms.c: Include cli/cli-utils.h.
10324 (msymbol_hash_iw): Use skip_spaces_const.
10325 * objc-lang.c: Include cli/cli-utils.h.
10326 (parse_selector): Use skip_spaces.
10327 (parse_method): Likewise.
10328 * python/python.c: Include cli/cli-utils.h.
10329 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10330 (python_command)[HAVE_PYTHON]: Likewise.
10331 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10332 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10333 (m32r_load): Use skip_spaces.
10334 * serial.c: Include cli/cli-utils.h.
10335 (serial_open): Use skip_spaces_const.
10336 * stack.c: Include cli/cli-utils.h.
10337 (parse_frame_specification_1): Use skip_spaces_const.
10338 * symfile.c: Include cli/cli-utils.h.
10339 (set_ext_lang_command): Use skip_spaces.
10340 * symtab.c: Include cli/cli-utils.h.
10341 (rbreak_command): Use skip_spaces.
10342 * thread.c (thread_name_command): Use skip_spaces.
10343 * tracepoint.c (validate_actionline): Use skip_spaces.
10344 (encode_actions_1): Likewise.
10345 (trace_find_range_command): Likewise.
10346 (trace_find_outside_command): Likewise.
10347 (trace_dump_actions): Likewise.
10348
10349 2013-03-07 Pedro Alves <palves@redhat.com>
10350
10351 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10352 * expprint.c (print_subexp_standard): Likewise.
10353 * utils.c (host_char_to_target): Likewise.
10354 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10355 * varobj.c (value_get_print_value): Change type of local to char*.
10356 Cast it gdb_byte * in call to language printer.
10357
10358 2013-03-07 Pedro Alves <palves@redhat.com>
10359
10360 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10361 gdb_byte *'.
10362 (make_wchar_iterator): Remove cast to char*.
10363 (wchar_iterate): Change type of local.
10364
10365 2013-03-07 Pedro Alves <palves@redhat.com>
10366
10367 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10368 for 'regcache->register_status'.
10369
10370 2013-03-07 Pedro Alves <palves@redhat.com>
10371
10372 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10373 int.
10374
10375 2013-03-07 Pedro Alves <palves@redhat.com>
10376
10377 * stap-probe.c (handle_stap_probe): Add cast to char*.
10378
10379 2013-03-07 Pedro Alves <palves@redhat.com>
10380
10381 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10382 RECORD_MSGRCV>: Pass a signed variable to
10383 regcache_raw_read_signed, instead of an unsigned one.
10384
10385 2013-03-07 Pedro Alves <palves@redhat.com>
10386
10387 * remote-notif.c (notif_debug): Change type to int.
10388 * remote-notif.h (notif_debug): Likewise.
10389
10390 2013-03-07 Pedro Alves <palves@redhat.com>
10391
10392 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10393
10394 2013-03-07 Pedro Alves <palves@redhat.com>
10395
10396 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10397 * remote.h (hex2bin, bin2hex): ... here.
10398 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10399
10400 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10401
10402 * utils.c (initialize_utils): Improve doc strings of "set/show
10403 width", "set/show height", and "set/show pagination".
10404
10405 2013-03-06 Keith Seitz <keiths@redhat.com>
10406
10407 * ax-gdb.c (gen_printf): Make FORMAT const.
10408 * ax-gdb.h (gen_printf): Likewise.
10409 * ax-general.c (ax_string): Make STR const.
10410 * ax.h (ax_string): Likewise.
10411
10412 2013-03-06 Doug Evans <dje@google.com>
10413
10414 * elfread.c (elf_symfile_read): Move debugging printf to more
10415 logical location.
10416
10417 2013-03-06 Pedro Alves <palves@redhat.com>
10418
10419 * python/py-utils.c (target_string_to_unicode): Delete function.
10420 * python/python-internal.h (target_string_to_unicode): Delete
10421 declaration.
10422
10423 2013-03-06 Pierre Muller <muller@sourceware.org>
10424
10425 * linespec.c (get_current_search_block): ARI fix, use (void)
10426 for empty parameter list.
10427
10428 2013-03-05 Doug Evans <dje@google.com>
10429
10430 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10431 of old ada_lookup_symbol_list. In !full_search case, don't
10432 search superblocks.
10433 (ada_lookup_symbol_list): Delete arg full_search, all callers
10434 updated. Call ada_lookup_symbol_list_worker.
10435 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10436 * ada-lang.h (ada_lookup_symbol_list): Update.
10437 * language.h (language_defn): Update comment for
10438 la_iterate_over_symbols.
10439 * linespec.c (iterate_over_file_blocks): New function.
10440 (iterate_over_all_matching_symtabs): Call it.
10441 (lookup_prefix_sym): Ditto.
10442 (get_current_search_block): New function.
10443 (get_search_block): Delete.
10444 (find_label_symbols): Call get_current_search_block.
10445 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10446 * symtab.c (iterate_over_symbols): Don't search superblocks.
10447
10448 2013-03-05 Yao Qi <yao@codesourcery.com>
10449
10450 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10451 parameter VAR's type from "unsigned int" to "int".
10452 * command.h (var_zuinteger_unlimited): Update its comments.
10453 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10454
10455 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10456
10457 * NEWS: Mention new target x86_64-*-cygwin*.
10458
10459 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10460
10461 * configure.host: Add x86_64-*-cygwin* as host.
10462 * configure.tgt: Add x86_64-*-cygwin* as target.
10463 * config/i386/cygwin64.mh: New file.
10464
10465 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10466
10467 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10468
10469 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10470
10471 * linespec.c (struct linespec_canonical_name): New.
10472 (struct linespec_state): Change canonical_names type to it.
10473 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10474 xrealloc element size. Initialize the different CANONICAL fields.
10475 (canonical_to_fullform): New.
10476 (filter_results): Use it. Add variables canonical, fullform and
10477 cleanup.
10478 (struct decode_line_2_item, decode_line_2_compare_items): New.
10479 (decode_line_2): Remove variables iter and item_names, add variables
10480 items and items_count. Modify the code for these new variables.
10481
10482 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10483
10484 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10485 calling do_cleanup.
10486
10487 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10488
10489 * tracepoint.c (build_traceframe_info): Add code for byte order.
10490
10491 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10492
10493 * v850-tdep.c: (v850e2_register_name): Revise system register
10494 names to match current V850E2M architecture specifications.
10495 Update register number enum comments too.
10496
10497 2013-03-01 Jiong Wang <jiwang@tilera.com>
10498 Pedro Alves <palves@redhat.com>
10499
10500 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10501 to END_ADDR.
10502 (tilegx_skip_prologue): Limit prologue analysis to section end.
10503
10504 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10505
10506 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10507 use it.
10508
10509 2013-03-01 Pedro Alves <palves@redhat.com>
10510
10511 Use gdb_byte for bytes from the program being debugged.
10512
10513 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10514 Change type of local 'buf' to gdb_byte.
10515 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10516 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10517 * cris-tdep.c (cris_sigcontext_addr)
10518 (cris_sigtramp_frame_unwind_cache): Likewise.
10519 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10520 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10521 Likewise.
10522 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10523 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10524 (hppa32_hpux_search_dummy_call_sequence)
10525 (hppa_hpux_supply_save_state): Likewise.
10526 * hppa-linux-tdep.c (insns_match_pattern)
10527 (hppa_linux_find_global_pointer): Likewise.
10528 * hppa-tdep.c (hppa_in_function_epilogue_p)
10529 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10530 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10531 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10532 (i386fbsd_collect_uthread): Likewise.
10533 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10534 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10535 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10536 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10537 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10538 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10539 (ia64_libunwind_frame_prev_register)
10540 (ia64_libunwind_sigtramp_frame_this_id)
10541 (ia64_find_global_pointer_from_dynamic_section)
10542 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10543 (ia64_unwind_pc): Likewise.
10544 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10545 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10546 (m68hc11_extract_return_value): Likewise.
10547 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10548 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10549 (mep_get_insn, mep_push_dummy_call): Likewise.
10550 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10551 (mips_linux_in_dynsym_stub): Likewise.
10552 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10553 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10554 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10555 to gdb_byte.
10556 * remote-mips.c (mips_set_register): Likewise.
10557 * remote-sim.c (gdbsim_fetch_register): Likewise.
10558 * score-tdep.c (score7_fetch_inst): Change type of parameter
10559 'memblock' and local 'buf' to gdb_byte.
10560 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10561 Change type of local 'buf' to gdb_byte. Adjust.
10562 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10563 to gdb_byte**.
10564 (score7_analyze_prologue): Change type of 'memblock' and
10565 'memblock_ptr' locals to gdb_byte*.
10566 * sh64-tdep.c (sh64_extract_return_value)
10567 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10568 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10569 * solib-pa64.c (pa64_solib_create_inferior_hook)
10570 (pa64_open_symbol_file_object): Remove local 'buf'.
10571 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10572 (som_open_symbol_file_object): Likewise.
10573 * solib-spu.c (spu_current_sos): Likewise.
10574 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10575 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10576 (spu_store_registers): Likewise.
10577 * target.c (debug_print_register): Likewise.
10578 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10579 * xstormy16-tdep.c (xstormy16_store_return_value)
10580 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10581 (xstormy16_find_jmp_table_entry): Likewise.
10582
10583 2013-03-01 Jiong Wang <jiwang@tilera.com>
10584
10585 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10586 (tilegx_gdbarch_init): Install it.
10587
10588 2013-02-28 Tom Tromey <tromey@redhat.com>
10589
10590 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10591 PyLong_Check.
10592
10593 2013-02-28 Doug Evans <dje@google.com>
10594
10595 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10596 * python/python.c (gdbpy_find_pc_line): Ditto.
10597
10598 2013-02-28 Tom Tromey <tromey@redhat.com>
10599
10600 * contrib/excheck.py: New file.
10601 * contrib/exsummary.py: New file.
10602 * contrib/gcc-with-excheck: New file.
10603
10604 2013-02-28 Tom Tromey <tromey@redhat.com>
10605
10606 * python/python.c (gdbpy_print_stack): Call begin_line and
10607 fprintf_filtered inside TRY_CATCH.
10608
10609 2013-02-28 Tom Tromey <tromey@redhat.com>
10610
10611 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10612 inside TRY_CATCH.
10613
10614 2013-02-28 Tom Tromey <tromey@redhat.com>
10615
10616 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10617 frame_object_to_frame_info inside TRY_CATCH.
10618
10619 2013-02-28 Tom Tromey <tromey@redhat.com>
10620
10621 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10622 TRY_CATCH.
10623
10624 2013-02-28 Tom Tromey <tromey@redhat.com>
10625
10626 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10627
10628 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10629
10630 * windows-nat.c: Throughout, fix format strings and casts of
10631 printf-like functions to avoid type related warnings on all
10632 platforms.
10633 (handle_output_debug_string): Fetch context information address
10634 from debug string using string_to_core_addr.
10635
10636 2013-02-27 Jiong Wang <jiwang@tilera.com>
10637
10638 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10639 * regformats/reg-tilegx32.dat: New.
10640
10641 2013-02-27 Jiong Wang <jiwang@tilera.com>
10642
10643 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10644
10645 2013-02-27 Jiong Wang <jiwang@tilera.com>
10646
10647 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10648
10649 2013-02-27 Yao Qi <yao@codesourcery.com>
10650 Pedro Alves <palves@redhat.com>
10651
10652 * tracepoint.c (tfile_trace_find): For tfind
10653 pc/tp/range/outside, look for the next trace frame instead of
10654 always starting from frame 0.
10655
10656 2013-02-26 Anthony Green <green@moxielogic.com>
10657
10658 * configure.tgt: Add support for moxie-*-rtems* target.
10659
10660 2013-02-25 Pedro Alves <palves@redhat.com>
10661
10662 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10663 warning text.
10664
10665 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10666
10667 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10668 if $fp is used as the virtual frame pointer.
10669
10670 2013-02-23 Alan Modra <amodra@gmail.com>
10671
10672 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10673 symbol size.
10674 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10675 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10676 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10677 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10678
10679 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10680
10681 Code cleanup.
10682 * elfread.c (build_id_bfd_get): Make the return type const.
10683 (build_id_verify): Make the check parameter const.
10684 (build_id_to_debug_filename): Make the build_id parameter and variable
10685 data const.
10686 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10687
10688 2013-02-21 Alan Modra <amodra@gmail.com>
10689
10690 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10691
10692 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10693
10694 Add a new method 'disassemble' to gdb.Architecture class.
10695 * python/py-arch.c (archpy_disassmble): Implementation of the
10696 new method gdb.Architecture.disassemble.
10697 (arch_object_methods): Add entry for the new method.
10698
10699 2013-02-20 Jiong Wang <jiwang@tilera.com>
10700
10701 * MAINTAINERS (Write After Approval): Add myself to the list.
10702
10703 2013-02-19 Pedro Alves <palves@redhat.com>
10704
10705 Garbage collect 'struct monitor_ops'::load_routine.
10706
10707 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10708 * monitor.c (monitor_load): No longer call
10709 current_monitor->load_routine.
10710 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10711 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10712 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10713
10714 2013-02-19 Pedro Alves <palves@redhat.com>
10715
10716 PR gdb/15161
10717
10718 Harmonize with generic_load.
10719
10720 * monitor.c: Include "readline/readline.h".
10721 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10722 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10723 long/strtol for the 'load_offset' local. Error out if no argument
10724 is given or if too many arguments are given. Tilde expand the
10725 passed in file name.
10726
10727 2013-02-19 Kai Tietz <ktietz@redhat.com>
10728
10729 PR gdb/15161
10730 * symfile.c (load_section_data): Change type of load_offset
10731 to CORE_ADDR.
10732 (generic_load): User strtoulst instead of strtoul for conversion
10733 of load_offset.
10734
10735 2013-02-19 Jiong Wang <jiwang@tilera.com>
10736
10737 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10738 for return address, "lr" register, saved on stack.
10739 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10740 after we invoke tilegx_analyze_prologue.
10741
10742 2013-02-19 Jiong Wang <jiwang@tilera.com>
10743
10744 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10745
10746 2013-02-19 Jiong Wang <jiwang@tilera.com>
10747
10748 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10749
10750 2013-02-19 Jiong Wang <jiwang@tilera.com>
10751
10752 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10753 (tilegx_write_pc): New function.
10754 (tilegx_cannot_reference_register): Return zero if REGNO
10755 is TILEGX_FAULTNUM_REGNUM.
10756 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10757 (tilegx_register_name): Add handling of "faultnum" register.
10758 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10759 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10760 handling of TILEGX_FAULTNUM_REGNUM.
10761 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10762
10763 2013-02-19 Jiong Wang <jiwang@tilera.com>
10764
10765 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10766 should be aligned to 64bit.
10767
10768 2013-02-19 Kai Tietz <ktietz@redhat.com>
10769
10770 * windows-nat.c (windows_xfer_memory): Fix debug-output
10771 for LLP64.
10772
10773 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10774
10775 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10776 Don't check DSP register number if HAVE_DSP is not set.
10777
10778 2013-02-19 Alan Modra <amodra@gmail.com>
10779
10780 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10781 throughout file instead.
10782 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10783 Don't xmalloc return value.
10784 (build_id_verify): Similarly. Don't xfree.
10785 (build_id_to_debug_filename): Update.
10786 (find_separate_debug_file_by_buildid): Update, don't xfree.
10787
10788 2013-02-18 Tom Tromey <tromey@redhat.com>
10789
10790 PR gdb/15102:
10791 * dwarf2read.c (read_subrange_type): Use result of
10792 'check_typedef'.
10793
10794 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10795
10796 * frame.c: Remove one extra white space after #include
10797 directive.
10798
10799 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10800
10801 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10802
10803 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10804
10805 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10806 and dir commands into an if block.
10807
10808 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10809
10810 * python/py-breakpoint (struct pybp_code): Use int instead of
10811 enum type_code.
10812
10813 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10814 Hafiz Abid Qadeer <abidh@codesourcery.com>
10815
10816 * NEWS: Mention new field "trace-file".
10817 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10818 (tfile_open): Record the trace file's filename in the trace
10819 status.
10820 (tfile_files_info): Mention the name of the trace file.
10821 Check the "filename" field explicitely.
10822 (trace_status_command): Explicitely check "filename" field.
10823 (trace_find_command): Ditto.
10824 (trace_find_pc_command): Ditto.
10825 (trace_find_tracepoint_command): Ditto.
10826 (trace_find_line_command): Ditto.
10827 (trace_find_range_command): Ditto.
10828 (trace_find_outside_command): Ditto.
10829 * tracepoint.h (struct trace_status) <from_file>: Rename it
10830 to "filename" and make it hold the trace file's filename
10831 instead of a boolean.
10832 * remote.c (remote_get_trace_status): Initialize "filename"
10833 field with NULL instead of 0.
10834
10835 2013-02-15 Yao Qi <yao@codesourcery.com>
10836
10837 * remote.c: Fix a typo.
10838
10839 2013-02-14 Pierre Muller <muller@sourceware.org>
10840
10841 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10842
10843 2013-02-14 Pedro Alves <palves@redhat.com>
10844
10845 * utils.c (savestring): Don't #undef it. Move function to
10846 common/common-utils.c.
10847 * common/common-utils.c: Include gdb_string.h.
10848 (savestring): Move here from utils.c.
10849 * common/common-utils.h (savestring): Declare.
10850
10851 2013-02-14 Pedro Alves <palves@redhat.com>
10852
10853 * utils.c (savestring): Rename parameter 'size' to 'len'.
10854
10855 2013-02-14 Pedro Alves <palves@redhat.com>
10856 Yufeng Zhang <yufeng.zhang@arm.com>
10857
10858 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10859 (aarch64_inferior_data, struct aarch64_inferior_data):
10860 Delete.
10861 (struct aarch64_process_info): New.
10862 (aarch64_process_list): New global.
10863 (aarch64_find_process_pid, aarch64_add_process)
10864 (aarch64_process_info_get): New functions.
10865 (aarch64_inferior_data_get): Delete.
10866 (aarch64_process_info_get): New function.
10867 (aarch64_forget_process): New function.
10868 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10869 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10870 aarch64_get_debug_reg_state.
10871 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10872 instead of linux_nat_iterate_watchpoint_lwps.
10873 (aarch64_linux_new_fork): New function.
10874 (aarch64_linux_child_post_startup_inferior): Use
10875 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10876 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10877 (aarch64_linux_remove_hw_breakpoint)
10878 (aarch64_handle_aligned_watchpoint)
10879 (aarch64_handle_unaligned_watchpoint)
10880 (aarch64_linux_insert_watchpoint)
10881 (aarch64_linux_remove_watchpoint)
10882 (aarch64_linux_stopped_data_address): Adjust to pass the current
10883 process id to aarch64_debug_reg_state.
10884 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10885 linux_nat_new_fork hook, and aarch64_forget_process as
10886 linux_nat_forget_process hook; remove the call to
10887 register_inferior_data_with_cleanup.
10888
10889 2013-02-14 Pedro Alves <palves@redhat.com>
10890
10891 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10892 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10893 lval_memory.
10894
10895 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10896 Hafiz Abid Qadeer <abidh@codesourcery.com>
10897
10898 * tracepoint.h (validate_trace_state_variable_name): Declare.
10899 * tracepoint.c (validate_trace_state_variable_name): New.
10900 (trace_variable_command): Parse the trace state variable's name
10901 without using parse_expression. Do several validations.
10902 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10903 trace state variable's name with parse_expression. Validate it.
10904
10905 2013-02-14 Yao Qi <yao@codesourcery.com>
10906
10907 * infcmd.c (breakpoint_proceeded): Remove it.
10908
10909 2013-02-14 Yao Qi <yao@codesourcery.com>
10910
10911 * tracepoint.c (end_actions_pseudocommand): Make it static.
10912 (while_stepping_pseudocommand): Likewise.
10913 * tracepoint.h (end_actions_pseudocommand): Remove the
10914 declaration.
10915 (while_stepping_pseudocommand): Likewise.
10916
10917 2013-02-14 Yao Qi <yao@codesourcery.com>
10918
10919 * cli/cli-decode.c (help_cmd): Remove the declaration of
10920 "cmdlist".
10921 (help_all): Likewise.
10922
10923 2013-02-13 Pedro Alves <palves@redhat.com>
10924
10925 * amd64-linux-nat.c (update_debug_registers_callback):
10926 Update comment.
10927 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10928 iterate_over_lwps.
10929 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10930 i386_debug_reg_state.
10931 (amd64_linux_new_fork): New function.
10932 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10933 linux_nat_new_fork hook, and i386_forget_process as
10934 linux_nat_forget_process hook.
10935 * i386-linux-nat.c (update_debug_registers_callback):
10936 Update comment.
10937 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10938 iterate_over_lwps.
10939 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10940 i386_debug_reg_state.
10941 (i386_linux_new_fork): New function.
10942 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10943 linux_nat_new_fork hook, and i386_forget_process as
10944 linux_nat_forget_process hook.
10945 * i386-nat.c (i386_init_dregs): Delete.
10946 (i386_inferior_data, struct i386_inferior_data):
10947 Delete.
10948 (struct i386_process_info): New.
10949 (i386_process_list): New global.
10950 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10951 New functions.
10952 (i386_inferior_data_get): Delete.
10953 (i386_process_info_get): New function.
10954 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10955 (i386_forget_process): New function.
10956 (i386_cleanup_dregs): Rewrite.
10957 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10958 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10959 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10960 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10961 to i386_debug_reg_state.
10962 (i386_use_watchpoints): Don't register inferior data.
10963 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10964 adjust comment.
10965 (i386_forget_process): Declare.
10966 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10967 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10968 New static globals.
10969 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10970 (add_initial_lwp): New, factored out from ...
10971 (add_lwp): ... this. Don't check the number of lwps before
10972 calling linux_nat_new_thread.
10973 (linux_nat_iterate_watchpoint_lwps): Delete.
10974 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10975 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10976 forks and vforks.
10977 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10978 initial lwp.
10979 (linux_nat_kill, linux_nat_mourn_inferior): Call
10980 linux_nat_forget_process.
10981 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10982 (linux_nat_forget_process): New functions.
10983 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10984 type.
10985 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10986 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10987 types.
10988 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10989 (linux_nat_forget_process): New declarations.
10990
10991 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10992 (amd64fbsd_mourn_inferior): New function.
10993 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10994 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10995
10996 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10997
10998 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10999 Adding _().
11000
11001 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11002
11003 * aarch64-linux-nat.c (debug_reg_change_callback)
11004 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11005 %s and phex().
11006
11007 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11008
11009 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11010 with LONGEST.
11011
11012 2013-02-13 Pedro Alves <palves@redhat.com>
11013 Hafiz Abid Qadeer <abidh@codesourcery.com>
11014
11015 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11016
11017 2013-02-12 Tom Tromey <tromey@redhat.com>
11018
11019 PR symtab/11464:
11020 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11021 NAME return.
11022 (classify_inner_name): Remove 'first_name' argument, add
11023 'context'. Remove unused variable.
11024 (yylex): Explicitly maintain the context type. Exit loop earlier
11025 if NAME result is seen.
11026
11027 2013-02-12 Pedro Alves <palves@redhat.com>
11028
11029 * amd64-darwin-tdep.c: Add (C) after Copyright.
11030 * cli/cli-cmds.h: Ditto.
11031 * cli/cli-decode.c: Ditto.
11032 * cli/cli-decode.h: Ditto.
11033 * cli/cli-dump.c: Ditto.
11034 * cli/cli-dump.h: Ditto.
11035 * cli/cli-interp.c: Ditto.
11036 * cli/cli-logging.c: Ditto.
11037 * cli/cli-script.c: Ditto.
11038 * cli/cli-script.h: Ditto.
11039 * cli/cli-setshow.c: Ditto.
11040 * cli/cli-setshow.h: Ditto.
11041 * cli/cli-utils.c: Ditto.
11042 * cli/cli-utils.h: Ditto.
11043 * config/alpha/nm-osf3.h: Ditto.
11044 * config/djgpp/djconfig.sh: Ditto.
11045 * config/i386/nm-fbsd.h: Ditto.
11046 * config/i386/nm-i386gnu.h: Ditto.
11047 * config/nm-linux.h: Ditto.
11048 * config/nm-nto.h: Ditto.
11049 * config/rs6000/nm-rs6000.h: Ditto.
11050 * config/sparc/nm-sol2.h: Ditto.
11051 * darwin-nat-info.c: Ditto.
11052 * dfp.c: Ditto.
11053 * dfp.h: Ditto.
11054 * gdb-demangle.h: Ditto.
11055 * i386-darwin-nat.c: Ditto.
11056 * i386-darwin-tdep.c: Ditto.
11057 * linux-fork.h: Ditto.
11058 * m32c-tdep.c: Ditto.
11059 * microblaze-linux-tdep.c: Ditto.
11060 * microblaze-rom.c: Ditto.
11061 * microblaze-tdep.c: Ditto.
11062 * microblaze-tdep.h: Ditto.
11063 * mips-linux-tdep.h: Ditto.
11064 * ppc-ravenscar-thread.c: Ditto.
11065 * ppc-ravenscar-thread.h: Ditto.
11066 * prologue-value.c: Ditto.
11067 * prologue-value.h: Ditto.
11068 * ravenscar-thread.c: Ditto.
11069 * ravenscar-thread.h: Ditto.
11070 * sparc-ravenscar-thread.c: Ditto.
11071 * sparc-ravenscar-thread.h: Ditto.
11072 * tilegx-linux-tdep.c: Ditto.
11073 * unwind_stop_reasons.def: Ditto.
11074 * windows-nat.h: Ditto.
11075 * xtensa-linux-tdep.c: Ditto.
11076 * xtensa-xtregs.c: Ditto.
11077 * regformats/regdat.sh: Ditto.
11078 * regformats/regdef.h: Ditto.
11079
11080 2013-02-12 Pedro Alves <palves@redhat.com>
11081
11082 * break-catch-sig.c: Update copyright years.
11083
11084 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11085
11086 Add support for a destructor for ui_out data and use it to
11087 provide a ui_out destructor.
11088 * ui-out.h: Declare the new ui_out destructor.
11089 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11090 * ui-out.c (default_data_destroy): Add a default data destructor
11091 which does nothing.
11092 (default_ui_out_impl): Set the new data_destroy field to
11093 default_data_destroy
11094 (uo_data_destroy): Local function which invokes the data
11095 destructor if present.
11096 (clear_table): Local function which clears the table data of a
11097 ui_out object.
11098 (ui_out_destroy): Public function which frees a ui_out object.
11099 (ui_out_table_end): Use the new clear_table function.
11100 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11101 NULL.
11102 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11103 to NULL.
11104
11105 2013-02-11 Doug Evans <dje@google.com>
11106
11107 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11108 (printf_decfloat): New function. Broken out from ui_printf.
11109 Remove unnecessary code to shift the entire format string down.
11110 (printf_pointer): New function.
11111 (ui_printf): Code to print C strings, wide C strings, decfloats,
11112 and pointers moved to separate functions.
11113
11114 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11115
11116 * valops.c (value_assign): Handling bitfield offset in
11117 `lval_internalvar_component' case.
11118
11119 2013-02-08 Doug Evans <dje@google.com>
11120
11121 * common/format.c (parse_format_string): Fix whitespace.
11122
11123 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11124
11125 * stack.c (return_command): Work around uninitialized variable
11126 warning.
11127
11128 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11129
11130 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11131 number of the registers from 36 to 34.
11132
11133 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11134
11135 * NEWS: Mention new AArch64 native and target support.
11136
11137 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11138
11139 * MAINTAINERS (Write After Approval): Add myself.
11140
11141 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11142 Marcus Shawcroft <marcus.shawcroft@arm.com>
11143 Nigel Stephens <nigel.stephens@arm.com>
11144 Yufeng Zhang <yufeng.zhang@arm.com>
11145
11146 * aarch64-linux-nat.c: New file.
11147 * config/aarch64/linux.mh: New file.
11148 * configure.host: Add AArch64.
11149 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11150
11151 2013-02-07 Doug Evans <dje@google.com>
11152
11153 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11154 disassemble command.
11155
11156 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11157
11158 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11159 set_gdbarch_fetch_tls_load_module_address.
11160
11161 2013-02-06 David S. Miller <davem@davemloft.net>
11162
11163 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11164 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11165 * value.c (struct_return_convention): New function.
11166 (using_struct_return): Implement in terms of struct_return_convention.
11167 * value.h (struct_return_convention): Declare.
11168 * stack.c (return_command): Allow successful overriding of the return
11169 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11170
11171 2013-02-06 Tom Tromey <tromey@redhat.com>
11172
11173 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11174 outside of TRY_CATCH.
11175
11176 2013-02-06 Yao Qi <yao@codesourcery.com>
11177
11178 * mi/mi-interp.c: Include "tracepoint.h".
11179 (mi_tsv_modified): Declare.
11180 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11181 (mi_interpreter_init): Call observer_attach_tsv_modified.
11182 (mi_tsv_modified): New.
11183 (mi_tsv_created, mi_tsv_deleted): Update.
11184 * tracepoint.c (trace_variable_command): Call
11185 observer_notify_tsv_modified if the initial value of tsv is
11186 changed.
11187 (delete_trace_state_variable): Call
11188 observer_notify_tsv_deleted earlier.
11189 (trace_variable_command): Caller update.
11190 (create_tsv_from_upload): Likewise.
11191 * observer.sh: Declare "struct trace_state_variable".
11192
11193 * NEWS: Mention the new MI notification "=tsv-modified".
11194
11195 2013-02-05 Doug Evans <dje@google.com>
11196
11197 * completer.c (location_completer): Fix typo in comment.
11198
11199 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11200
11201 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11202 ADDRESS sorted.
11203
11204 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11205
11206 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11207 Refactor if statement to avoid trailing || operator.
11208
11209 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11210
11211 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11212
11213 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11214
11215 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11216 * configure.host: Add powerpc*-*-freebsd* target.
11217 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11218 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11219 * config/powerpc/fbsd.mh: New file.
11220
11221 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11222 Denys Vlasenko <dvlasenk@redhat.com>
11223 Pedro Alves <palves@redhat.com>
11224
11225 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11226 (struct elf_internal_linux_prpsinfo): Forward declare.
11227 * gdbarch.h, gdbarch.c: Regenerate.
11228 * linux-tdep.c: Include `cli/cli-utils.h'.
11229 (linux_fill_prpsinfo): New function.
11230 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11231 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11232 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11233 depending on gdbarch pointer bitness.
11234 * ppc-linux-tdep.c: Include elf-bfd.h.
11235 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11236 on 32-bit.
11237
11238 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11239 Marcus Shawcroft <marcus.shawcroft@arm.com>
11240 Nigel Stephens <nigel.stephens@arm.com>
11241 Yufeng Zhang <yufeng.zhang@arm.com>
11242
11243 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11244
11245 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11246 Marcus Shawcroft <marcus.shawcroft@arm.com>
11247 Nigel Stephens <nigel.stephens@arm.com>
11248 Yufeng Zhang <yufeng.zhang@arm.com>
11249
11250 * aarch64-newlib-tdep.c: New file.
11251 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11252 aarch64*-*-elf.
11253 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11254 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11255 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11256 * osabi.c (gdb_osabi_names): Add "Newlib".
11257
11258 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11259 Marcus Shawcroft <marcus.shawcroft@arm.com>
11260 Nigel Stephens <nigel.stephens@arm.com>
11261 Yufeng Zhang <yufeng.zhang@arm.com>
11262
11263 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11264 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11265 * aarch64-linux-tdep.c: New file.
11266 * aarch64-linux-tdep.h: New file.
11267 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11268 * configure.tgt: Add aarch64-none-linux-gnu.
11269
11270 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11271 Marcus Shawcroft <marcus.shawcroft@arm.com>
11272 Nigel Stephens <nigel.stephens@arm.com>
11273 Yufeng Zhang <yufeng.zhang@arm.com>
11274
11275 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11276 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11277 (ALLDEPFILES): Add aarch64-tdep.c.
11278 * aarch64-tdep.c: New file.
11279 * aarch64-tdep.h: New file.
11280 * configure.tgt: Add AArch64.
11281 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11282 (aarch64-expedite): New definition.
11283 * features/aarch64-core.xml: New file.
11284 * features/aarch64-fpu.xml: New file.
11285 * features/aarch64-without-fpu.c: New file (generated).
11286 * features/aarch64-without-fpu.xml: New file.
11287 * features/aarch64.c: New file (generated).
11288 * features/aarch64.xml: New file.
11289 * regformats/aarch64-without-fpu.dat: New file (generated).
11290 * regformats/aarch64.dat: New file (generated).
11291
11292 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11293
11294 * contrib/expect-read1.c: New file.
11295 * contrib/expect-read1.sh: New file.
11296
11297 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11298
11299 * dwarf2read.c (file_file_name): New function with code from
11300 file_full_name.
11301 (file_full_name): Move most of the code to file_file_name.
11302 (macro_start_file): Rename variable full_name to file_name and use
11303 file_file_name for it. Add comp_dir parameter to new_macro_table.
11304 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11305 macro_source_file->filename access by macro_source_fullname call.
11306 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11307 caller.
11308 * macrotab.c (struct macro_table): New field comp_dir.
11309 (macro_include): New variables link_fullname and source_fullname.
11310 Replace any macro_source_file->filename access by macro_source_fullname
11311 call.
11312 (macro_lookup_inclusion): Remove the partial filenames checking code.
11313 (check_for_redefinition): New variables source_fullname and
11314 found_key_fullname. Replace any macro_source_file->filename access by
11315 macro_source_fullname call.
11316 (macro_undef): New variables source_fullname and key_fullname. Replace
11317 any macro_source_file->filename access by macro_source_fullname call.
11318 (macro_lookup_definition): New variables retval and source_fullname.
11319 Replace any macro_source_file->filename access by macro_source_fullname
11320 call.
11321 (foreach_macro): New variable key_fullname. Replace any
11322 macro_source_file->filename access by macro_source_fullname call.
11323 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11324 macro_source_file->filename access by macro_source_fullname call.
11325 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11326 (macro_source_fullname): New function.
11327 * macrotab.h (struct macro_source_file): Extent the filename field
11328 comment.
11329 (new_macro_table): New parameter comp_dir, add a comment for it.
11330 (macro_source_fullname): new declaration.
11331
11332 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11333
11334 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11335 this_real_name to outer block. Use it also for
11336 compare_filenames_for_search.
11337 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11338 with dw2_get_real_path for file_matcher, considering also
11339 BASENAMES_MAY_DIFFER.
11340 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11341
11342 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11343
11344 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11345 to the file_matcher parameter. Pass 0 to it.
11346 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11347 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11348 NULL psymtab_to_fullname result.
11349 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11350 an expected filename instead.
11351 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11352 file_matcher parameter. Call also psymtab_to_fullname, after newly
11353 considering BASENAMES_MAY_DIFFER.
11354 * source.c (rewrite_source_path): Remove static.
11355 * source.h (rewrite_source_path): New declaration.
11356 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11357 the expand_symtabs_matching field. Comment it.
11358 * symtab.c (file_matches): New function comment. Add parameter
11359 basenames, implement it.
11360 (search_symbols_file_matches): Add basenames parameter. Update the
11361 file_matches caller.
11362 (search_symbols): Match FILES also against symtab_to_fullname.
11363 Optimize it for BASENAMES_MAY_DIFFER.
11364
11365 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11366
11367 * source.c (print_source_lines_base): Print for TUI also "fullname".
11368 * tui/tui-data.c (init_content_element): Change tui_locator_element
11369 field to full_name.
11370 * tui/tui-data.h (struct tui_locator_element): Likewise.
11371 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11372 tui_update_locator_filename calls to tui_update_locator_fullname.
11373 Replace symtab->filename refererence by symtab_to_fullname call.
11374 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11375 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11376 field to full_name. Replace symtab->filename refererence by
11377 symtab_to_fullname call.
11378 (tui_show_symtab_source): Rename parameter to fullname. Change
11379 tui_locator_element field to full_name.
11380 * tui/tui-stack.c: Include source.h.
11381 (tui_set_locator_filename): Rename the declaration to ...
11382 (tui_set_locator_fullname): ... here. Rename its parameter to
11383 fullname, updates its comment.
11384 (tui_set_locator_info): Rename its parameter to fullname.
11385 (tui_set_locator_filename): Rename the definition to ...
11386 (tui_set_locator_fullname): ... here. Rename its parameter to
11387 fullname, updates its comment. Change tui_locator_element field to
11388 full_name.
11389 (tui_set_locator_info): Rename its parameter to fullname.
11390 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11391 (tui_update_locator_filename): Rename to ...
11392 (tui_update_locator_fullname): ... here. Rename callee to
11393 tui_set_locator_fullname.
11394 (tui_show_frame_info): Replace symtab->filename refererence by
11395 symtab_to_fullname call.
11396 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11397 (tui_update_locator_fullname): ... here.
11398 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11399 tui_update_locator_fullname. Replace symtab->filename refererence by
11400 symtab_to_fullname call.
11401 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11402 Rename the callee to tui_update_locator_fullname.
11403 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11404
11405 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11406
11407 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11408 by symtab_to_filename_for_display calls.
11409 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11410 (clear_command): New variable sal_fullname, initialize it. Replace
11411 compare_filenames_for_search by filename_cmp with sal_fullname.
11412 (say_where, update_static_tracepoint): Replace symtab->filename
11413 refererences by symtab_to_filename_for_display calls.
11414 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11415 Likewise.
11416 * dwarf2read.c: Include source.h.
11417 (fixup_go_packaging): Replace symtab->filename refererences by
11418 symtab_to_filename_for_display calls.
11419 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11420 Replace symtab->filename refererences by symtab_to_filename_for_display
11421 calls.
11422 (create_sals_line_offset, convert_linespec_to_sals): New variable
11423 fullname, initialize it, replace symtab->filename reference by the
11424 variable.
11425 * linux-fork.c: Include source.h.
11426 (info_checkpoints_command): Replace symtab->filename refererences by
11427 symtab_to_filename_for_display calls.
11428 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11429 by symtab_to_filename_for_display calls.
11430 * mdebugread.c: Include source.h.
11431 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11432 symtab_to_filename_for_display calls.
11433 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11434 (mi_cmd_file_list_exec_source_files): Likewise.
11435 * printcmd.c: Include source.h.
11436 (build_address_symbolic): Replace symtab->filename refererences by
11437 symtab_to_filename_for_display calls.
11438 * psymtab.c (partial_map_symtabs_matching_filename)
11439 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11440 with psymtab_to_fullname.
11441 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11442 by symtab_to_filename_for_display calls.
11443 (stpy_get_filename): New variable filename, initialize it, use instead
11444 of symtab->filename refererences.
11445 (salpy_str): Make variable filename const char *. Replace
11446 symtab->filename refererences by symtab_to_filename_for_display calls.
11447 * skip.c: Include source.h and filenames.h.
11448 (skip_file_command): Remove const from the symtab variable. Replace
11449 symtab->filename refererences by symtab_to_fullname call.
11450 (function_name_is_marked_for_skip): New variables searched_for_fullname
11451 and fullname. Use them to search also with symtab's fullname.
11452 * source.c (find_source_lines): Replace symtab->filename refererences
11453 by symtab_to_filename_for_display calls.
11454 (print_source_lines_base): New variable filename, use it instead of
11455 symtab->filename. Replace symtab->filename refererences by
11456 symtab_to_filename_for_display calls.
11457 (line_info, forward_search_command): Replace symtab->filename
11458 refererences by symtab_to_filename_for_display calls.
11459 (reverse_search_command): Replace symtab->filename refererences by
11460 symtab_to_filename_for_display calls. New variable filename for it.
11461 * stack.c (frame_info): Likewise.
11462 * symmisc.c: Include source.h.
11463 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11464 (maintenance_info_symtabs): Replace symtab->filename refererences by
11465 symtab_to_filename_for_display calls.
11466 * symtab.c (iterate_over_some_symtabs): Call
11467 compare_filenames_for_search also with symtab_to_fullname.
11468 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11469 symtab->filename refererences by symtab_to_filename_for_display calls.
11470 (find_line_symtab): Replace symtab->filename refererences by
11471 symtab_to_filename_for_display calls.
11472 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11473 (print_symbol_info): Make the last parameter const char *. New
11474 variable s_filename. Use it in the function.
11475 (symtab_symbol_info): Make the last_filename variable const char *.
11476 Replace symtab->filename refererences by symtab_to_filename_for_display
11477 calls.
11478 (rbreak_command): New variable fullname. Use it. Replace
11479 symtab->filename refererence by symtab_to_filename_for_display call.
11480 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11481 (print_one_static_tracepoint_marker): Replace symtab->filename
11482 refererences by symtab_to_filename_for_display calls.
11483 * tui/tui-source.c (tui_set_source_content): New variables filename and
11484 s_filename. Replace symtab->filename refererences by this variable.
11485 Replace other symtab->filename refererences by
11486 symtab_to_filename_for_display calls.
11487
11488 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11489 Jan Kratochvil <jan.kratochvil@redhat.com>
11490
11491 Add a new variable that controls a way in which filenames are
11492 displayed.
11493 * NEWS (set filename-display): New entry.
11494 * source.c (filename_display_basename, filename_display_relative)
11495 (filename_display_absolute, filename_display_kind_names)
11496 (filename_display_string, show_filename_display_string)
11497 (symtab_to_filename_for_display): New.
11498 (_initialize_source): Added initialization of 'filename-display'
11499 variable.
11500 * source.h (symtab_to_filename_for_display): Added declaration.
11501 * stack.c (print_frame): Added new variable and calling of a new
11502 function and condition with this variable. Changed third argument of
11503 calling of a function.
11504
11505 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11506
11507 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11508 Rename field reference filename to fullname.
11509 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11510 fullname. New comment for it.
11511 * tui/tui-source.c (tui_set_source_content): Rename field reference
11512 filename to fullname. Initialize field by symtab_to_fullname now.
11513 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11514 reference filename to fullname. Use symtab_to_fullname during
11515 comparison.
11516
11517 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11518
11519 Code cleanup.
11520 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11521 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11522 filename to fullname. Rename variable this_name to this_fullname.
11523 Lowercase FILENAME_CMP call.
11524 (dw2_find_symbol_file): New comment for the returned string.
11525 (dwarf2_gdb_index_functions): Rename the function to
11526 dw2_expand_symtabs_with_fullname.
11527 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11528 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11529 fullname.
11530 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11531 * symfile.h (struct quick_symbol_functions): Rename field
11532 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11533 parameter filename to fullname. Document returned string meaning for
11534 find_symbol_file.
11535 * symtab.c (find_line_symtab): Rename the called function to
11536 expand_symtabs_with_fullname.
11537
11538 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11539
11540 Code cleanup.
11541 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11542 call of filename_cmp with compare_filenames_for_search.
11543 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11544 is_abs, unify the call of FILENAME_CMP with
11545 compare_filenames_for_search. New gdb_asserts for real_path and name.
11546 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11547 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11548 * symfile.h (struct quick_symbol_functions): Extend the comment for
11549 map_symtabs_matching_filename.
11550 * symtab.c (compare_filenames_for_search): Remove the function comment
11551 relative path requirement. Handle absolute filenames, with a comment.
11552 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11553 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11554 real_path and name. Unify the call of compare_filenames_for_search
11555 with FILENAME_CMP.
11556 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11557
11558 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11559
11560 Code cleanup.
11561 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11562 source_file references by symtab field references. Remove variables
11563 sal and fullname.
11564 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11565 (clear_command, say_where): Replace bp_location field source_file
11566 references by symtab field references.
11567 (bp_location_dtor): Remove the source_file reference.
11568 (update_static_tracepoint): Replace bp_location field source_file
11569 references by symtab field references.
11570 (breakpoint_free_objfile): New function.
11571 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11572 Replace the field source_file by field symtab, extend its comment.
11573 (breakpoint_free_objfile): New declaration.
11574 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11575 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11576 field source_file references by symtab field references.
11577
11578 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11579
11580 Replace xfullpath calls by gdb_realpath calls.
11581 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11582 function comment.
11583 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11584 Remove it from the iterate_over_some_symtabs call.
11585 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11586 Remove it from the dw2_map_expand_apply calls, remove a block handling
11587 it.
11588 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11589 Remove it from the iterate_over_some_symtabs call.
11590 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11591 Remove it from the partial_map_expand_apply calls, remove a block
11592 handling it. Drop gdb_realpath call and cleanups from the real_path
11593 handling.
11594 * source.c (openp): Drop the comment part about xfullpath. Replace
11595 xfullpath calls by gdb_realpath calls.
11596 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11597 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11598 from method map_symtabs_matching_filename and its comment.
11599 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11600 gdb_realpath call.
11601 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11602 remove it also from the function comment, remove a block handling it.
11603 Drop gdb_realpath call and cleanups from the real_path handling.
11604 (iterate_over_symtabs): Drop variable full_path and its use.
11605 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11606 * utils.c (xfullpath): Remove.
11607 * utils.h (xfullpath): Remove.
11608
11609 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11610
11611 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11612 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11613 (ALLDEPFILES): Add ppc64-tdep.c.
11614 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11615 ppc64-tdep.o to gdb_target_obs.
11616 * ppc64-tdep.h: New file.
11617 * ppc64-tdep.c: New file.
11618 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11619 ppc-linux-tdep.c to here.
11620 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11621 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11622 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11623 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11624 from ppc-linux-tdep.c to here.
11625 (ppc64_convert_from_func_ptr_addr): Rename from
11626 ppc64_linux_convert_from_func_ptr_addr to
11627 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11628 here.
11629 * rs6000-tdep.c:
11630 (read_insn): Move from ppc-linux-tdep.c to here.
11631 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11632 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11633 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11634 Removed above functions.
11635 (ppc_linux_init_abi): Adjust.
11636
11637 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11638
11639 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11640
11641 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11642
11643 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11644
11645 2013-02-01 Pedro Alves <palves@redhat.com>
11646
11647 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11648 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11649
11650 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11651
11652 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11653 files with no separate debug info.
11654 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11655 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11656 only for files with no separate debug info.
11657
11658 2013-01-31 Tom Tromey <tromey@redhat.com>
11659
11660 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11661 change type.
11662 (struct jit_program_space_data): Rename from jit_inferior_data.
11663 Update comments.
11664 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11665 Change return type. Attach data to program space.
11666 (jit_program_space_data_cleanup): Rename from
11667 jit_inferior_data_cleanup; change argument type.
11668 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11669 change type.
11670 (jit_register_code): Update.
11671 (jit_update_inferior_cache): Remove.
11672 (jit_breakpoint_deleted): Get jit data from the location's program
11673 space.
11674 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11675 'ps_data', change type.
11676 (jit_inferior_init, jit_breakpoint_re_set_internal)
11677 (jit_event_handler): Update.
11678 (free_objfile_data): Get data from objfile's program space.
11679 (_initialize_jit): Update.
11680
11681 2013-01-31 Tom Tromey <tromey@redhat.com>
11682
11683 PR gdb/13987:
11684 * jit.c (struct jit_inferior_data) <cached_code_address,
11685 jit_breakpoint>: New fields.
11686 (jit_breakpoint_re_set_internal): Fix logging. Only create
11687 breakpoint if cached address has changed.
11688 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11689 functions.
11690 (_initialize_jit): Register breakpoint deleted observer.
11691
11692 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11693
11694 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11695 (save_infcall_suspend_state): Ifdef out unused inf.
11696 (restore_infcall_suspend_state): Ifdef out unused inf.
11697 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11698 (jit_frame_sniffer): Remove unused inf_data.
11699
11700 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11701
11702 * c-exp.y (classify_inner_name): Remove unused type.
11703 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11704 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11705 need_escape.
11706 (c_get_string): Remove unused kind.
11707 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11708
11709 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11710
11711 * charset.c (intermediate_encoding): Remove unused i.
11712 * completer.c (signal_completer): Remove unused i.
11713 * continuations.c (discard_my_continuations_1): Remove unused
11714 continuation_ptr.
11715 * corelow.c (core_close): Remove unuseD name.
11716 (get_core_siginfo): Remove unused pid.
11717 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11718 i, cps.
11719 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11720 (loclist_describe_location): Remove unused first.
11721 * event-top.c (command_line_handler): Remove unused got_eof.
11722 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11723 (resize_section_table): Remove unused old_value.
11724 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11725 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11726 * i386-tdep.c (i386_process_record): Remove unused rex.
11727 * infcmd.c (get_return_value): Remove unused uiout.
11728 * jv-lang.c (type_from_class): Remove unused is_array.
11729 * jv-valprint.c (java_val_print): Remove unused i.
11730 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11731 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11732 * m2-typeprint.c (m2_print_type): Remove unused code.
11733 * macroexp.c (get_character_constant): Remove unused body_start.
11734 (macro_stringify): Remove unused result.
11735 * objc-lang.c (find_methods): Remove unused gdbarch.
11736 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11737 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11738 * stack.c (print_frame_args): Remove unused summary.
11739 * thread.c (thread_apply_command): Remove unused p.
11740 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11741 * valops.c (search_struct_method): Remove unused skip.
11742 * valprint.c (generic_val_print): Remove unused byte_order.
11743 * varobj.c (varobj_update): Remove unused changed.
11744 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11745 (alias_command): Remove unused c.
11746 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11747 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11748 format.
11749 (mi_cmd_data_write_memory): Remove unused word_format.
11750 (mi_cmd_data_write_memory_bytes): Remove unused r.
11751 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11752 p_start, p_end.
11753 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11754 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11755 line_width.
11756
11757 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11758
11759 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11760 * symtab.c (iterate_over_symtabs): Remove unused s.
11761 (find_pc_sect_symtab): Remove unused pspAce.
11762 (find_pc_sect_line): Remove unused alt_symtab.
11763 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11764 (completion_list_add_name): Remove unused newsize.
11765
11766 2013-01-31 Tom Tromey <tromey@redhat.com>
11767
11768 PR c++/14998:
11769 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11770 TYPE_CODE_FUNC.
11771
11772 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11773
11774 * target.c (target_read_string): Remove unused origlen.
11775
11776 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11777
11778 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11779 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11780 * ax-general.c (ax_print): Remove unused is_float.
11781 * blockframe.c (block_innermost_frame): Remove unused start, end.
11782 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11783
11784 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11785
11786 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11787 (svr4_read_so_list): Remove unused lmo.
11788 * solib-target.c (solib_target_relocate_section_addresses): Remove
11789 unused flags.
11790
11791 2013-01-30 Tom Tromey <tromey@redhat.com>
11792
11793 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11794
11795 2013-01-30 Tom Tromey <tromey@redhat.com>
11796
11797 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11798 * utils.c (gnu_debuglink_crc32): Remove.
11799 * utils.h (gnu_debuglink_crc32): Don't declare.
11800
11801 2013-01-30 Tom Tromey <tromey@redhat.com>
11802
11803 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11804 (read_structure_type, read_enumeration_type): Remove cast.
11805
11806 2013-01-30 Tom Tromey <tromey@redhat.com>
11807
11808 * dwarf2read.c (read_namespace_type): Remove cast.
11809 (read_typedef): Likewise.
11810
11811 2013-01-29 Tom Tromey <tromey@redhat.com>
11812
11813 * dwarf2read.c (free_dwo_file): Remove assert.
11814
11815 2013-01-29 Tom Tromey <tromey@redhat.com>
11816
11817 * value.c (deprecated_set_value_modifiable): Remove.
11818 * value.h (deprecated_set_value_modifiable): Remove.
11819
11820 2013-01-28 Doug Evans <dje@google.com>
11821
11822 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11823 to addresses from dwo files.
11824
11825 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11826
11827 * valops.c (find_overload_match): Remove unused argument 'lax'.
11828 * value.h: Remove unused argument 'lax' from the declaration of
11829 find_overload_match.
11830 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11831 to find_overload_match.
11832 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11833 argument to find_overload_match.
11834
11835 2013-01-25 Tom Tromey <tromey@redhat.com>
11836
11837 * dwarf2read.c (processing_has_namespace_info): Remove.
11838 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11839 (process_die, read_func_scope, dwarf2_start_symtab)
11840 (new_symbol_full): Update.
11841
11842 2013-01-25 Tom Tromey <tromey@redhat.com>
11843
11844 * cp-namespace.c (cp_set_block_scope): Remove.
11845 * cp-support.h (cp_set_block_scope): Remove.
11846 * dbxread.c: Include block.h.
11847 (cp_set_block_scope): New function.
11848 (process_one_symbol): Update.
11849 * dwarf2read.c (read_func_scope): Use block_set_scope.
11850
11851 2013-01-25 Pedro Alves <palves@redhat.com>
11852
11853 * remote.c (add_current_inferior_and_thread): Tweak comment.
11854
11855 2013-01-25 Tom Tromey <tromey@redhat.com>
11856
11857 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11858 (cp_add_using_directive): Add 'copy_names' argument.
11859 * cp-support.h (cp_add_using_directive): Update.
11860 (struct using_direct) <import_src, import_dest, alias,
11861 declaration>: Now const.
11862 * dwarf2read.c (read_import_statement): Use obconcat.
11863 Don't copy names passed to cp_add_using_directive.
11864
11865 2013-01-25 Tom Tromey <tromey@redhat.com>
11866
11867 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11868
11869 2013-01-25 Pedro Alves <palves@redhat.com>
11870
11871 * remote.c (stop_reply_extract_thread): New.
11872 (add_current_inferior_and_thread): New parameter 'wait_status'.
11873 Handle it.
11874 (remote_start_remote): Pass wait status to
11875 add_current_inferior_and_thread.
11876 (extended_remote_run): Update comment.
11877 (extended_remote_create_inferior_1): Pass wait status to
11878 add_current_inferior_and_thread.
11879
11880 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11881 Ulrich Weigand <uweigand@de.ibm.com>
11882
11883 * valarith.c (value_vector_widen): New function for replicating a
11884 scalar into a vector.
11885 (value_binop): Use value_vector_widen to widen scalar to vector
11886 rather than casting, this better matches gcc C behaviour.
11887 * valops.c (value_casst): Update logic for casting between vector
11888 types, and for casting from scalar to vector, try to match gcc C
11889 behaviour.
11890 * value.h (value_vector_widen): Declare.
11891 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11892 function, handle special case for casting scalar to vector.
11893 (opencl_relop): Use opencl_value_cast.
11894 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11895 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11896 in order to use opencl_value_cast.
11897
11898 2013-01-25 Yao Qi <yao@codesourcery.com>
11899
11900 * event-loop.c: Include "queue.h".
11901 (gdb_event_p): New typedef.
11902 (DECLARE_QUEUE_P): Use.
11903 (DEFINE_QUEUE_P): Use.
11904 (async_queue_event): Remove.
11905 (gdb_event_xfree): New.
11906 (initialize_event_loop): New.
11907 (process_event): Use QUEUE macros.
11908 (event_queue): Remove.
11909 (gdb_wait_for_event): Caller update.
11910 (check_async_event_handlers): Likewise.
11911 (poll_timers): Likewise.
11912 * event-loop.h (initialize_event_loop): Declare.
11913 * event-loop.c (gdb_event_xfree): New.
11914 * top.c (gdb_init): Call initialize_event_loop.
11915
11916 2013-01-25 Yao Qi <yao@codesourcery.com>
11917
11918 * event-loop.c (async_queue_event): Remove one parameter
11919 'position'. Remove code handling 'position' == TAIL.
11920 (gdb_wait_for_event): Caller update.
11921 (check_async_event_handlers): Caller update.
11922 (poll_timers): Caller update.
11923 * event-loop.h (enum queue_position): Remove.
11924
11925 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11926
11927 * MAINTAINERS: Update my email.
11928
11929 2013-01-25 Yao Qi <yao@codesourcery.com>
11930
11931 * main.c (print_gdb_help): Remove "--epoch" from the help
11932 message.
11933
11934 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11935
11936 * symtab.c (skip_prologue_using_sal): Consider a file
11937 change the same as an increased line number
11938
11939 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11940
11941 * MAINTAINERS (Write After Approval): Add myself to the list.
11942
11943 2013-01-24 Tom Tromey <tromey@redhat.com>
11944
11945 * ada-lang.h (ada_decode_symbol): Make return type const.
11946 * ada-lang.c (ada_decode_symbol): Likewise.
11947
11948 2013-01-23 Doug Evans <dje@google.com>
11949
11950 * linespec.c (find_linespec_symbols): Make static.
11951
11952 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11953
11954 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11955 type on float conversion for complex type.
11956
11957 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11958
11959 Add a new class gdb.Architecture which exposes GDB's
11960 internal representation of architecture via GDB Python API.
11961 * Makefile.in: Add entries corresponding to the new file
11962 python/py-arch.c.
11963 * NEWS (Python Scripting): Add entries for the new class
11964 gdb.Architecture and the new method gdb.Frame.architecture.
11965 * python/py-arch.c: Implement gdb.Architecture class.
11966 * python/py-frame.c (frapy_arch): Implement the method
11967 gdb.Frame.architecture().
11968 (frame_object_methods): Add 'architecture' to the method table.
11969 * python/python-internal.h: Add declarations of new utility
11970 functions.
11971 * python/python.c (_initialize_python): Initialize
11972 gdb.Architecture class.
11973
11974 2013-01-23 Doug Evans <dje@google.com>
11975
11976 Work around binutils/15021.
11977 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11978 type_unit_group out of union s. All uses updated.
11979 (read_index_from_section): Watch for index version 8.
11980 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11981 an imported symtab.
11982 (write_psymtabs_to_index): Increment version number to 8.
11983
11984 2013-01-22 Pedro Alves <palves@redhat.com>
11985
11986 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11987 user-visible.
11988
11989 2013-01-22 Pedro Alves <palves@redhat.com>
11990
11991 * annotate.c (annotate_breakpoints_changed): Rename to ...
11992 (annotate_breakpoints_invalid): ... this. Make static.
11993 (breakpoint_changed): Adjust.
11994 (_initialize_annotate): Always install the observers. Install a
11995 "breakpoint_created" observer.
11996 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11997 * breakpoint.c (set_breakpoint_condition)
11998 (breakpoint_set_commands, do_map_commands_command)
11999 (init_raw_breakpoint, clear_command, set_ignore_count)
12000 (enable_breakpoint_disp): No longer call
12001 annotate_breakpoints_changed.
12002
12003 2013-01-22 Pedro Alves <palves@redhat.com>
12004
12005 * annotate.c: Include "inferior.h".
12006 (frames_invalid_emitted)
12007 (breakpoints_invalid_emitted): New globals.
12008 (async_background_execution_p): New function.
12009 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12010 emitting the annotation if it has already been emitted.
12011 (annotate_display_prompt): New function.
12012 * annotate.h (annotate_display_prompt): New declaration.
12013 * event-top.c: Include annotate.h.
12014 (display_gdb_prompt): Call annotate_display_prompt.
12015
12016 2013-01-22 Pedro Alves <palves@redhat.com>
12017
12018 * annotate.c (ignore_count_changed): Delete.
12019 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12020 (annotate_ignore_count_change): Delete.
12021 (annotate_stopped): Don't emit a delayed breakpoints-changed
12022 annotation.
12023 * annotate.h (annotate_ignore_count_change): Delete.
12024 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12025 annotate_ignore_count_change.
12026
12027 2013-01-22 Tom Tromey <tromey@redhat.com>
12028
12029 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12030 require_rvalue for a register location.
12031
12032 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12033
12034 * breakpoint.c (print_one_breakpoint_location): Add MI
12035 field 'thread-groups' when printing a breakpoint.
12036 (output_thread_groups): New function.
12037
12038 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12039
12040 * python/lib/gdb/commands/explore.py
12041 (CompoundExplorer.explore_expr): Correct the name of a method
12042 being invoked.
12043 (ExploreTypeCommand.invoke): Add a missing 'return'.
12044
12045 2013-01-21 Tom Tromey <tromey@redhat.com>
12046
12047 * gdb_obstack.h (obconcat): Move declaration here, from...
12048 * symfile.h (obconcat): ... here.
12049 * gdb_obstack.c: New file.
12050 (obconcat): Move from...
12051 * symfile.c (obconcat): ... here.
12052 * Makefile.in (SFILES): Add gdb_obstack.c.
12053 (COMMON_OBS): Add gdb_obstack.o.
12054
12055 2013-01-21 Tom Tromey <tromey@redhat.com>
12056
12057 * symfile.h (obsavestring): Don't declare.
12058 * symfile.c (obsavestring): Remove.
12059 * ada-exp.y: Use obstack_copy0, not obsavestring.
12060 * ada-lang.c: Use obstack_copy0, not obsavestring.
12061 * coffread.c: Use obstack_copy0, not obsavestring.
12062 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12063 * dbxread.c: Use obstack_copy0, not obsavestring.
12064 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12065 * jit.c: Use obstack_copy0, not obsavestring.
12066 * mdebugread.c: Use obstack_copy0, not obsavestring.
12067 * psymtab.c: Use obstack_copy0, not obsavestring.
12068 * stabsread.c: Use obstack_copy0, not obsavestring.
12069 * xcoffread.c: Use obstack_copy0, not obsavestring.
12070
12071 2013-01-21 Tom Tromey <tromey@redhat.com>
12072
12073 * dwarf2read.c (fixup_go_packaging): Save package name
12074 on objfile obstack.
12075 * gdbtypes.c (init_type): Don't copy name.
12076
12077 2013-01-21 Tom Tromey <tromey@redhat.com>
12078
12079 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12080 const.
12081 (struct attribute) <u.str>: Now const.
12082 (struct fnfieldlist) <name>: Now const.
12083 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12084 (partial_die_parent_scope): Make return type const.
12085 (partial_die_full_name, add_partial_symbol): Update.
12086 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12087 'name' const.
12088 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12089 (read_file_scope, read_func_scope, dwarf2_add_field)
12090 (dwarf2_add_member_fn, read_structure_type)
12091 (process_enumeration_scope, read_array_type, read_module_type)
12092 (read_base_type, read_subrange_type): Update.
12093 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12094 (new_symbol_full, guess_full_die_structure_name): Update.
12095 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12096 (dwarf2_name): Return const type.
12097 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12098 const.
12099
12100 2013-01-21 Tom Tromey <tromey@redhat.com>
12101
12102 * gdbtypes.c (init_type): Make 'name' const.
12103 * gdbtypes.h (init_type): Update.
12104
12105 2013-01-21 Tom Tromey <tromey@redhat.com>
12106
12107 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12108 (start_symtab): Make 'name' and 'dirname' const. Use
12109 set_last_source_file.
12110 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12111 (last_source_file): Define. Now static.
12112 (set_last_source_file, get_last_source_file): New functions.
12113 * buildsym.h (last_source_file): Don't declare.
12114 (start_symtab): Update.
12115 (set_last_source_file, get_last_source_file): Declare.
12116 * coffread.c (complete_symtab): Use set_last_source_file.
12117 (coff_end_symtab): Likewise.
12118 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12119 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12120 set_last_source_file.
12121 (process_one_symbol): Use get_last_source_file.
12122 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12123 (psymtab_to_symtab_1): Use get_last_source_file.
12124 * xcoffread.c (process_linenos): Use get_last_source_file.
12125 (complete_symtab): Use set_last_source_file.
12126 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12127 (scan_xcoff_symtab): Use set_last_source_file.
12128
12129 2013-01-21 Tom Tromey <tromey@redhat.com>
12130
12131 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12132 (symbol_set_names): Remove casts. Handle field const-ness.
12133
12134 2013-01-21 Tom Tromey <tromey@redhat.com>
12135
12136 * dwarf2read.c (new_symbol_full): Remove cast.
12137 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12138 * symtab.h (symbol_set_demangled_name): Update.
12139
12140 2013-01-21 Tom Tromey <tromey@redhat.com>
12141
12142 * main.c (captured_main): Call bfd_init.
12143
12144 2013-01-21 Tom Tromey <tromey@redhat.com>
12145
12146 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12147 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12148 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12149 * NEWS: Update.
12150
12151 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12152
12153 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12154
12155 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12156
12157 Fix gdb.fortran/common-block.exp crash in PIE mode.
12158 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12159 LOC_COMMON_BLOCK.
12160 * f-valprint.c (info_common_command_for_block): Expect
12161 LOC_COMMON_BLOCK in gdb_assert.
12162 * symtab.h (struct general_symbol_info): Update comment for the
12163 common_block member.
12164 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12165 (enum address_class): New member LOC_COMMON_BLOCK.
12166
12167 2013-01-18 David Blaikie <dblaikie@gmail.com>
12168
12169 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12170
12171 2013-01-18 Tom Tromey <tromey@redhat.com>
12172
12173 PR c++/14999:
12174 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12175 Call require_rvalue.
12176
12177 2013-01-18 Yao Qi <yao@codesourcery.com>
12178
12179 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12180 (dbx_read_symtab): New declaration.
12181 (dbx_psymtab_to_symtab): Delete.
12182 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12183 Rename parameter PST to SELF. Exchanged two parameters.
12184 (start_psymtab): Caller update.
12185 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12186 (dwarf2_read_symtab): New declaration.
12187 (dwarf2_psymtab_to_symtab): Delete.
12188 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12189 Rename parameter PST to SELF. Exchanged two parameters.
12190 (create_partial_symtab): Caller update.
12191 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12192 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12193 Rename parameter PST to SELF. Exchanged two parameters.
12194 (parse_partial_symbols, new_psymtab): Caller update.
12195 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12196 two parameters.
12197 * psymtab.c (psymtab_to_symtab): Caller update.
12198 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12199 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12200 Rename parameter PST to SELF. Exchanged two parameters.
12201 (xcoff_start_psymtab): Caller update.
12202
12203 2013-01-18 Yao Qi <yao@codesourcery.com>
12204
12205 * infrun.c (proceed): Rename local variable 'oneproc' to
12206 'force_step'.
12207
12208 2013-01-17 Doug Evans <dje@google.com>
12209
12210 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12211 (dw2_build_type_unit_groups): Delete. All uses updated.
12212
12213 * symtab.h (struct symbol_search): Add comment.
12214
12215 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12216
12217 * symtab.c (compare_filenames_for_search): New comment for
12218 HAS_DRIVE_SPEC.
12219
12220 2013-01-17 Tom Tromey <tromey@redhat.com>
12221
12222 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12223
12224 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12225
12226 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12227 initialize it by existing make_cleanup. Call new do_cleanups.
12228
12229 2013-01-17 Tom Tromey <tromey@redhat.com>
12230
12231 * cp-abi.c (cp_abi_completer): New function.
12232 (_initialize_cp_abi): Set completer for "set cp-abi".
12233
12234 2013-01-17 Tom Tromey <tromey@redhat.com>
12235
12236 * mem-break.c: Remove obsolete comment.
12237 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12238
12239 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12240
12241 * jit.c (jit_reader_load_command): Interpret the jit reader name
12242 as an absolute path if it begins with a forward slash.
12243
12244 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12245
12246 PR gdb/14550
12247
12248 * jit.c (finalize_symtab): Ensure that only the global block has a
12249 NULL superblock.
12250
12251 2013-01-17 Pedro Alves <palves@redhat.com>
12252
12253 * acinclude.m4: Include ../config/plugins.m4,
12254 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12255 * Makefile.in (aclocal_m4_deps): Update.
12256 * aclocal.m4: Renegerate.
12257
12258 2013-01-16 Doug Evans <dje@google.com>
12259
12260 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12261
12262 2013-01-16 Pedro Alves <palves@redhat.com>
12263 Tom Tromey <tromey@redhat.com>
12264
12265 PR cli/7221:
12266 * NEWS: Add "catch signal".
12267 * breakpoint.c (base_breakpoint_ops): No longer static.
12268 (bpstat_explains_signal): New function.
12269 (init_catchpoint): No longer static.
12270 (base_breakpoint_explains_signal): New function.
12271 (base_breakpoint_ops): Initialize new field.
12272 * breakpoint.h (enum bpstat_signal_value): New.
12273 (struct breakpoint_ops) <explains_signal>: New field.
12274 (bpstat_explains_signal): Remove macro, declare as function.
12275 (base_breakpoint_ops, init_catchpoint): Declare.
12276 * break-catch-sig.c: New file.
12277 * inferior.h (signal_catch_update): Declare.
12278 * infrun.c (signal_catch): New global.
12279 (handle_syscall_event): Update for change to
12280 bpstat_explains_signal.
12281 (handle_inferior_event): Likewise. Always handle random signals
12282 via bpstats.
12283 (signal_cache_update): Check signal_catch.
12284 (signal_catch_update): New function.
12285 (_initialize_infrun): Initialize signal_catch.
12286 * Makefile.in (SFILES): Add break-catch-sig.c.
12287 (COMMON_OBS): Add break-catch-sig.o.
12288
12289 2013-01-16 Tom Tromey <tromey@redhat.com>
12290
12291 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12292 (print_one_catch_solib, print_one_catch_syscall)
12293 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12294 "catch-type".
12295
12296 2013-01-16 Yao Qi <yao@codesourcery.com>
12297
12298 * printcmd.c (current_display_number): Make it static.
12299
12300 2013-01-16 Yao Qi <yao@codesourcery.com>
12301
12302 * infcmd.c (step_once): Don't check '!single_inst' as it was
12303 checked before.
12304
12305 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12306
12307 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12308
12309 2013-01-14 Tom Tromey <tromey@redhat.com>
12310
12311 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12312 set command.
12313 * command.h (add_setshow_string_noescape_cmd): Update.
12314 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12315 (complete_set_gnutarget): New function.
12316 (_initialize_core): Set the "set gnutarget" completer.
12317
12318 2013-01-14 Tom Tromey <tromey@redhat.com>
12319
12320 PR symtab/14442:
12321 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12322 (c_type_print_modifier): Likewise.
12323 * dwarf2read.c (read_tag_restrict_type): New function.
12324 (read_type_die_1): Handle DW_TAG_restrict_type.
12325 * gdbtypes.c (make_restrict_type): New function.
12326 (recursive_dump_type): Handle TYPE_RESTRICT.
12327 * gdbtypes.h (enum type_flag_values): Renumber.
12328 (enum type_instance_flag_value): Add
12329 TYPE_INSTANCE_FLAG_RESTRICT.
12330 (TYPE_RESTRICT): New macro.
12331 (make_restrict_type): Declare.
12332
12333 2013-01-14 Tom Tromey <tromey@redhat.com>
12334
12335 PR symtab/14931:
12336 * psymtab.c (struct psymtab_state): New.
12337 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12338 functions.
12339 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12340 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12341
12342 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12343 Pedro Alves <palves@redhat.com>
12344
12345 PR remote/14786
12346
12347 * remote.c (remote_threads_info): Make a copy of the reply from
12348 qfThreadInfo and use that instead of rs->buf.
12349
12350 2013-01-14 Yao Qi <yao@codesourcery.com>
12351
12352 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12353 (dbx_psymtab_to_symtab): Likewise.
12354 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12355 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12356 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12357
12358 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12359
12360 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12361 make_cleanup_restore_current_language. Call set_language. Move
12362 OLD_CHAIN and INNER_CHAIN cleanups.
12363 * utils.c (do_restore_current_language)
12364 (make_cleanup_restore_current_language): New functions.
12365 * utils.h (make_cleanup_restore_current_language): New declaration.
12366
12367 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12368
12369 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12370 non-existing files.
12371
12372 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12373 non-existing files if FILENAME is already absolute.
12374
12375 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12376
12377 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12378 fputs_filtered. Append trailing newline.
12379
12380 2013-01-11 Yao Qi <yao@codesourcery.com>
12381 Stan Shebs <stan@codesourcery.com>
12382
12383 * psymtab.c (init_psymbol_list): Clarify the comment.
12384
12385 2013-01-11 Yao Qi <yao@codesourcery.com>
12386
12387 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12388 (update_dprintf_command_list): Assert that 'printf_line' is
12389 non-null. Remove condition check.
12390
12391 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12392
12393 Code cleanup.
12394 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12395 type const char *.
12396 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12397 const char *.
12398 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12399
12400 2013-01-09 Anthony Green <green@moxielogic.com>
12401
12402 * cp-abi.c (cplus_print_vtable): Don't return value from void
12403 function.
12404 * ada-lang.c (re_set_catch_assert): Ditto.
12405
12406 2013-01-09 Doug Evans <dje@google.com>
12407
12408 * symfile.h (quick_symbol_functions): Delete member
12409 pre_expand_symtabs_matching. All uses removed.
12410 * dwarf2read.c (dw2_lookup_symbol): Implement.
12411 (dw2_do_expand_symtabs_matching): Delete.
12412 (dw2_pre_expand_symtabs_matching): Delete.
12413 (struct dw2_symtab_iterator): New type.
12414 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12415 (dw2_expand_symtabs_for_function): Rewrite.
12416 (dwarf2_gdb_index_functions): Update.
12417 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12418 (psym_functions): Update.
12419
12420 2013-01-09 Tom Tromey <tromey@redhat.com>
12421
12422 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12423 * configure: Rebuild.
12424 * configure.ac: Add somread.o to the build if BFD has SOM
12425 support.
12426 * somread.c: Include som/aout.h, not syms.h.
12427 (som_symtab_read): Use som_external_symbol_dictionary_record.
12428 Unpack records manually.
12429 (_initialize_somread): Declare.
12430
12431 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12432
12433 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12434 Cast return_address to 64bits.
12435
12436 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12437
12438 * printcmd.c: Remove define of function output_command.
12439 * tracepoint.c: Remove extern of function output_command.
12440 * valprint.h: (output_command): New extern.
12441
12442 2013-01-07 Tom Tromey <tromey@redhat.com>
12443
12444 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12445 Remove.
12446 (objc_language_defn): Use c_printchar, c_printstr,
12447 c_emit_char.
12448
12449 2013-01-07 Tom Tromey <tromey@redhat.com>
12450
12451 PR cli/7719:
12452 * NEWS: Update.
12453 * ada-valprint.c (printstr, print_field_values): Remove
12454 "inspect_it" code.
12455 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12456 code.
12457 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12458 code.
12459 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12460 * main.c (captured_main): Remove "epoch" argument.
12461 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12462 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12463 * p-valprint.c (pascal_object_print_value_fields): Remove
12464 "inspect_it" code.
12465 * printcmd.c (print_command_1): Remove 'inspect' argument.
12466 (print_command, call_command): Update.
12467 (inspect_command): Remove.
12468 (_initialize_printcmd): Make "inspect" an alias for "print".
12469 * top.c (epoch_interface): Remove.
12470 * top.h (epoch_interface): Remove.
12471 * valprint.c (user_print_options): Update.
12472 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12473 * valprint.h (struct value_print_options) <inspect_it>: Remove
12474 field.
12475
12476 2013-01-04 Tom Tromey <tromey@redhat.com>
12477
12478 * valprint.h (read_string): Add 'extern'.
12479
12480 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12481
12482 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12483 used to decide whether to define darwin_read_dyld_info or not.
12484
12485 2013-01-03 Pierre Muller <muller@sourceware.org>
12486
12487 * main.c (relocate_gdb_directory): Avoid calling stat function
12488 if DIR is empty.
12489
12490 2013-01-03 Yao Qi <yao@codesourcery.com>
12491
12492 * psymtab.c (fixup_psymbol_section): Update declaration.
12493 (fixup_psymbol_section): Remove code returning value.
12494
12495 2013-01-03 Yao Qi <yao@codesourcery.com>
12496
12497 * symtab.h: Remove some out of date comments.
12498 (enum exception_event_kind): Move it ...
12499 * breakpoint.c: ... here.
12500
12501 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12502
12503 PR gdb/14405
12504 * darwin-nat.c (darwin_read_dyld_info): Only build if
12505 TASK_DYLD_INFO_COUNT is defined.
12506 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12507 TASK_DYLD_INFO_COUNT is defined.
12508
12509 2013-01-02 Tom Tromey <tromey@redhat.com>
12510
12511 * symfile.h (struct ecoff_debug_hack): Remove.
12512 * objfiles.c: Don't include mdebugread.h.
12513
12514 2013-01-02 Tom Tromey <tromey@redhat.com>
12515
12516 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12517 * configure.ac: Check for Mach-O support in BFD. Update
12518 CONFIG_OBS.
12519 * configure: Rebuild.
12520
12521 2013-01-02 Tom Tromey <tromey@redhat.com>
12522
12523 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12524 * configure.ac: Use GDB_AC_CHECK_BFD.
12525 * configure: Rebuild.
12526
12527 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12528
12529 * MAINTAINERS: Update my email.
12530
12531 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12532
12533 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12534
12535 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12536
12537 * rs6000-nat.c (bss_data_overlap): New function.
12538 (vmap_symtab): Use it to adjust the .bss section's offset.
12539
12540 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12541
12542 Update year range in copyright notice of all files.
12543
12544 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12545
12546 * top.c (print_gdb_version): Update copyright year.
12547
12548 For older changes see ChangeLog-2012.
12549 \f
12550 Local Variables:
12551 mode: change-log
12552 left-margin: 8
12553 fill-column: 74
12554 version-control: never
12555 coding: utf-8
12556 End:
This page took 0.47424 seconds and 5 git commands to generate.