Don't let two frames with the same id end up in the frame chain.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
33f8fe58
PA
12013-11-22 Pedro Alves <palves@redhat.com>
2
3 PR 16155
4 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
5 this frame and the new previous frame, not between this frame and
6 the next frame.
7
1ec56e88
PA
82013-11-22 Pedro Alves <palves@redhat.com>
9
10 PR 16155
11 * dwarf2-frame.c (struct dwarf2_frame_cache)
12 <checked_tailcall_bottom, entry_cfa_sp_offset,
13 entry_cfa_sp_offset_p>: New fields.
14 (dwarf2_frame_cache): Adjust to use the new cache fields instead
15 of locals. Don't call dwarf2_tailcall_sniffer_first here.
16 (dwarf2_frame_prev_register): Call it here, but only once.
17
ca092b61
DE
182013-11-21 Doug Evans <xdje42@gmail.com>
19
20 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
21 (type_equality_entry): Move here from python/py-type.c.
22 (type_equality_entry_d): Ditto.
23 (compare_maybe_null_strings, check_types_equal): Ditto.
24 (check_types_worklist, types_deeply_equal): Ditto.
25 * gdbtypes.h (types_deeply_equal): Declare.
26 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
27 (typy_richcompare): Update.
28
7c245c24
JB
292013-11-20 Joel Brobecker <brobecker@adacore.com>
30
31 * python/py-value.c (is_intlike): Delete.
32 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
33 by use of is_integral_type.
34 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
35 by use of is_integral_type and check for TYPE_CODE_PTR.
36
8986e351
TT
372013-11-20 Tom Tromey <tromey@redhat.com>
38
39 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
40 strerror module.
41 * gnulib/aclocal.m4: Update.
42 * gnulib/config.in: Update.
43 * gnulib/configure: Update.
44 * gnulib/import/Makefile.am: Update.
45 * gnulib/import/Makefile.in: Update.
46 * gnulib/import/errno.in.h: Remove.
47 * gnulib/import/intprops.h: Remove.
48 * gnulib/import/m4/errno_h.m4: Remove.
49 * gnulib/import/m4/gnulib-cache.m4: Update.
50 * gnulib/import/m4/gnulib-comp.m4: Update.
51 * gnulib/import/m4/strerror.m4: Remove.
52 * gnulib/import/m4/sys_socket_h.m4: Remove.
53 * gnulib/import/strerror-override.c: Remove.
54 * gnulib/import/strerror-override.h: Remove.
55 * gnulib/import/strerror.c: Remove.
56 * gnulib/update-gnulib.sh: Update.
57
6b1141e3
YQ
582013-11-20 Yao Qi <yao@codesourcery.com>
59
60 * target-dcache.c (target_dcache_get_or_init): Call
61 set_address_space_data if 'dcache' is NULL.
62
60650f2e
WT
632013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
64
65 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
66
09748966
WT
672013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
68
69 * python/lib/gdb/command/bound_register.py: New file.
70 * gdb/data-directory/Makefile.in: copy bond_register.py to the right path to
71 be initialized at gdb startup.
72
e43e105e
WT
732013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
74
75 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
76 Add MPX registers.
77 (amd64_linux_read_description): Add initialization for MPX and
78 AVX independently.
79 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
80 (amd64_linux_gregset_reg_offset): Add MPX registers.
81 (amd64_linux_core_read_description): Add initialization for MPX
82 registers.
83 (_initialize_amd64_linux_tdep): Initialize MPX targets.
84 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
85 register on the list.
86 (tdesc_amd64_mpx_linux) Add new target for MPX.
87 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
88 (amd64_mpx_names): MPX register names.
89 (amd64_init_abi): Add MPX register while initializing the ABI.
90 (_initialize_amd64_tdep): Initialize MPX targets.
91 * amd64-tdep.h (amd64_regnum): Add MPX registers.
92 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
93
1dbcd68c
WT
942013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
95
96 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
97 registers on the range of registers to be read from
98 xsave buffer.
99 (i386_linux_read_description): Add case for MPX.
100 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
101 (i386_linux_gregset_reg_offset): Add MPX registers.
102 (i386_linux_core_read_description): Initialize also MPX.
103 (_initialize_i386_linux_tdep): Add mpx initialization.
104 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
105 mpx_register_names.
106 (i386_regnum): Add MPX registers.
107 (I386_MPX_NUM_REGS): New macro.
108 (i386_bnd_regnum_p): New function.
109 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
110 number of registers to be the number of BNDSTATUS.
111 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
112 * i386-tdep.c: Include features/i386/i386-mpx.c.
113 (i386_mpx_names): Add MPX register names array.
114 (i386_bnd_names): Add bnd pseudo register names array.
115 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
116 registers.
117 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
118 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
119 registers.
120 (i386_bnd_type): New function.
121 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
122 register types.
123 (i386_pseudo_register_read_into_value): Add bnd case.
124 (i386_pseudo_register_write): Add bnd pseudo registers.
125 (i386_register_reggroup_p): Add MPX register to the group all.
126 (i386_validate_tdesc_p): Add MPX to the target description
127 validation.
128 (i386_pseudo_register_name): Add bnd pseudo registers.
129 (i386_gdbarch_init): Add MPX for architecture initialization.
130 (_initia_initialize_i386_tdep): Add mpx initialization.
131 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
132 XSAVE buffer.
133 (XSAVE_MPX_ADDR): New macro.
134 (i387_supply_xsave): Add MPX case.
135 (i387_collect_xsave): Add MPX case.
136 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
137 (I387_BNDCFGU_REGNUM): New macro.
138 (I387_NUM_MPX_REGS): New macro.
139 (I387_NUM_BND_REGS): New macro.
140 (I387_NUM_MPX_CTRL_REGS): New macro.
141 (I387_MPXEND_REGNUM): New macro.
142 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
143 (I386_XSTATE_BNDCFG): Likewise.
144 (I386_XSTATE_MPX_MASK): Likewise.
145 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
146 (I386_XSTATE_BNDREGS_SIZE): New macro.
147 (I386_XSTATE_BNDCFG_SIZE): Likewise.
148 (I386_XSTATE_SIZE): Adapt for MPX.
149 (I386_XSTATE_MAX_SIZE): Likewise.
150
ccc42043
WT
1512013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
152
153 * features/i386/Makefile: Adapts for using MPX registers.
154 * features/i386/32bit-mpx.xml: New file.
155 * features/i386/64bit-mpx.xml: Likewise.
156 * features/i386/amd64-mpx-linux.c: Likewise.
157 * features/i386/amd64-mpx-linux.xml: Likewise.
158 * features/i386/amd64-mpx.c: Likewise.
159 * features/i386/amd64-mpx.xml: Likewise.
160 * features/i386/i386-mpx-linux.c: Likewise.
161 * features/i386/i386-mpx-linux.xml: Likewise.
162 * features/i386/i386-mpx.c: Likewise.
163 * features/i386/i386-mpx.xml: Likewise.
164 * regformats/i386/amd64-mpx-linux.dat: New file.
165 * regformats/i386/amd64-mpx.dat: Likewise.
166 * regformats/i386/i386-mpx-linux.dat: Likewise.
167 * regformats/i386/i386-mpx.dat: Likewise.
168
57803a3c
WT
1692013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
170
171 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
172 Modified logic of creating a bitfield to be in sync with
173 tdesc_gdb_type.
174
2b59118e
WN
1752013-11-20 Will Newton <will.newton@linaro.org>
176
177 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
178 error message.
179
b26dfc9a
YQ
1802013-11-20 Yao Qi <yao@codesourcery.com>
181
182 * progspace.h (struct address_space_data): Declare.
183 * target-dcache.c: Include "progspace.h".
184 (target_dache): Remove.
185 (target_dcache_aspace_key): New.
186 (target_dcache_cleanup): New function.
187 (target_dcache_init_p): Get data through
188 target_dcache_aspace_key.
189 (target_dcache_invalidate): Likewise.
190 (target_dcache_get): Likewise.
191 (target_dcache_get_or_init): Likewise.
192 (_initialize_target_dcache): Initialize
193 target_dcache_aspace_key.
194
3a8356ff
YQ
1952013-11-20 Yao Qi <yao@codesourcery.com>
196
197 * progspace.c (struct address_space): Update comments.
198 <REGISTRY_FIELDS>: New fields.
199 DEFINE_REGISTRY for address_space.
200 (new_address_space): Call address_space_alloc_data.
201 (free_address_space): Call address_space_free_data.
202 * progspace.h: Use DECLARE_REGISTRY.
203
68c765e2
YQ
2042013-11-20 Yao Qi <yao@codesourcery.com>
205
206 * Makefile.in (SFILES):Add target-dcache.c.
207 (HFILES_NO_SRCDIR): Add target-dcache.h.
208 (COMMON_OBS): Add target-dcache.o.
209 * dcache.c: Remove inclusion to "target.h". Include
210 "target-dcache.h".
211 * memattr.c: Include "target-dcache.h".
212 * top.c: Likewise.
213 * tracepoint.c: Likewise.
214 * target.c: (stack_cache_enabled_p_1): Move to
215 target-dcache.c.
216 (stack_cache_enabled_p): Likewise.
217 (set_stack_cache_enabled_p): Likewise.
218 (show_stack_cache_enabled_p): Likewise.
219 (target_dcache, target_dcache_init_p): Likewise.
220 (target_dcache_invalidate): Likewise.
221 (target_dcache_get, target_dcache_get_or_init): Likewise.
222 (memory_xfer_partial_1): Call function stack_cache_enabled.
223 (initialize_target): Move code to target-dcache.c.
224 * target.h (target_dcache_invalidate): Move to
225 target-dcache.h.
226 (target_dcache_get): Likewise.
227 * target-dcache.c: New.
228 * target-dcache.h: New.
229
f2de9785
YQ
2302013-11-20 Yao Qi <yao@codesourcery.com>
231
232 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
233 it is initialized.
234
2a2f9fe4
YQ
2352013-11-20 Yao Qi <yao@codesourcery.com>
236
237 * dcache.c (last_cache): Remove.
238 (dcache_free, dcache_init): Update.
239 (dcache_update):
240 (dcache_print_line): Add parameter 'dcache'. Replace
241 'target_dcache' with 'dcache'.
242 (dcache_info): Move code to dcache_info_1. Call
243 'dcache_info_1'.
244 (dcache_info_1): New function.
245 (set_dcache_size): Call target_dcache_invalidate.
246 (set_dcache_line_size): Call target_dcache_invalidate.
247 * target.c (target_dcache_init_p): New function.
248 (target_dcache_invalidate): Check target_dcache_init_p first.
249 (target_dcache_get, target_dcache_get_or_init): New function.
250 (memory_xfer_partial_1): Adjust.
251 (initialize_target): Don't initialize 'target_dcache'.
252 * target.h (struct dcache_struct): Declare.
253 (target_dcache_get): Declare.
254
8ab91b96
YQ
2552013-11-19 Yao Qi <yao@codesourcery.com>
256
257 * varobj.c (varobj_get_type): Fix typo.
258
df7752b0
JB
2592013-11-19 Joel Brobecker <brobecker@adacore.com>
260
261 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
262
4a0a886a
JB
2632013-11-19 Joel Brobecker <brobecker@adacore.com>
264
265 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
266 "stat.h".
267
53ce3c39
TT
2682013-11-18 Tom Tromey <tromey@redhat.com>
269
270 * common/gdb_stat.h: Remove.
271 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
272 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
273 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
274 * corefile.c: Use sys/stat.h, not gdb_stat.h.
275 * ctf.c: Use sys/stat.h, not gdb_stat.h.
276 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
277 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
278 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
279 * exec.c: Use sys/stat.h, not gdb_stat.h.
280 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
281 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
282 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
283 * jit.c: Use sys/stat.h, not gdb_stat.h.
284 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
285 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
286 * main.c: Use sys/stat.h, not gdb_stat.h.
287 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
288 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
289 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
290 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
291 * procfs.c: Use sys/stat.h, not gdb_stat.h.
292 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
293 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
294 * remote.c: Use sys/stat.h, not gdb_stat.h.
295 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
296 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
297 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
298 * source.c: Use sys/stat.h, not gdb_stat.h.
299 * symfile.c: Use sys/stat.h, not gdb_stat.h.
300 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
301 * symtab.c: Use sys/stat.h, not gdb_stat.h.
302 * top.c: Use sys/stat.h, not gdb_stat.h.
303 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
304
09607c9e
TT
3052013-11-18 Tom Tromey <tromey@redhat.com>
306
307 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
308 sys_stat.
309 * gnulib/aclocal.m4: Update.
310 * gnulib/config.in: Update.
311 * gnulib/configure: Update.
312 * gnulib/import/Makefile.am: Update.
313 * gnulib/import/Makefile.in: Update.
314 * gnulib/import/m4/gnulib-cache.m4: Update.
315 * gnulib/import/m4/gnulib-comp.m4: Update.
316 * gnulib/import/m4/sys_stat_h.m4: New.
317 * gnulib/import/m4/time_h.m4: New.
318 * gnulib/import/sys_stat.in.h: New.
319 * gnulib/import/time.in.h: New.
320
4ff70b84
TT
3212013-11-18 Tom Tromey <tromey@redhat.com>
322
323 * configure: Rebuild.
324 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
325
3447c057
TT
3262013-11-18 Tom Tromey <tromey@redhat.com>
327
328 * configure: Rebuild.
329 * configure.ac: Don't check for unistd.h.
330
0080a2f6
TT
3312013-11-18 Tom Tromey <tromey@redhat.com>
332
333 * configure: Rebuild.
334 * configure.ac: Don't check for stdlib.h
335 * defs.h: Include stdlib.h unconditionally.
336
161d1bec
TT
3372013-11-18 Tom Tromey <tromey@redhat.com>
338
339 * config.in: Rebuild.
340 * configure: Rebuild.
341 * configure.ac: Don't check for stddef.h.
342 * defs.h: Unconditionally include stddef.h. Remove duplicate
343 inclusion.
344
2978b111
TT
3452013-11-18 Tom Tromey <tromey@redhat.com>
346
347 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
348 * common/gdb_dirent.h: Remove.
349 * common/filestuff.c: Use dirent.h.
350 * common/linux-osdata.c: Use dirent.h.
351 (NAMELEN): Define.
352 * config.in: Rebuild.
353 * configure: Rebuild.
354 * configure.ac: Don't use AC_HEADER_DIRENT.
355 * linux-fork.c: Use dirent.h
356 * linux-nat.c: Use dirent.h.
357 * nto-procfs.c: Use dirent.h.
358 * procfs.c: Use dirent.h.
359
e26b6bb0
TT
3602013-11-18 Tom Tromey <tromey@redhat.com>
361
362 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
363 * gnulib/aclocal.m4: Update.
364 * gnulib/config.in: Update.
365 * gnulib/configure: Update.
366 * gnulib/import/Makefile.am: Update.
367 * gnulib/import/Makefile.in: Update.
368 * gnulib/import/dirent.in.h: New.
369 * gnulib/import/m4/dirent_h.m4: New.
370 * gnulib/import/m4/gnulib-cache.m4: Update.
371 * gnulib/import/m4/gnulib-comp.m4: Update.
372
a3d08894
TT
3732013-11-18 Tom Tromey <tromey@redhat.com>
374
375 * configure: Rebuild.
376 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
377 strings.h.
378
0e9f083f
TT
3792013-11-18 Tom Tromey <tromey@redhat.com>
380
381 * common/gdb_string.h: Remove.
382 * aarch64-tdep.c: Use string.h, not gdb_string.h.
383 * ada-exp.y: Use string.h, not gdb_string.h.
384 * ada-lang.c: Use string.h, not gdb_string.h.
385 * ada-lex.l: Use string.h, not gdb_string.h.
386 * ada-typeprint.c: Use string.h, not gdb_string.h.
387 * ada-valprint.c: Use string.h, not gdb_string.h.
388 * aix-thread.c: Use string.h, not gdb_string.h.
389 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
390 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
391 * alpha-nat.c: Use string.h, not gdb_string.h.
392 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
393 * alpha-tdep.c: Use string.h, not gdb_string.h.
394 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
395 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
396 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
397 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
398 * amd64-nat.c: Use string.h, not gdb_string.h.
399 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
400 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
401 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
402 * arch-utils.c: Use string.h, not gdb_string.h.
403 * arm-linux-nat.c: Use string.h, not gdb_string.h.
404 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
405 * arm-tdep.c: Use string.h, not gdb_string.h.
406 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
407 * armbsd-tdep.c: Use string.h, not gdb_string.h.
408 * armnbsd-nat.c: Use string.h, not gdb_string.h.
409 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
410 * armobsd-tdep.c: Use string.h, not gdb_string.h.
411 * avr-tdep.c: Use string.h, not gdb_string.h.
412 * ax-gdb.c: Use string.h, not gdb_string.h.
413 * ax-general.c: Use string.h, not gdb_string.h.
414 * bcache.c: Use string.h, not gdb_string.h.
415 * bfin-tdep.c: Use string.h, not gdb_string.h.
416 * breakpoint.c: Use string.h, not gdb_string.h.
417 * build-id.c: Use string.h, not gdb_string.h.
418 * buildsym.c: Use string.h, not gdb_string.h.
419 * c-exp.y: Use string.h, not gdb_string.h.
420 * c-lang.c: Use string.h, not gdb_string.h.
421 * c-typeprint.c: Use string.h, not gdb_string.h.
422 * c-valprint.c: Use string.h, not gdb_string.h.
423 * charset.c: Use string.h, not gdb_string.h.
424 * cli-out.c: Use string.h, not gdb_string.h.
425 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
426 * cli/cli-decode.c: Use string.h, not gdb_string.h.
427 * cli/cli-dump.c: Use string.h, not gdb_string.h.
428 * cli/cli-interp.c: Use string.h, not gdb_string.h.
429 * cli/cli-logging.c: Use string.h, not gdb_string.h.
430 * cli/cli-script.c: Use string.h, not gdb_string.h.
431 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
432 * cli/cli-utils.c: Use string.h, not gdb_string.h.
433 * coffread.c: Use string.h, not gdb_string.h.
434 * common/common-utils.c: Use string.h, not gdb_string.h.
435 * common/filestuff.c: Use string.h, not gdb_string.h.
436 * common/linux-procfs.c: Use string.h, not gdb_string.h.
437 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
438 * common/signals.c: Use string.h, not gdb_string.h.
439 * common/vec.h: Use string.h, not gdb_string.h.
440 * core-regset.c: Use string.h, not gdb_string.h.
441 * corefile.c: Use string.h, not gdb_string.h.
442 * corelow.c: Use string.h, not gdb_string.h.
443 * cp-abi.c: Use string.h, not gdb_string.h.
444 * cp-support.c: Use string.h, not gdb_string.h.
445 * cp-valprint.c: Use string.h, not gdb_string.h.
446 * cris-tdep.c: Use string.h, not gdb_string.h.
447 * d-lang.c: Use string.h, not gdb_string.h.
448 * dbxread.c: Use string.h, not gdb_string.h.
449 * dcache.c: Use string.h, not gdb_string.h.
450 * demangle.c: Use string.h, not gdb_string.h.
451 * dicos-tdep.c: Use string.h, not gdb_string.h.
452 * disasm.c: Use string.h, not gdb_string.h.
453 * doublest.c: Use string.h, not gdb_string.h.
454 * dsrec.c: Use string.h, not gdb_string.h.
455 * dummy-frame.c: Use string.h, not gdb_string.h.
456 * dwarf2-frame.c: Use string.h, not gdb_string.h.
457 * dwarf2loc.c: Use string.h, not gdb_string.h.
458 * dwarf2read.c: Use string.h, not gdb_string.h.
459 * elfread.c: Use string.h, not gdb_string.h.
460 * environ.c: Use string.h, not gdb_string.h.
461 * eval.c: Use string.h, not gdb_string.h.
462 * event-loop.c: Use string.h, not gdb_string.h.
463 * exceptions.c: Use string.h, not gdb_string.h.
464 * exec.c: Use string.h, not gdb_string.h.
465 * expprint.c: Use string.h, not gdb_string.h.
466 * f-exp.y: Use string.h, not gdb_string.h.
467 * f-lang.c: Use string.h, not gdb_string.h.
468 * f-typeprint.c: Use string.h, not gdb_string.h.
469 * f-valprint.c: Use string.h, not gdb_string.h.
470 * fbsd-nat.c: Use string.h, not gdb_string.h.
471 * findcmd.c: Use string.h, not gdb_string.h.
472 * findvar.c: Use string.h, not gdb_string.h.
473 * fork-child.c: Use string.h, not gdb_string.h.
474 * frame.c: Use string.h, not gdb_string.h.
475 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
476 * frv-tdep.c: Use string.h, not gdb_string.h.
477 * gdb.c: Use string.h, not gdb_string.h.
478 * gdb_bfd.c: Use string.h, not gdb_string.h.
479 * gdbarch.c: Use string.h, not gdb_string.h.
480 * gdbtypes.c: Use string.h, not gdb_string.h.
481 * gnu-nat.c: Use string.h, not gdb_string.h.
482 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
483 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
484 * go-exp.y: Use string.h, not gdb_string.h.
485 * go-lang.c: Use string.h, not gdb_string.h.
486 * go32-nat.c: Use string.h, not gdb_string.h.
487 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
488 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
489 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
490 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
491 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
492 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
493 * i386-linux-nat.c: Use string.h, not gdb_string.h.
494 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
495 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
496 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
497 * i386-tdep.c: Use string.h, not gdb_string.h.
498 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
499 * i386gnu-nat.c: Use string.h, not gdb_string.h.
500 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
501 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
502 * i387-tdep.c: Use string.h, not gdb_string.h.
503 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
504 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
505 * inf-child.c: Use string.h, not gdb_string.h.
506 * inf-ptrace.c: Use string.h, not gdb_string.h.
507 * inf-ttrace.c: Use string.h, not gdb_string.h.
508 * infcall.c: Use string.h, not gdb_string.h.
509 * infcmd.c: Use string.h, not gdb_string.h.
510 * inflow.c: Use string.h, not gdb_string.h.
511 * infrun.c: Use string.h, not gdb_string.h.
512 * interps.c: Use string.h, not gdb_string.h.
513 * iq2000-tdep.c: Use string.h, not gdb_string.h.
514 * irix5-nat.c: Use string.h, not gdb_string.h.
515 * jv-exp.y: Use string.h, not gdb_string.h.
516 * jv-lang.c: Use string.h, not gdb_string.h.
517 * jv-typeprint.c: Use string.h, not gdb_string.h.
518 * jv-valprint.c: Use string.h, not gdb_string.h.
519 * language.c: Use string.h, not gdb_string.h.
520 * linux-fork.c: Use string.h, not gdb_string.h.
521 * linux-nat.c: Use string.h, not gdb_string.h.
522 * lm32-tdep.c: Use string.h, not gdb_string.h.
523 * m2-exp.y: Use string.h, not gdb_string.h.
524 * m2-typeprint.c: Use string.h, not gdb_string.h.
525 * m32c-tdep.c: Use string.h, not gdb_string.h.
526 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
527 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
528 * m32r-rom.c: Use string.h, not gdb_string.h.
529 * m32r-tdep.c: Use string.h, not gdb_string.h.
530 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
531 * m68k-tdep.c: Use string.h, not gdb_string.h.
532 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
533 * m68klinux-nat.c: Use string.h, not gdb_string.h.
534 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
535 * m88k-tdep.c: Use string.h, not gdb_string.h.
536 * macrocmd.c: Use string.h, not gdb_string.h.
537 * main.c: Use string.h, not gdb_string.h.
538 * mdebugread.c: Use string.h, not gdb_string.h.
539 * mem-break.c: Use string.h, not gdb_string.h.
540 * memattr.c: Use string.h, not gdb_string.h.
541 * memory-map.c: Use string.h, not gdb_string.h.
542 * mep-tdep.c: Use string.h, not gdb_string.h.
543 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
544 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
545 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
546 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
547 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
548 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
549 * mi/mi-console.c: Use string.h, not gdb_string.h.
550 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
551 * mi/mi-interp.c: Use string.h, not gdb_string.h.
552 * mi/mi-main.c: Use string.h, not gdb_string.h.
553 * mi/mi-parse.c: Use string.h, not gdb_string.h.
554 * microblaze-rom.c: Use string.h, not gdb_string.h.
555 * microblaze-tdep.c: Use string.h, not gdb_string.h.
556 * mingw-hdep.c: Use string.h, not gdb_string.h.
557 * minidebug.c: Use string.h, not gdb_string.h.
558 * minsyms.c: Use string.h, not gdb_string.h.
559 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
560 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
561 * mips-tdep.c: Use string.h, not gdb_string.h.
562 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
563 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
564 * mipsread.c: Use string.h, not gdb_string.h.
565 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
566 * mn10300-tdep.c: Use string.h, not gdb_string.h.
567 * monitor.c: Use string.h, not gdb_string.h.
568 * moxie-tdep.c: Use string.h, not gdb_string.h.
569 * mt-tdep.c: Use string.h, not gdb_string.h.
570 * nbsd-tdep.c: Use string.h, not gdb_string.h.
571 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
572 * nto-procfs.c: Use string.h, not gdb_string.h.
573 * nto-tdep.c: Use string.h, not gdb_string.h.
574 * objc-lang.c: Use string.h, not gdb_string.h.
575 * objfiles.c: Use string.h, not gdb_string.h.
576 * opencl-lang.c: Use string.h, not gdb_string.h.
577 * osabi.c: Use string.h, not gdb_string.h.
578 * osdata.c: Use string.h, not gdb_string.h.
579 * p-exp.y: Use string.h, not gdb_string.h.
580 * p-lang.c: Use string.h, not gdb_string.h.
581 * p-typeprint.c: Use string.h, not gdb_string.h.
582 * parse.c: Use string.h, not gdb_string.h.
583 * posix-hdep.c: Use string.h, not gdb_string.h.
584 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
585 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
586 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
587 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
588 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
589 * printcmd.c: Use string.h, not gdb_string.h.
590 * procfs.c: Use string.h, not gdb_string.h.
591 * prologue-value.c: Use string.h, not gdb_string.h.
592 * python/py-auto-load.c: Use string.h, not gdb_string.h.
593 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
594 * ravenscar-thread.c: Use string.h, not gdb_string.h.
595 * regcache.c: Use string.h, not gdb_string.h.
596 * registry.c: Use string.h, not gdb_string.h.
597 * remote-fileio.c: Use string.h, not gdb_string.h.
598 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
599 * remote-mips.c: Use string.h, not gdb_string.h.
600 * remote-sim.c: Use string.h, not gdb_string.h.
601 * remote.c: Use string.h, not gdb_string.h.
602 * reverse.c: Use string.h, not gdb_string.h.
603 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
604 * ser-base.c: Use string.h, not gdb_string.h.
605 * ser-go32.c: Use string.h, not gdb_string.h.
606 * ser-mingw.c: Use string.h, not gdb_string.h.
607 * ser-pipe.c: Use string.h, not gdb_string.h.
608 * ser-tcp.c: Use string.h, not gdb_string.h.
609 * ser-unix.c: Use string.h, not gdb_string.h.
610 * serial.c: Use string.h, not gdb_string.h.
611 * sh-tdep.c: Use string.h, not gdb_string.h.
612 * sh64-tdep.c: Use string.h, not gdb_string.h.
613 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
614 * skip.c: Use string.h, not gdb_string.h.
615 * sol-thread.c: Use string.h, not gdb_string.h.
616 * solib-dsbt.c: Use string.h, not gdb_string.h.
617 * solib-frv.c: Use string.h, not gdb_string.h.
618 * solib-osf.c: Use string.h, not gdb_string.h.
619 * solib-spu.c: Use string.h, not gdb_string.h.
620 * solib-target.c: Use string.h, not gdb_string.h.
621 * solib.c: Use string.h, not gdb_string.h.
622 * somread.c: Use string.h, not gdb_string.h.
623 * source.c: Use string.h, not gdb_string.h.
624 * sparc-nat.c: Use string.h, not gdb_string.h.
625 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
626 * sparc-tdep.c: Use string.h, not gdb_string.h.
627 * sparc64-tdep.c: Use string.h, not gdb_string.h.
628 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
629 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
630 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
631 * spu-linux-nat.c: Use string.h, not gdb_string.h.
632 * spu-multiarch.c: Use string.h, not gdb_string.h.
633 * spu-tdep.c: Use string.h, not gdb_string.h.
634 * stabsread.c: Use string.h, not gdb_string.h.
635 * stack.c: Use string.h, not gdb_string.h.
636 * std-regs.c: Use string.h, not gdb_string.h.
637 * symfile.c: Use string.h, not gdb_string.h.
638 * symmisc.c: Use string.h, not gdb_string.h.
639 * symtab.c: Use string.h, not gdb_string.h.
640 * target.c: Use string.h, not gdb_string.h.
641 * thread.c: Use string.h, not gdb_string.h.
642 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
643 * tilegx-tdep.c: Use string.h, not gdb_string.h.
644 * top.c: Use string.h, not gdb_string.h.
645 * tracepoint.c: Use string.h, not gdb_string.h.
646 * tui/tui-command.c: Use string.h, not gdb_string.h.
647 * tui/tui-data.c: Use string.h, not gdb_string.h.
648 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
649 * tui/tui-file.c: Use string.h, not gdb_string.h.
650 * tui/tui-layout.c: Use string.h, not gdb_string.h.
651 * tui/tui-out.c: Use string.h, not gdb_string.h.
652 * tui/tui-regs.c: Use string.h, not gdb_string.h.
653 * tui/tui-source.c: Use string.h, not gdb_string.h.
654 * tui/tui-stack.c: Use string.h, not gdb_string.h.
655 * tui/tui-win.c: Use string.h, not gdb_string.h.
656 * tui/tui-windata.c: Use string.h, not gdb_string.h.
657 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
658 * typeprint.c: Use string.h, not gdb_string.h.
659 * ui-file.c: Use string.h, not gdb_string.h.
660 * ui-out.c: Use string.h, not gdb_string.h.
661 * user-regs.c: Use string.h, not gdb_string.h.
662 * utils.c: Use string.h, not gdb_string.h.
663 * v850-tdep.c: Use string.h, not gdb_string.h.
664 * valarith.c: Use string.h, not gdb_string.h.
665 * valops.c: Use string.h, not gdb_string.h.
666 * valprint.c: Use string.h, not gdb_string.h.
667 * value.c: Use string.h, not gdb_string.h.
668 * varobj.c: Use string.h, not gdb_string.h.
669 * vax-tdep.c: Use string.h, not gdb_string.h.
670 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
671 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
672 * windows-nat.c: Use string.h, not gdb_string.h.
673 * xcoffread.c: Use string.h, not gdb_string.h.
674 * xml-support.c: Use string.h, not gdb_string.h.
675 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
676 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
677
63ce7108
TT
6782013-11-18 Tom Tromey <tromey@redhat.com>
679
680 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
681 and strstr.
682 * gnulib/aclocal.m4: Update.
683 * gnulib/config.in: Update.
684 * gnulib/configure: Update.
685 * gnulib/import/Makefile.am: Update.
686 * gnulib/import/Makefile.in: Update.
687 * gnulib/import/errno.in.h: New.
688 * gnulib/import/intprops.h: New.
689 * gnulib/import/m4/errno_h.m4: New.
690 * gnulib/import/m4/gnulib-cache.m4: Update.
691 * gnulib/import/m4/gnulib-comp.m4: Update.
692 * gnulib/import/m4/strerror.m4: New.
693 * gnulib/import/m4/strstr.m4: New.
694 * gnulib/import/m4/sys_socket_h.m4: New.
695 * gnulib/import/strerror-override.c: New.
696 * gnulib/import/strerror-override.h: New.
697 * gnulib/import/strerror.c: New.
698 * gnulib/import/strstr.c: New.
699
a7c11ee1
TT
7002013-11-18 Tom Tromey <tromey@redhat.com>
701
702 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
703 multiple lines.
704
d0b5971a
JM
7052013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
706
707 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
708 * sparc-tdep.h: And its prototype.
709
710 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
711 function.
712 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
713
4b4589ad
PA
7142013-11-18 Pedro Alves <palves@redhat.com>
715
716 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
717 use unpack_pointer.
718
422ad5c2
JB
7192013-11-18 Joel Brobecker <brobecker@adacore.com>
720
721 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
722 to -list-features output.
723
b1370418
JB
7242013-11-17 Joel Brobecker <brobecker@adacore.com>
725
726 * dwarf2expr.h (struct dwarf_expr_context_funcs)
727 <read_addr_from_reg>: Renames "read_reg".
728 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
729 Adjust comment.
730 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
731 Use read_addr_from_reg in place of read_reg.
732 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
733 in place of read_reg.
734 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
735 dwarf_expr_read_reg.
736 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
737 with dwarf_expr_read_addr_from_reg.
738 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
739 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
740 needs_frame_read_addr_from_reg.
741
6ea71545
JK
7422013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
743
744 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
745
19a1b230
AA
7462013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
747
748 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
749 NULL.
750
805e1f19
TT
7512013-11-15 Tom Tromey <tromey@redhat.com>
752
753 PR c++/16117:
754 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
755 (classify_name): Likewise. Prefer a field of "this" over a
756 filename.
757 (classify_inner_name, yylex): Update.
758
0acf8b65
JB
7592013-11-15 Joel Brobecker <brobecker@adacore.com>
760
761 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
762 Extend the documentation a bit.
763 <get_reg_value>: New field.
764 * dwarf2loc.c (dwarf_expr_get_reg_value)
765 (needs_frame_get_reg_value): New functions.
766 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
767 callback.
768 * dwarf2-frame.c (get_reg_value): New function.
769 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
770 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
771 Use new callback to compute result_val.
772
ef1bc9e7
AM
7732013-11-15 Alan Modra <amodra@gmail.com>
774
775 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
776 (ppc64_desc_entry_point): ..this. Update comments here and at
777 call points.
778 (ppc64_standard_linkage1, ppc64_standard_linkage2,
779 ppc64_standard_linkage3): Update comments.
780 (ppc64_standard_linkage4, ppc64_standard_linkage5,
781 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
782 patterns.
783 (ppc64_standard_linkage4_target): New function.
784 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
785 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
786 nop match. Fix comment wrap.
787
36fa8042
PA
7882013-11-14 Pedro Alves <palves@redhat.com>
789
790 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
791 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
792
4f5d7f63
PA
7932013-11-14 Pedro Alves <palves@redhat.com>
794
795 * infrun.c (struct execution_control_state)
796 <stepped_after_stopped_by_watchpoint>: New field.
797 (get_inferior_stop_soon): New function.
798 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
799 moved to struct execution_control_state -- adjust. Use
800 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
801 new function.
802 (handle_signal_stop): New function, factored out from
803 handle_inferior_event.
804
47591c29
PA
8052013-11-14 Pedro Alves <palves@redhat.com>
806
807 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
808 return a boolean.
809 * breakpoint.c (bpstat_explains_signal): Adjust to return a
810 boolean.
811 (explains_signal_watchpoint, base_breakpoint_explains_signal):
812 Adjust to return a boolean.
813 * breakpoint.h (enum bpstat_signal_value): Delete.
814 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
815 (bpstat_explains_signal): Likewise.
816 * infrun.c (handle_inferior_event) <random signal checks>:
817 bpstat_explains_signal now returns a boolean - adjust. No longer
818 consider hiding signals.
819
bac7d97b
PA
8202013-11-14 Pedro Alves <palves@redhat.com>
821
822 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
823 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
824 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
825 BPSTAT_SIGNAL_HIDE.
826 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
827 instead of BPSTAT_SIGNAL_HIDE.
828 * infrun.c (handle_inferior_event): Rework random signal checks.
829
ce12b012
PA
8302013-11-14 Pedro Alves <palves@redhat.com>
831
832 * infrun.c (struct execution_control_state): Remove
833 'random_signal' field.
834 (handle_syscall_event): Use bpstat_causes_stop instead of
835 bpstat_explains_signal. Don't set ecs->random_signal.
836 (handle_inferior_event): New 'random_signal' local.
837 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
838 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
839 bpstat_explains_signal. Don't set ecs->random_signal.
840 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
841 ecs->random_signal.
842
05ba8510
PA
8432013-11-14 Pedro Alves <palves@redhat.com>
844
845 * infrun.c (handle_inferior_event): Move comment from the
846 function's body to the function's description, adjusted.
847
5c09a2c5
PA
8482013-11-14 Pedro Alves <palves@redhat.com>
849
850 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
851 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
852 Assert we never fall through out of the TARGET_WAITKIND_LOADED
853 case.
854
91822956
TT
8552013-11-14 Tom Tromey <tromey@redhat.com>
856
857 * python/py-linetable.c (ltpy_has_line)
858 (ltpy_get_all_source_lines): Fix loop termination condition.
859
403cb6b1
JB
8602013-11-14 Joel Brobecker <brobecker@adacore.com>
861
862 * mi/mi-parse.h (struct mi_parse) <language>: New field.
863 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
864 PARSE->LANGUAGE during command execution, if set.
865 * mi/mi-parse.c: Add "language.h" #include.
866 (mi_parse): Add parsing of "--language" command option.
867
868 * NEWS: Add entry mentioning the new "--language" command option.
869
b5be8ce0
JB
8702013-11-14 Pedro Alves <palves@redhat.com>
871 Joel Brobecker <brobecker@adacore.com>
872
873 * cli/cli-utils.h (extract_arg_const): Add declaration.
874 * cli/cli-utils.c (extract_arg_const): New function.
875 (extract_arg): Reimplement using extract_arg_const.
876
671afef6
JB
8772013-11-14 Joel Brobecker <brobecker@adacore.com>
878
879 * language.h: Add "symtab.h" #include.
880
6c1b0f7b
DE
8812013-11-13 Doug Evans <xdje42@gmail.com>
882
883 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
884 specific breakpoints, don't evaluate breakpoint condition if
885 different thread.
886
74921315
KS
8872013-11-13 Keith Seitz <keiths@redhat.com>
888
248ace2e 889 PR c++/7935
74921315
KS
890 PR c++/10541
891 * cp-support.c (insepct_type): Add support for substituting
892 namespace aliases, too.
893 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
894 for DW_TAG_imported_declaration.
895 (add_partial_symbol): Likewise.
896 (process_die): Handle namespace aliases with
897 read_namespace_alias.
898 (die_needs_namespace): Add DW_TAG_imported_declaration.
899 (read_namespace_alias): New function.
900 (load_partial_dies): Load DW_TAG_imported_declaration, too.
901 (new_symbol_full): Handle DW_TAG_imported_declaration.
902
793156e6
KS
9032013-11-13 Keith Seitz <keiths@redhat.com>
904
905 * p-exp.y (uptok): Make first parameter const.
906 (yylex): Make `tokstart' and `tokptr' const.
907 Don't copy the lexer input to a temporary buffer.
908 Make `p' const.
909 Remove const workaround for parse_escape.
910 Create a temporary buffer for a convenience variable instead
911 of doing in-place modification of the input.
912 If a match is found with a different case from the input,
913 do not change the input at all.
914 Use `tmp' to construct the resultant stoken instead of
915 `tokstart'.
916
c42bd95a
DE
9172013-11-13 Doug Evans <xdje42@gmail.com>
918
919 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
920
93973826
JB
9212013-11-13 Joel Brobecker <brobecker@adacore.com>
922
923 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
924 entry with "ada-exceptions".
925
846060df
JB
9262013-11-13 Joel Brobecker <brobecker@adacore.com>
927
928 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
929 after re-initialization of OBJFILE's obstack.
930
5efd1b2b 9312013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
932
933 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
934 bs->stop != 0 on entry. Update function comment. Simplify early
935 exit for frame mismatch. Reindent rest of function.
936
ee7615e1
AA
9372013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
938
939 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
940 NULL.
941
8943b874
DE
9422013-11-12 Doug Evans <dje@google.com>
943
944 Work around gold/15646.
945 * dwarf2read.c (read_index_from_section): Update comment.
946 (struct dw2_symtab_iterator): New member global_seen.
947 (dw2_symtab_iter_init): Initialize it.
948 (dw2_symtab_iter_next): Skip duplicate global symbols.
949 (dw2_expand_symtabs_matching): Ditto.
950
a8a9844d
JB
9512013-11-12 Joel Brobecker <brobecker@adacore.com>
952
953 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
954 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
955 command.
956 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
957 (mi_cmd_info_ada_exceptions): New function.
958 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
959
778865d3
JB
9602013-11-12 Joel Brobecker <brobecker@adacore.com>
961
962 * ada-lang.h: #include "vec.h".
963 (struct ada_exc_info): New.
964 (ada_exc_info): New typedef.
965 (DEF_VEC_O(ada_exc_info)): New vector.
966 (ada_exceptions_list): Add declaration.
967 * ada-lang.c (ada_is_exception_sym)
968 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
969 (sort_remove_dups_ada_exceptions_list)
970 (ada_exc_search_name_matches, ada_add_standard_exceptions)
971 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
972 (ada_exceptions_list_1, ada_exceptions_list)
973 (info_exceptions_command): New function.
974 (_initialize_ada_language): Add "info exception" command.
975
bc79de95
PM
9762013-11-11 Phil Muldoon <pmuldoon@redhat.com>
977
978 PR python/15629
979 * NEWS: Add linetable feature.
980 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
981 * python/py-linetable.c: New file.
982 * python/py-symtab.c (stpy_get_linetable): New function.
983 * python/python-internal.h (symtab_to_linetable_object): Declare.
984 (gdbpy_initialize_linetable): Ditto.
985 * python/python.c (_initialize_python): Call
986 gdbpy_initialize_linetable.
987
2df4d1d5
JB
9882013-11-11 Joel Brobecker <brobecker@adacore.com>
989
990 * ada-lang.c (create_ada_exception_catchpoint): Enhance
991 the documentation of fields "except_string" and "condition".
992 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
993 CONDITION on the heap before passing it to
994 create_ada_exception_catchpoint.
995 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
996 CONDITION.
997
99c1d451
TT
9982013-11-11 Tom Tromey <tromey@redhat.com>
999
1000 * config.in, configure: Rebuild.
1001 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1002
8ca5801b
JB
10032013-11-11 Joel Brobecker <brobecker@adacore.com>
1004
1005 * remote-sim.c (gdbsim_detach): Break declaration into
1006 shorter lines. No code change.
1007
7a06d430
EBM
10082013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1009
1010 * remote-sim.c (gdbsim_detach): Fix prototype.
1011
73be47f5
DE
10122013-11-08 Doug Evans <dje@google.com>
1013
1014 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1015 (create_debug_types_hash_table): Only print debugging messages for
1016 each TU if dwarf2-read >= 2.
1017 (process_queue): Ditto.
1018 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1019 Update doc string.
1020
a18d8f10
TT
10212013-11-08 Tom Tromey <tromey@redhat.com>
1022
1023 * configure: Rebuild.
1024 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1025
9467110b
TT
10262013-11-08 Tom Tromey <tromey@redhat.com>
1027
1028 * configure, config.in: Rebuild.
1029 * configure.ac: Remove unused configury.
1030
69706679
TT
10312013-11-08 Tom Tromey <tromey@redhat.com>
1032
1033 * m32c-tdep.c: Use gdb_string.h.
1034
9b4bea72
TT
10352013-11-08 Tom Tromey <tromey@redhat.com>
1036
1037 * configure, config.in: Rebuild.
1038 * configure.ac: Remove all link.h-related checks.
1039
3266f10b
TT
10402013-11-08 Tom Tromey <tromey@redhat.com>
1041
1042 * acinclude.m4: Include common.m4.
1043 * common/common.m4: New file.
1044 * configure, config.in: Rebuild.
1045 * configure.ac: Use GDB_AC_COMMON.
1046
db0fec5c
DE
10472013-11-08 Doug Evans <dje@google.com>
1048
1049 * NEWS: Mention that "set debug symtab-create" now accepts a
1050 verbosity level.
1051 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1052 to set the symtab's primary flag.
1053 * jit.c (finalize_symtab): Ditto.
1054 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1055 * symfile.c (allocate_symtab): Only print debugging messages for
1056 symtab_create_debug levels 2 and higher.
1057 * symtab.c (symtab_create_debug): Change type to unsigned int.
1058 (set_symtab_primary): New function.
1059 (_initialize_symtab): Change "set debug symtab-create" to a
1060 zuinteger option.
1061 * symtab.h (set_symtab_primary): Declare.
1062 (symtab_create_debug): Update decl.
1063
52554a0e
TT
10642013-11-08 Tom Tromey <tromey@redhat.com>
1065
1066 * aix-thread.c (aix_thread_detach): Update.
1067 * corelow.c (core_detach): Update.
1068 * darwin-nat.c (darwin_detach): Update.
1069 * dec-thread.c (dec_thread_detach): Update.
1070 * gnu-nat.c (gnu_detach): Update.
1071 * go32-nat.c (go32_detach): Update.
1072 * inf-ptrace.c (inf_ptrace_detach): Update.
1073 * inf-ttrace.c (inf_ttrace_detach): Update.
1074 * linux-fork.c (linux_fork_detach): Update.
1075 * linux-fork.h (linux_fork_detach): Update.
1076 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1077 local for const-correctness.
1078 * linux-thread-db.c (thread_db_detach): Update.
1079 * monitor.c (monitor_detach): Update.
1080 * nto-procfs.c (procfs_detach): Update.
1081 * procfs.c (procfs_detach): Update.
1082 * record.c (record_detach): Update.
1083 * record.h (record_detach): Update.
1084 * remote-m32r-sdi.c (m32r_detach): Update.
1085 * remote-mips.c (mips_detach): Update.
1086 * remote-sim.c (gdbsim_detach): Update.
1087 * remote.c (remote_detach_1, remote_detach)
1088 (extended_remote_detach): Update.
1089 * sol-thread.c (sol_thread_detach): Update.
1090 * target.c (target_detach): Make "args" const.
1091 (init_dummy_target): Update.
1092 * target.h (struct target_ops) <to_detach>: Make argument const.
1093 (target_detach): Likewise.
1094 * windows-nat.c (windows_detach): Update.
1095
204b5331
DE
10962013-11-07 Doug Evans <dje@google.com>
1097
1098 PR 11786
1099 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1100 and align fields for PT_GNU_RELRO segments.
1101
92e32e33
PM
11022013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1103
ef1bc9e7
AM
1104 PR python/15747
1105 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1106
f76c27b5
PM
11072013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1108
1109 * NEWS: Document Python temporary breakpoint support.
1110 * python/py-breakpoint.c (bppy_get_temporary): New function.
1111 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1112 to temporary if True.
1113
d52cd232
JM
11142013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1115
1116 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1117 removed to allow analyzing unconditional branch instructions
1118 with PC-relative offsets of zero.
1119
fa4d0c40
YQ
11202013-11-07 Yao Qi <yao@codesourcery.com>
1121
1122 * mi/mi-cmd-var.c: Include "language.h".
1123 (mi_cmd_var_info_expression): Get language name from
1124 language_defn.
1125 * varobj.c (varobj_language_string): Remove.
1126 (variable_language): Remove declaration.
1127 (languages): Remove.
1128 (varobj_get_language): Change the type of return value.
1129 (variable_language): Remove.
1130 * varobj.h (enum varobj_languages): Remove.
1131 (varobj_language_string): Remove declaration.
1132 (varobj_get_language): Update declaration.
1133
6abde28f
YQ
11342013-11-07 Yao Qi <yao@codesourcery.com>
1135
1136 * language.h (struct language_defn) <la_natural_name>: New
1137 field.
1138 * ada-lang.c (ada_language_defn): Initialize field
1139 'la_natural_name'.
1140 * c-lang.c (c_language_defn): Likewise.
1141 (cplus_language_defn, asm_language_defn): Likewise.
1142 * d-lang.c (d_language_defn): Likewise.
1143 * f-lang.c (f_language_defn): Likewise.
1144 * go-lang.c (go_language_defn): Likewise.
1145 * jv-lang.c (java_language_defn): Likewise.
1146 * language.c (unknown_language_defn ): Likewise.
1147 (auto_language_defn): Likewise.
1148 * m2-lang.c (m2_language_defn): Likewise.
1149 * objc-lang.c (objc_language_defn): Likewise.
1150 * opencl-lang.c (opencl_language_defn): Likewise.
1151 * p-lang.c (pascal_language_defn): Likewise.
1152
27cd387b
YQ
11532013-11-07 Yao Qi <yao@codesourcery.com>
1154
1155 * language.c (language_str): Return const char *.
1156 (add_language): Add const to 'language_names'
1157 * language.h (struct language_defn) <la_name>: Add const.
1158 (language_str: Update declaration.
1159
6682d959
AA
11602013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1161
1162 * s390-linux-nat.c (s390_read_description): Consider the TE field
1163 in the HWCAP for determining 'have_regset_tdb'.
1164
b9502d3f
WN
11652013-11-06 Will Newton <will.newton@linaro.org>
1166
1167 PR gdb/12866
1168 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1169 values. (read_partial_die): Likewise.
1170
840da61a
MB
11712013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1172
1173 PR cli/16122
1174 * top.c (command_line_input): Unify interactivity tests to use
1175 input_from_terminal_p.
1176 * event-top.c (command_line_handler): Likewise.
1177
7636ccf9
YQ
11782013-11-06 Yao Qi <yao@codesourcery.com>
1179
1180 * Makefile.in (check-perf): New target.
1181
12b27276
WN
11822013-11-05 Will Newton <will.newton@linaro.org>
1183
1184 PR gdb/7670
1185 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1186 (arm_print_float_info): Likewise.
1187
67c059c2
AB
11882013-11-04 Anton Blanchard <anton@samba.org>
1189
1190 * target.c (memory_xfer_partial): Cap write to 4KB.
1191
0569175e
TSD
11922013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1193
1194 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1195 probe scan even when the arch provides no get_longjmp_target.
1196
b18e90f5
PA
11972013-10-31 Pedro Alves <palves@redhat.com>
1198
1199 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1200 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1201 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1202 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1203 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1204 <bpstat handling>: If the bpstat chain wants the signal to be
1205 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1206 GDB_SIGNAL_TRAP.
1207
638aa5a1
AB
12082013-10-31 Andrew Burgess <aburgess@broadcom.com>
1209
1210 * breakpoint.c (update_watchpoint): Update error message and add
1211 an additional error message.
1212
0e5fae36
UW
12132013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1214
1215 * s390-tdep.h: Rename to...
1216 * s390-linux-tdep.h: ...here.
1217 * s390-tdep.c: Rename to...
1218 * s390-linux-tdep.c: ...here. Adjust #include.
1219 * s390-nat.c: Rename to...
1220 * s390-linux-nat.c: ...here. Adjust #include.
1221 * config/s390/s390.mh: Rename to...
1222 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1223 s390-linux-nat.o.
1224 * configure.host: Reflect host rename "s390" -> "linux".
1225 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1226 * Makefile.in (ALL_TARGET_OBS): Likewise.
1227 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1228 s390-linux-tdep.h.
1229 (ALLDEPFILES): Reflect rename of .c files.
1230
34201ae3
UW
12312013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1232
1233 * s390-nat.c: Whitespace cleanup.
1234 * s390-tdep.c: Likewise.
1235 * s390-tdep.h: Remove empty line at end of file.
1236
e17aaa33
MR
12372013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1238
1239 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1240 siginfo_size.
1241
aee17e42
TT
12422013-10-29 Tom Tromey <tromey@redhat.com>
1243
1244 * utils.c (reg): Move undefinition...
1245 * gdb_curses.h: ... here. Update comment to mention AIX.
1246
9ac69859
NB
12472013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1248
1249 * exec.h (add_target_sections_of_objfile): New declaration.
1250 * exec.c (add_target_sections_of_objfile): New function.
1251 * symfile.c (add_symbol_file_command): Update current target sections.
1252 (remove_symbol_file_command): New command.
1253 (symfile_free_objfile): New function.
1254 (_initialize_symfile): Register observer for free_objfile events.
1255 * NEWS: Add description of the remove-symbol-file command.
1256 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1257 * objfiles.c (free_objfile): Notify free_objfile.
1258 (is_addr_in_objfile): New function.
1259 * objfiles.h (is_addr_in_objfile): New declaration.
1260 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1261 events instead of solib_unloaded events.
1262 (_initialize_printcmd): Register observer for free_objfile instead
1263 of solib_unloaded notifications.
1264 * solib.c (remove_user_added_objfile): New function.
1265 (_initialize_symfile): Add remove-symbol-file.
1266
f69d9aef
AB
12672013-10-29 Andrew Burgess <aburgess@broadcom.com>
1268
1269 * infcmd.c (default_print_one_register_info): Use val_print to
1270 print all values even optimized out or unavailable ones. Don't
1271 try to print a raw form of optimized out or unavailable values.
1272
487ad57c
YQ
12732013-10-29 Yao Qi <yao@codesourcery.com>
1274
1275 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1276 parameter 'arg' instead of from program_space_data.
1277 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1278 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1279 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1280 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1281 * inflow.c (inflow_inferior_data_cleanup): Get data from
1282 parameter 'arg' instead of inferior_data.
1283 * registry.h: Add comments.
1284
3c4797ba
PA
12852013-10-28 Pedro Alves <palves@redhat.com>
1286
1287 * breakpoint.c (watchpoints_triggered)
1288 <!target_stopped_data_address>: Hardcode return 1.
1289
cdaa5b73
PA
12902013-10-28 Pedro Alves <palves@redhat.com>
1291
1292 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1293 level and reindent.
1294
94c57d6a
PA
12952013-10-28 Pedro Alves <palves@redhat.com>
1296
1297 * infrun.c (process_event_stop_test): New function, factored out
1298 from handle_inferior_event.
1299 (handle_inferior_event): 'process_event_stop_test' is now a
1300 function instead of a goto label -- adjust.
1301
fcf3daef
PA
13022013-10-28 Pedro Alves <palves@redhat.com>
1303
1304 * infrun.c (handle_inferior_event): Move process_event_stop_test
1305 goto label to the else branch of the ecs->random_signal check,
1306 along with FRAME and GDBARCH re-fetching.
1307
c447ac0b
PA
13082013-10-28 Pedro Alves <palves@redhat.com>
1309
1310 * infrun.c (switch_back_to_stepped_thread): New function, factored
1311 out from handle_inferior_event.
1312 (handle_inferior_event): Adjust to call
1313 switch_back_to_stepped_thread. Call it also at the tail of the
1314 random signal handling, and return, instead of also handling
1315 random signals just before the stepping tests.
1316
f05e4c11
PA
13172013-10-28 Pedro Alves <palves@redhat.com>
1318
1319 * infrun.c (clear_stop_func): Delete.
1320 (handle_inferior_event): Don't call clear_stop_func and don't
1321 clear 'ecs->random_signal'.
1322
ca20d462
YQ
13232013-10-27 Yao Qi <yao@codesourcery.com>
1324
1325 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1326 (varobj_create, varobj_get_path_expr): Update.
1327 (varobj_value_has_mutated, varobj_update): Likewise.
1328 (create_child_with_value, new_root_variable): Likewise.
1329 (number_of_children, name_of_variable): Likewise.
1330 (value_of_child, my_value_of_variable): Likewise.
1331 (varobj_value_is_changeable_p): Likewise.
1332
a53b64ea
YQ
13332013-10-25 Yao Qi <yao@codesourcery.com>
1334
1335 * language.h (struct lang_varobj_ops): Declare.
1336 (struct language_defn) <la_varobj_ops>: New field.
1337 * ada-lang.c: Include "varobj.h"
1338 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1339 ada_varobj_ops.
1340 * c-lang.c: Include "varobj.h"
1341 (c_language_defn): Initialize field 'la_varobj_ops' with
1342 c_varobj_ops.
1343 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1344 cplus_varobj_ops.
1345 (asm_language_defn): Initialize field 'la_varobj_ops' with
1346 default_varobj_ops.
1347 (minimal_language_defn): Likewise.
1348 * d-lang.c (d_language_defn): Likewise.
1349 * f-lang.c (f_language_defn): Likewise.
1350 * go-lang.c (go_language_defn): Likewise.
1351 * m2-lang.c (m2_language_defn): Likewise.
1352 * objc-lang.c (objc_language_defn): Likewise.
1353 * opencl-lang.c (opencl_language_defn): Likewise.
1354 * p-lang.c (pascal_language_defn): Likewise.
1355 * language.c (unknown_language_defn): Likewise.
1356 (auto_language_defn): Likewise.
1357 (local_language_defn): Likewise.
1358 * jv-lang.c (java_language_defn): Initialize field
1359 'la_varobj_ops' with java_varobj_ops.
1360 * varobj.c (varobj_create): Update.
1361 * varobj.h (default_varobj_ops): Define macro.
1362
686d4def
PA
13632013-10-25 Pedro Alves <palves@redhat.com>
1364
1365 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1366 static field value.
1367 (cp_print_static_field): If the value is entirely optimized out,
1368 print <optimized out> here.
1369 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1370 static field value.
1371 * p-valprint.c (pascal_object_print_static_field): If the value is
1372 entirely optimized out, print <optimized out> here.
1373 * valops.c (do_search_struct_field)
1374 (value_struct_elt_for_reference): No longer handle a NULL static
1375 field value.
1376 * value.c (value_static_field): Return an optimized out value
1377 instead of NULL.
1378
6c177e28
YQ
13792013-10-25 Yao Qi <yao@codesourcery.com>
1380
1381 * remote.c (remote_traceframe_info): Return early if
1382 traceframe is not selected.
1383
98322bfa
YQ
13842013-10-25 Yao Qi <yao@codesourcery.com>
1385
1386 * tracepoint.c (traceframe_fun): Remove.
1387 (traceframe_sal): Remove.
1388 (set_traceframe_context): Add local variables.
1389
6ba1f115
JB
13902013-10-25 Joel Brobecker <brobecker@adacore.com>
1391
1392 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1393 and parameter name.
1394
bbe769cc
MR
13952013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1396
1397 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1398 failure from register information collection.
1399
72ee4495 14002013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1401
1402 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1403 member.
1404 (linux_corefile_thread_callback): Update accordingly.
1405 (linux_make_corefile_notes): Likewise.
1406
98882a26
PA
14072013-10-24 Pedro Alves <palves@redhat.com>
1408
1409 * NEWS (New options): Mention set/show startup-with-shell.
1410 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1411 instead of 3.
1412 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1413 startup-with-shell'.
1414 (show_startup_with_shell): New function.
1415 (_initialize_fork_child): Register the set/show startup-with-shell
1416 commands.
1417 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1418 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1419 * procfs.c (procfs_init_inferior): Remove comment.
1420 * infcmd.c (startup_with_shell): New global.
1421 * inferior.h (startup_with_shell): Declare global.
1422 (STARTUP_WITH_SHELL): Delete.
1423 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1424
c9737c08
PA
14252013-10-23 Pedro Alves <palves@redhat.com>
1426
1427 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1428 * common/signals.c: Include "gdb_assert.h".
1429 (signals): New field 'symbol'.
1430 (SET): Use the 'symbol' parameter.
1431 (gdb_signal_to_symbol_string): New function.
1432 * infrun.c (handle_inferior_event) <random signal>: In debug
1433 output, print the random signal enum as string in addition to its
1434 number.
1435 * target/waitstatus.c (target_waitstatus_to_string): Print the
1436 signal's enum value as string instead of the (POSIX) signal name.
1437
f60db4f0
GB
14382013-10-23 Gary Benson <gbenson@redhat.com>
1439
1440 PR 16013
1441 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1442 from 32 to 18. Adjusted fscanf format string accordingly.
1443 (Avoids leaving cmd unterminated.)
1444 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1445 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1446 that local_address and remote_address will not overflow.
1447 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1448 leaving dependencies unterminated. Parse size as "%u" to match
1449 definition.
1450
6d3e7a94
PA
14512013-10-22 Pedro Alves <palves@redhat.com>
1452
1453 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1454 set ecs->random signal.
1455
42ec045f
PA
14562013-10-22 Pedro Alves <palves@redhat.com>
1457
1458 * infrun.c (keep_going): Update comments.
1459
14602013-10-22 Pedro Alves <palves@redhat.com>
1461
1462 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1463 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1464
14652013-10-22 Pedro Alves <palves@redhat.com>
1466
1467 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1468 GDB_EXC_BAD_ACCESS.
1469 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1470 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1471 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1472 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1473 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1474 (GDB_SIGNAL_LAST): Change description string.
1475 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1476 Adjust to signal renaming.
1477 * darwin-nat.c (darwin_decode_message): Likewise.
1478
c8fde1b1
JM
14792013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1480
1481 * MAINTAINERS (Write After Approval): Add myself to the list.
1482
e8369a73
AB
14832013-10-18 Andrew Burgess <aburgess@broadcom.com>
1484
1485 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1486 forced off, downgrade them to software watchpoints if possible,
1487 and error out if not possible.
1488 (watch_command_1): Move watchpoint type selection closer to
1489 watchpoint creation, and extend the comments.
1490
776f04fa
PA
14912013-10-18 Pedro Alves <palves@redhat.com>
1492
1493 PR gdb/16062
1494 * infrun.c (handle_inferior_event): Keep going if we got a random
1495 signal we should not stop for, instead of falling through to the
1496 step tests.
1497
0c6faab5
YQ
14982013-10-18 Yao Qi <yao@codesourcery.com>
1499
1500 * c-varobj.c (cplus_number_of_children): Fix indentation.
1501
50b34a18
TT
15022013-10-17 Tom Tromey <tromey@redhat.com>
1503
1504 PR gdb/15995:
1505 * printcmd.c (printcmd): Call gdb_flush.
1506
5c4c8a59
TT
15072013-10-17 Tom Tromey <tromey@redhat.com>
1508
1509 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1510 (elf_locate_sections): Update.
1511
c4124bf1
YQ
15122013-10-17 Yao Qi <yao@codesourcery.com>
1513
1514 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1515 * ada-varobj.c: Remove the include of ada-varobj.h.
1516 (ada_varobj_get_number_of_children): Declare.
1517 (ada_varobj_get_name_of_child): Make it static.
1518 (ada_varobj_get_path_expr_of_child): Likewise.
1519 (ada_varobj_get_value_of_child): Likewise.
1520 (ada_varobj_get_type_of_child): Likewise.
1521 (ada_varobj_get_value_of_array_variable): Likewise.
1522 * ada-varobj.h: Remove.
1523
99ad9427
YQ
15242013-10-17 Yao Qi <yao@codesourcery.com>
1525
1526 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1527 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1528 * ada-varobj.c: Include "varobj.h".
1529 (ada_number_of_children): New. Moved from varobj.c.
1530 (ada_name_of_variable, ada_name_of_child): Likewise.
1531 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1532 (ada_type_of_child, ada_value_of_variable): Likewise.
1533 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1534 (ada_varobj_ops): New.
1535 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1536 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1537 * gdbtypes.h (get_target_type): Declare.
1538 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1539 "ada-lang.h".
1540 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1541 (ANONYMOUS_UNION_NAME): Likewise.
1542 (get_type, get_value_type, get_target_type): Remove declarations.
1543 (value_get_print_value, varobj_value_get_print_value): Likewise.
1544 (c_number_of_children, c_name_of_variable): Likewise.
1545 (c_name_of_child, c_path_expr_of_child): Likewise.
1546 (c_value_of_child, c_type_of_child): Likewise.
1547 (c_value_of_variable, cplus_number_of_children): Likewise.
1548 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1549 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1550 (cplus_value_of_child, cplus_type_of_child): Likewise.
1551 (cplus_value_of_variable, java_number_of_children): Likewise.
1552 (java_name_of_variable, java_name_of_child): Likewise.
1553 (java_path_expr_of_child, java_value_of_child): Likewise.
1554 (java_type_of_child, java_value_of_variable): Likewise.
1555 (ada_number_of_children, ada_name_of_variable): Likewise.
1556 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1557 (ada_value_of_child, ada_type_of_child): Likewise.
1558 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1559 (ada_value_has_mutated): Likewise.
1560 (struct language_specific): Move it to varobj.h.
1561 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1562 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1563 Callers update.
1564 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1565 Make it extern.
1566 (is_anonymous_child): Move it to c-varobj.c and rename to
1567 varobj_is_anonymous_child. Caller update.
1568 (get_type): Move it to c-varobj.c.
1569 (get_value_type): Rename it varobj_get_value_type. Make it
1570 extern.
1571 (get_target_type): Move it gdbtypes.c.
1572 (varobj_formatted_print_options): New function.
1573 (value_get_print_value): Rename it to
1574 varobj_value_get_print_value and make it extern.
1575 (varobj_value_is_changeable_p): Make it extern.
1576 (adjust_value_for_child_access): Move it to c-varobj.c.
1577 (default_value_is_changeable_p): Rename it to
1578 varobj_default_value_is_changeable_p. Make it extern.
1579 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1580 (c_name_of_child, c_path_expr_of_child): Likewise.
1581 (c_value_of_child, c_type_of_child): Likewise.
1582 (c_value_of_variable, cplus_number_of_children): Likewise.
1583 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1584 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1585 (cplus_value_of_child, cplus_type_of_child): Likewise.
1586 (cplus_value_of_variable): Likewise.
1587 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1588 (java_name_of_child, java_path_expr_of_child): Likewise.
1589 (java_value_of_child, java_type_of_child): Likewise.
1590 (java_value_of_variable): Likewise.
1591 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1592 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1593 (ada_value_of_child, ada_type_of_child): Likewise.
1594 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1595 (ada_value_has_mutated): Likewise.
1596 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1597 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1598 (c_varobj_ops, cplus_varobj_ops): Declare.
1599 (java_varobj_ops, ada_varobj_ops): Declare.
1600 (varobj_default_value_is_changeable_p): Declare.
1601 (varobj_value_is_changeable_p): Declare.
1602 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1603 (varobj_get_path_expr_parent): Declare.
1604 (varobj_value_get_print_value): Declare.
1605 (varobj_formatted_print_options): Declare.
1606 (varobj_restrict_range): Declare.
1607
c8a62302
LM
16082013-10-17 Luis Machado <lgustavo@codesourcery.com>
1609
1610 * target/waitstatus.h (target_waitkind): Remove spurious
1611 character from the comments.
1612
eade6471
JB
16132013-10-17 Joel Brobecker <brobecker@adacore.com>
1614
1615 * gdbarch.sh (get_longjmp_target): Add method documentation.
1616 * gdbarch.h: Regenerate.
1617
5411b26c
TT
16182013-10-16 Tom Tromey <tromey@redhat.com>
1619
1620 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1621 label.
1622
87326c87
LM
16232013-10-16 Luis Machado <lgustavo@codesourcery.com>
1624
1625 * gcore.in: Call GDB using the full path to the gcore script.
1626 Error out if the GDB binary is not found.
1627
fd0a4d76
SDJ
16282013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1629
1630 PR gdb/16014
1631 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1632 sizeof.
1633
d92f7ee3
SDJ
16342013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1635
1636 PR gdb/16042
1637 * target.c (target_disable_btrace): Fix invalid return value for
1638 void function.
1639 (target_teardown_btrace): Likewise.
1640
bb5ce47a
YQ
16412013-10-14 Yao Qi <yao@codesourcery.com>
1642
1643 * varobj.c (struct varobj): Move most of the fields to
1644 varobj.h.
1645 (struct varobj_dynamic): New struct.
1646 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1647 (varobj_has_more): Likewise.
1648 (dynamic_varobj_has_child_method): Likewise.
1649 (update_dynamic_varobj_children): Likewise.
1650 (varobj_get_num_children): Likewise.
1651 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1652 (install_new_value_visualizer): Likewise.
1653 (install_new_value_visualizer, install_new_value): Likewise.
1654 (varobj_update, new_variable, free_variable): Likewise.
1655 (my_value_of_variable, value_get_print_value): Likewise.
1656 (install_visualizer): Change the type of parameter 'var' to
1657 'struct varobjd_dynamic *'. Callers update.
1658 * varobj.h (struct varobj): Moved from varobj.c.
1659 (struct varobj) <dynamic>: New field.
1660
0b76b0ce
SL
16612013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1662
1663 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1664 as the preferred name of r30.
1665 * nios2-linux-tdep.c (reg_offsets): Likewise.
1666 * features/nios2-cpu.xml: Likewise.
1667 * features/nios2-linux.c: Regenerated.
1668 * features/nios2.c: Regenerated.
1669 * regformats/nios2-linux.dat: Regenerated.
1670
4856b6bc
JK
16712013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1672
1673 Canonicalize directories for EXEC_FILENAME.
1674 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1675 exec_filename.
1676 * utils.c (gdb_realpath_keepfile): New function.
1677 * utils.h (gdb_realpath_keepfile): New declaration.
1678
9b557b58
DE
16792013-10-11 Doug Evans <dje@google.com>
1680
1681 * Makefile.in (GDBFLAGS): New variable.
1682 (run): New rule.
1683
ce13fade
JB
16842013-10-11 Joel Brobecker <brobecker@adacore.com>
1685
1686 * NEWS: Add entry documenting the new "-catch-assert" and
1687 "-catch-exception" GDB/MI commands.
1688
349774ef
JB
16892013-10-11 Joel Brobecker <brobecker@adacore.com>
1690
1691 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1692 "enabled".
1693 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1694 "enabled". Set B->ENABLE_STATE accordingly.
1695 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1696 ada-lang.c.
1697 (create_ada_exception_catchpoint): Add declaration.
1698 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1699 (create_ada_exception_catchpoint): Make non-static. Add new
1700 parameter "disabled". Use it in call to
1701 init_ada_exception_breakpoint.
1702 (catch_ada_exception_command): Add parameter "enabled" in call
1703 to create_ada_exception_catchpoint.
1704 (catch_assert_command): Likewise.
1705
1706 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1707 Add declarations.
1708 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1709 "catch-exception" commands.
1710 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1711 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1712
761269c8
JB
17132013-10-11 Joel Brobecker <brobecker@adacore.com>
1714
1715 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1716 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1717 of all its enumerates with "ada_". Update the rest of this
1718 file throughout.
1719
b4a5b78b
JB
17202013-10-11 Joel Brobecker <brobecker@adacore.com>
1721
1722 * ada-lang.c (ada_decode_exception_location): Delete.
1723 (create_ada_exception_catchpoint): Remove arguments "sal",
1724 "addr_string" and "ops". Add argument "ex_kind" instead.
1725 Adjust implementation accordingly, calling ada_exception_sal
1726 to get the entities it no longer gets passed as arguments.
1727 Document the function's arguments.
1728 (catch_ada_exception_command): Use catch_ada_exception_command_split
1729 instead of ada_decode_exception_location, and update call to
1730 create_ada_exception_catchpoint.
1731 (catch_ada_assert_command_split): Renames
1732 ada_decode_assert_location. Remove parameters "addr_string" and
1733 "ops", and now returns void. Adjust implementation accordingly.
1734 Update the function documentation.
1735 (catch_assert_command): Use catch_ada_assert_command_split
1736 instead of ada_decode_assert_location. Update call to
1737 create_ada_exception_catchpoint.
1738
7ad1d32c 17392013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1740
1741 * utils.h (perror_warning_with_name): Add declaration.
1742 * utils.c (perror_warning_with_name): New function.
1743 * cli/cli-cmds.c (source_script_with_search): Add call to
1744 perror_warning_with_name if from_tty is nul.
1745
7ad1d32c 17462013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1747
1748 * utils.c (perror_string): New function, extracted out of
1749 throw_perror_with_name.
1750 (throw_perror_with_name): Rework to use perror_string.
1751
bcc75809
YQ
17522013-10-11 Yao Qi <yao@codesourcery.com>
1753
1754 * remote.c (discard_pending_stop_replies_in_queue): Update
1755 declaration.
1756 (struct stop_reply) <rs>: New field.
1757 (remove_stop_reply_of_remote_state): New function.
1758 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1759 Callers update. Pass remove_stop_reply_of_remote_state to
1760 QUEUE_iterate.
1761 (remote_parse_stop_reply): Initialize field 'rs'.
1762
05feb193
WN
17632013-10-10 Will Newton <will.newton@linaro.org>
1764
1765 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1766 linux_init_abi.
1767
0d12017b
JB
17682013-10-10 Joel Brobecker <brobecker@adacore.com>
1769
1770 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1771 serial_baud_show_cmd.
1772 (_initialize_cli_cmds): Delete the code creating the
1773 "set/show remotebaud" commands.
1774 * serial.c (baud_rate): Move here from top.c.
1775 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1776 (_initialize_serial): Create "set/show serial baud" commands.
1777 Add "set/show remotebaud" command aliases.
1778 * top.c (baud_rate): Moved to serial.c.
1779 * NEWS: Document the new "set/show serial baud" commands,
1780 replacing "set/show remotebaud".
1781
578d3588
PA
17822013-10-09 Pedro Alves <palves@redhat.com>
1783
1784 * breakpoint.c (insert_bp_location): Use memory_error_message to
1785 build the memory error string.
1786 * c-lang.c: Include "gdbcore.h".
1787 (c_get_string): Use memory_error to throw error.
1788 (target_xfer_memory_error): Delete.
1789 (memory_error_message): New, factored out from
1790 target_xfer_memory_error.
1791 (memory_error): Change parameter type to target_xfer_error.
1792 Rewrite.
1793 (read_memory): Use memory_error instead of
1794 target_xfer_memory_error.
1795 * gdbcore.h: Include "target.h".
1796 (memory_error): Change parameter type to target_xfer_error.
1797 (memory_error_message): Declare function.
1798 * target.c (target_read_memory, target_read_stack)
1799 (target_write_memory, target_write_raw_memory): Return
1800 TARGET_XFER_E_IO on error. Adjust comments.
1801 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1802 instead of EIO.
1803 * target.h (target_read, target_insert_breakpoint)
1804 (target_remove_breakpoint): Adjust comments.
1805 * valprint.c (partial_memory_read): Rename parameter, and adjust
1806 comment.
1807 (val_print_string): Use memory_error_message to build the memory
1808 error string.
1809
c74e1ccf
JK
18102013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1811
1812 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1813 result variable. Rename variable fopen_e_ever_failed to
1814 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1815
915215be
PA
18162013-10-09 Pedro Alves <palves@redhat.com>
1817
1818 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1819 (monitor_write_memory_longlongs, monitor_write_memory_block):
1820 Constify 'myaddr' parameter.
1821 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1822 helper.
1823 (monitor_xfer_partial): New function.
1824 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1825 hook. Install a to_xfer_partial hook.
1826
acd13123
TT
18272013-10-09 Tom Tromey <tromey@redhat.com>
1828
1829 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1830 bfd_get_alt_debug_link_info.
1831
40135bb1
JK
18322013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1833
1834 New flag OBJF_NOT_FILENAME.
1835 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1836 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1837 allocate_objfile.
1838 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1839 symbol_file_add_from_bfd.
1840 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1841 allocate_objfile.
1842 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1843 NULL.
1844 * objfiles.h (OBJF_NOT_FILENAME): New.
1845
dc294be5
TT
18462013-10-08 Tom Tromey <tromey@redhat.com>
1847
1848 * Makefile.in (SFILES): Add build-id.c.
1849 (HFILES_NO_SRCDIR): Add build-id.h.
1850 * build-id.c: New file, largely from elfread.c. Modified
1851 most functions.
1852 * build-id.h: New file.
1853 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1854 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1855 Search for dwz file using build-id.
1856 * elfread.c (build_id_bfd_get, build_id_verify)
1857 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1858
db230ce3
JB
18592013-10-08 Joel Brobecker <brobecker@adacore.com>
1860
1861 * ada-lang.c (compare_names_with_case): Renamed from
1862 compare_names, adding a new parameter "casing" and its handling.
1863 New function documentation.
1864 (compare_names): New function, implemented using
1865 compare_names_with_case.
1866
6501c98a
JB
18672013-10-08 Joel Brobecker <brobecker@adacore.com>
1868
1869 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1870
84a1243b
TT
18712013-10-07 Tom Tromey <tromey@redhat.com>
1872
1873 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1874 demangled_names_hash.
1875 (free_objfile): Don't delete the demangled_names_hash.
1876 * objfiles.h (struct objfile_per_bfd_storage)
1877 <demangled_names_hash>: New field.
1878 (struct objfile) <demangled_names_hash>: Move to
1879 objfile_per_bfd_storage.
1880 * symfile.c (reread_symbols): Don't delete the
1881 demangled_names_hash.
1882 * symtab.c (create_demangled_names_hash): Update.
1883 (symbol_set_names): Update.
1884
1da77581
TT
18852013-10-07 Tom Tromey <tromey@redhat.com>
1886
1887 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1888 needs_relocations>: New fields.
1889 (gdb_bfd_requires_relocations): New function.
1890 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1891 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1892 the BFD needs relocations applied.
1893
46ecd527
PA
18942013-10-07 Pedro Alves <palves@redhat.com>
1895
1896 PR breakpoints/11568
1897 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1898 the thread list" instead of "gone".
1899
0c557179
SDJ
19002013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1901
1902 * NEWS: Mention new convenience variable $_exitsignal.
1903 * corelow.c (core_open): Reset exit convenience variables. Set
1904 $_exitsignal to the uncaught signal which generated the corefile.
1905 * infrun.c (handle_inferior_event): Reset exit convenience
1906 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1907 (clear_exit_convenience_vars): New function.
1908 * inferior.h (clear_exit_convenience_vars): New prototype.
1909
1cc47d81
YQ
19102013-10-06 Yao Qi <yao@codesourcery.com>
1911
1912 * varobj.h: Add comments to enum varobj_languages.
1913
73869dc2
DE
19142013-10-04 Doug Evans <dje@google.com>
1915
1916 Add support for DWP file format version 2.
1917 * NEWS: Mention support for DWP file format version 2.
1918 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1919 union of asection, containing_section. New fields virtual_offset
1920 and is_virtual. Change type of readin filed from int to char.
1921 (dwo_sections, dwo_file): Tweak comments.
1922 (dwp_v2_section_ids): New enum.
1923 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1924 str_offsets, types.
1925 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1926 All uses updated.
1927 (virtual_v2_dwo_sections): New struct.
1928 (dwp_hash_table): New fields version, nr_columns. Change type of
1929 section_pool field to a union.
1930 (dwp_file): New field version.
1931 (dwarf2_has_info): Check for virtual sections.
1932 (get_containing_section): New function.
1933 (get_section_bfd_owner, get_section_bfd_section): Call it.
1934 (dwarf2_locate_sections): Update.
1935 (dwarf2_section_empty_p): Update.
1936 (dwarf2_read_section): Handle virtual sections.
1937 (locate_dwz_sections): Update.
1938 (create_dwp_hash_table): Document and handle V2 format.
1939 (locate_v1_virtual_dwo_sections): Renamed from
1940 locate_virtual_dwo_sections and update. All callers updated.
1941 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1942 Delete arg htab. Rename arg section_index to unit_index.
1943 All callers updated.
1944 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1945 All uses updated.
1946 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1947 (lookup_dwo_unit_in_dwp): Add V2 support.
1948 (dwarf2_locate_dwo_sections): Update.
1949 (dwarf2_locate_common_dwp_sections): Renamed from
1950 dwarf2_locate_dwp_sections and update. All callers updated.
1951 (dwarf2_locate_v2_dwp_sections): New function.
1952 (open_and_init_dwp_file): Add V2 support.
1953 (read_str_index): New locals str_section, str_offsets_section.
1954
9a2c3737
PA
19552013-10-04 Pedro Alves <palves@redhat.com>
1956
1957 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1958 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1959 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1960 describing comments with references to ptid.h.
1961 * common/ptid.h: Remove intro description of constructors,
1962 accessors and predicates.
1963 (struct ptid): Reformat.
1964 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1965 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1966 describing comments.
1967
f5371440
JB
19682013-10-04 Joel Brobecker <brobecker@adacore.com>
1969
1970 * aix-thread.c (sync_threadlists): Add missing ')' in call
1971 to ptid_build.
1972
793e1c06
JB
19732013-10-04 Joel Brobecker <brobecker@adacore.com>
1974
1975 * procfs.c (procfs_init_inferior): Fix typo causing the build
1976 to fail.
1977
26f0edc1
JB
19782013-10-04 Joel Brobecker <brobecker@adacore.com>
1979
1980 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1981
5713b9b5
JB
19822013-10-04 Joel Brobecker <brobecker@adacore.com>
1983
1984 * mi/mi-main.c (run_one_inferior): Add function description.
1985 Make ARG a pointer to an integer whose value determines whether
1986 we should "run" or "start" the program.
1987 (mi_cmd_exec_run): Add handling of the "--start" option.
1988 Reject all other command-line options.
1989 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1990
f48ff2a7
YQ
19912013-10-04 Yao Qi <yao@codesourcery.com>
1992
1993 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1994 (struct notif_client) <pending_event>: Moved
1995 to struct remote_notif_state.
1996 <id>: New field.
1997 (struct remote_notif_state) <pending_event>: New field.
1998 (notif_event_xfree): Declare.
1999 * remote-notif.c (handle_notification): Adjust.
2000 (notif_event_xfree): New function.
2001 (do_notif_event_xfree): Call notif_event_xfree.
2002 (remote_notif_state_xfree): Call notif_event_xfree to free
2003 each element in field pending_event.
2004 * remote.c (discard_pending_stop_replies): Remove declaration.
2005 (discard_pending_stop_replies_in_queue): Declare.
2006 (remote_close): Call discard_pending_stop_replies_in_queue
2007 instead of discard_pending_stop_replies.
2008 (remote_start_remote): Adjust.
2009 (stop_reply_xfree): Call notif_event_xfree.
2010 (notif_client_stop): Adjust initialization.
2011 (remote_notif_remove_all): Rename it to ...
2012 (remove_stop_reply_for_inferior): ... this. Update comments.
2013 Don't check INF is NULL.
2014 (discard_pending_stop_replies): Return early if notif_state is
2015 NULL. Adjust. Don't check INF is NULL.
2016 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2017 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2018 (remote_wait_ns): Likewise.
2019
5965e028
YQ
20202013-10-04 Yao Qi <yao@codesourcery.com>
2021
2022 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2023 (notif_queue): Remove.
2024 (remote_notif_process): Add one parameter 'notif_queue'.
2025 Update comments. Callers update.
2026 (remote_async_get_pending_events_token): Remove.
2027 (remote_notif_register_async_event_handler): Remove.
2028 (remote_notif_unregister_async_event_handler): Remove.
2029 (handle_notification): Add parameter 'notif_queue'. Update
2030 comments. Callers update.
2031 (notif_xfree): Remove.
2032 (remote_notif_state_allocate): New function.
2033 (remote_notif_state_xfree): New function.
2034 (_initialize_notif): Remove code to allocate queue.
2035 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2036 (struct remote_notif_state): New.
2037 (handle_notification): Update declaration.
2038 (remote_notif_process): Likewise.
2039 (remote_notif_register_async_event_handler): Remove.
2040 (remote_notif_unregister_async_event_handler): Remove.
2041 (remote_notif_state_allocate): Declare.
2042 (remote_notif_state_xfree): Declare.
2043 * remote.c (struct remote_state) <notif_state>: New field.
2044 (remote_close): Don't call
2045 remote_notif_unregister_async_event_handler. Call
2046 remote_notif_state_xfree.
2047 (remote_open_1): Don't call
2048 remote_notif_register_async_event_handler. Call
2049 remote_notif_state_allocate.
2050
5e5ac9a5
YQ
20512013-10-04 Yao Qi <yao@codesourcery.com>
2052
2053 * varobj.c (create_child_with_value): Remove 'const' from the
2054 type of parameter 'name'.
2055 (varobj_add_child): Likewise.
2056 (install_dynamic_child): Remove 'const' from the type of
2057 parameter 'name'.
2058 (varobj_add_child): Likewise.
2059 (create_child_with_value): Likewise. Update comments. Don't
2060 duplicate 'name'.
2061 (update_dynamic_varobj_children): Duplicate 'name'
2062 and pass it to install_dynamic_child.
2063
06ab7b19
PM
20642013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2065
2066 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2067 conversion logic to occur after PyLong_Check. Comment on order
2068 change significance.
2069 * python/py-arch.c (archpy_disassemble): Comment on order of
2070 conversion for integers and longs.
2071
8ae377e8
PA
20722013-10-03 Pedro Alves <palves@redhat.com>
2073
2074 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2075 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2076 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2077 PTRACE_O_TRACEFORK is not supported.
2078 (linux_test_for_tracesysgood): New function.
2079 (linux_test_for_tracefork): New function, factored out from
2080 linux_check_ptrace_features, and also don't kill child_pid here.
2081
b1328b1b
TG
20822013-10-03 Tristan Gingold <gingold@adacore.com>
2083
2084 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2085 Remove verbose error reporting. Use detected state to
2086 thread_set_state call.
2087 (i386_darwin_dr_get): Fix return type. Remove verbose error
2088 report.
2089 Remove trailing spaces.
2090
901461f8
PA
20912013-10-02 Pedro Alves <palves@redhat.com>
2092
2093 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2094 val_print_optimized_out.
2095 * jv-valprint.c (java_print_value_fields): Likewise.
2096 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2097 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2098 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2099 new optimized out value.
2100 * findvar.c (address_from_register): Likewise.
2101 * frame.c (put_frame_register): Tweak error string to say the
2102 register was not saved, rather than optimized out.
2103 * infcmd.c (default_print_one_register_info): Adjust call to
2104 val_print_optimized_out. Use value_of_register instead of
2105 get_frame_register_value.
2106 * mi/mi-main.c (output_register): Use value_of_register instead of
2107 get_frame_register_value.
2108 * valprint.c (valprint_check_validity): Likewise.
2109 (val_print_optimized_out): New value parameter. If the value is
2110 lval_register, print <not saved> instead.
2111 (value_check_printable, val_print_scalar_formatted): Adjust calls
2112 to val_print_optimized_out.
2113 * valprint.h (val_print_optimized_out): New value parameter.
2114 * value.c (struct value) <optimized_out>: Extend comment.
2115 (error_value_optimized_out): New function.
2116 (require_not_optimized_out): Use it. Use a different string for
2117 lval_register values.
2118 * value.h (error_value_optimized_out): New declaration.
2119 * NEWS: Mention <not saved>.
2120
042a84d9
JB
21212013-10-02 Joel Brobecker <brobecker@adacore.com>
2122
2123 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2124 strcmp to compare two symtab filenames.
2125
6b9780fb
JB
21262013-10-02 Joel Brobecker <brobecker@adacore.com>
2127
2128 * symtab.c (search_symbols_equal): Delete.
2129 (sort_search_symbols_remove_dups): Replace call to
2130 search_symbols_equal by call to compare_search_syms,
2131 adjusting as necessary.
2132
751e7549
PM
21332013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2134
2135 PR python/15579
751e7549
PM
2136 * python/python.c: Document gdb.execute command in Python help.
2137
1efd7661
PM
21382013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2139
2140 * python/py-frame.c (frame_info_to_frame_object): Use
2141 gdbpy_convert_exception. Clean up Python object on failure.
2142
562fc849
PM
21432013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2144
2145 * python/lib/gdb/command/frame_filters.py
2146 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2147 (ShowFrameFilterPriority.invoke): Ditto.
2148
d7561cbb
KS
21492013-10-01 Keith Seitz <keiths@redhat.com>
2150
2151 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2152 (parse_linespec): Make 'argptr' const.
2153 Remove temporary cast of 'argptr' to const char **.
2154 (decode_line_full): Pass const pointer to parse_linespec.
2155 (decode_line_1): Likewise.
2156 (decode_objc): Make local variable 'new_argptr' const.
2157 (find_function_symbols): Remove temporary cast to char *
2158 to find_imps.
2159 * objc-lang.c (find_imps): Make argument 'method' const.
2160 Return const.
2161 * objc-lang.h (find_imps): Likewise.
2162
21632013-10-01 Keith Seitz <keiths@redhat.com>
2164
2165 * completer.c (skip_quoted_chars): Make all arguments const.
2166 Return const.
2167 (skip_quoted): Likewise.
2168 * completer.h (skip_quoted_chars): Likewise.
2169 (skip_quoted): Likewise.
2170 * defs.h (skip_quoted): Remove duplicate declaration.
2171 * jv-exp.y: Include completer.h.
2172 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2173 * p-exp.y: Include completer.h.
2174
21752013-10-01 Keith Seitz <keiths@redhat.com>
2176
2177 * c-exp.y (parse_number): Make first argument const.
2178 Make a copy of the input to manipulate.
2179 (c_parse_escape): Make first argument const.
2180 Make local variable 'tokptr' const.
2181 (parse_string_or_char): Make first two arguments const.
2182 (macro_original_text): Make const.
2183 (lex_one_token): Make local variable 'tokstart' const.
2184 Likewise for local variables named 'p'.
2185 Cast away const for struct stoken (temporary).
2186 * c-lang.h (c_parse_escpae): Make first argument const.
2187 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2188 const.
2189 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2190 var_string case.
2191 * f-exp.y (parse_number): Make first argument const.
2192 (match_string_literal): Make local variable 'tokstart'
2193 const.
2194 (yylex): Make local variable 'p' const.
2195 Cast away const for struct stoken (temporary).
2196 * go-exp.y (parse_number): Make first argument const.
2197 (parse_string_or_char): Likewise.
2198 Make local variable 'tokstart' const.
2199 (lex_one_token): Likewise for numerous locals called 'p'.
2200 Cast away const for struct stoken (temporary).
2201 * jv-exp.y (parse_number): Make first argument const.
2202 Make local variables 'tokstart' and 'tokptr' const.
2203 Cast away const for call to skip_quoted (temporary).
2204 (yylex): Make local variable 'p' const.
2205 Cast away const for struct stoken (temporary).
2206 * m2-exp.y (parse_number): Make local variable 'p' const.
2207 (yylex): Likewise for 'tokstart'.
2208 Cast away const for struct stoken (temporary).
2209 Make local variable 'p' const.
2210 * macroexp.c (get_character_constant): Pass a const string
2211 to c_parse_escape.
2212 (get_string_literal): Likewise.
2213 (macro_expand_next): Make first argument const.
2214 Cast away const for init_shared_buffer.
2215 * macroexp.h (macro_expand_next): Make first argument const.
2216 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2217 Pass a const string to c_parse_escape.
2218 Make local variables 'p' and 'namestart' const.
2219 * parse.c (lexptr): Make const.
2220 (prev_lexptr): Likewise.
2221 (find_template_name_end): Return const.
2222 Make argument const, too.
2223 (parse_exp_in_context): Make first argument const.
2224 Remove the entire const_hack.
2225 (parse_exp_in_context_1): Make first argument const.
2226 * parser-defs.h (find_template_name_end): Return const.
2227 Make argument const, too.
2228 (lexptr): Make const.
2229 (prev_lexptr): Likewise.
2230 * utils.c (parse_escape): Make second argument const.
2231 * utils.h (parse_escape): Likewise.
2232
22332013-10-01 Keith Seitz <keiths@redhat.com>
2234
2235 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2236 is now const.
2237 (block_lookup): Make 'raw_name' and 'name' const.
2238 * ada-lex.l (processString): Update for struct stoken.ptr.
2239 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2240 (operator_stoken): Likewise.
2241 (lex_one_token): Remove temporary cast to char * for
2242 'yylval.sval.ptr'.
2243 * f-exp.y (yylex): Likewise.
2244 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2245 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2246 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2247 'yylval.sval.ptr'.
2248 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2249 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2250 * linespec.c (struct ls_parser): Make 'stream' const.
2251 (find_parameter_list_end): Make argument 'input' and local
2252 variable 'p' const.
2253 (linespec_lexer_lex_string): Make local variables 'start' and
2254 'p' const.
2255 Use skip_spaces_const instead of skip_spaces.
2256 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2257 const.
2258 (parse_linespec): Temporarily cast 'argptr' to const for
2259 'parser->lexer.stream'.
2260 * m2-exp.y (yylex): Remove temporary cast to char * for
2261 'yylval.sval.ptr'.
2262 * objc-lang.c (add_msglist): Make local variable 'p' const.
2263 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2264 (exp : STRING): Make 'sp' const.
2265 (parse_number): Make argument 'p' const.
2266 * parser-defs.h (struct stoken): Make 'ptr' const.
2267
193a8eac
DE
22682013-10-01 Doug Evans <dje@google.com>
2269
2270 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2271
2213e2be
YQ
22722013-10-01 Yao Qi <yao@codesourcery.com>
2273
2274 * varobj.c (c_value_of_root): Remove declaration.
2275 (cplus_value_of_root, java_value_of_root): Likewise.
2276 (ada_value_of_root): Likewise.
2277 (struct language_specific) <value_of_root>: Remove.
2278 (languages): Update initialization.
2279 (check_scope): Move earlier.
2280 (c_value_of_root): Move earlier and rename to ...
2281 (value_of_root_1): ... this.
2282 (value_of_root): Caller update.
2283 (cplus_value_of_root, java_value_of_root): Remove.
2284 (ada_value_of_root): Remove.
2285
c573f273
YQ
22862013-10-01 Yao Qi <yao@codesourcery.com>
2287
2288 * varobj.c (varobj_format_string): Remove "unknown".
2289 (languages): Remove the first element.
2290 * varobj.h (enum varobj_languages): Remove vlang_c.
2291
56250258
YQ
22922013-10-01 Yao Qi <yao@codesourcery.com>
2293
2294 * varobj.c (struct language_specific) <language>: Remove.
2295 (languages): Update the initialization.
2296
29f9ebfa
YQ
22972013-10-01 Yao Qi <yao@codesourcery.com>
2298
2299 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2300 "solib-target.h". Include "windows-tdep.h".
2301 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2302 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2303 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2304 windows-tdep.o to gdb_target_obs.
2305
64870a42
YQ
23062013-10-01 Yao Qi <yao@codesourcery.com>
2307
2308 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2309 "solib-target.h".
2310 (amd64_windows_init_abi): Don't call set_solib_ops and
2311 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2312 windows_init_abi instead.
2313 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2314 "solib-target.h".
2315 (i386_cygwin_init_abi): Don't call set_solib_ops,
2316 set_gdbarch_has_dos_based_file_system and
2317 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2318 windows_init_abi instead.
2319 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2320 (windows_init_abi): New function.
2321 (windows_iterate_over_objfiles_in_search_order): Make it
2322 static.
2323 * windows-tdep.h (windows_init_abi): Declare.
2324 (windows_iterate_over_objfiles_in_search_order): Remove
2325 declaration.
2326
0aebdefa
JB
23272013-10-01 Jerome Guitton <guitton@adacore.com>
2328
2329 Checked in by Joel Brobecker <brobecker@adacore.com>
2330 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2331 incomplete dictionnary instead of None in case of missing
2332 environment variables.
2333 (elinos_init): in case of an incomplete environment, best
2334 effort to load system libraries instead of abort.
2335
1c8e84b0
JB
23362013-10-01 Joel Brobecker <brobecker@adacore.com>
2337
2338 * ada-lang.c (ada_has_this_exception_support): Ignore
2339 mst_solib_trampoline minimal symbols.
2340
61d82a0d
TG
23412013-09-30 Tristan Gingold <gingold@adacore.com>
2342
2343 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2344 hardware watchpoint.
2345 (i386_darwin_dr_set): Support 32 and 64 bit states.
2346 (i386_darwin_dr_get): Likewise.
2347 (i386_darwin_dr_set_control): Make static.
2348 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2349 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2350
dfd4cc63
LM
23512013-09-30 Luis Machado <lgustavo@codesourcery.com>
2352
2353 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2354 Replace TIDGET with ptid_get_lwp.
2355 Replace GET_LWP with ptid_get_lwp.
2356 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2357 Replace BUILD_THREAD with ptid_build.
2358 Replace BUILD_LWP with ptid_build.
2359 Replace PIDGET with ptid_get_pid.
2360 Replace TIDGET with ptid_get_lwp.
2361 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2362 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2363 Replace TIDGET with ptid_get_lwp.
2364 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2365 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2366 Replace TIDGET with ptid_get_lwp.
2367 Replace GET_LWP with ptid_get_lwp.
2368 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2369 * auxv.c: Likewise.
2370 * breakpoint.c: Likewise.
2371 * common/ptid.c (ptid_is_pid): Condense check for
2372 null_ptid and minus_one_ptid.
2373 (ptid_lwp_p): New function.
2374 (ptid_tid_p): New function.
2375 * common/ptid.h: Update comments for accessors.
2376 (ptid_lwp_p): New prototype.
2377 (ptid_tid_p): New prototype.
2378 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2379 * gcore.c: Replace PIDGET with ptid_get_pid.
2380 * gdbthread.h: Likewise.
2381 * gnu-nat.c: Likewise.
2382 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2383 Replace TIDGET with ptid_get_lwp.
2384 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2385 * hppanbsd-nat.c: Likewise.
2386 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2387 Replace TIDGET with ptid_get_lwp.
2388 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2389 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2390 * infcmd.c: Likewise.
2391 * inferior.h: Likewise.
2392 * inflow.c: Likewise.
2393 * infrun.c: Likewise.
2394 * linux-fork.c: Likewise.
2395 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2396 Replace GET_PID with ptid_get_pid.
2397 Replace is_lwp with ptid_lwp_p.
2398 Replace GET_LWP with ptid_get_lwp.
2399 Replace BUILD_LWP with ptid_build.
2400
5b4e221c
MF
24012013-09-28 Mike Frysinger <vapier@gentoo.org>
2402
2403 * common/linux-btrace.c: Move sys/syscall.h out of the
2404 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2405 Also check for SYS_perf_event_open before attempting to buid.
2406
57d63ce2
DE
24072013-09-27 Doug Evans <dje@google.com>
2408
19ac8c2e
DE
2409 * dwarf2read.c (dwarf2_section_info): Add comment.
2410 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2411 All uses updated.
2412 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2413 (dwarf2_read_section): Delete unused local "header". Add section
2414 name to error message.
2415 (create_dwo_in_dwp): Tweak comment.
2416 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2417
a32a8923
DE
2418 * dwarf2read.c (die_reader_specs): Tweak comment.
2419 (get_section_bfd_owner, get_section_bfd_section): New functions.
2420 (get_section_name, get_section_file_name): New functions.
2421 (get_section_id, get_section_flags): New functions.
2422 (*): Use new functions to access section fields.
2423
57d63ce2
DE
2424 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2425 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2426 arg "htab". All callers updated.
2427 (create_debug_types_hash_table): Remove redundant copy of
2428 abbrev_section.
2429 (create_dwo_in_dwp): Tweak comments.
2430 (read_str_index): Tweak comment. Record dwarf form name in static
2431 local.
2432
3736004f
PA
24332013-09-27 Pedro Alves <palves@redhat.com>
2434
2435 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2436 (remote_filename_p): Add comment.
2437 * remote.c (remote_filename_p): Adjust to use
2438 REMOTE_SYSROOT_PREFIX.
2439 * solib.c (solib_find): When deciding whether we need to add a
2440 directory separator, check whether the sysroot is "remote:"
2441 instead of checking whether the patch has a drive spec. Add
2442 comments.
2443
5b5596ff
PA
24442013-09-27 Pedro Alves <palves@redhat.com>
2445
2446 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2447 Delete fields.
2448 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2449 directly.
2450
b5eef7aa
JK
24512013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2452
2453 Fix set debug frame output.
2454 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2455 SENTINEL_FRAME entry lower to match enum frame_type order.
2456
5b856f36
PM
24572013-09-26 Pierre Muller <muller@sourceware.org>
2458
2459 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2460 AMD64_R15_REGNUM when a register index is expected.
2461 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2462 Substitute in array.
2463 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2464 (amd64_push_arguments): Substitute in integer_regnum array.
2465
ade7ed9e
DE
24662013-09-25 Doug Evans <dje@google.com>
2467
d3e81981
DE
2468 * objfiles.c (allocate_objfile): Move comment to better place.
2469
8fb8eb5c
DE
2470 New option "set debug symfile on".
2471 * NEWS: Mention "set debug symfile".
2472 * Makefile.in (SFILES): Add symfile-debug.c.
2473 (COMMON_OBS): Add symfile-debug.o.
2474 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2475 objfile's symbol functions.
2476 * objfiles.h (objfile_set_sym_fns): Declare.
2477 * symfile-debug.c: New file.
2478 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2479 objfile's symbol functions.
2480 (reread_symbols): Ditto.
2481
c256e171
DE
2482 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2483 All uses updated.
2484 (add_symtab_fns): Update prototype.
2485 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2486 (registered_sym_fns): ... this.
2487 (symtab_fns): Update.
2488 (add_symtab_fns): New arg "flavour". All callers updated.
2489 (find_sym_fns): Rewrite to use new sym_fns registry.
2490
f56ce883
DE
2491 * symfile.h (struct sym_fns): Add "objfile" argument to
2492 sym_read_linetable. All uses updated.
2493
20c681d1
DE
2494 * symtab.c (domain_name, search_domain_name): New functions.
2495 * symtab.h (domain_name, search_domain_name): Declare.
2496
ade7ed9e
DE
2497 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2498 map_matching_symbols so objfile is first. All uses updated.
2499 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2500 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2501
7d760051
UW
25022013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2503
2504 PR shlibs/8882
2505 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2506 link map entries.
2507
020f7036
DE
25082013-09-24 Doug Evans <dje@google.com>
2509
2510 * objfiles.c (free_objfile): Move comment.
2511
598402f0
JB
25122013-09-24 Joel Brobecker <brobecker@adacore.com>
2513
2514 * ada-exp.y (string_to_operator): Delete.
2515 (dummy_string_to_ada_operator): Delete.
2516
bf4d6c1c
JB
25172013-09-24 Joel Brobecker <brobecker@adacore.com>
2518
2519 Revert:
2520 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2521 amd64-tdep.c.
2522 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2523 call_dummy_integer_regs, and classify.
2524 * amd64-tdep.h (amd64_classify): Add declaration.
2525 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2526 (amd64_reg_class): Delete, moved to i386-tdep.h.
2527 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2528 Replace call to amd64_classify by call to tdep->classify.
2529 (amd64_push_arguments): Get the list of registers to use for
2530 passing integer parameters from the gdbarch tdep structure,
2531 rather than using a hardcoded one. Replace calls to amd64_classify
2532 by calls to tdep->classify.
2533 (amd64_push_dummy_call): Get the register number used for
2534 the "hidden" argument from tdep->call_dummy_integer_regs.
2535 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2536 and tdep->call_dummy_integer_regs. Set tdep->classify.
2537
849e9755
JB
25382013-09-24 Joel Brobecker <brobecker@adacore.com>
2539
2540 Revert:
2541 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2542 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2543 where tdep->memory_args_by_pointer is non-zero.
2544
c1459fd6
JB
25452013-09-24 Joel Brobecker <brobecker@adacore.com>
2546
2547 Revert:
2548 * i386-tdep.h (struct gdbarch_tdep): Add new field
2549 integer_param_regs_saved_in_caller_frame.
2550 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2551 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2552
20c2e3e0
JB
25532013-09-24 Joel Brobecker <brobecker@adacore.com>
2554
874440b8 2555 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2556 (amd64_windows_classify): Delete.
2557 (amd64_windows_passed_by_integer_register)
2558 (amd64_windows_passed_by_xmm_register)
2559 (amd64_windows_passed_by_pointer)
2560 (amd64_windows_adjust_args_passed_by_pointer)
2561 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2562 (amd64_windows_push_dummy_call): New functions.
2563 (amd64_windows_init_abi): Remove setting of
2564 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2565 tdep->classify, tdep->memory_args_by_pointer and
2566 tdep->integer_param_regs_saved_in_caller_frame.
2567 Add call to set_gdbarch_push_dummy_call.
2568
82bf32bc
JK
25692013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2570
2571 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2572 objfile->original_name.
2573
24ba069a
JK
25742013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2575
2576 Pass down original filename for objfile.
2577 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2578 * elfread.c (elf_symfile_read): Likewise.
2579 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2580 longer set ORIGINAL_NAME.
2581 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2582 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2583 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2584 symbol_file_add_from_bfd call.
2585 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2586 (macho_check_dsym): Add parameter filenamep. Change function comment.
2587 Set *filenamep.
2588 (macho_symfile_read): New variable dsym_filename. Update
2589 macho_check_dsym call. Use it for symbol_file_add_separate.
2590 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2591 it. Use it for objfile->original_name.
2592 (objfile_name): Return OBFD's filename, if available.
2593 * objfiles.h (allocate_objfile): Add new parameter name.
2594 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2595 * symfile-mem.c (symbol_file_add_from_memory): Update
2596 symbol_file_add_from_bfd call.
2597 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2598 comment for it.
2599 (symbol_file_add_with_addrs): New parameter name, add function comment
2600 for it. Remove variable name. Update allocate_objfile call.
2601 (symbol_file_add_separate): New parameter name, add function comment
2602 for it. Update symbol_file_add_with_addrs call.
2603 (symbol_file_add_from_bfd): New parameter name. Update
2604 symbol_file_add_with_addrs call.
2605 (symbol_file_add): Update symbol_file_add_from_bfd call.
2606 (reread_symbols): New variable original_name. Save
2607 objfile->original_name by it.
2608 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2609 second parameter.
2610
4262abfb
JK
26112013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2612
2613 Code cleanup: Add objfile_name accessor function.
2614 * ada-lang.c (is_known_support_routine): Use objfile_name.
2615 * auto-load.c (source_gdb_script_for_objfile)
2616 (auto_load_objfile_script): Likewise.
2617 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2618 * dbxread.c (dbx_symfile_read): Likewise.
2619 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2620 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2621 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2622 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2623 (lookup_dwp_signatured_type, lookup_dwo_unit)
2624 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2625 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2626 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2627 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2628 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2629 (read_subrange_type, load_partial_dies, read_partial_die)
2630 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2631 (die_containing_type, build_error_marker_type, lookup_die_type)
2632 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2633 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2634 (get_DW_AT_signature_type, write_psymtabs_to_index)
2635 (save_gdb_index_command): Likewise.
2636 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2637 Likewise.
2638 * expprint.c (dump_subexp_body_standard): Likewise.
2639 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2640 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2641 original_name.
2642 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2643 obj_name, use objfile_name for it, use the variable.
2644 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2645 Use objfile_name.
2646 * machoread.c (macho_symtab_read, macho_check_dsym)
2647 (macho_symfile_relocate): Likewise.
2648 * maint.c (maintenance_translate_address): Likewise.
2649 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2650 * minsyms.c (install_minimal_symbols): Likewise.
2651 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2652 original_name.
2653 (filter_overlapping_sections): Use objfile_name.
2654 (objfile_name): New function.
2655 * objfiles.h (struct objfile): Rename field name to original_name.
2656 (objfile_name): New prototype.
2657 * printcmd.c (sym_info, address_info): Use objfile_name.
2658 * probe.c (parse_probes, collect_probes, compare_probes)
2659 (info_probes_for_ops): Likewise.
2660 * progspace.c (clone_program_space): Likewise.
2661 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2662 (maintenance_info_psymtabs): Likewise.
2663 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2664 (source_section_scripts): Likewise.
2665 * python/py-objfile.c (objfpy_get_filename): Likewise.
2666 * python/py-progspace.c (pspy_get_filename): Likewise.
2667 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2668 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2669 * solib.c (solib_read_symbols): Likewise.
2670 * stabsread.c (scan_file_globals): Likewise.
2671 * stap-probe.c (handle_stap_probe): Likewise.
2672 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2673 (find_separate_debug_file_by_debuglink): Likewise.
2674 (reread_symbols): Likewise. Use the objfile field name renamed to
2675 original_name.
2676 (allocate_symtab): Use objfile_name.
2677 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2678 (dump_objfile, dump_msymbols, dump_symtab_1)
2679 (maintenance_print_msymbols, maintenance_print_objfiles)
2680 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2681 * target.c (target_translate_tls_address, target_info): Likewise.
2682 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2683 objfile_name.
2684
4721dc18
JK
26852013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2686
2687 Code cleanup.
2688 * probe.c (parse_probes): Rename variable objfile_name to
2689 objfile_namestr.
2690
a61d6db8
JK
26912013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2692
2693 Remove solib-sunos.c.
2694 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2695 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2696 * objfiles.c (rt_common_objfile): Remove.
2697 (free_objfile): Remove rt_common_objfile comparison.
2698 * objfiles.h (rt_common_objfile): Remove.
2699 * solib-sunos.c: Remove.
2700 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2701
2659903b
JK
27022013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2703
2704 Remove a.out NetBSD and OpenBSD hosts.
2705 * NEWS (Removed native configurations): New.
2706 * config/arm/nbsdaout.mh: Remove.
2707 * config/i386/nbsdaout.mh: Remove.
2708 * config/i386/obsdaout.mh: Remove.
2709 * config/m68k/nbsdaout.mh: Remove.
2710 * config/sparc/nbsdaout.mh: Remove.
2711 * config/vax/nbsdaout.mh: Remove.
2712 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2713 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2714 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2715 error.
2716 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2717 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2718 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2719
f60e2d5c
TT
27202013-09-23 Tom Tromey <tromey@redhat.com>
2721
2722 * linespec.c (struct minsym_and_objfile): Remove.
2723 (minsym_and_objfile_d): Remove.
2724 (struct linespec, struct collect_info, linespec_parse_basic)
2725 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2726 (compare_msymbols, find_method, find_function_symbols)
2727 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2728 (add_minsym, search_minsyms_for_name): Update.
2729
d3eaaf66
AB
27302013-09-23 Andrew Burgess <aburgess@broadcom.com>
2731
2732 * regcache.c: Add include of valprint.h.
2733 (dump_endian_bytes): Delete.
2734 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2735
2cc762b5
AB
27362013-09-23 Andrew Burgess <aburgess@broadcom.com>
2737
2738 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2739
96181529
PA
27402013-09-19 Pedro Alves <palves@redhat.com>
2741
2742 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2743 breakpoints.
2744
9b3f3ee6
TS
27452013-09-19 Pedro Alves <palves@redhat.com>
2746 Thomas Schwinge <thomas@codesourcery.com>
2747 Yue Lu <hacklu.newborn@gmail.com>
2748
2749 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2750 Take a gdb_byte pointer instead of a char pointer.
2751
2752 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2753 gnu_xfer_partial helper.
2754 (gnu_xfer_partial): New function.
2755 (gnu_target): Don't install a deprecated_xfer_memory hook.
2756 Install a to_xfer_partial hook.
2757
69150c3d
JK
27582013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2759
2760 Constification.
2761 * main.c (captured_main): Replace catch_command_errors by
2762 catch_command_errors_const. Twice.
2763 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2764 (symbol_file_add): Make name parameter const.
2765 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2766 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2767 variable name. Change their usage accordingly.
2768 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2769 const.
2770 (symbol_file_add_main): Make args parameter const.
2771
086850b2
UW
27722013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2773 Ulrich Weigand <uweigand@de.ibm.com>
2774
2775 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2776 of c_value member.
2777 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2778
ca08a94c 27792013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2780 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2781
2782 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2783 (gnu_create_inferior)
2784 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2785 (set_sig_thread_cmd): Use the lwpid field of ptids to
2786 store/extract thread ids instead of the tid field.
2787 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2788
e4c6a2c4
AB
27892013-09-18 Andrew Burgess <aburgess@broadcom.com>
2790
2791 * infcmd.c (default_print_one_register_info): Add detection of
2792 optimized out values.
2793 (default_print_registers_info): Switch to using
2794 get_frame_register_value.
2795
58c48e72
MM
27962013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2797
2798 * infrun.c (handle_inferior_event): Check if we know the
2799 function start address before setting a resume breakpoint.
2800
c8d37639
PA
28012013-09-18 Pedro Alves <palves@redhat.com>
2802
2803 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2804 minus_one_ptid instead of looking at the ptid's tid field and
2805 comparing that to -1.
2806
71926e28
AB
28072013-09-18 Andrew Burgess <aburgess@broadcom.com>
2808
2809 * main.h (get_gdb_program_name): Remove extra whitespace.
2810
c88a1531
AB
28112013-09-18 Andrew Burgess <aburgess@broadcom.com>
2812
2813 * main.h (get_gdb_program_name): Add declaration.
2814 * main.c (get_gdb_program_name): Add definition.
2815
4390d890
DE
28162013-09-17 Doug Evans <dje@google.com>
2817
2818 * dwarf2read.c: Move definitions of complaint functions to after
2819 forward declarations of local functions.
2820
49fa26b0
PA
28212013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2822 Pedro Alves <palves@redhat.com>
2823
2824 PR gdb/11568
2825 * breakpoint.c (remove_threaded_breakpoints): New function.
2826 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2827 as thread_exit observer.
2828
08d72866
PA
28292013-09-17 Pedro Alves <palves@redhat.com>
2830
2831 PR gdb/15911
2832 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2833 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2834 * corelow.c (core_open):
2835 * frame.h (print_stack_frame, print_frame_info): New
2836 'set_current_sal' parameter.
2837 * infcmd.c (finish_command, kill_command): Adjust call to
2838 print_stack_frame.
2839 * inferior.c (inferior_command): Likewise.
2840 * infrun.c (normal_stop): Likewise.
2841 * linux-fork.c (linux_fork_context): Likewise.
2842 * record-full.c (record_full_goto_entry, record_full_restore):
2843 Likewise.
2844 * remote-mips.c (common_open): Likewise.
2845 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2846 Use it.
2847 (print_frame_info): New 'set_current_sal' parameter. Set the last
2848 displayed sal depending on the new paremeter instead of looking at
2849 print_what.
2850 (backtrace_command_1, select_and_print_frame, frame_command)
2851 (current_frame_command, up_command, down_command): Adjust call to
2852 print_stack_frame.
2853 * thread.c (print_thread_info, restore_selected_frame)
2854 (do_captured_thread_select): Adjust call to print_stack_frame.
2855 * tracepoint.c (tfind_1): Likewise.
2856 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2857 (mi_cmd_stack_info_frame): Likewise.
2858 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2859 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2860
6bc305f5
SDJ
28612013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2862
2863 * value.c (isvoid_internal_fn): Replace "parameter" with
2864 "argument".
2865
0a7cfe2c
SS
28662013-09-16 Stan Shebs <stan@codesourcery.com>
2867
2868 * README: Update references to writing code for GDB.
2869 * configure.ac (build_warnings): Remove obsolete comment.
2870 * configure: Regenerate.
2871 * gdbarch.sh: Remove references to gdbint.texinfo.
2872 * gdbarch.h: Regenerate.
2873 * gdbtypes.c (objfile_type): Remove comments referencing internals
2874 manual and D10V.
2875
a280dbd1
SDJ
28762013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2877
2878 * NEWS: Mention new convenience function $_isvoid.
2879 * value.c (isvoid_internal_fn): New function.
2880 (_initialize_values): Add new convenience function $_isvoid.
2881
04a83fee
PM
28822013-09-16 Pierre Muller <muller@sourceware.org>
2883
2884 * arm-linux-tdep.c: Add "elf/common.h" header.
2885 Remove AT_HWCAP macro definintion as it is provided in
2886 added include file.
2887 * s390-tdep.c: Remove system header <elf.h>
2888 Add "elf/common.h" header for AT_HWCAP definition.
2889 (s390_core_read_description): Use correct CORE_ADDR
2890 for hwcap local variable used as third parameter
2891 of function target_auxv_search.
2892
88505fac
PM
28932013-09-14 Pierre Muller <muller@sourceware.org>
2894 Tom Tromey <tromey@redhat.com>
2895 Pedro Alves <palves@redhat.com>
2896
2897 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2898 mode if operating system doesn't know O_CLOEXEC.
2899
d3846e71
JK
29002013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2901
2902 Code cleanup.
2903 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2904 inner block.
2905
4ac33720
UW
29062013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2907
2908 * NEWS: Mention TDB support.
2909 * features/s390-tdb.xml: New file.
2910 * features/s390-te-linux64.xml: New file.
2911 * features/s390x-te-linux64.xml: New file.
2912 * features/Makefile (WHICH): Add new tdescs above.
2913 (s390-te-linux64-expedite): Set.
2914 (s390x-te-linux64-expedite): Set.
2915 * features/s390-te-linux64.c: New file (generated).
2916 * features/s390x-te-linux64.c: New file (generated).
2917 * regformats/s390-te-linux64.dat: New file (generated).
2918 * regformats/s390x-te-linux64.dat: New file (generated).
2919 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2920 (HWCAP_S390_TE): Likewise.
2921 (S390_TDB_DWORD0_REGNUM): Likewise.
2922 (S390_TDB_DWORD0_REGNUM): Likewise.
2923 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2924 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2925 (S390_TDB_ATIA_REGNUM): Likewise.
2926 (S390_TDB_R0_REGNUM): Likewise.
2927 (S390_TDB_R1_REGNUM): Likewise.
2928 (S390_TDB_R2_REGNUM): Likewise.
2929 (S390_TDB_R3_REGNUM): Likewise.
2930 (S390_TDB_R4_REGNUM): Likewise.
2931 (S390_TDB_R5_REGNUM): Likewise.
2932 (S390_TDB_R6_REGNUM): Likewise.
2933 (S390_TDB_R7_REGNUM): Likewise.
2934 (S390_TDB_R8_REGNUM): Likewise.
2935 (S390_TDB_R9_REGNUM): Likewise.
2936 (S390_TDB_R10_REGNUM): Likewise.
2937 (S390_TDB_R11_REGNUM): Likewise.
2938 (S390_TDB_R12_REGNUM): Likewise.
2939 (S390_TDB_R13_REGNUM): Likewise.
2940 (S390_TDB_R14_REGNUM): Likewise.
2941 (S390_TDB_R15_REGNUM): Likewise.
2942 (S390_NUM_REGS): Increase.
2943 (S390_IS_TDBREGSET_REGNUM): New macro.
2944 (s390_regmap_tdb): Declare.
2945 (s390_sizeof_tdbregset): Define.
2946 (tdesc_s390_te_linux64): Declare.
2947 (tdesc_s390x_te_linux64): Likewise.
2948 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2949 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2950 (s390_regmap_tdb): New regmap.
2951 (s390_supply_tdb_regset): New function.
2952 (s390_tdb_regset): New regset.
2953 (s390_linux64v2_regset_sections): Add TDB regset to list.
2954 (s390x_linux64v2_regset_sections): Likewise.
2955 (s390_regset_from_core_section): Recognize TDB core note section.
2956 (s390_core_read_description): If HWCAP indicates TE support,
2957 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2958 (s390_gdbarch_init): Handle TDB regset.
2959 (_initialize_s390_tdep): Initialize new tdescs.
2960 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2961 (have_regset_tdb): New variable.
2962 (s390_native_supply): Support register invalidation.
2963 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2964 (check_regset): Treat ENODATA as "regset exists".
2965 (s390_linux_fetch_inferior_registers): Add TDB.
2966 (s390_read_description): Check for TDB existence and select
2967 appropriate tdesc.
2968 * gdbserver/Makefile.in (clean): Add removal of new makefile
2969 targets.
2970 (s390-te-linux64.c): New makefile target.
2971 (s390x-te-linux64.c): Likewise.
2972 * gdbserver/configure.srv (srv_regobj): Append new objects
2973 s390-te-linux64.o and s390x-te-linux64.o.
2974 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2975 s390x-te-linux64.xml, and s390-tdb.xml.
2976 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2977 declaration.
2978 (tdesc_s390_te_linux64): Likewise.
2979 (init_registers_s390x_te_linux64): Likewise.
2980 (tdesc_s390x_te_linux64): Likewise.
2981 (s390_check_regset): Treat ENODATA as "regset exists".
2982 (s390_arch_setup): Add TDB regset support.
2983 (initialize_low_arch): Initialize registers for new tdescs.
2984
2ccd1468
UW
29852013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2986
2987 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2988 (S390_IS_FPREGSET_REGNUM): New macro.
2989 * s390-tdep.c (s390_dwarf_regmap): Make const.
2990 (regnum_is_gpr_full): New function for replacing repeated code.
2991 (s390_pseudo_register_name): Use it.
2992 (s390_pseudo_register_type): Likewise.
2993 (s390_pseudo_register_read): Likewise.
2994 (s390_pseudo_register_write): Likewise.
2995 (s390_unwind_pseudo_register): Likewise.
2996 (s390_regmap_gregset): New format for regmap.
2997 (s390x_regmap_gregset): Likewise.
2998 (s390_regmap_fpregset): Likewise.
2999 (s390_regmap_upper): Likewise.
3000 (s390_regmap_last_break): Likewise.
3001 (s390_regmap_system_call): Likewise.
3002 (s390_supply_regset): Adjust to new regmap format.
3003 (s390_collect_regset): Likewise.
3004 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3005 (s390_native_collect): Likewise.
3006 (supply_gregset): Likewise.
3007 (fill_gregset): Likewise.
3008 (supply_fpregset): Likewise.
3009 (fill_fpregset): Likewise.
3010 (fetch_regset): Likewise.
3011 (store_regset): Likewise.
3012 (s390_linux_fetch_inferior_registers): Likewise.
3013 (s390_linux_fetch_inferior_registers): Likewise.
3014
1aa4cd77
AP
30152013-09-12 Andrew Pinski <apinski@cavium.com>
3016
3017 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3018
d91fab15
UW
30192013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3020
3021 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3022
5a5d8ead
AB
30232013-09-09 Andrew Burgess <aburgess@broadcom.com>
3024
3025 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3026
1385f66c
PA
30272013-09-06 Pedro Alves <palves@redhat.com>
3028
3029 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3030 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3031 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3032 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3033 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3034 gdb_stdlog.
3035
146ec4db
PA
30362013-09-06 Pedro Alves <palves@redhat.com>
3037
3038 * remote-sim.c (dump_mem): Constify buf parameter.
3039 gdbsim_xfer_inferior_memory): Rename to ...
3040 (gdbsim_xfer_memory): ... this. Adjust interface as
3041 target_xfer_partial helper.
3042 (gdbsim_xfer_partial): New function.
3043 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3044 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3045
fcde0081
PA
30462013-09-06 Pedro Alves <palves@redhat.com>
3047
3048 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3049 host_address_to_string, and send debug output to gdb_stdlog.
3050
749c8b38
RW
30512013-09-06 Ricard Wanderlof <ricardw@axis.com>
3052
3053 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3054 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3055 gdb_target_obs for cris target.
3056 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3057 (cris_gdbarch_init): Move calls to
3058 set_gdbarch_fetch_tls_load_module_address and
3059 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3060 Add call to gdbarch_init_osabi.
3061 * cris-linux-tdep.c: New file.
3062 * cris-tdep.h: New file.
3063
43df09d9
AB
30642013-09-06 Andrew Burgess <aburgess@broadcom.com>
3065
3066 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3067 to deprecated_init_ui_hook.
3068
4d09c5b4
AB
30692013-09-06 Andrew Burgess <aburgess@broadcom.com>
3070
3071 * cli/cli-interp.c (_initialize_cli_interp): Add a
3072 command_loop_proc to interp_procs.
3073 * event-top.c (cli_command_loop): Change signature to match
3074 interp_command_loop_ftype.
3075 * event-top.h (cli_command_loop): Same.
3076 * interps.c (interp_new): Require every interpreter to have a
3077 command_loop_proc.
3078 (current_interp_command_loop): Just call the command_loop_proc on
3079 the current interpreter.
3080 * tui/tui-interp.c (_initialize_tui_interp): Add a
3081 command_loop_proc to interp_procs.
3082
8eb3d7b6
RW
30832013-09-06 Ricard Wanderlof <ricardw@axis.com>
3084
3085 * cris-tdep.c (cris_gdbarch_init): Add call to
3086 get_gdbarch_fetch_tls_load_module_address.
3087
18b3c2f5
RW
30882013-09-06 Ricard Wanderlof <ricardw@axis.com>
3089
3090 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3091 (cris_elf_gregset_t): Rename from elf_gregset_t.
3092 (crisv32_elf_gregset_t): Adjust.
3093 (cris_supply_gregset, fetch_core_registers): Adjust.
3094
dc8636ef
RW
30952013-09-06 Ricard Wanderlof <ricardw@axis.com>
3096
3097 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3098
257e6d53
AB
30992013-09-05 Andrew Burgess <aburgess@broadcom.com>
3100
1581d8a7 3101 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3102 references in comments.
1581d8a7 3103 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3104 deprecated_command_loop_hook.
3105 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3106 setup.
1581d8a7 3107 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3108
7c33b57c
PA
31092013-09-05 Pedro Alves <palves@redhat.com>
3110
3111 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3112 local is now int instead of ULONGEST. Print it with %d
3113 instead of paddress.
3114
9f8edbd5
TG
31152013-09-05 Tristan Gingold <gingold@adacore.com>
3116
3117 * MAINTAINERS: Remove avr maintainership.
3118
d5b495b4
PA
31192013-09-05 Pedro Alves <palves@redhat.com>
3120
3121 * findvar.c (value_of_register): Rework in terms of
3122 value_of_register_lazy.
3123
40b91786
MB
31242013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3125
3126 * symfile.c (add_symbol_file_command): Remove trailing
3127 whitespaces and blank line after comment.
3128
6eed1678
PA
31292013-09-05 Pedro Alves <palves@redhat.com>
3130
3131 * tui/tui-regs.c (tui_register_format): Don't look at the
3132 register's name here. Return string representing register
3133 value instead of storing it in the data element.
3134 (tui_get_register): Compare register string representations
3135 instead of register value states and contents.
3136
8eb6bda2
PA
31372013-09-05 Pedro Alves <palves@redhat.com>
3138
3139 PR tui/15933
3140 * tui/tui-regs.c (tui_show_registers): Show registers of the
3141 selected frame, not the current frame.
3142
48b1f08c
RW
31432013-09-05 Ricard Wanderlof <ricardw@axis.com>
3144
3145 * MAINTAINERS (Write After Approval): Add myself to the list.
3146
89e63ee4
DE
31472013-09-04 Doug Evans <dje@google.com>
3148
3149 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3150 (queue_and_load_dwo_tu): New function.
3151 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3152 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3153 Make dependent_cu optional.
3154 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3155 and an older .gdb_index is in use, queue and load all its TUs too.
3156
492c0ab7
JK
31572013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3158
3159 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3160 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3161 variable search_flags.
3162 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3163 (OPF_RETURN_REALPATH): ... here.
3164 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3165 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3166 call. Twice.
3167 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3168 openp call.
3169 * solib.c (solib_find): Likewise. Four times.
3170 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3171 in the function comment and for the realpath_fptr variable.
3172 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3173 (find_and_open_source): Likewise. Twice.
3174 * symfile.c (symfile_bfd_open): Likewise, also twice.
3175
23a44de8
DE
31762013-09-04 Doug Evans <dje@google.com>
3177
3178 * progspace.c (save_current_space_and_thread): Remove unnecessary
3179 call to save_current_inferior.
3180
47061676
AB
31812013-09-04 Andrew Burgess <aburgess@broadcom.com>
3182
3183 * sh64-tdep.c (sh64_do_register): Return after printing message
3184 about unavailable register contents.
3185
41dc8db8
MB
31862013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3187 Pedro Alves <palves@redhat.com>
3188
3189 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3190 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3191 options and collapse into single conditional branch.
41dc8db8 3192
07107ca6
LM
31932013-09-03 Luis Machado <lgustavo@codesourcery.com>
3194
a7ea61cf 3195 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3196 detach_fork.
3197 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3198 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3199 * inferior.h (detach_fork): Remove.
3200 * infrun.c (detach_fork): Adjust comment and make it
3201 static.
3202 (follow_fork): Pass detach_fork parameter to
3203 target_follow_fork.
3204 * linux-nat.c (linux_child_follow_fork): New parameter
3205 detach_fork.
3206 * target.c (target_follow_fork): New parameter detach_fork.
3207 Pass detach_fork as parameter and print its value.
3208 * target.h (struct target_ops) <to_follow_fork>: New int
3209 parameter.
3210 (target_follow_fork): New parameter detach_fork.
3211
3bec2768
JB
32122013-09-03 Joel Brobecker <brobecker@adacore.com>
3213
3214 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3215 Replace sec->bfd by sec->the_bfd_section->owner.
3216
c01cbb3d
YQ
32172013-09-03 Yao Qi <yao@codesourcery.com>
3218
3219 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3220 from linux_has_shared_address_space.
3221 (linux_has_shared_address_space): Call linux_is_uclinux.
3222 * linux-tdep.h (linux_is_uclinux): Declare.
3223 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3224 linux_is_uclinux.
3225
7b00db47
YQ
32262013-09-03 Yao Qi <yao@codesourcery.com>
3227
3228 * config/djgpp/fnchange.lst: Remove entry of
3229 i386-interix-nat.c and i386-interix-tdep.c.
3230 * configure.ac: Remove '*-*-interix*'.
3231 * configure: Re-generated.
3232 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3233 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3234 obsolete comments.
3235 * osabi.c (gdb_osabi_names): Remove "Interix".
3236
0f9741f2
YQ
32372013-09-03 Yao Qi <yao@codesourcery.com>
3238
3239 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3240
1e038f67
MM
32412013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3242
3243 * record.h (record_print_flag) <record_print_src_line,
3244 record_print_insn_range>: Rename into ...
3245 (record_print_flag) <record_print_src_line,
3246 record_print_insn_range>: ... this. Update all users.
3247
9e52adf9
PM
32482013-09-02 Pierre Muller <muller@sourceware.org>
3249
3250 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3251 error code.
3252
a2388568
PM
32532013-09-02 Pierre Muller <muller@sourceware.org>
3254
3255 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3256 by use of plongest function.
3257
9058cc3a
TG
32582013-09-02 Tristan Gingold <gingold@adacore.com>
3259
3260 * NEWS: Add entry mentioning support for native Windows x64
3261 SEH data.
3262
3263 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3264 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3265 (struct amd64_windows_frame_cache): New struct.
3266 (amd64_windows_w2gdb_regnum): New global.
3267 (pc_in_range, amd64_windows_frame_decode_epilogue)
3268 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3269 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3270 (amd64_windows_frame_this_id): New functions.
3271 (amd64_windows_frame_unwind): New static global.
3272 (amd64_windows_skip_prologue): New function.
3273 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3274 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3275 with amd64_windows_skip_prologue.
3276
3161820b 32772013-08-30 Joel Brobecker <brobecker@adacore.com>
3278
3279 GDB 7.6.1 released.
3280
02457c76
PA
32812013-08-30 Pedro Alves <palves@redhat.com>
3282
3283 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3284 SRC_AND_LOC.
3285
e0162910
PA
32862013-08-30 Pedro Alves <palves@redhat.com>
3287
3288 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3289 warning text.
3290
6391ce51
PA
32912013-08-30 Pedro Alves <palves@redhat.com>
3292
3293 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3294 Adjust arguments to print_stack_frame.
3295
d1da0587
PA
32962013-08-30 Pedro Alves <palves@redhat.com>
3297
3298 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3299
adfd8245
PA
33002013-08-30 Pedro Alves <palves@redhat.com>
3301
3302 * frame.h (show_and_print_stack_frame): Delete declaration.
3303
96d9056e
PM
33042013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3305
3306 PR python/15461
96d9056e
PM
3307 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3308 (archpy_name): Check for valid architecture.
3309 (archpy_disassemble): Ditto.
3310
11cb8762
JB
33112013-08-29 Joel Brobecker <brobecker@adacore.com>
3312
3313 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3314 instead of "long long" in call to ptrace64.
3315
1af12a7d
AB
33162013-08-29 Andrew Burgess <aburgess@broadcom.com>
3317
3318 * mi/mi-interp.c (mi_command_loop): Change signature to match
3319 interp_command_loop_ftype.
3320 (mi1_command_loop): Remove.
3321 (mi2_command_loop): Remove.
3322 (mi3_command_loop): Remove.
3323 (mi_interpreter_resume): Remove setting of
3324 deprecated_command_loop_hook.
3325 (_initialize_mi_interp): Set mi_command_loop as the command loop
3326 callback.
3327
acc900c2
SA
33282013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3329
3330 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3331 value_type.
3332
548b762d
SA
33332013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3334
3335 * value.c (allocate_value_contents): Make static.
3336 * value.h (allocate_value_contents): Remove prototype.
3337
08039c9e
SA
33382013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3339
3340 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3341 of assembling value via allocate_value_lazy and attribute setter.
3342 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3343 assembling value via allocate_value_lazy and attribute setter.
3344 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3345 assembling value via allocate_value_lazy and attribute setter.
3346
314c7de9
SA
33472013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3348
3349 * value.c (value_from_contents_and_address): Replace allocate_value and
3350 memcpy with value_from_contents.
3351
8f28f522
PM
33522013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3353
3354 * python/py-framefilter.c (py_print_frame): Remove usage of
3355 PyString_AsString. Use python_string_to_host_string instead.
3356 Refactor function to work with a string as a new allocation
3357 instead of a pointer.
3358 (py_print_frame): Ditto.
3359 * python/lib/gdb/frames.py (return_list): Cain iterators together
3360 instead of adding them as a list.
3361 (_sort_list): Call return_list, and remove duplicate code.
3362 (execute_frame_filters): Convert iterator to a list with list().
3363 * python/lib/gdb/command/frame_filters.py
3364 (SetFrameFilterPriority._set_filter_priority): Convert priority
3365 attribute to an integer.
3366 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3367 wrapper function __next__.
3368 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3369 define as "str".
3370
8ee002df
PM
33712013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3372
3373 PR python/15752
8ee002df
PM
3374 * python/py-framefilter.c (apply_frame_filter): Check
3375 gdb_python_initialized. Exit if the Python frame-filter code
3376 cannot be initialized.
3377
af4c453a
PM
33782013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3379
3380 PR cli/15842
af4c453a
PM
3381 * top.c (print_gdb_version): Remove erroneous newline after help
3382 text.
3383
bf8793bb
YQ
33842013-08-29 Yao Qi <yao@codesourcery.com>
3385
3386 * varobj.c (install_dynamic_child): Remove trailing space.
3387 Add one blank line after variable declaration.
3388
1f0c4988
JK
33892013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3390
3391 PR gdb/15415
3392 * corefile.c (get_exec_file): Use exec_filename.
3393 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3394 * exec.c (exec_close): Free EXEC_FILENAME.
3395 (exec_file_attach): New variable canonical_pathname. Use
3396 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3397 EXEC_FILENAME.
3398 * exec.h (exec_filename): New.
3399 * inferior.c (print_inferior, inferior_command): Use
3400 PSPACE_EXEC_FILENAME.
3401 * mi/mi-main.c (print_one_inferior): Likewise.
3402 * progspace.c (clone_program_space, print_program_space): Likewise.
3403 * progspace.h (struct program_space): New field pspace_exec_filename.
3404 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3405 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3406
59ee9f94
WN
34072013-08-28 Will Newton <will.newton@linaro.org>
3408
3409 * common/linux-ptrace.c: Include stdint.h unconditionally.
3410
c8a2a419
JK
34112013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3412
3413 Code cleanup.
3414 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3415
ffa4ac95
YQ
34162013-08-28 Yao Qi <yao@codesourcery.com>
3417 Pedro Alves <palves@redhat.com>
3418
3419 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3420 instead of stdio_fileopen.
3421 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3422 .Call stderr_fileopen instead of stdio_fileopen.
3423 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3424 [__MINGW32__] (stderr_file_fputs): New function.
3425 (stderr_fileopen): New function.
3426 * ui-file.h (stderr_fileopen): Declare.
3427
69d751e3
DE
34282013-08-27 Doug Evans <dje@google.com>
3429
3430 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3431 (struct dwarf2_per_cu_data): Ditto.
3432 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3433 (process_imported_unit_die): Ditto.
3434 (follow_die_sig_1): Simplify assert.
3435
44f38867
PA
34362013-08-27 Pedro Alves <palves@redhat.com>
3437
3438 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3439 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3440 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3441 windows_xfer_memory directly.
3442 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3443
d28d46b5
PA
34442013-08-27 Pedro Alves <palves@redhat.com>
3445
3446 * darwin-nat.c (darwin_xfer_memory): Delete.
3447 (_initialize_darwin_inferior): Don't install a
3448 deprecated_xfer_memory method.
3449
6211c335
YQ
34502013-08-27 Pedro Alves <pedro@codesourcery.com>
3451 Yao Qi <yao@codesourcery.com>
3452
3453 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3454 (parse_no_frames_option): Remove.
3455 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3456 (mi_cmd_stack_list_args): Adjust.
3457 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3458 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3459 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3460 Caller update.
3461 (list_args_or_locals): New parameter 'skip_unavailable'.
3462 Handle it.
3463 * valprint.c (scalar_type_p): Rename to ...
3464 (val_print_scalar_type_p): ... this. Make extern.
3465 (val_print, value_check_printable): Adjust.
3466 * valprint.h (val_print_scalar_type_p): Declare.
3467 * value.c (value_entirely_unavailable): New function.
3468 * value.h (value_entirely_unavailable): Declare.
3469
3470 * NEWS: Mention the new option "--skip-unavailable" to MI
3471 commands '-stack-list-locals', '-stack-list-arguments' and
3472 '-stack-list-variables'.
3473
242f1fd7
YQ
34742013-08-27 Yao Qi <yao@codesourcery.com>
3475
3476 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3477 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3478 options.
3479 * mi/mi-getopt.c (mi_getopt): Remove.
3480 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3481 'error_on_unknown'.
3482 (mi_getopt): Call mi_getopt_1.
3483 (mi_getopt_silent): New.
3484 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3485
260b681b
DE
34862013-08-26 Doug Evans <dje@google.com>
3487
779bd270
DE
3488 PR symtab/15885
3489 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3490 .gdb_index is in use.
3491 * symfile.c (reread_symbols): Reset objfile->sf.
3492
52e260a3
DE
3493 * NEWS: Document "mt print objfiles" now takes optional regexp.
3494 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3495 regexp of objfiles to print.
3496 (_initialize_symmisc): Update doc string for "mt print objfiles".
3497
260b681b
DE
3498 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3499 missing debug info checks.
3500
a85c52f2
UW
35012013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3502 Ulrich Weigand <uweigand@de.ibm.com>
3503
3504 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3505 line tables generated by XLC compiled binaries.
3506
4f00dda3
DE
35072013-08-23 Doug Evans <dje@google.com>
3508
db68bbae
DE
3509 * symmisc.c (dump_symtab): Delete prototype.
3510 (dump_msymbols, dump_objfile): Ditto.
3511 (maintenance_info_symtabs): Mark as dont_repeat.
3512 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3513
4f00dda3
DE
3514 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3515 debugging printf to better location.
3516
23d577b0
PA
35172013-08-23 Pedro Alves <palves@redhat.com>
3518
3519 * target.c (target_read_live_memory): Change type of 'ret' local
3520 to LONGEST.
3521
00d84524
PA
35222013-08-23 Pedro Alves <palves@redhat.com>
3523
3524 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3525 (remote_read_bytes): Change return type to LONGEST, and adjust to
3526 return a target_xfer_error on error.
3527 (remote_xfer_memory): Delete.
3528 (remote_flash_write): Change type of 'ret' local to LONGEST.
3529 (remote_xfer_partial, remote_xfer_partial): Adjust.
3530 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3531
1ed3ee94
PM
35322013-08-23 Pierre Muller <muller@sourceware.org>
3533
3534 ARI fix: Push # directives to start of line.
3535 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3536
9eaabc75
MW
35372013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3538
3539 PR gdb/15501
3540 * breakpoint.c (enable_command, disable_command): Iterate over
3541 all specified breakpoint locations.
3542
101158d9
LM
35432013-08-22 Luis Machado <lgustavo@codesourcery.com>
3544
3545 * common/linux-ptrace.c (linux_fork_to_function): Push #
3546 directives to the start of the line.
3547 (linux_check_ptrace_features): Fix warning message to use
3548 the "_" markup.
3549
96d7229d
LM
35502013-08-22 Luis Machado <lgustavo@codesourcery.com>
3551
3552 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3553 nat/linux-waitpid.h.
3554 (linux-waitpid.o): New object file rule.
3555 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3556 (current_ptrace_options): Moved from linux-nat.c.
3557 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3558 parameters.
3559 (linux_fork_to_function): New function.
3560 (linux_grandchild_function): Likewise.
3561 (linux_child_function): Likewise.
3562 (linux_check_ptrace_features): New function, heavily
3563 based on linux-nat.c:linux_test_for_tracefork.
3564 (linux_enable_event_reporting): New function.
3565 (ptrace_supports_feature): Likewise.
3566 (linux_supports_tracefork): Likewise.
3567 (linux_supports_traceclone): Likewise.
3568 (linux_supports_tracevforkdone): Likewise.
3569 (linux_supports_tracesysgood): Likewise.
3570 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3571 gdbserver/linux-low.c.
3572 (linux_enable_event_reporting): New declaration.
3573 (linux_supports_tracefork): Likewise.
3574 (linux_supports_traceclone): Likewise.
3575 (linux_supports_tracevforkdone): Likewise.
3576 (linux_supports_tracesysgood): Likewise.
3577 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3578 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3579 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3580 * config/arm/linux.mh (NATDEPFILES): Likewise.
3581 * config/i386/linux.mh (NATDEPFILES): Likewise.
3582 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3583 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3584 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3585 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3586 * config/mips/linux.mh (NATDEPFILES): Likewise.
3587 * config/pa/linux.mh (NATDEPFILES): Likewise..
3588 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3589 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3590 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3591 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3592 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3593 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3594 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3595 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3596 ptrace's 4th argument's types.
3597 Check the type of PTRACE_TYPE_ARG4.
3598 * configure: Regenerate.
3599 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3600 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3601 (linux_supports_tracefork_flag): Remove.
3602 (linux_supports_tracesysgood_flag): Likewise.
3603 (linux_supports_tracevforkdone_flag): Likewise.
3604 (current_ptrace_options): Moved to
3605 common/linux-ptrace.c.
3606 (linux_tracefork_child): Remove.
3607 (my_waitpid): Remove.
3608 (linux_test_for_tracefork): Renamed to
3609 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3610 (linux_test_for_tracesysgood): Remove.
3611 (linux_supports_tracesysgood): Remove.
3612 (linux_supports_tracefork): Remove.
3613 (linux_supports_tracevforkdone): Remove.
3614 (linux_enable_tracesysgood): Remove.
3615 (linux_enable_event_reporting): Remove.
3616 (linux_init_ptrace): New function.
3617 (linux_child_post_attach): Call linux_init_ptrace.
3618 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3619 (linux_child_follow_fork): Call linux_supports_tracefork
3620 and linux_supports_tracevforkdone.
3621 (linux_child_insert_fork_catchpoint): Call
3622 linux_supports_tracefork.
3623 (linux_child_insert_vfork_catchpoint): Likewise.
3624 (linux_child_set_syscall_catchpoint): Call
3625 linux_supports_tracesysgood.
3626 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3627 * nat/linux-nat.h: New file.
3628 * nat/linux-waitpid.c: New file.
3629 * nat/linux-waitpid.h: New file.
3630
9f948660
SDJ
36312013-08-22 Samuel Bronson <naesten@gmail.com>
3632
3633 ARM Linux support for `catch syscall'.
3634 * syscalls/arm-linux.py: New file.
3635 * syscalls/arm-linux.xml: Likewise.
3636 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3637 (arm_linux_init_abi): Register the new function and syscall xml file.
3638 * data-directory/Makefile.in: Install the new syscall xml file.
3639 * NEWS: Brag about this.
3640
6be7b56e
PA
36412013-08-22 Pedro Alves <palves@redhat.com>
3642
3643 PR gdb/15871
3644 * corefile.c (target_xfer_memory_error): New function.
3645 (memory_error): Defer EIO to target_memory_error.
3646 (read_memory): Use target_xfer_partial, and handle finer-grained
3647 target xfer errors.
3648 * target.c (target_xfer_error_to_string): New function.
3649 (memory_xfer_partial_1): If memory is known to be
3650 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3651 (target_xfer_partial): Make extern.
3652 * target.h (enum target_xfer_error): New enum.
3653 (target_xfer_error_to_string): Declare function.
3654 (target_xfer_partial): Declare function.
3655 (struct target_ops) <xfer_partial>: Adjust describing comment.
3656
bcbec14e
AM
36572013-08-22 Alan Modra <amodra@gmail.com>
3658
3659 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3660 * configure.tgt: Likewise as targets.
3661
fc474241
DE
36622013-08-20 Doug Evans <dje@google.com>
3663
3664 * buildsym.c (subfile_stack): Move here from buildsym.h.
3665 (pending_macros): Ditto.
3666 (get_macro_table): New function.
3667 (buildsym_init): Initialize subfile_stack.
3668 * coffread.c (type_vector,type_vector_length): Moved here from
3669 buildsym.h.
3670 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3671 (coff_symtab_read): Use it.
3672 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3673 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3674 with call to get_macro_table.
3675 * stabsread.c (type_vector,type_vector_length): Moved here from
3676 buildsym.h.
3677 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3678 * buildsym.h (get_macro_table): Declare.
3679
bec71544
TT
36802013-08-20 Tom Tromey <tromey@redhat.com>
3681
3682 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3683 Update.
3684 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3685
0002ad5f
DE
36862013-08-20 Doug Evans <dje@google.com>
3687
3688 * blockframe.c: Remove #include "psymtab.h".
3689 * cp-support.c: Ditto.
3690 * source.c: Ditto.
3691 * stack.c: Ditto.
3692
df302446
TT
36932013-08-20 Tom Tromey <tromey@redhat.com>
3694
3695 PR python/15816:
3696 * exceptions.h (return_mask): Now an enum.
3697 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3698 enum constants.
3699
df6d5441
TT
37002013-08-20 Tom Tromey <tromey@redhat.com>
3701
3702 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3703 get_objfile_arch.
3704 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3705 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3706 * jit.c (jit_object_close_impl): Update.
3707 * jv-lang.c (get_dynamics_objfile): Update.
3708 * linespec.c (add_minsym): Use get_dynamics_objfile.
3709 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3710 (allocate_objfile): Don't initialize 'gdbarch' field.
3711 (get_objfile_arch): Update.
3712 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3713 moved from...
3714 (struct objfile) <gdbarch>: ... here. Remove.
3715 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3716 get_objfile_arch.
3717 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3718
f5aee5ee
AM
37192013-08-20 Alan Modra <amodra@gmail.com>
3720
3721 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3722 for IBM long double nan and inf.
3723 (floatformat_is_negative, floatformat_classify,
3724 floatformat_mantissa): Similarly.
3725 (floatformat_ieee_single, floatformat_ieee_double,
3726 floatformat_ieee_quad, floatformat_arm_ext,
3727 floatformat_ia64_spill): Delete unused vars.
3728 (_initialize_doublest): Delete unused function.
3729 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3730 little-endian variants of floatformat_ibm_long_double.
3731
33b60d58 37322013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3733
33b60d58
LM
3734 * Makefile.in (SFILES): Remove common/target-common.c and
3735 add target/waitstatus.c.
3736 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3737 target/resume.h, target/wait.h and target/waitstatus.h.
3738 (COMMON_OBS): Remove target-common.o and add
3739 waitstatus.o.
3740 (target-common.o): Remove.
3741 (waitstatus.o): New target object file.
3742 * common/target-common.c: Move contents to
3743 target/waitstatus.c and remove.
3744 * common/target-common.h: Move contents to other files and
3745 remove.
3746 (enum resume_kind: Move to target/resume.h.
3747 (TARGET_WNOHANG): Move to target/wait.h.
3748 (enum target_waitkind): Move to target/waitstatus.h.
3749 (struct target_waitstatus): Likewise.
3750 * target.h: Do not include target-common.h and
3751 include target/resume.h, target/wait.h and
3752 target/waitstatus.h.
3753 * target/resume.h: New file.
3754 * target/wait.h: New file.
3755 * target/waitstatus.h: New file.
3756 * target/waitstatus.c: New file.
3757
12696c10
PA
37582013-08-19 Pedro Alves <palves@redhat.com>
3759
3760 * linux-nat.c (linux_test_for_tracefork)
3761 (linux_test_for_tracesysgood, linux_child_follow_fork)
3762 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3763 (linux_nat_wait_1): Extend comment.
3764 (linux_async_pipe): Add comment.
3765
ba89f962
KB
37662013-08-15 Kevin Buettner <kevinb@redhat.com>
3767
3768 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3769 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3770 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3771 Update to account for fact that PC is now a pseudo-register.
3772 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3773 cases for RL78_PC_REGNUM.
3774
35ab155d
MB
37752013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3776
3777 PR cli/15841
3778 * top.c (quit_force): Skip writing history file
3779 if input is not from terminal.
3780
0d031856
TT
37812013-08-14 Tom Tromey <tromey@redhat.com>
3782
3783 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3784 resultthreadlist>: New fields.
3785 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3786 (remote_get_threadlist, remote_threadlist_iterator): Use
3787 new fields. Remove static variables.
3788
ee154bee
TT
37892013-08-14 Tom Tromey <tromey@redhat.com>
3790
3791 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3792 remote_watch_data_address>: New fields.
3793 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3794 (process_stop_reply, remote_wait_as)
3795 (remote_check_watch_resources, remote_stopped_data_address): Update.
3796
88b496c3
TT
37972013-08-14 Tom Tromey <tromey@redhat.com>
3798
3799 * remote.c (struct remote_state) <async_client_callback,
3800 async_client_context>: New fields.
3801 (async_client_callback, async_client_context): Remove.
3802 (remote_async_serial_handler, remote_async): Update.
3803
2f65bcb7
TT
38042013-08-14 Tom Tromey <tromey@redhat.com>
3805
3806 * remote.c (sizeof_pkt): Remove.
3807 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3808
b80fafe3
TT
38092013-08-14 Tom Tromey <tromey@redhat.com>
3810
3811 * remote.c (struct remote_state) <use_threadinfo_query,
3812 use_threadextra_query>: New fields.
3813 (remote_threads_info, remote_threads_extra_info)
3814 (remote_open_1): Update.
3815
8e88304f
TT
38162013-08-14 Tom Tromey <tromey@redhat.com>
3817
3818 * remote.c (struct remote_state) <finished_object,
3819 finished_annex, finished_offset>: New fields.
3820 (remote_read_qxfer): Use remote_state fields; remove static
3821 variables.
3822
280ceea3
TT
38232013-08-14 Tom Tromey <tromey@redhat.com>
3824
3825 * remote.c (struct remote_state) <last_sent_step>:
3826 New field.
3827 (last_sent_step): Remove.
3828 (remote_resume, remote_wait_as): Update.
3829
b73be471
TT
38302013-08-14 Tom Tromey <tromey@redhat.com>
3831
3832 * remote.c (struct remote_state) <last_sent_signal>:
3833 New field.
3834 (last_sent_signal): Remove.
3835 (new_remote_state, remote_resume, remote_wait_as): Update.
3836
5e4a05c4
TT
38372013-08-14 Tom Tromey <tromey@redhat.com>
3838
3839 * remote.c (struct remote_state) <last_program_signals_packet>:
3840 New field.
3841 (last_program_signals_packet): Remove.
3842 (remote_program_signals, remote_open_1): Update.
3843
747dc59d
TT
38442013-08-14 Tom Tromey <tromey@redhat.com>
3845
3846 * remote.c (struct remote_state) <last_pass_packet>:
3847 New field.
3848 (last_pass_packet): Remove.
3849 (remote_pass_signals, remote_open_1): Update.
3850
262e1174
TT
38512013-08-14 Tom Tromey <tromey@redhat.com>
3852
3853 * remote.c (struct remote_state) <remote_traceframe_number>:
3854 New field.
3855 (remote_traceframe_number): Remove.
3856 (new_remote_state, remote_open_1, set_remote_traceframe)
3857 (remote_trace_find): Update.
3858
47f8a51d
TT
38592013-08-14 Tom Tromey <tromey@redhat.com>
3860
3861 * remote.c (struct remote_state) <general_thread, continue_thread>:
3862 New fields.
3863 (general_thread, continue_thread): Remove.
3864 (record_currthread, set_thread, set_general_process)
3865 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3866 (extended_remote_mourn_1): Update.
3867
5d93a237
TT
38682013-08-14 Tom Tromey <tromey@redhat.com>
3869
3870 * remote.c (struct remote_state) <remote_desc>: New field.
3871 (remote_desc): Remove.
3872 (remote_threads_info, remote_threads_extra_info, remote_close)
3873 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3874 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3875 (remote_hostio_send_command, remote_file_put, remote_file_get)
3876 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3877 (remote_async, remote_new_objfile, set_range_stepping): Update.
3878
cf792862
TT
38792013-08-14 Tom Tromey <tromey@redhat.com>
3880
3881 * remote.c (remote_state): Now a pointer.
3882 (get_remote_state_raw): Update.
3883 (new_remote_state): New function.
3884 (_initialize_remote): Use new_remote_state.
3885
dc473cfb
TT
38862013-08-14 Tom Tromey <tromey@redhat.com>
3887
3888 * remote.c (remote_protocol_features): Now const.
3889
85ec6ce7
TT
38902013-08-14 Tom Tromey <tromey@redhat.com>
3891
3892 * remote.c (crc32_table, crc32): Remove.
3893 (remote_verify_memory): Use xcrc32.
3894
73033f12
SDJ
38952013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3896
3897 * value.h (create_internalvar_type_lazy): Adjust prototype
3898 declaration.
3899
5c30d39a
AB
39002013-08-13 Andrew Burgess <aburgess@broadcom.com>
3901
3902 * common/format.c (parse_format_string): Don't allow '#' flag for
3903 pointer arguments in format string.
3904
1a66331e
PM
39052013-08-13 Pierre Muller <muller@sourceware.org>
3906
fde605f3 3907 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3908 if rl_get_screen_size did not return useful values.
3909
b4013987
AA
39102013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3911
3912 PR breakpoints/15117
3913 * linespec.c (linespec_parse_basic): Check for convenience
3914 variable or history value while parsing.
3915
959b6a66
SDJ
39162013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3917
3918 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3919 AVR.
3920 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3921 different signals between the generic Linux kernel implementation
3922 and AVR's.
3923 (avr_linux_gdb_signal_from_target): Delete.
3924 (avr_linux_gdb_signal_to_target): Delete.
3925 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3926
24a55014
DE
39272013-08-09 Doug Evans <dje@google.com>
3928
3929 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3930 entries.
3931
eb14d406
SDJ
39322013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3933
3934 * linux-tdep.c: Define enum with generic signal numbers.
3935 (linux_gdb_signal_from_target): New function.
3936 (linux_gdb_signal_to_target): Likewise.
3937 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3938 methods to the functions above.
3939 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3940 (linux_gdb_signal_to_target): Likewise.
3941 * alpha-linux-tdep.c: Define new enum with signals different
3942 from generic Linux kernel.
3943 (alpha_linux_gdb_signal_from_target): New function.
3944 (alpha_linux_gdb_signal_to_target): Likewise.
3945 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3946 with the functions mentioned above.
3947 * avr-tdep.c: Define enum with differences between Linux kernel
3948 and AVR signals.
3949 (avr_linux_gdb_signal_from_target): New function.
3950 (avr_linux_gdb_signal_to_target): Likewise.
3951 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3952 the functions mentioned above.
3953 * sparc-linux-tdep.c: Define enum with differences between SPARC
3954 and generic Linux kernel signal numbers.
3955 (sparc32_linux_gdb_signal_from_target): New function.
3956 (sparc32_linux_gdb_signal_to_target): Likewise.
3957 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3958 to the functions defined above.
3959 * xtensa-linux-tdep.c: Define enum with differences between
3960 Xtensa and Linux kernel generic signals.
3961 (xtensa_linux_gdb_signal_from_target): New function.
3962 (xtensa_linux_gdb_signal_to_target): Likewise.
3963 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3964 to the functions defined above.
3965 * mips-linux-tdep.c: Define enum with differences between
3966 signals in MIPS and Linux kernel generic ones.
3967 (mips_gdb_signal_to_target): New function.
3968 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3969 only different signals from the Linux kernel generic.
3970 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3971 the functions defined above.
3972 * mips-linux-tdep.h (enum mips_signals): Remove.
3973
156d08c8
PA
39742013-08-09 Pedro Alves <palves@redhat.com>
3975
3976 * avr-tdep.c (XMALLOC): Delete macro.
3977 * cli/cli-dump.c (XMALLOC): Delete macro.
3978
db229724
PA
39792013-08-09 Pedro Alves <palves@redhat.com>
3980
3981 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3982 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3983 (fopen_with_cleanup, add_dump_command): Make static.
3984 * cli/cli-dump.h: Delete file.
3985 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3986 cli/cli-dump.h.
3987
3f12a589
PA
39882013-08-09 Pedro Alves <palves@redhat.com>
3989
3990 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3991 error message.
3992
c718be47
PA
39932013-08-09 Pedro Alves <palves@redhat.com>
3994
156d08c8 3995 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3996 error message.
3997
1e351ed1
PA
39982013-08-09 Pedro Alves <palves@redhat.com>
3999
4000 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4001 (gcore_command): Use tilde_expand here, and when showing the
4002 filename to the user, show the expanded version.
4003
1ed8d800
YQ
40042013-08-09 Yao Qi <yao@codesourcery.com>
4005
4006 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4007 'entryval' is set.
4008
47ecca85
PA
40092013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4010
4011 * gcore.c (create_gcore_bfd): Use tilde_expand.
4012
82a0a75f
YQ
40132013-08-08 Yao Qi <yao@codesourcery.com>
4014
4015 * frame.h (read_frame_local): Declare.
4016 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4017 read_frame_local.
4018 * stack.c (read_frame_local): New.
4019
5c4aa40b
YQ
40202013-08-08 Yao Qi <yao@codesourcery.com>
4021
4022 * mi/mi-cmd-stack.c: Update comments to function
4023 list_args_or_locals.
4024
b93601f3
TT
40252013-08-07 Tom Tromey <tromey@redhat.com>
4026
4027 PR symtab/15028:
4028 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4029 (process_psymtab_comp_unit_reader): Use it.
4030 (process_psymtab_comp_unit): Update. Add "pretend_language"
4031 argument.
4032 (dwarf2_build_psymtabs_hard): Update.
4033 (scan_partial_symbols): Pass CU's language to
4034 process_psymtab_comp_unit.
4035
fa760f46
TT
40362013-08-07 Tom Tromey <tromey@redhat.com>
4037
4038 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4039 (dwarf2_gdb_index_functions): Update.
4040 * psymtab.c (find_symbol_file_from_partial): Remove.
4041 (psym_functions): Update.
4042 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4043 Remove.
4044
bf6d8a91
TT
40452013-08-07 Tom Tromey <tromey@redhat.com>
4046
4047 * symfile.c (set_initial_language): Look up "main" symbol
4048 and use its language.
4049 * symtab.c (find_main_filename): Remove.
4050 * symtab.h (find_main_filename): Remove.
4051
f9125b6c
TT
40522013-08-07 Tom Tromey <tromey@redhat.com>
4053
4054 * dwarf2read.c (recursively_compute_inclusions): Add
4055 "immediate_parent" argument. Set symtab's "user" field
4056 if not set.
4057 (compute_symtab_includes): Update.
4058
fdbb204b
TT
40592013-08-07 Tom Tromey <tromey@redhat.com>
4060
4061 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4062 when adding label symbols.
4063
49de1690
UW
40642013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4065 Ulrich Weigand <uweigand@de.ibm.com>
4066
4067 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4068 * configure.host (powerpc64-*-aix*): Likewise.
4069
b08ee99f
UW
40702013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4071 Ulrich Weigand <uweigand@de.ibm.com>
4072
4073 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4074 is defined.
4075 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4076 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4077 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4078 * configure.ac: Check for ptrace64.
4079 * configure, config.in: Regenerate.
4080
fecf803e
UW
40812013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4082 Ulrich Weigand <uweigand@de.ibm.com>
4083
4084 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4085 Call ptrace64 instead of ptrace if defined.
4086 Add macro addr_ptr to take care of ptrace address argument.
4087 (pdc_read_regs): Likewise.
4088 (pdc_write_regs): Likewise.
4089 (aix_thread_resume): Likewise.
4090 (fetch_regs_kernel_thread): Likewise.
4091 (store_regs_kernel_thread): Likewise.
4092
3bb5e4a8
AB
40932013-08-07 Anton Blanchard <anton@samba.org>
4094
4095 * MAINTAINERS: Add myself to Write After Approval.
4096
12070676
TT
40972013-08-05 Tom Tromey <tromey@redhat.com>
4098
4099 * aix-thread.c (_initialize_aix_thread): Use
4100 complete_target_initialization.
4101 * bsd-uthread.c (_initialize_bsd_uthread): Use
4102 complete_target_initialization.
4103 * dec-thread.c (_initialize_dec_thread): Use
4104 complete_target_initialization.
4105 * ravenscar-thread.c (_initialize_ravenscar): Use
4106 complete_target_initialization.
4107 * sol-thread.c (_initialize_sol_thread): Use
4108 complete_target_initialization.
4109 * spu-multiarch.c (_initialize_spu_multiarch): Use
4110 complete_target_initialization.
4111
7c7b6655
TT
41122013-08-05 Tom Tromey <tromey@redhat.com>
4113
4114 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4115 * ada-lang.c (ada_lookup_simple_minsym): Return
4116 bound_minimal_symbol.
4117 * ada-lang.h (ada_lookup_simple_minsym): Update.
4118 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4119 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4120 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4121 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4122 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4123 * minsyms.c (msymbol_objfile): Remove.
4124 (lookup_minimal_symbol_internal): New function, from
4125 lookup_minimal_symbol.
4126 (lookup_minimal_symbol): Rewrite using
4127 lookup_minimal_symbol_internal.
4128 (lookup_bound_minimal_symbol): New function.
4129 * minsyms.h (msymbol_objfile): Remove.
4130 (lookup_bound_minimal_symbol): Declare.
4131 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4132 * parse.c (write_exp_msymbol): Change parameter to a
4133 bound_minimal_symbol.
4134 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4135 * parser-defs.h (write_exp_msymbol): Update.
4136 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4137 * symfile.c (simple_read_overlay_table): Use
4138 lookup_bound_minimal_symbol.
4139 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4140 (search_symbols): Likewise.
4141 (print_msymbol_info): Take a bound_minimal_symbol argument.
4142 (symtab_symbol_info, rbreak_command): Update.
4143 * symtab.h (struct symbol_search) <msymbol>: Change type
4144 to bound_minimal_symbol.
4145 * valops.c (find_function_in_inferior): Use
4146 lookup_bound_minimal_symbol.
4147 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4148
934b9bac
JK
41492013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4150
4151 Code cleanup.
4152 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4153 to ...
4154 (async_cleanup_sigint_signal_handler): ... this.
4155 (initialize_sigint_signal_handler): Remove declaration.
4156 (handle_remote_sigint): Rename the declaration to ...
4157 (async_handle_remote_sigint): ... this.
4158 (handle_remote_sigint_twice): Rename the declaration to ...
4159 (async_handle_remote_sigint_twice): ... this.
4160 (async_remote_interrupt, async_remote_interrupt_twice)
4161 (remote_interrupt): Remove the declarations.
4162 (remote_interrupt_twice): Rename the declaration ...
4163 (sync_remote_interrupt_twice): ... this.
4164 (sigint_remote_twice_token): Rename the variable to ...
4165 (async_sigint_remote_twice_token): ... this.
4166 (sigint_remote_token): Rename the variable to ...
4167 (async_sigint_remote_token): ... this.
4168 (initialize_sigint_signal_handler): Rename the function to ...
4169 (async_initialize_sigint_signal_handler): ... this. Update the name
4170 inside.
4171 (handle_remote_sigint): Rename the function to ...
4172 (async_handle_remote_sigint): ... this. Update the names inside.
4173 (handle_remote_sigint_twice): Rename the function to ...
4174 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4175 (cleanup_sigint_signal_handler): Rename the function to ...
4176 (async_cleanup_sigint_signal_handler): ... this.
4177 (remote_interrupt): Rename the function to ...
4178 (sync_remote_interrupt): this. Update the names inside.
4179 (remote_interrupt_twice): Rename the function to ...
4180 (sync_remote_interrupt_twice): this. Update the names inside.
4181 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4182 (_initialize_remote): Update the names inside.
4183
3a1115a0
TT
41842013-08-02 Tom Tromey <tromey@redhat.com>
4185
4186 PR symtab/15719:
4187 * breakpoint.c (update_watchpoint, watchpoint_check)
4188 (watch_command_1): Update.
4189 * eval.c (fetch_subexp_value): Add "preserve_errors"
4190 parameter.
4191 * ppc-linux-nat.c (check_condition): Update.
4192 * value.h (fetch_subexp_value): Update.
4193
58b19776
AB
41942013-08-02 Andrew Burgess <aburgess@broadcom.com>
4195
4196 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4197 add_file_handler.
4198
ec94af83
DE
41992013-08-01 Doug Evans <dje@google.com>
4200
7ee85ab1
DE
4201 PR symtab/15691
4202 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4203 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4204 Add assert of sig_entry->dwo_unit == NULL.
4205 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4206 had already been read.
4207 (read_signatured_type): Set per_cu.tu_read.
4208
b846d303
DE
4209 PR symtab/15695
4210 * valops.c (value_struct_elt): Add missing call to check_typedef.
4211 (value_find_oload_method_list): Ditto.
4212
b52109bc
DE
4213 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4214 effectively, struct symbol_search **.
4215 (make_cleanup_free_search_symbols): Change arg to struct
4216 symbol_search **. All callers updated.
4217 (compare_search_syms): Compare symtab file name and block as well.
4218 (search_symbols_equal): New function.
4219 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4220 New args new_head, new_tail. Result is now void. Remove dups after
4221 sorting the symbols.
4222 (search_symbols): Sort all found symbols once, after all have been
4223 found, and remove duplicates. Simplify cleanup tracking of result.
4224 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4225
ec94af83
DE
4226 Further workarounds for binutils/15021.
4227 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4228 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4229 Watch for duplicate symtabs coming from type units.
4230 (compute_symtab_includes): Update call to
4231 recursively_compute_inclusions. Build vector of included symtabs
4232 instead of per_cus.
4233 * symtab.h (symtab_ptr): New typedef.
4234 (DEF_VEC_P (symtab_ptr)): New VEC type.
4235 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4236 instead.
4237
b2ae85cf
AB
42382013-08-01 Andrew Burgess <aburgess@broadcom.com>
4239
4240 * cli/cli-script.c (script_from_file): Remove use of
4241 error_pre_print.
4242 * main.c (captured_main): Remove use of error_pre_print and
4243 quit_pre_print.
4244 * utils.c (error_pre_print, quit_pre_print): Remove.
4245 * utils.h (error_pre_print, quit_pre_print): Likewise.
4246
645eab03
YQ
42472013-08-01 Yao Qi <yao@codesourcery.com>
4248
4249 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4250 with mi_getopt.
4251 (mi_cmd_stack_list_variables): Likewise.
4252
16f92dd4
AB
42532013-07-31 Andrew Burgess <aburgess@broadcom.com>
4254
4255 * exceptions.c (deprecated_throw_reason): Remove.
4256 * exceptions.h (deprecated_throw_reason): Remove.
4257
13f78033
AB
42582013-07-31 Andrew Burgess <aburgess@broadcom.com>
4259
4260 * remote-mips.c (mips_error): Replace use of
4261 deprecated_throw_reason with throw_verror. Use the error message
4262 passed to mips_error as the error message for throw_verror.
4263
039e3c22
AB
42642013-07-31 Andrew Burgess <aburgess@broadcom.com>
4265
4266 * monitor.c (monitor_interrupt_query): Replace use of
4267 deprecated_throw_reason with quit.
4268 * nto-procfs.c (interrupt_query): Likewise.
4269 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4270 * remote-mips.c (mips_kill): Likewise.
4271 * remote.c (interrupt_query): Likewise.
4272
8150913b
AB
42732013-07-31 Andrew Burgess <aburgess@broadcom.com>
4274
4275 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4276 with call to fatal.
4277
de74e63a
YQ
42782013-07-31 Pedro Alves <pedro@codesourcery.com>
4279 Yao Qi <yao@codesourcery.com>
4280
4281 * tracepoint.c (trace_dump_command): Select the current frame.
4282
247f5c4f
DE
42832013-07-30 Doug Evans <dje@google.com>
4284
4285 * dwarf2read.c (process_queue): Add type signature to debug output.
4286
11b4b7cc
AB
42872013-07-30 Andrew Burgess <aburgess@broadcom.com>
4288
4289 * value.c (value_fetch_lazy): Mark optimized out values as such
4290 rather than raising an error.
4291
b0c54aa5
AB
42922013-07-30 Andrew Burgess <aburgess@broadcom.com>
4293
4294 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4295 before checking which bits of the parent, not the child, value are
4296 valid.
4297
97c85fc6
MB
42982013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4299
4300 PR gdb/15715
4301 * top.c: Include "filenames.h".
4302 (set_history_filename): New function.
4303 (init_main): Install it as set hook of the "set history filename"
4304 command.
4305
ff39bb5e
SA
43062013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4307
4308 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4309 attribute parameter.
4310 (dwarf2_const_value_data): Constify struct attribute parameter.
4311 (dwarf2_const_value): Constify struct attribute parameter.
4312 (dwarf2_const_value_attr): Constify struct attribute parameter.
4313 (lookup_die_type): Constify struct attribute parameter.
4314 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4315 (follow_die_ref_or_sig): Constify struct attribute parameter.
4316 (follow_die_ref): Constify struct attribute parameter.
4317 (follow_die_sig): Constify struct attribute parameter.
4318 (get_DW_AT_signature_type): Constify struct attribute parameter.
4319 (get_type_unit_group): Constify struct attribute parameter.
4320 (fill_in_loclist_baton): Constify struct attribute parameter.
4321 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4322 (type_unit_group): Constify struct attribute parameter.
4323
6e5a29e1
SA
43242013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4325
4326 * dwarf2read.c (attr_form_is_block): Make argument const.
4327 (attr_form_is_section_offset): Make argument const.
4328 (attr_form_is_constant): Make argument const.
4329 (attr_form_is_ref): Make argument const.
4330
7771576e
SA
43312013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4332
4333 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4334 All uses updated.
4335 (attr_form_is_ref): Moved below attr_form_is_constant.
4336
a94e8645
DE
43372013-07-29 Doug Evans <dje@google.com>
4338
bb5291d0
DE
4339 * main.c (captured_command_loop): Tweak comment.
4340
b5419e49
DE
4341 * target.c (target_async_permitted_1): Fix comment.
4342
b2d23133
DE
4343 * symtab.c (iterate_over_some_symtabs): Add comment.
4344
a94e8645
DE
4345 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4346
7a60ad40
YQ
43472013-07-27 Yao Qi <yao@codesourcery.com>
4348
4349 * NEWS: Mention that GDBserver now supports hardware
4350 watchpoints on the MIPS GNU/Linux target.
4351
aaee2056
YQ
43522013-07-27 Yao Qi <yao@codesourcery.com>
4353
4354 * Makefile.in (HFILES_NO_SRCDIR): Add
4355 common/mips-linux-watch.h.
4356 (mips-linux-watch.o): New rule.
4357 * common/mips-linux-watch.c: New.
4358 * common/mips-linux-watch.h: New.
4359 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4360 * mips-linux-nat.c: Include mips-linux-watch.h.
4361 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4362 to common/mips-linux-watch.h.
4363 (MAX_DEBUG_REGISTER): Likewise.
4364 (enum pt_watch_style): Likewise.
4365 (struct mips32_watch_regs): Likewise.
4366 (struct mips64_watch_regs): Likewise.
4367 (struct pt_watch_regs): Likewise.
4368 (struct mips_watchpoint): Likewise.
4369 (mips_linux_watch_get_irw_mask): Move to
4370 common/mips-linux-watch.c.
4371 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4372 (mips_linux_watch_get_watchlo): Likewise.
4373 (mips_linux_watch_set_watchlo): Likewise.
4374 (mips_linux_watch_get_watchhi): Likewise.
4375 (mips_linux_watch_set_watchhi): Likewise.
4376 (mips_linux_read_watch_registers): Likewise.
4377 (mips_linux_watch_type_to_irw): Likewise.
4378 (mips_linux_stopped_data_address, fill_mask): Likewise.
4379 (mips_linux_watch_try_one_watch): Likewise.
4380 (mips_linux_watch_populate_regs): Likewise.
4381
b3436450
YQ
43822013-07-27 Yao Qi <yao@codesourcery.com>
4383
4384 * mips-linux-nat.c (get_irw_mask): Rename to ...
4385 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4386 'set' to 'n'. Update function comment. All callers changed.
4387 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4388 function comment. All callers changed.
4389 (get_num_valid): Rename to ...
4390 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4391 'set' to 'n'. Update function comment. All callers changed.
4392 (get_watchlo): Rename to ...
4393 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4394 'set' to 'n'. Update function comment. All callers changed.
4395 (set_watchlo): Rename to ...
4396 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4397 'set' to 'n'. Update function comment. All callers changed.
4398 (get_watchhi): Rename to ...
4399 (mips_linux_watch_get_watchhi): ... this. Update function
4400 comment. All callers changed.
4401 (set_watchhi): Rename to ...
4402 (mips_linux_watch_set_watchhi): ... this. Update function
4403 comment. All callers changed.
4404 (mips_linux_read_watch_registers): Update function comment.
4405 Add new parameters 'lwpid', 'watch_readback', and
4406 'watch_readback_valid'. Update.
4407 (type_to_irw): Rename to ...
4408 (mips_linux_watch_type_to_irw): ... this. Update function
4409 comment. All callers changed.
4410 (fill_mask): Update function comment.
4411 (try_one_watch): Rename to ...
4412 (mips_linux_watch_try_one_watch): ... this. Change the type
4413 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4414 (populate_regs_from_watches): Rename to ...
4415 (mips_linux_watch_populate_regs): ... this. Add parameter
4416 'current_watches'. All callers changed.
4417
9be14b81
YQ
44182013-07-27 Yao Qi <yao@codesourcery.com>
4419
4420 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4421 the code.
4422 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4423 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4424 (struct pt_watch_regs): Likewise.
4425 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4426 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4427 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4428 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4429 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4430
de6f69ad
YQ
44312013-07-27 Yao Qi <yao@codesourcery.com>
4432
4433 * breakpoint.h: Include break-common.h.
4434 (enum target_hw_bp_type): Move to ...
4435 * common/break-common.h: ... here. New.
4436
6f64ef53
PA
44372013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4438
4439 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4440 process group regardless of having tty on stdin.
4441
6107e809
DE
44422013-07-25 Doug Evans <dje@google.com>
4443
4444 * linux-fork.h (detach_fork): Delete.
4445
7fdc1521
TT
44462013-07-25 Tom Tromey <tromey@redhat.com>
4447
4448 PR remote/15256, PR remote/15266:
4449 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4450 * monitor.c (monitor_detach): Use unpush_target.
4451 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4452 * remote-mips.c (mips_detach): Use unpush_target. Don't
4453 call mips_close.
4454 * remote-sim.c (gdbsim_detach): Use unpush_target.
4455 * target.c (pop_target): Remove.
4456 (pop_all_targets_above): Don't call target_close.
4457 (target_close): Assert that the target is unpushed.
4458 * target.h (pop_target): Don't declare.
4459 * tracepoint.c (tfile_open): Use unpush_target.
4460
c22a2b88
TT
44612013-07-25 Tom Tromey <tromey@redhat.com>
4462
4463 * linux-thread-db.c (init_thread_db_ops): Call
4464 complete_target_initialization.
4465 (_initialize_thread_db): Don't call add_target.
4466 * target.c (complete_target_initialization): New function.
4467 (add_target_with_completer): Call it.
4468 * target.h (complete_target_initialization): Declare.
4469
cbb6aada
MK
44702013-07-25 Mark Kettenis <kettenis@gnu.org>
4471
4472 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4473 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4474 (HPPANBSD_SIZEOF_GREGS): New define.
4475 (hppaobsd_supply_gregset): Handle additional registers.
4476 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4477 we provide more registers now.
4478 (hppabsd_supply_gregset): Supply additional registers.
4479 (hppabsd_collect_gregset): Collect additional registers.
4480
17767988
MK
44812013-07-25 Mark Kettenis <kettenis@gnu.org>
4482
4483 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4484 (hppabsd_dwarf2_frame_init_reg): New function.
4485 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4486
fdc8aae8
AB
44872013-07-25 Andrew Burgess <aburgess@broadcom.com>
4488
4489 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4490 'z' format code. Remove error for optimized out values, standard
4491 code will handle these fine.
4492
6fbe845e
AB
44932013-07-25 Andrew Burgess <aburgess@broadcom.com>
4494
4495 * NEWS: Mention new 'z' formatter.
4496 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4497 (_initialize_printcmd): Mention 'z' formatter in help text of the
4498 'x' command.
4499
3373342d
MR
45002013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4501
4502 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4503 formatting.
4504
25f9533e
SDJ
45052013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4506
4507 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4508 interface can evaluate arguments. Fallback to the old mode if it
4509 cannot.
4510 (create_exception_master_breakpoint): Likewise.
4511 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4512 (struct sym_probe_fns elf_probe_fns): Export function above to the
4513 probe interface.
4514 * probe.c (can_evaluate_probe_arguments): New function.
4515 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4516 function pointer.
4517 (can_evaluate_probe_arguments): New function prototype.
4518 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4519 probe interface can evaluate arguments. Fallback to the old mode
4520 if it cannot.
4521 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4522 interface can evaluate arguments. Warning the user if it cannot.
4523 (stap_can_evaluate_probe_arguments): New function.
4524 (struct probe_ops stap_probe_ops): Export function above to the
4525 probe interface.
4526 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4527 New function pointer.
4528
3360c0bf
LM
45292013-07-24 Luis Machado <lgustavo@codesourcery.com>
4530
4531 * Makefile.in (SFILES): Add common/target-common.c.
4532 Add common/target-common.h to headers.
4533 (COMMON_OBS): Add target-common.o.
4534 (target-common.o): New target.
4535 * linux-nat.h (resume_kind): Move to common/target-common.h.
4536 * target.c (target_waitstatus_to_string): Move to
4537 common/target-common.c.
4538 * target.h: Include target-common.h.
4539 (target_waitkind): Move to common/target-common.h.
4540 (target_waitstatus): Likewise.
4541 (TARGET_WNOHANG): Likewise.
4542 * common/target-common.c: New file.
4543 * common/target-common.h: New file.
4544
6656a72d
DE
45452013-07-24 Doug Evans <dje@google.com>
4546
4547 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4548 a warning.
4549
6df81a63
YQ
45502013-07-23 Yao Qi <yao@codesourcery.com>
4551
4552 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4553 parameter 'gdbarch'.
4554 (i386_stack_tramp_frame_sniffer): Caller update.
4555 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4556 parameter 'gdbarch' and 'target'.
4557 (i386_linux_core_read_description): Caller update.
4558 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4559 Likewise.
4560 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4561 declaration.
4562
365156ad
TT
45632013-07-23 Tom Tromey <tromey@redhat.com>
4564
4565 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4566 2013-07-22.
4567
046ac79f
JK
45682013-07-22 Doug Evans <dje@google.com>
4569
4570 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4571 * exec.c (exec_close): Update call to remove_target_sections.
4572 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4573 * solib.c (update_solib_list): Ditto.
4574 (reload_shared_libraries_1): Ditto.
4575 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4576 * target.h (struct target_section): Rename key to owner.
4577 All uses updated.
046ac79f 4578
29b2cc46
TT
45792013-07-22 Tom Tromey <tromey@redhat.com>
4580
4581 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4582
d1160018
TT
45832013-07-22 Tom Tromey <tromey@redhat.com>
4584
4585 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4586 Simplify cleanup handling.
4587
2f324bf6
TT
45882013-07-22 Tom Tromey <tromey@redhat.com>
4589
4590 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4591 on all return paths.
4592
e23b9d6e
UW
45932013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4594
4595 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4596 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4597 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4598
1cf55f60
PM
45992013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4600
4601 * top.c (print_gdb_version): Add help, apropos description and
4602 url to online documentation.
4603
fa876972
HZ
46042013-07-19 Hui Zhu <hui@codesourcery.com>
4605
4606 PR gdb/15692
4607 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4608
1527aea8
YQ
46092013-07-19 Yao Qi <yao@codesourcery.com>
4610
4611 * target.c (update_current_target): Change the default action
4612 of 'to_traceframe_info' from tcomplain to return_zero.
4613 * target.h (struct target_ops) <to_traceframe_info>: Add more
4614 comments.
4615 * valops.c (read_value_memory): Call
4616 traceframe_available_memory unconditionally.
4617
886f230e
YQ
46182013-07-18 Yao Qi <yao@codesourcery.com>
4619
4620 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4621 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4622 symbol without prefix. If found, set its type to
4623 'mst_solib_trampoline'.
4624
16419bae
DE
46252013-07-17 Doug Evans <dje@google.com>
4626
e7045703
DE
4627 * NEWS: Mention "set print raw frame-arguments".
4628 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4629 * stack.c (print_raw_frame_arguments): New static global.
4630 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4631 (_initialize_stack): New command "set/show print raw frame-arguments".
4632 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4633 (set_print_raw, show_print_raw): New functions.
4634 (_initialize_valprint): New prefix command "set/show print raw".
4635 * valprint.h (value_print_options): Improve comments.
4636
453e48a5
DE
4637 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4638 of all *list variables.
4639
16419bae
DE
4640 * gdbcmd.h (togglelist): Delete.
4641 * cli/cli-cmds.c (togglelist): Delete.
4642 (init_cmd_lists): Update.
4643 * cli/cli-cmds.h (togglelist): Delete.
4644
626f2d1c
TT
46452013-07-17 Tom Tromey <tromey@redhat.com>
4646
4647 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4648 dwarf2_per_objfile.
4649
57e6060e
DE
46502013-07-16 Doug Evans <dje@google.com>
4651
4652 * nto-tdep.c (nto_relocate_section_addresses): Update,
4653 target_section.bfd deleted.
4654 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4655 * s390-tdep.c (s390_load): Ditto.
4656 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4657
5ea5559b
AB
46582013-07-16 Andrew Burgess <aburgess@broadcom.com>
4659
4660 * common/format.c (parse_format_string): Add checks for NULL
4661 character before calling strchr.
4662
2b2848e2
DE
46632013-07-16 Doug Evans <dje@google.com>
4664
2c571006
DE
4665 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4666 temp_pathname argument.
4667 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4668 when opening the file fails.
4669
2b2848e2
DE
4670 * target.h (struct target_section): Delete member bfd.
4671 All users updated to use the_bfd_section->owner instead.
4672 * exec.c (add_to_section_table): Assert bfd is expected value.
4673 Remove initialization of target_section.bfd.
4674 (remove_target_sections): Update.
4675 (section_table_available_memory): Update.
4676 (section_table_xfer_memory_partial): Update.
4677 (print_section_info): Update.
4678 (exec_set_section_address): Update.
4679 * record-full.c (record_full_core_xfer_partial): Update.
4680 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4681 * solib-target.c (solib_target_relocate_section_addresses): Update.
4682 * symfile.c (build_section_addr_info_from_section_table): Update.
4683 * target.c (memory_xfer_live_readonly_partial): Update.
4684 (memory_xfer_partial_1): Update.
4685
926bf92d
UW
46862013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4687
4688 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4689 now available for embedded (BookE) and server (BookS) processors,
4690 correct mentions of 'booke' and adjust comments accordingly in order to
4691 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4692 (have_ptrace_booke_interface): Rename function and variable
4693 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4694 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4695 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4696 'hwdebug_point_cmp'. Update all uses.
4697 (booke_find_thread_points_by_tid): Rename function
4698 'booke_find_thread_points_by_tid' to
4699 'hwdebug_find_thread_points_by_tid'. Update all uses.
4700 (booke_insert_point): Rename function 'booke_insert_point' to
4701 'hwdebug_insert_point'. Update all uses.
4702 (booke_remove_point): Rename function 'booke_remove_point' to
4703 'hwdebug_remove_point'. Update all uses.
4704
d929bc19
MR
47052013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4706
4707 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4708 numbers with enum values.
4709
054e8d9e
AA
47102013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4711
4712 PR threads/13217
4713 * thread.c (thread_apply_all_command): Check for valid threads
4714 and thread count.
4715 (thread_array_cleanup): New struct.
4716 (set_thread_refcount): New function.
4717
cf006359
AB
47182013-07-11 Andrew Burgess <aburgess@broadcom.com>
4719
4720 * infcmd.c (default_print_one_register_info): Reuse function
4721 print_hex_chars.
4722
94e36acc
TT
47232013-07-10 Tom Tromey <tromey@redhat.com>
4724
4725 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4726 (ada-exp.o): New target.
4727
915dd369
SDJ
47282013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4729
4730 * mt-tdep.c (mt_registers_info): Call
4731 get_no_prettyformat_print_options instead of
4732 get_raw_print_options (regression by last patch from Doug
4733 Evans).
4734
eca07816
JB
47352013-07-09 Pedro Alves <palves@redhat.com>
4736
4737 Checked in by Joel Brobecker <brobecker@adacore.com>.
4738 * ada-lang.c (coerce_unspec_val_to_type): Use
4739 value_optimized_out_const.
4740 * value.c (value_optimized_out_const): New function.
4741 * value.h (value_optimized_out_const): New declaration.
4742
2a998fc0
DE
47432013-07-09 Doug Evans <dje@google.com>
4744
4745 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4746 Enum values rename as well. All uses updated.
4747 * valprint.h (value_print_options): Rename member pretty to
4748 pretty format. Rename member prettyprint_arrays to
4749 prettyformat_arrays. Rename member prettyprint_structs to
4750 prettyformat_structs. All uses updated.
4751 (get_no_prettyformat_print_options): Renamed from
4752 get_raw_print_options.
4753 * valprint.c (get_no_prettyformat_print_options): Renamed from
4754 get_raw_print_options. All callers updated.
4755 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4756 All callers updated.
4757 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4758 All callers updated.
4759 (_initialize_valprint): Improve help text for "set print pretty" and
4760 "set print arrays".
4761
466c1fca
AB
47622013-07-09 Andrew Burgess <aburgess@broadcom.com>
4763
4764 * value.c (value_bits_valid): Revert previous change, and change
4765 by Pedro on 2013-07-04, due to regressions in
4766 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4767
ad0f0303
AB
47682013-07-08 Andrew Burgess <aburgess@broadcom.com>
4769 Pedro Alves <palves@redhat.com>
4770
4771 * value.c (value_bits_valid): If the value is not lval_computed
4772 or has no check validity handler then the answer is the
4773 optimized_out flag, otherwise defer to the handler.
4774
b187bec1
EZ
47752013-07-06 Eli Zaretskii <eliz@gnu.org>
4776
48d1d6f5
EZ
4777 * top.c (print_gdb_configuration): Explain in output of
4778 --configuration what does "relocatable" mean.
4779
b187bec1
EZ
4780 * main.c (print_gdb_help): Regroup options in the --help text.
4781 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4782 the relevant discussions.
4783
52d361e1
YQ
47842013-07-06 Yao Qi <yao@codesourcery.com>
4785
4786 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4787 Remove parameter 'lsal'.
4788 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4789 to inner block. Caller update.
4790 (base_breakpoint_create_breakpoints_sal): Update.
4791 (bkpt_create_breakpoints_sal): Likewise.
4792 (tracepoint_create_breakpoints_sal): Likewise.
4793 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4794 element 0 of vector 'canonical->sals'.
4795
e1ec1b42
LM
47962013-07-05 Luis Machado <lgustavo@codesourcery.com>
4797
4798 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4799 register number instead of the pseudo register one.
4800 (rs6000_dwarf2_reg_to_regnum): Likewise.
4801
7195e6f0
PA
48022013-07-04 Pedro Alves <palves@redhat.com>
4803
4804 * findvar.c (value_of_register): Use allocate_optimized_out_value
4805 if the register has been optimized out, instead of
4806 set_value_optimized_out.
4807 * frame-unwind.c (frame_unwind_got_optimized): Use
4808 allocate_optimized_out_value.
4809
58722cac
PA
48102013-07-04 Pedro Alves <palves@redhat.com>
4811
4812 * value.c (value_bits_valid): If the value is not lval_computed,
4813 or doesn't have a check_validity hook, assume the value is entirely
4814 valid.
4815
691a26f5
AB
48162013-07-04 Andrew Burgess <aburgess@broadcom.com>
4817
4818 * stack.c (read_frame_arg): No longer fetch lazy values.
4819 * value.c (value_optimized_out): If the value is not already
4820 marked optimized out, and is lazy then fetch it.
4821 (value_primitive_field): Move optimized out check to later in the
4822 function, after we have loaded any lazy values.
4823 (value_fetch_lazy): Use optimized out flag directly rather than
4824 calling optimized_out method.
4825
a58e2656
AB
48262013-07-04 Andrew Burgess <aburgess@broadcom.com>
4827
4828 * valops.c: Don't include "user-regs.h".
4829 (value_fetch_lazy): Moved to value.c.
4830 * value.c: Include "user-regs.h".
4831 (value_fetch_lazy): Moved from valops.c.
4832
bd885420
YQ
48332013-07-04 Yao Qi <yao@codesourcery.com>
4834
4835 Revert:
4836 2013-06-27 Yao Qi <yao@codesourcery.com>
4837
4838 * common/create-version.sh: Update comments. Handle the case
4839 that TARGET_ALIAS is empty.
4840
17ef446e
PA
48412013-07-03 Pedro Alves <palves@redhat.com>
4842
4843 * Makefile.in (config.status): Depend on development.sh.
4844 (aclocal_m4_deps): Add libmcheck.m4.
4845 * acinclude.m4: Include libmcheck.m4.
4846 * configure.ac: Source development.sh instead of setting
4847 'development' here. --enable-libmcheck/--disable-libmcheck code
4848 factored out to GDB_AC_LIBMCHECK. Run it.
4849 * development.sh: New file.
4850 * libmcheck.m4: New file.
4851 * configure: Regenerate.
4852
ac6dd50f
TT
48532013-07-02 Tom Tromey <tromey@redhat.com>
4854
4855 * contrib/ari/update-web-ari.sh: Update for version.in change.
4856
bd1df410
TT
48572013-07-02 Tom Tromey <tromey@redhat.com>
4858
4859 * common/ptid.h: Comment fixes.
4860
4db1a1dc
TT
48612013-07-01 Tom Tromey <tromey@redhat.com>
4862
4863 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4864 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4865 (dwarf2_read_index, create_all_comp_units): Update.
4866
dd9aa048
TT
48672013-07-01 Tom Tromey <tromey@redhat.com>
4868
4869 * configure.ac (build_warnings): Add -Wold-style-definition.
4870 * configure: Rebuild.
4871 * machoread.c (_initialize_machoread): Use "(void)".
4872 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4873 use "(void)".
4874
44d100c3
TT
48752013-07-01 Tom Tromey <tromey@redhat.com>
4876
4877 * configure.ac (build_warnings): Add -Wold-style-declaration.
4878 * configure: Rebuild.
4879 * dsrec.c (make_srec): Use "static const", not "const static".
4880 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4881 not "const static".
4882 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4883 Use "static const", not "const static".
4884 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4885 not "const static".
4886 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4887 not "const static".
4888 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4889 not "const static".
4890 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4891 not "const static".
4892 (v850_dbtrap_breakpoint_from_pc): Likewise.
4893 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4894 not "const static".
4895
2945b807
TT
48962013-07-01 Tom Tromey <tromey@redhat.com>
4897
4898 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4899 * configure: Rebuild.
4900
d8d2a3ee
PA
49012013-07-01 Pedro Alves <palves@redhat.com>
4902
4903 * defs.h: Include "pathmax.h".
4904 * utils.c: Don't include sys/param.h.
4905 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4906 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4907 instead of MAXPATHLEN.
4908 * solib-sunos.c: Don't include sys/param.h.
4909 * xcoffread.c: Don't include sys/param.h.
4910 * bsd-kvm.c: Don't include sys/param.h.
4911 * darwin-nat.c: Don't include sys/param.h.
4912 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4913 * darwin-nat-info.c: Don't include sys/param.h.
4914 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4915 MAXPATHLEN.
4916 * i386obsd-nat.c: Don't include sys/param.h.
4917 * inf-child.c: Don't include sys/param.h.
4918 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4919 * linux-fork.c: Don't include sys/param.h.
4920 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4921 * linux-nat.c: Don't include sys/param.h.
4922 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4923 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4924 * m68klinux-nat.c: Don't include sys/param.h.
4925 * nbsd-nat.c: Don't include sys/param.h.
4926 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4927 * ppc-linux-nat.c: Don't include sys/param.h.
4928 * rs6000-nat.c: Don't include sys/param.h.
4929 * spu-linux-nat.c. Don't include sys/param.h.
4930 * windows-nat.c: Don't include sys/param.h.
4931 * xtensa-linux-nat.c: Don't include sys/param.h.
4932 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4933
38ec2207
PA
49342013-07-01 Pedro Alves <palves@redhat.com>
4935
4936 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4937 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4938 * gnulib/aclocal.m4: Regenerate.
4939 * gnulib/config.in: Regenerate.
4940 * gnulib/configure: Regenerate.
4941 * gnulib/import/pathmax.h: New file.
4942 * gnulib/import/Makefile.am: Regenerate.
4943 * gnulib/import/Makefile.in: Regenerate.
4944 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4945 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4946 * gnulib/import/m4/pathmax.m4: New file.
4947
e655c1a2
PA
49482013-07-01 Pedro Alves <palves@redhat.com>
4949
4950 * configure.ac (GDBINIT): Define, depending on host.
4951 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4952 * top.c (PATH_MAX): Delete fallback definition.
4953 (GDBINIT_FILENAME): Delete.
4954 (gdbinit): Reimplement as const char array set to the GDBINIT
4955 string constant.
4956 * top.h (gdbinit): Make const.
4957 * configure, config.in: Regenerate.
4958
50dd9793
PA
49592013-07-01 Pedro Alves <palves@redhat.com>
4960
4961 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4962 * cli/cli-cmds.h (source_script): Likewise.
4963 * exceptions.c (catch_command_errors_const): New function.
4964 * exceptions.h (catch_command_errors_const): Declare.
4965 * main.c (get_init_files): Make parameters const, and adjust.
4966 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4967 'local_gdbinit' locals const. Adjust to use
4968 catch_command_errors_const.
4969 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4970 'local_gdbinit' locals const.
4971
bc7dea8d
PA
49722013-07-01 Pedro Alves <palves@redhat.com>
4973
4974 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4975 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4976 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4977 <unistd.h>.
4978
8839a007
PA
49792013-07-01 Pedro Alves <palves@redhat.com>
4980
4981 Import the "unistd" gnulib module.
4982 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4983 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4984 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4985 import/m4/unistd_h.m4.
4986 * gnulib/aclocal.m4: Renenerate.
4987 * gnulib/config.in: Renenerate.
4988 * gnulib/configure: Renenerate.
4989 * gnulib/import/Makefile.am: Renenerate.
4990 * gnulib/import/Makefile.in: Renenerate.
4991 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4992 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4993 * gnulib/import/m4/off_t.m4: New file.
4994 * gnulib/import/m4/ssize_t.m4: New file.
4995 * gnulib/import/m4/sys_types_h.m4: New file.
4996 * gnulib/import/m4/unistd_h.m4: New file.
4997 * gnulib/import/sys_types.in.h: New file.
4998 * gnulib/import/unistd.c: New file.
4999 * gnulib/import/unistd.in.h: New file.
5000
8c0da261
PA
50012013-07-01 Pedro Alves <palves@redhat.com>
5002
5003 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5004 defined instead of checking HAVE_UNISTD_H.
5005
3574124b
PA
50062013-07-01 Pedro Alves <palves@redhat.com>
5007
5008 Reimport gnulib from scratch.
5009 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5010 import/m4/onceonly.m4.
5011 * gnulib/aclocal.m4: Renegerate.
5012 * gnulib/config.in: Renegerate.
5013 * gnulib/configure: Renegerate.
5014 * gnulib/import/Makefile.in: Renegerate.
5015 * gnulib/import/extra/update-copyright: Renegerate.
5016 * gnulib/import/m4/onceonly.m4: Delete.
5017
702dc4fd
PA
50182013-07-01 Pedro Alves <palves@redhat.com>
5019
5020 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5021
47e1ce27
JK
50222013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5023
5024 Code cleanup.
5025 * remote.c (async_remote_interrupt_twice): Make it static.
5026 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5027
e82839d4
SDJ
50282013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5029
5030 * ia64-linux-tdep.c: Include <ctype.h>.
5031 (ia64_linux_stap_is_single_operand): New function.
5032 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5033
d6c2da54
TT
50342013-06-28 Tom Tromey <tromey@redhat.com>
5035
5036 * Makefile.in (version.c): Use version.in, not
5037 common/version.in.
5038 * common/create-version.sh: Likewise.
5039 * common/version.in: Move...
5040 * version.in: ...here.
5041
74da6f00
PA
50422013-06-28 Pedro Alves <palves@redhat.com>
5043
5044 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5045 here.
5046 * utils.h (pagination_enabled): Declare.
5047
d32dc48e
PA
50482013-06-28 Pedro Alves <palves@redhat.com>
5049
5050 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5051 Move higher up in file.
5052
0edd9e3b
TT
50532013-06-28 Tom Tromey <tromey@redhat.com>
5054
5055 * tracepoint.c (deprecated_readline_begin_hook)
5056 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5057 declare.
5058
4eb59108
PA
50592013-06-28 Pedro Alves <palves@redhat.com>
5060
5061 PR tui/14880
5062 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5063 checking if they're available.
5064 * value.c (value_available_contents_eq): Change comment.
5065 * value.h (value_available_contents_eq): Expand comment.
5066
97b17156
TT
50672013-06-27 Tom Tromey <tromey@redhat.com>
5068
5069 * target.c (find_run_target): Remove.
5070 * target.h (find_run_target): Remove.
5071
6a3bfc5c
TT
50722013-06-27 Tom Tromey <tromey@redhat.com>
5073
5074 * corelow.c (core_gdbarch): Now static.
5075
c9ef825d
TT
50762013-06-27 Tom Tromey <tromey@redhat.com>
5077
5078 * target.c (target_struct_index): Remove.
5079
e5823f1c
PA
50802013-06-27 Pedro Alves <palves@redhat.com>
5081
5082 * infrun.c: Remove comment describing the 'stepping over runtime
5083 loader dynamic symbol resolution code' mechanism; moved to
5084 gdbint.texinfo.
5085
97f8dd09
PA
50862013-06-27 Pedro Alves <palves@redhat.com>
5087
5088 * exceptions.c (catch_command_errors): Remove spurious space.
5089 * exceptions.h (catch_command_errors): Second parameter is "arg",
5090 not "command".
5091
02b1871e
YQ
50922013-06-27 Yao Qi <yao@codesourcery.com>
5093
5094 * common/create-version.sh: Update comments. Handle the case
5095 that TARGET_ALIAS is empty.
5096
bb1b1cf1
PA
50972013-06-26 Pedro Alves <palves@redhat.com>
5098
5099 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5100 comment.
5101
7b624e71
PA
51022013-06-26 Pedro Alves <palves@redhat.com>
5103
5104 * infrun.c: Update comments on stepping over runtime loader
5105 dynamic symbol resolution code.
5106
74e5a346
SDJ
51072013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5108
5109 * ax-gdb.h (union exp_element): Forward declare.
5110 * parser-defs.h: Include expression.h.
5111
a2fb2cee
MR
51122013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5113
5114 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5115
cdba14e0
DK
51162013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5117
5118 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5119
f30aa5af
DK
51202013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5121
5122 Fix trace-status to output proper start-time and stop-time.
5123 * tracepoint.c (trace_status_command): Fix type of printf arg to
5124 prevent improper type conversion.
5125 (trace_status_mi): Likewise.
5126
1aee363c
MR
51272013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5128
5129 * mips-tdep.c (mips_next_pc): Fix a typo.
5130
3356937a
MR
51312013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5132
5133 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5134
dc673c81
YQ
51352013-06-26 Pedro Alves <pedro@codesourcery.com>
5136 Yao Qi <yao@codesourcery.com>
5137
5138 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5139 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5140 * mi/mi-main.c (print_variable_or_computed): New function.
5141 (mi_cmd_trace_frame_collected): New function.
5142 * tracepoint.c (find_trace_state_variable_by_number): New.
5143 (struct traceframe_info): Move to tracepoint.h
5144 (struct collection_list): Likewise.
5145 (do_collect_symbol): Include locals and arguments in the
5146 collected variables list.
5147 (clear_collection_list): Clear wholly collected variables list
5148 and computed variables list.
5149 (append_exp): New function.
5150 (encode_actions_1): Include variables in the wholly
5151 collected variables list. Include memory ranges and
5152 full-fledged expressions in the computed expressions list.
5153 (encode_actions): Move some code to ...
5154 Return the cleanup chain.
5155 (encode_actions_rsp): ... here. New function.
5156 (get_traceframe_location, get_traceframe_info): Remove static.
5157 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5158 (struct collection_list): Moved from tracepoint.c. Add two
5159 new fields 'wholly_collected' and 'computed'.
5160 (find_trace_state_variable_by_number): Declare.
5161 (encode_actions): Adjust declaration.
5162 (encode_actions_rsp): Declare.
5163 (get_traceframe_info, get_traceframe_location): Declare.
5164
5165 * NEWS: Mention new MI command -trace-frame-collected.
5166
28a93511
YQ
51672013-06-26 Pedro Alves <pedro@codesourcery.com>
5168 Yao Qi <yao@codesourcery.com>
5169
5170 * ctf.c (ctf_traceframe_info): Push trace state variables
5171 present in the trace data into the traceframe info object.
5172 * breakpoint.c (DEF_VEC_I): Remove.
5173 * common/filestuff.c (DEF_VEC_I): Likewise.
5174 * dwarf2loc.c (DEF_VEC_I): Likewise.
5175 * mi/mi-main.c (DEF_VEC_I): Likewise.
5176 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5177 * features/traceframe-info.dtd: Add tvar element and its
5178 attributes.
5179 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5180 (build_traceframe_info): Push trace state variables present in
5181 the trace data into the traceframe info object.
5182 (traceframe_info_start_tvar): New function.
5183 (tvar_attributes): New.
5184 (traceframe_info_children): Add "tvar" element.
5185 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5186
5187 * NEWS: Mention the change in GDB and GDBserver.
5188
ddacd3c8
YQ
51892013-06-26 Pedro Alves <pedro@codesourcery.com>
5190 Yao Qi <yao@codesourcery.com>
5191
5192 * tracepoint.c (trace_dump_command): Move code to ...
5193 (get_traceframe_location): ... here. New.
5194
05796b35
YQ
51952013-06-26 Pedro Alves <pedro@codesourcery.com>
5196 Yao Qi <yao@codesourcery.com>
5197
5198 * tracepoint.c (trace_dump_command): GDB emits an error
5199 instead of a warning when a traceframe is not selected.
5200
cbfa3b61
YQ
52012013-06-26 Pedro Alves <pedro@codesourcery.com>
5202 Yao Qi <yao@codesourcery.com>
5203
5204 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5205 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5206 in collection_list.
5207 (do_clear_collection_list, init_collection_list): New.
5208 (encode_actions): Add local variables 'tracepoint_list' and
5209 'stepping_list'. Call init_collection_list and make cleanup
5210 which calls do_clear_collection_list. Don't call
5211 clear_collection_list.
5212 (_initialize_tracepoint): Delete references to
5213 'tracepoint_list' and 'stepping_list'.
5214
6e2048d3
TT
52152013-06-25 Tom Tromey <tromey@redhat.com>
5216
5217 * common/create-version.sh (date): Use "$", not "$$" in sed
5218 expression.
5219
42059f0e
KB
52202013-06-25 Kevin Buettner <kevinb@redhat.com>
5221
5222 * NEWS (New targets): Add entry for TI MSP430.
5223
a0743c90
YQ
52242013-06-25 Yao Qi <yao@codesourcery.com>
5225
5226 * remote.c (remote_start_remote): Move code to upload tsv
5227 earlier.
5228
9d6e6e84
HZ
52292013-06-25 Yao Qi <yao@codesourcery.com>
5230 Hui Zhu <hui@codesourcery.com>
5231 Pedro Alves <palves@redhat.com>
5232
5233 PR breakpoints/15075
5234 PR breakpoints/15434
5235 * breakpoint.c (bpstat_stop_status): Call
5236 b->ops->after_condition_true.
5237 (update_dprintf_command_list): Don't append "continue" command
5238 to the command list of dprintf breakpoint.
5239 (base_breakpoint_after_condition_true): New function.
5240 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5241 (dprintf_after_condition_true): New function.
5242 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5243 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5244
586cf749
KB
52452013-06-24 Kevin Buettner <kevinb@redhat.com>
5246
5247 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5248 (ALLDEPFILES): Add msp430-tdep.c.
5249 * configure.tgt (msp430*-*-elf): New target.
5250 * msp430-tdep.c: New file.
5251
1bbce132
MR
52522013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5253
5254 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5255 microMIPS synthetic symbols.
5256
3e5d3a5a
MR
52572013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5258
5259 * objfiles.h (pc_in_section): New prototype.
5260 (in_plt_section): Remove name argument, replace prototype with
5261 static inline function.
5262 * mips-tdep.h: Include "objfiles.h".
5263 (in_mips_stubs_section): New function.
5264 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5265 in_solib_call_trampoline member.
5266 (hppa_in_solib_call_trampoline): Remove name argument.
5267 * objfiles.c (pc_in_section): New function.
5268 (in_plt_section): Remove function.
5269 * mips-linux-tdep.c: Include "objfiles.h".
5270 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5271 name argument. Return 1 rather than the low 16-bit halfword of
5272 any instruction examined.
5273 (mips_linux_in_dynsym_resolve_code): Update
5274 mips_linux_in_dynsym_stub call accordingly.
5275 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5276 rather than an equivalent hand-coded sequence.
5277 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5278 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5279 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5280 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5281 in_opd_section.
5282 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5283 on call to tdep->in_solib_call_trampoline.
5284 (hppa_in_solib_call_trampoline): Remove name argument, update
5285 according to in_plt_section change.
5286 (hppa_skip_trampoline_code): Update according to in_plt_section
5287 change.
5288 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5289 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5290 Likewise.
5291 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5292 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5293 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5294 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5295 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5296 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5297 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5298 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5299 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5300 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5301 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5302 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5303 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5304
b9b26a16
JB
53052013-06-24 Joel Brobecker <brobecker@adacore.com>
5306
5307 * common/create-version.sh: Fix expansion of $host_alias
5308 and $target_alias in generation of HOST_NAME and TARGET_NAME
5309 (resp.).
5310
01208463
TT
53112013-06-24 Tom Tromey <tromey@redhat.com>
5312
5313 * common/create-version.sh: New file.
5314 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5315 create-version.sh.
5316 (HFILES_NO_SRCDIR): Use common/version.h.
5317 * version.in: Move to ...
5318 * common/version.in: ... here. Replace date with "DATE".
5319 * version.h: Move to ...
5320 * common/version.h: ... here.
5321
bb6b9a5e
JB
53222013-06-21 Joel Brobecker <brobecker@adacore.com>
5323
5324 * gdb/gnulib/Makefile.in: Update date in copyright header.
5325 * gdb/gnulib/configure.ac: Ditto.
5326 * gdb/gnulib/update-gnulib.sh: Ditto.
5327
c3b18ee7
JB
53282013-06-21 Joel Brobecker <brobecker@adacore.com>
5329
5330 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5331 "gdb/gnulib/import".
5332
85d3b769
WN
53332013-06-21 Will Newton <will.newton@linaro.org>
5334
5335 * doublest.c (ldfrexp): Remove function.
5336 (convert_doublest_to_floatformat): Call frexpl instead of
5337 ldfrexp.
5338
88b48903
WN
53392013-06-21 Will Newton <will.newton@linaro.org>
5340
5341 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5342 * gnulib/aclocal.m4: Regenerate.
5343 * gnulib/config.in: Regenerate.
5344 * gnulib/configure: Regenerate.
5345 * gnulib/import/Makefile.am: Update.
5346 * gnulib/import/Makefile.in: Update.
5347 * gnulib/import/m4/gnulib-cache.m4: Update.
5348 * gnulib/import/m4/gnulib-comp.m4: Update.
5349 * gnulib/import/float+.h: Import.
5350 * gnulib/import/float.c: Import.
5351 * gnulib/import/float.in.h: Import.
5352 * gnulib/import/fpucw.h: Import.
5353 * gnulib/import/frexp.c: Import.
5354 * gnulib/import/frexpl.c: Import.
5355 * gnulib/import/isnan.c: Import.
5356 * gnulib/import/isnand-nolibm.h: Import.
5357 * gnulib/import/isnand.c: Import.
5358 * gnulib/import/isnanl-nolibm.h: Import.
5359 * gnulib/import/isnanl.c: Import.
5360 * gnulib/import/itold.c: Import.
5361 * gnulib/import/m4/exponentd.m4: Import.
5362 * gnulib/import/m4/exponentl.m4: Import.
5363 * gnulib/import/m4/float_h.m4: Import.
5364 * gnulib/import/m4/fpieee.m4: Import.
5365 * gnulib/import/m4/frexp.m4: Import.
5366 * gnulib/import/m4/frexpl.m4: Import.
5367 * gnulib/import/m4/isnand.m4: Import.
5368 * gnulib/import/m4/isnanl.m4: Import.
5369 * gnulib/import/m4/math_h.m4: Import.
5370 * gnulib/import/math.c: Import.
5371 * gnulib/import/math.in.h: Import.
5372
4353c9e6
JK
53732013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5374
5375 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5376 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5377 signature_INTEL_edx comparisons.
5378
e3e06db3
DE
53792013-06-20 Doug Evans <dje@google.com>
5380
6ac97d4c
DE
5381 symtab/15652
5382 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5383 All callers updated.
5384 (open_dwp_file): If we can't find the dwp file, search the basename
5385 in debug-file-directory.
5386
93417882
DE
5387 * dwarf2read.c (struct dwp_file): Fix comment.
5388 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5389
e3e06db3
DE
5390 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5391 better.
5392
0878d0fa
YQ
53932013-06-20 Yao Qi <yao@codesourcery.com>
5394
5395 * breakpoint.c (create_breakpoint): Fix code indentation.
5396
023fa29b
YQ
53972013-06-20 Yao Qi <yao@codesourcery.com>
5398
5399 * breakpoint.c (create_breakpoints_sal_default): Remove
5400 parameter 'lsal'. Update declaration.
5401 (bkpt_create_breakpoints_sal): Caller update.
5402 (tracepoint_create_breakpoints_sal): Likewise.
5403
c898adb7
YQ
54042013-06-20 Pedro Alves <pedro@codesourcery.com>
5405 Yao Qi <yao@codesourcery.com>
5406
5407 * NEWS: Mention the new option '--skip-unavailable' of command
5408 -data-list-register-values.
5409 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5410 --skip-unavailable option. Adjust to use output_register.
5411 (output_register): Add new 'skip_unavailable' parameter.
5412 Handle it.
5413
4d157a3d
MF
54142013-06-19 Mike Frysinger <vapier@gentoo.org>
5415
5416 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5417 common/i386-gcc-cpuid.h.
5418 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5419 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5420 Copy the latest version from upstream gcc.
5421 * common/linux-btrace.c: Include i386-cpuid.h.
5422 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5423 call to i386_cpuid.
5424 (cpu_supports_btrace): Likewise.
5425 * go32-nat.c: Include i386-cpuid.h.
5426 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5427
1ce4db08
DE
54282013-06-19 Doug Evans <dje@google.com>
5429
5430 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5431 (get_section_index): Ditto.
5432
0e4777df
TT
54332013-06-19 Tom Tromey <tromey@redhat.com>
5434
5435 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5436 "dprintf" help.
5437
3190f0c6
DE
54382013-06-18 Doug Evans <dje@google.com>
5439
5440 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5441 before using it.
5442 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5443 Move test of cu_index closer to use. Print complaint if cu_index
5444 is bad.
5445
8b89a20a
JB
54462013-06-18 Joel Brobecker <brobecker@adacore.com>
5447
5448 * machoread.c (oso_vector): Delete this global.
5449 (macho_register_oso): Add new parameter "oso_vector_ptr".
5450 Use it instead of the "oso_vector" global.
5451 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5452 (macho_symfile_read): Use a local oso_vector, to be free'ed
5453 at the end of this function, in place of the old "oso_vector"
5454 global. Update various function calls accordingly. Use one
5455 single cleanup chain for the entire function.
5456
59b0c7c1
JB
54572013-06-18 Joel Brobecker <brobecker@adacore.com>
5458
937c708c 5459 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5460 DWARF2_PER_OBJFILE by uses of DATA instead.
5461
427cd150
TT
54622013-06-18 Tom Tromey <tromey@redhat.com>
5463
5464 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5465 argument.
5466 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5467 Special case signals other than GDB_SIGNAL_TRAP.
5468 (explains_signal_watchpoint): New function.
5469 (base_breakpoint_explains_signal): Add 'sig' argument.
5470 (initialize_breakpoint_ops): Set 'explains_signal' method for
5471 watchpoints.
5472 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5473 signal argument.
5474 (bpstat_explains_signal): Likewise.
5475 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5476
2d57700b
TT
54772013-06-18 Tom Tromey <tromey@redhat.com>
5478
5479 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5480
ac475191
TT
54812013-06-18 Tom Tromey <tromey@redhat.com>
5482
5483 * python/python.c (finish_python_initialization): Decref
5484 'pythondir' on failure path as well.
5485
5bd1ef56
TT
54862013-06-18 Tom Tromey <tromey@redhat.com>
5487
5488 PR symtab/15391:
5489 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5490 after taking bits_to_skip into account. Sign extend byte_offset.
5491 * utils.h (gdb_sign_extend): Declare.
5492 * utils.c (gdb_sign_extend): New function.
5493
92fac807
JK
54942013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5495
5496 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5497
2d503272
PM
54982013-06-17 Pierre Muller <muller@sourceware.org>
5499
5500 * corelow.c (core_open): Print GDB signal name instead of target
5501 signal number.
5502
6916fd98
MF
55032013-06-17 Mike Frysinger <vapier@gentoo.org>
5504
5505 * .gitignore: Add /gcore.
5506
9c02c129
DE
55072013-06-13 Doug Evans <dje@google.com>
5508
5509 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5510 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5511
d0548fa2
PM
55122013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5513
5514 * stack.c (backtrace_command_1): Fix indentation.
5515
22128028
JB
55162013-06-11 Joel Brobecker <brobecker@adacore.com>
5517
5518 * window-nat.c (thread_rec): Add missing empty line after
5519 local variable declaration.
5520
2ed3e009
JB
55212013-06-11 Joel Brobecker <brobecker@adacore.com>
5522
5523 * windows-nat.c (thread_rec): Revert format used to print
5524 error code returned by SuspendThread from %d back to %u.
5525
0c3d84be
JB
55262013-06-11 Joel Brobecker <brobecker@adacore.com>
5527
5528 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5529 ID in debug trace.
5530 (get_windows_debug_event): Likewise, for all debug traces.
5531
80e88e1a
JB
55322013-06-11 Joel Brobecker <brobecker@adacore.com>
5533
5534 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5535 warning message.
5536
1edebdbf
YQ
55372013-06-08 Pedro Alves <pedro@codesourcery.com>
5538 Yao Qi <yao@codesourcery.com>
5539
5540 * mi/mi-main.c (get_register): Remove declaration.
5541 (output_register): Declare.
5542 (mi_cmd_data_list_register_values): Remove local variable
5543 'tuple_cleanup'. Move some code into output_register.
5544 (get_register): Renamed to ...
5545 (output_register): ... this. Output the register's
5546 "number" ui_out tuple here.
5547
47d48711
PA
55482013-06-07 Pedro Alves <palves@redhat.com>
5549
5550 * darwin-nat.c: Fix formating in copyright header.
5551 * darwin-nat.h: Likewise.
5552 * gnu-nat.c: Likewise.
5553 * machoread.c: Likewise.
5554
3aee8918
PA
55552013-06-07 Pedro Alves <palves@redhat.com>
5556
5f2b57b5 5557 PR server/14823
3aee8918
PA
5558 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5559 static. Output a global target description pointer.
5560 (init_registers_${name}): Adjust to initialize a
5561 target description structure.
5562
fe8400b4
WN
55632013-06-07 Will Newton <will.newton@linaro.org>
5564
5565 * printcmd.c (build_address_symbolic): Call
5566 gdbarch_addr_bits_remove for text minimal symbols.
5567
20df6206
WN
55682013-06-07 Will Newton <will.newton@linaro.org>
5569
5570 * MAINTAINERS: Add myself to Write After Approval.
5571
aef525cb
YQ
55722013-06-07 Yao Qi <yao@codesourcery.com>
5573
5574 * tracepoint.c (start_tracing): Move code to ...
5575 (trace_reset_local_state): ... here. New.
5576 (disconnect_tracing): Don't call set_current_traceframe,
5577 set_tracepoint_num, and set_traceframe_context. Call
5578 trace_reset_local_state instead.
5579 (tfile_close): Call trace_reset_local_state.
5580 * ctf.c (ctf_close): Likewise.
5581 * remote.c (remote_close): Likewise.
5582 * tracepoint.h (trace_reset_local_state): Declare.
5583
d2415c6c
DE
55842013-06-06 Doug Evans <dje@google.com>
5585
5586 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5587 and fix header docs.
5588
69fc87c2
DE
55892013-06-05 Doug Evans <dje@google.com>
5590 Keith Seitz <keiths@redhat.com>
5591
5592 PR 15519
5593 * cp-namespace.c (find_symbol_in_baseclass): Call
5594 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5595 Check result of call to lookup_symbol_static.
5596 Call lookup_static_symbol_aux unconditionally.
5597 Call check_typedef on base types before accessing them.
5598 (cp_lookup_nested_symbol): Fix comment.
5599
a513d1e8
LM
56002013-06-05 Luis Machado <lgustavo@codesourcery.com>
5601
5602 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5603 minimal symbols pointing to function descriptors.
5604
351a6f02
TT
56052013-06-05 Tom Tromey <tromey@redhat.com>
5606
5607 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5608
5e1b953b 56092013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5610 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5611
5612 * remote.c (remote_wait_as): Restore signal handler before returning
5613 when GDB gets a notification.
5614
f9e14852
GB
56152013-06-04 Gary Benson <gbenson@redhat.com>
5616
8445cbf1 5617 PR 2328
f9e14852
GB
5618 * breakpoint.h (handle_solib_event): Moved function declaration
5619 to solib.h.
5620 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5621 (bpstat_stop_status): Pass new argument to handle_solib_event.
5622 * solib.h (update_solib_breakpoints): New function declaration.
5623 (handle_solib_event): Moved function declaration from
5624 breakpoint.h.
5625 * solib.c (update_solib_breakpoints): New function.
5626 (handle_solib_event): Moved function from breakpoint.c.
5627 Updated to call solib_ops->handle_event if not NULL.
5628 * solist.h (target_so_ops): New fields "update_breakpoints" and
5629 "handle_event".
5630 * infrun.c (set_stop_on_solib_events): New function.
5631 (_initialize_infrun): Use the above for "set
5632 stop-on-solib-events".
5633 (handle_inferior_event): Pass new argument to handle_solib_event.
5634 * solib-svr4.c (probe.h): New include.
5635 (svr4_free_library_list): New forward declaration.
5636 (probe_action): New enum.
5637 (probe_info): New struct.
5638 (probe_info): New static variable.
5639 (NUM_PROBES): New definition.
5640 (svr4_info): New fields "using_xfer", "probes_table" and
5641 "solib_list".
5642 (free_probes_table): New function.
5643 (free_solib_list): New function.
5644 (svr4_pspace_data_cleanup): Free probes table and solib list.
5645 (svr4_copy_library_list): New function.
5646 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5647 (svr4_read_so_list): New parameter "prev_lm".
5648 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5649 (svr4_current_sos): New function.
5650 (probe_and_action): New struct.
5651 (hash_probe_and_action): New function.
5652 (equal_probe_and_action): Likewise.
5653 (register_solib_event_probe): Likewise.
5654 (solib_event_probe_at): Likewise.
5655 (solib_event_probe_action): Likewise.
5656 (solist_update_full): Likewise.
5657 (solist_update_incremental): Likewise.
5658 (disable_probes_interface_cleanup): Likewise.
5659 (svr4_handle_solib_event): Likewise.
5660 (svr4_update_solib_event_breakpoint): Likewise.
5661 (svr4_update_solib_event_breakpoints): Likewise.
5662 (svr4_create_solib_event_breakpoints): Likewise.
5663 (enable_break): Free probes table before creating breakpoints.
5664 Use svr4_create_solib_event_breakpoints to create breakpoints.
5665 (svr4_solib_create_inferior_hook): Free the solib list.
5666 (_initialize_svr4_solib): Initialise
5667 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5668
ced63ec0
GB
56692013-06-04 Gary Benson <gbenson@redhat.com>
5670
5671 * target.h (target_ops): New field
5672 "to_augmented_libraries_svr4_read".
5673 (target_augmented_libraries_svr4_read): New macro.
5674 * target.c (update_current_target): Handle
5675 to_augmented_libraries_svr4_read.
5676 * remote.c (remote_state): New field
5677 "augmented_libraries_svr4_read".
5678 (remote_augmented_libraries_svr4_read_feature): New function.
5679 (remote_protocol_features): Add entry for
5680 "augmented-libraries-svr4-read".
5681 (remote_augmented_libraries_svr4_read): New function.
5682 (init_remote_ops): Initialize
5683 remote_ops.to_augmented_libraries_svr4_read.
5684
7f91dbec
GB
56852013-06-04 Gary Benson <gbenson@redhat.com>
5686
5687 * NEWS: Update.
5688
607ece04
GB
56892013-06-04 Gary Benson <gbenson@redhat.com>
5690
5691 * objfiles.h (inhibit_section_map_updates): New function
5692 declaration.
5693 (resume_section_map_updates): Likewise.
5694 (resume_section_map_updates_cleanup): Likewise.
5695 * objfiles.c (objfile_pspace_info): Removed field
5696 "objfiles_changed_p". New fields "new_objfiles_available",
5697 "section_map_dirty" and "inhibit_updates".
5698 (allocate_objfile): Set new_objfiles_available.
5699 (free_objfile): Set section_map_dirty.
5700 (objfile_relocate1): Likewise.
5701 (in_plt_section): Likewise.
5702 (find_pc_section): Update the conditions under which the
5703 section map will be updated.
5704 (inhibit_section_map_updates): New function.
5705 (resume_section_map_updates): Likewise.
5706 (resume_section_map_updates_cleanup): Likewise.
5707
9ee6a5ac
GB
57082013-06-04 Gary Benson <gbenson@redhat.com>
5709
5710 * probe.h (get_probe_argument_count): New declaration.
5711 (evaluate_probe_argument): Likewise.
5712 * probe.c (get_probe_argument_count): New function.
5713 (evaluate_probe_argument): Likewise.
5714 (probe_safe_evaluate_at_pc): Use the above new functions.
5715
845d4708
AM
57162013-06-04 Alan Modra <amodra@gmail.com>
5717
5718 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5719 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5720 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5721 target mem reads on optional insns.
5722 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5723 ppc_insns_match_pattern calls.
5724 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5725 Add match for power7 thread safety insns, and new order of
5726 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5727 invocation in comment, and update rest of comment.
5728 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5729 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5730 (ppc64_standard_linkage2_target): Update insn offsets.
5731 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5732 stubs first. Update calls.
5733
404e278f
YQ
57342013-06-04 Yao Qi <yao@codesourcery.com>
5735
5736 * solib.c (solib_find): Don't need dir separator if path has
5737 drive spec.
5738
f6aea118
JB
57392013-06-03 Joel Brobecker <brobecker@adacore.com>
5740
5741 Revert (indirectly causes a SIGSEGV):
5742 * machoread.c (macho_symfile_read): Assign first cleanup to
5743 'back_to'.
5744
87967e27
YQ
57452013-06-03 Yao Qi <yao@codesourcery.com>
5746
5747 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5748 mi-parse.c. Make them static.
5749 (mi_all_values): Likewise.
5750 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5751 mi_parse_print_values. Make it external.
5752 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5753 Remove the declarations.
5754 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5755 * mi/mi-parse.h (mi_parse_print_values): Declare.
5756 * mi/mi-cmd-stack.c: Include mi-parse.h.
5757 (parse_print_values): Remove
5758 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5759 of parse_print_values.
5760 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5761
3ca73e0c
YQ
57622013-05-31 Pedro Alves <pedro@codesourcery.com>
5763 Yao Qi <yao@codesourcery.com>
5764
5765 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5766 (encode_actions): Move code to ...
5767 (all_tracepoint_actions_and_cleanup): ... here. New.
5768 (trace_dump_command): Likewise.
5769
4e993a19
TT
57702013-05-30 Tom Tromey <tromey@redhat.com>
5771
5772 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5773
e3b76b4f
TT
57742013-05-30 Tom Tromey <tromey@redhat.com>
5775
5776 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5777 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5778 'old_chain' argument. Add 'parser_result' argument.
5779 (gdb_xml_create_parser_and_cleanup): Remove old version.
5780 (gdb_xml_parse_quick): Update.
5781 (xml_process_xincludes): Update.
5782 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5783 declare.
5784
db26349c
TT
57852013-05-30 Tom Tromey <tromey@redhat.com>
5786
5787 * probe.c (collect_probes): Check arguments for NULL before
5788 calling compile_rx_or_error.
5789 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5790 Remove NULL return.
5791
77f9e713
TT
57922013-05-30 Tom Tromey <tromey@redhat.com>
5793
5794 * infrun.c (adjust_pc_after_break): Introduce an outer null
5795 cleanup.
5796
45475de7
TT
57972013-05-30 Tom Tromey <tromey@redhat.com>
5798
5799 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5800
ac5007fd
TT
58012013-05-30 Tom Tromey <tromey@redhat.com>
5802
5803 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5804 for 'old_chain'. Do not check 'head' before processing
5805 cleanups.
5806
cd82eddc
TT
58072013-05-30 Tom Tromey <tromey@redhat.com>
5808
5809 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5810 "cleanup_tuple".
5811
57cee33a
TT
58122013-05-30 Tom Tromey <tromey@redhat.com>
5813
5814 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5815 inner scope. Unconditionally call do_cleanups.
5816
795d915c
TT
58172013-05-30 Tom Tromey <tromey@redhat.com>
5818
5819 * source.c (find_and_open_source): Call do_cleanups.
5820
1fc3cf4a
TT
58212013-05-30 Tom Tromey <tromey@redhat.com>
5822
5823 * linux-thread-db.c (thread_db_load_search): Unconditionally
5824 call do_cleanups.
5825
e35ac9bf
TT
58262013-05-30 Tom Tromey <tromey@redhat.com>
5827
5828 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5829 for 'cleanup'; instead use a later one.
5830
f3300387
TT
58312013-05-30 Tom Tromey <tromey@redhat.com>
5832
5833 * python/py-breakpoint.c (bppy_get_commands): Use
5834 explicit, unconditional return.
5835 * python/py-frame.c (frapy_read_var): Likewise.
5836 * python/python.c (gdbpy_decode_line): Likewise.
5837
c27e16e3
TT
58382013-05-30 Tom Tromey <tromey@redhat.com>
5839
5840 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5841 do_cleanups on all return paths.
5842
5ae85e44
TT
58432013-05-30 Tom Tromey <tromey@redhat.com>
5844
5845 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5846
73b8d9da
TT
58472013-05-30 Tom Tromey <tromey@redhat.com>
5848
5849 * stabsread.c (read_struct_type): Call do_cleanups along
5850 all return paths.
5851
7d266584
MR
58522013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5853
5854 * mips-linux-tdep.c: Adjust formatting throughout.
5855
0f900f54
TT
58562013-05-30 Tom Tromey <tromey@redhat.com>
5857
5858 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5859 along all return paths.
5860
a991ac28
TT
58612013-05-30 Tom Tromey <tromey@redhat.com>
5862
5863 * symfile.c (find_separate_debug_file): Call do_cleanups
5864 along all return paths.
5865
1abaf042
TT
58662013-05-30 Tom Tromey <tromey@redhat.com>
5867
5868 * symtab.c (search_symbols): Introduce a null cleanup for
5869 'retval_chain'.
5870
edefe1da
TT
58712013-05-30 Tom Tromey <tromey@redhat.com>
5872
5873 * python/py-value.c (valpy_binop): Call do_cleanups before
5874 exiting loop.
5875
54f72dcc
TT
58762013-05-30 Tom Tromey <tromey@redhat.com>
5877
5878 * python/py-prettyprint.c (print_children): Remove extra
5879 do_cleanups call.
5880
af1c6971
TT
58812013-05-30 Tom Tromey <tromey@redhat.com>
5882
5883 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5884 all return paths.
5885
b862ce75
TT
58862013-05-30 Tom Tromey <tromey@redhat.com>
5887
5888 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5889 along all return paths.
5890
e12fefc8
TT
58912013-05-30 Tom Tromey <tromey@redhat.com>
5892
5893 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5894 call do_cleanups.
5895
4867f990
TT
58962013-05-30 Tom Tromey <tromey@redhat.com>
5897
5898 * varobj.c (c_value_of_root): Call do_cleanups along all
5899 return paths.
5900
4fd2d6af
TT
59012013-05-30 Tom Tromey <tromey@redhat.com>
5902
5903 * tracepoint.c (trace_dump_command): Unconditionally call
5904 do_cleanups.
5905
752eb8b4
TT
59062013-05-30 Tom Tromey <tromey@redhat.com>
5907
5908 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5909 do_cleanups earlier.
5910
e42d0aa5
TT
59112013-05-30 Tom Tromey <tromey@redhat.com>
5912
5913 * machoread.c (macho_symfile_read): Assign first cleanup to
5914 'back_to'.
5915
4bbc010a
TT
59162013-05-30 Tom Tromey <tromey@redhat.com>
5917
5918 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5919
b9635925
TT
59202013-05-30 Tom Tromey <tromey@redhat.com>
5921
5922 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5923
25f43500
TT
59242013-05-30 Tom Tromey <tromey@redhat.com>
5925
5926 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5927 call discard_cleanups.
5928 (inf_ptrace_attach): Likewise.
5929
d6a2e54a
TT
59302013-05-30 Tom Tromey <tromey@redhat.com>
5931
5932 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5933 return paths.
5934 (mips_initialize): Likewise.
5935 (common_open): Call do_cleanups.
5936
48be7c1b
TT
59372013-05-30 Tom Tromey <tromey@redhat.com>
5938
5939 * utils.c (internal_vproblem): Call do_cleanups.
5940
e61727ab
TT
59412013-05-30 Tom Tromey <tromey@redhat.com>
5942
5943 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5944
b81b921f
TT
59452013-05-30 Tom Tromey <tromey@redhat.com>
5946
5947 * cli/cli-script.c (setup_user_args): Don't return after error.
5948
fe48dfb1
TT
59492013-05-30 Tom Tromey <tromey@redhat.com>
5950
5951 * somread.c (som_symtab_read): Call do_cleanups.
5952
27833de7
TT
59532013-05-30 Tom Tromey <tromey@redhat.com>
5954
5955 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5956
5b3fca71
TT
59572013-05-30 Tom Tromey <tromey@redhat.com>
5958
5959 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5960 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5961 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5962 * source.c (show_substitute_path_command): Call do_cleanups.
5963 (unset_substitute_path_command, set_substitute_path_command):
5964 Likewise.
5965 * symfile.c (load_command): Call do_cleanups.
5966
af83e3f8
TT
59672013-05-30 Tom Tromey <tromey@redhat.com>
5968
5969 * contrib/cleanup_check.py: New file.
5970 * contrib/gcc-with-excheck: Add option parsing.
5971
564eac42
JB
59722013-05-30 Joel Brobecker <brobecker@adacore.com>
5973
5974 * windows-nat.c (windows_delete_thread): Add missing space
5975 in cast expression.
5976
47902076
HAQ
59772013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5978
5979 * inferior.c (top level): Include tilde.h.
5980 (add_inferior_command): Call tilde_expand on the value of 'exec'
5981 argument.
5982
23da373a
YQ
59832013-05-30 Pedro Alves <pedro@codesourcery.com>
5984 Yao Qi <yao@codesourcery.com>
5985
5986 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5987 Caller update.
5988 (encode_actions): Likewise.
5989 * remote.c (remote_download_tracepoint): Caller update.
5990 * tracepoint.h (encode_actions): Update declaration.
5991
a6e6f791
PA
59922013-05-30 Pedro Alves <palves@redhat.com>
5993
5994 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5995 pointer.
5996
36d25514
YQ
59972013-05-30 Yao Qi <yao@codesourcery.com>
5998
5999 * remote.c (remote_check_symbols): Remove unused parameter
6000 'objfile'.
6001 Declaration update.
6002 (remote_start_remote, remote_new_objfile): Caller update.
6003
62a813cc
YQ
60042013-05-30 Yao Qi <yao@codesourcery.com>
6005
6006 * mi/mi-cmds.c (mi_cmds): Define MI command
6007 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6008 DEF_MI_CMD_CLI.
6009
28439a30
PA
60102013-05-29 Pedro Alves <palves@redhat.com>
6011
6012 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6013 (remote_insert_watchpoint, remote_remove_watchpoint)
6014 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6015 (remote_verify_memory, compare_sections_command)
6016 (remote_search_memory): Set the general process/thread on the
6017 remote side.
6018
6ac1c082
PA
60192013-05-29 Pedro Alves <palves@redhat.com>
6020
6021 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6022 (_initialize_aarch64_tdep): Don't call
6023 initialize_tdesc_aarch64_without_fpu.
6024 * features/Makefile (WHICH): Remove reference to
6025 aarch64-without-fpu.
6026 * features/aarch64-without-fpu.c: Delete file.
6027 * regformats/aarch64-without-fpu.dat: Delete file.
6028
a73e3634
YQ
60292013-05-28 Yao Qi <yao@codesourcery.com>
6030
6031 * tracepoint.c (stringify_collection_list): Remove parameter
6032 'string'.
6033 (encode_actions): Caller update. Remove local variables.
6034
c0ea94eb
YQ
60352013-05-24 Yao Qi <yao@codesourcery.com>
6036
6037 * tracepoint.c (TFILE_PID): Remove.
6038 (tfile_open): Don't add thread and inferior.
6039 (tfile_close): Don't set 'inferior_ptid'. Don't call
6040 exit_inferior_silent.
6041 (tfile_thread_alive): Remove.
6042 (init_tfile_ops): Don't set field 'to_thread_alive' of
6043 tfile_ops.
6044
20d7f211
DE
60452013-05-23 Doug Evans <dje@google.com>
6046
6047 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6048
8658d16d
PA
60492013-05-23 Pedro Alves <palves@redhat.com>
6050
6051 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6052 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6053 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6054 Only define if HAVE_SOCKETS is defined.
6055 * configure.ac: Check for sys/socket.h.
6056 * config.in, configure: Regenerate.
6057
21aa081e
PA
60582013-05-23 Pedro Alves <palves@redhat.com>
6059
6060 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6061 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6062 printing uint32_t variables.
6063
c2d6af84
PA
60642013-05-23 Pedro Alves <palves@redhat.com>
6065
6066 * NEWS: Mention GDBserver range stepping support.
6067
c1e36e3e
PA
60682013-05-23 Yao Qi <yao@codesourcery.com>
6069 Pedro Alves <palves@redhat.com>
6070
6071 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6072 field.
6073 * infcmd.c (step_once, until_next_command): Enable range stepping.
6074 * infrun.c (displaced_step_prepare): Disable range stepping.
6075 (resume): Disable range stepping if stepping over a breakpoint or
6076 we have software watchpoints. If range stepping is enabled,
6077 assert the thread is in the stepping range.
6078 (clear_proceed_status_thread): Clear may_range_step.
6079 (handle_inferior_event): Disable range stepping as soon as we know
6080 the thread that hit the event. Re-enable it whenever we're going
6081 to step with a step range.
6082 * remote.c (struct vCont_action_support) <r>: New field.
6083 (use_range_stepping): New global.
6084 (remote_vcont_probe): Handle 'r' action.
6085 (append_resumption): Append an 'r' action if the thread may range
6086 step.
6087 (show_range_stepping): New function.
6088 (set_range_stepping): New function.
6089 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6090 'set range-stepping' and 'show range-stepping' commands.
6091 * NEWS: Mention range stepping, the new vCont;r action, and the
6092 new "set/show range-stepping" commands.
6093
d458bd84
PA
60942013-05-23 Yao Qi <yao@codesourcery.com>
6095 Pedro Alves <palves@redhat.com>
6096
6097 * remote.c (struct vCont_action_support): New struct.
6098 (struct remote_state) <support_vCont_t>: Remove field.
6099 <vCont_actions_support>: New field.
6100 (remote_vcont_probe, remote_stop_ns): Update.
6101
ce4c476a
PA
61022013-05-23 Yao Qi <yao@codesourcery.com>
6103 Pedro Alves <palves@redhat.com>
6104
6105 * gdbthread.h (pc_in_thread_step_range): New declaration.
6106 * thread.c (pc_in_thread_step_range): New function.
6107 * infrun.c (handle_inferior_event): Use it.
6108
ce70887a
JB
61092013-05-23 Joel Brobecker <brobecker@adacore.com>
6110
6111 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6112 of sprintf.
6113
55b87a52
KS
61142013-05-22 Keith Seitz <keiths@redhat.com>
6115
6116 * ada-lang.c (is_known_support_routine): Add explicit free of
6117 'func_name' from find_frame_funname.
6118 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6119 for func_name from find_frame_funname.
6120 * python/py-frame.c (frapy_name): Add explicit free of
6121 'name' from find_frame_funname.
6122 * stack.c (find_frame_funname): Add comment explaining that
6123 funcp must be freed by the caller.
6124 Return copy of symbol names instead of pointers.
6125 (print_frame): Add a cleanup for 'funname' from
6126 find_frame_funname.
6127 * stack.h (find_frame_funname): Remove "const" from
6128 'funname' parameter.
6129
5f2e6b00
TT
61302013-05-22 Tom Tromey <tromey@redhat.com>
6131
6132 PR c++/15401:
6133 * c-valprint.c (c_value_print): Use value_addr for
6134 references. Convert back to reference type with value_ref.
6135
d85c4847
EZ
61362013-05-22 Eli Zaretskii <eliz@gnu.org>
6137
6138 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6139 unloaded DLL, it will be done by handle_solib_event. See
6140 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6141 details.
6142
54eb231c
PM
61432013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6144
6145 * ui-out.c: Create typedef ui_out_level_p and define vector
6146 operations for that type.
6147 (struct ui_out): Use a vector instead of an array.
6148 (current_level): Return level from a vector.
6149 (push_level): Create a level in a vector.
6150 (pop_level): Delete a level in a vector.
6151 (ui_out_new): Create initial level zero level, and store in a
6152 vector.
6153 (ui_out_destroy): Add vector cleanup.
6154
ac90359c
PA
61552013-05-22 Pedro Alves <palves@redhat.com>
6156
6157 * python/python-internal.h (gdb_Py_DECREF): Tag with
6158 "ARI: editCase function".
6159
6dcc1893
PP
61602013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6161
6162 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6163
c8c735b9
PA
61642013-05-21 Pedro Alves <palves@redhat.com>
6165
6166 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6167 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6168 * python/py-utils.c (py_decref): Don't check for NULL before
6169 calling Py_DECREF.
6170
1915daeb
PA
61712013-05-21 Pedro Alves <palves@redhat.com>
6172
6173 * python/py-utils.c (py_decref): Remove extra braces.
6174 (gdb_pymodule_addobject): Remove extra braces.
6175 * python-internal.h (gdb_Py_DECREF): New static inline function.
6176 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6177
bd9673a4
PW
61782013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6179
6180 * breakpoints.c (detach_breakpoints): Do not
6181 detach breakpoints locations with loc_type bp_loc_other.
6182
ff6009d0
JK
61832013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6184
6185 Workaround Python 2.6.
6186 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6187 a block.
6188
3641da11
JK
61892013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6190
6191 Code cleanup: constification.
6192 * solib.c (solib_ops): Make return type and ops variable type const.
6193 (set_solib_ops): Make the new_ops parameter and ops variable const.
6194 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6195 (solib_add, solib_keep_data_in_core, clear_solib)
6196 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6197 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6198 const.
6199 * solib.h (set_solib_ops): Make the new_ops parameter const.
6200
776af39e
JB
62012013-05-21 Joel Brobecker <brobecker@adacore.com>
6202
6203 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6204 variable.
6205 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6206 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6207 (SYSTEM_GDBINIT_FILES): New variables.
6208 (all): Add stamp-system-gdbinit.
6209 (stamp-system-gdbinit): New rule.
6210 (clean-system-gdbinit, install-system-gdbinit)
6211 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6212 (install-only): Add dependency on install-system-gdbinit.
6213 (uninstall): Add dependency on uninstall-system-gdbinit.
6214 (clean): Add dependency on clean-system-gdbinit.
6215 * system-gdbinit/elinos.py: New file.
6216 * system-gdbinit/wrs-linux.py: New file.
6217
1509e573
JB
62182013-05-21 Joel Brobecker <brobecker@adacore.com>
6219
6220 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6221
c5867ab6
HZ
62222013-05-21 Hui Zhu <hui@codesourcery.com>
6223
6224 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6225 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6226 * mi/mi-cmd-break.c (ctype.h): New include.
6227 (gdb_obstack.h): New include.
6228 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6229 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6230 (mi_cmd_dprintf_insert): New.
6231 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6232 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6233
7d38e38f
TT
62342013-05-20 Tom Tromey <tromey@redhat.com>
6235
6236 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6237
97b77b39
TT
62382013-05-20 Tom Tromey <tromey@redhat.com>
6239
6240 * python/py-value.c (valpy_get_dynamic_type): Simplify
6241 dynamic_type assignment. Use Py_XINCREF.
6242
53e66479
TT
62432013-05-20 Tom Tromey <tromey@redhat.com>
6244
6245 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6246
dcf87832
TT
62472013-05-20 Tom Tromey <tromey@redhat.com>
6248
6249 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6250 (gdbpy_selected_frame): Move object-construction code
6251 out of TRY_CATCH.
6252
aa36459a
TT
62532013-05-20 Tom Tromey <tromey@redhat.com>
6254
6255 * python/py-arch.c (gdbpy_initialize_arch): Use
6256 gdb_pymodule_addobject.
6257 * python/py-block.c (gdbpy_initialize_blocks): Use
6258 gdb_pymodule_addobject.
6259 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6260 gdb_pymodule_addobject.
6261 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6262 gdb_pymodule_addobject.
6263 * python/py-event.c (gdbpy_initialize_event_generic): Use
6264 gdb_pymodule_addobject.
6265 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6266 gdb_pymodule_addobject.
6267 * python/py-evts.c (add_new_registry): Use
6268 gdb_pymodule_addobject.
6269 (gdbpy_initialize_py_events): Likewise.
6270 * python/py-finishbreakpoint.c
6271 (gdbpy_initialize_finishbreakpoints): Use
6272 gdb_pymodule_addobject.
6273 * python/py-frame.c (gdbpy_initialize_frames): Use
6274 gdb_pymodule_addobject.
6275 * python/py-function.c (gdbpy_initialize_functions): Use
6276 gdb_pymodule_addobject.
6277 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6278 gdb_pymodule_addobject.
6279 * python/py-infthread.c (gdbpy_initialize_thread): Use
6280 gdb_pymodule_addobject.
6281 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6282 gdb_pymodule_addobject.
6283 * python/py-param.c (gdbpy_initialize_parameters): Use
6284 gdb_pymodule_addobject.
6285 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6286 gdb_pymodule_addobject.
6287 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6288 gdb_pymodule_addobject.
6289 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6290 gdb_pymodule_addobject.
6291 * python/py-type.c (gdbpy_initialize_types): Use
6292 gdb_pymodule_addobject.
6293 * python/py-utils.c (gdb_pymodule_addobject): New function.
6294 * python/py-value.c (gdbpy_initialize_values): Use
6295 gdb_pymodule_addobject.
6296 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6297 * python/python.c (_initialize_python): Use
6298 gdb_pymodule_addobject.
6299
3d4a3c3e
TT
63002013-05-20 Tom Tromey <tromey@redhat.com>
6301
6302 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6303 * python/py-param.c (get_set_value, get_show_value): Use
6304 explicit decrefs.
6305 * python/python.c (start_type_printers, apply_type_printers):
6306 Use explicit decrefs.
6307
72ff8829
TT
63082013-05-20 Tom Tromey <tromey@redhat.com>
6309
6310 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6311 incref the module.
6312
02146ba5
TT
63132013-05-20 Tom Tromey <tromey@redhat.com>
6314
6315 * python/python.c (gdbpy_run_events): Decref the result
6316 of PyObject_CallObject.
6317
33ee792f
TT
63182013-05-20 Tom Tromey <tromey@redhat.com>
6319
6320 * python/py-symtab.c (set_sal): Use
6321 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6322 (symtab_and_line_to_sal_object): Update.
6323
fcb49fc8
TT
63242013-05-20 Tom Tromey <tromey@redhat.com>
6325
6326 * python/py-param.c (compute_enum_values): Decref 'item'.
6327
0646da15
TT
63282013-05-20 Tom Tromey <tromey@redhat.com>
6329
6330 * mi/mi-main.c: Include python-internal.h.
6331 (mi_cmd_list_features): Check gdb_python_initialized.
6332 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6333 (python_inferior_exit, python_new_objfile, add_thread_object)
6334 (delete_thread_object, py_free_inferior): Check
6335 gdb_python_initialized.
6336 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6337 gdb_python_initialized.
6338 * python/py-type.c (save_objfile_types): Check
6339 gdb_python_initialized.
6340 * python/python-internal.h (gdb_python_initialized): Declare.
6341 * python/python.c (ensure_python_env): Throw exception if
6342 Python not initialized.
6343 (before_prompt_hook, source_python_script_for_objfile)
6344 (start_type_printers, apply_type_printers,
6345 free_type_printers): Check gdb_python_initialized.
6346 * varobj.c (varobj_get_display_hint)
6347 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6348 (install_new_value_visualizer, varobj_set_visualizer)
6349 (value_get_print_value): Check gdb_python_initialized.
6350
999633ed
TT
63512013-05-20 Tom Tromey <tromey@redhat.com>
6352
6353 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6354 Check errors.
6355 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6356 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6357 Check errors.
6358 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6359 Check errors.
6360 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6361 Check errors.
6362 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6363 Check errors.
6364 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6365 init function to return 'int'.
6366 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6367 Return 'int'. Check errors.
6368 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6369 Check errors.
6370 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6371 Return 'int'. Check errors.
6372 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6373 Check errors.
6374 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6375 Check errors.
6376 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6377 Check errors.
6378 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6379 Check errors.
6380 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6381 Check errors.
6382 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6383 Check errors.
6384 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6385 Check errors.
6386 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6387 Check errors.
6388 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6389 Check errors.
6390 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6391 Check errors.
6392 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6393 Check errors.
6394 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6395 Check errors.
6396 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6397 Check errors.
6398 * python/python-internal.h (gdbpy_initialize_auto_load,
6399 gdbpy_initialize_values, gdbpy_initialize_frames,
6400 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6401 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6402 gdbpy_initialize_blocks, gdbpy_initialize_types,
6403 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6404 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6405 gdbpy_initialize_finishbreakpoints,
6406 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6407 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6408 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6409 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6410 gdbpy_initialize_signal_event,
6411 gdbpy_initialize_breakpoint_event,
6412 gdbpy_initialize_continue_event,
6413 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6414 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6415 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6416 * python/python.c (gdb_python_initialized): New global.
6417 (gdbpy_initialize_events): Return 'int'. Check errors.
6418 (_initialize_python): Check errors. Set
6419 gdb_python_initialized.
6420
18868860
TT
64212013-05-20 Tom Tromey <tromey@redhat.com>
6422
6423 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6424 Decref the reslut of PyObject_CallMethod.
6425
9f4ff0c2
TT
64262013-05-20 Tom Tromey <tromey@redhat.com>
6427
6428 * python/py-event.c (gdbpy_initialize_event_generic): Return
6429 early if PyType_Ready fails.
6430
0d3a2e8a
TT
64312013-05-20 Tom Tromey <tromey@redhat.com>
6432
6433 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6434 as 'default' in the switch.
6435
b86af38a
TT
64362013-05-20 Tom Tromey <tromey@redhat.com>
6437
6438 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6439 get_addr_from_python calls out of TRY_CATCH.
6440 (infpy_write_memory, infpy_search_memory): Likewise.
6441 * python/py-utils.c (get_addr_from_python): Return negative
6442 value on error. Use TRY_CATCH.
6443 * python/python-internal.h (get_addr_from_python): Use
6444 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6445
c127ec58
TT
64462013-05-20 Tom Tromey <tromey@redhat.com>
6447
6448 * python/py-event.c (evpy_emit_event): Decref the
6449 result of PyObject_CallFunctionObjArgs.
6450
ba327838
TT
64512013-05-20 Tom Tromey <tromey@redhat.com>
6452
6453 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6454 Correctly decref.
6455
d8191432
TT
64562013-05-20 Tom Tromey <tromey@redhat.com>
6457
6458 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6459
5d153bd1
TT
64602013-05-20 Tom Tromey <tromey@redhat.com>
6461
6462 * python/py-event.h (gdbpy_initialize_event_generic): Use
6463 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6464 * python/py-evts.c (add_new_registry): Use
6465 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6466 * python/python-internal.h
6467 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6468
56cc411c
TT
64692013-05-20 Tom Tromey <tromey@redhat.com>
6470
6471 * python/py-arch.c (archpy_disassemble): Update.
6472 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6473 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6474 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6475 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6476 macro.
6477 (GDB_PY_HANDLE_EXCEPTION): Update.
6478 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6479
8919e174
TT
64802013-05-20 Tom Tromey <tromey@redhat.com>
6481
6482 * python/python-internal.h (events_object_type): Remove.
6483
9b08f225
TT
64842013-05-20 Tom Tromey <tromey@redhat.com>
6485
f5aee5ee
AM
6486 * python/py-event.h (evpy_emit_event): Use
6487 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6488 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6489 New macro.
9b08f225 6490
f04010ff
TT
64912013-05-20 Tom Tromey <tromey@redhat.com>
6492
6493 * py-evtregistry.c (create_event_object): Decref
6494 eventregistry_object if PyList_New fails.
6495
3919fd96
TT
64962013-05-20 Tom Tromey <tromey@redhat.com>
6497
6498 * py-cmd.c (gdbpy_string_to_argv): Check result of
6499 PyList_New.
6500
0430e8cb
TT
65012013-05-20 Tom Tromey <tromey@redhat.com>
6502
6503 * python/python.c (before_prompt_hook): Add cleanup to
6504 decref 'hook'.
6505
764123e4
TT
65062013-05-20 Tom Tromey <tromey@redhat.com>
6507
6508 * python/py-function.c (fnpy_init): Decref result of
6509 PyObject_GetAttrString.
6510
634c58be
TT
65112013-05-20 Tom Tromey <tromey@redhat.com>
6512
6513 * python/py-threadevent.c (get_event_thread): Use
6514 CPYCHECKER_RETURNS_BORROWED_REF.
6515 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6516 New define.
6517 (pspace_to_pspace_object, objfile_to_objfile_object)
6518 (find_thread_object): Use it.
6519
62eec1a5
TT
65202013-05-20 Tom Tromey <tromey@redhat.com>
6521
6522 * python/py-arch.c (arch_object_type): Use
6523 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6524 * python/py-block.c (block_syms_iterator_object_type):
6525 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6526 * python/py-bpevent.c (breakpoint_event_object_type):
6527 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6528 * python/py-cmd.c (cmdpy_object_type): Use
6529 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6530 * python/py-continueevent.c (continue_event_object_type):
6531 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6532 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6533 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6534 * python/py-events.h (thread_event_object_type):
6535 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6536 * python/py-evtregistry.c (eventregistry_object_type): Use
6537 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6538 * python/py-exitedevent.c (exited_event_object_type):
6539 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6540 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6541 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6542 * python/py-function.c (fnpy_object_type): Use
6543 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6544 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6545 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6546 * python/py-infthread.c (thread_object_type): Use
6547 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6548 * python/py-lazy-string.c (lazy_string_object_type):
6549 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6550 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6551 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6552 * python/py-objfile.c (objfile_object_type): Use
6553 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6554 * python/py-param.c (parmpy_object_type):
6555 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6556 * python/py-progspace.c (pspace_object_type):
6557 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6558 * python/py-signalevent.c (signal_event_object_type):
6559 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6560 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6561 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6562 * python/py-type.c (type_object_type, field_object_type)
6563 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6564 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6565 define.
6566 (value_object_type, block_object_type, symbol_object_type)
6567 (event_object_type, stop_event_object_type, breakpoint_object_type)
6568 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6569
81ea8796
AT
65702013-05-20 Andreas Tobler <andreas@fgznet.ch>
6571
6572 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6573 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6574
a2ce51a0
DE
65752013-05-20 Doug Evans <dje@google.com>
6576
6577 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6578 For Fission.
6579 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6580 reading_dwo_directly.
6581 (struct signatured_type): New member dwo_unit.
6582 (struct die_reader_specs): New member comp_dir.
6583 (create_signatured_type_table_from_index): Use malloc for
6584 all_type_units instead of objfile's obstack.
6585 (create_all_type_units): Ditto.
6586 (fill_in_sig_entry_from_dwo_entry): New function.
6587 (add_type_unit): New function.
6588 (lookup_dwo_signatured_type): New function.
6589 (lookup_dwp_signatured_type): New function.
6590 (lookup_signatured_type): New arg cu. All callers updated.
6591 (init_cu_die_reader): Initialize comp_dir.
6592 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6593 Change assert of matching type signatures to call error on mismatch.
6594 (lookup_dwo_unit): Add assert.
6595 (init_tu_and_read_dwo_dies): New function.
6596 (init_cutu_and_read_dies): Call it.
6597 (build_type_unit_groups): Handle case of no type unit groups created.
6598 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6599 (lookup_dwo_cutu): Tweak complaint.
6600 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6601 (dwarf2_per_objfile_free): Free all_type_units.
6602
a25cd31f
JB
66032013-05-20 Joel Brobecker <brobecker@adacore.com>
6604
6605 * windows-nat.c (handle_unload_dll): Add missing empty line.
6606
4d804846
JB
66072013-05-20 Joel Brobecker <brobecker@adacore.com>
6608
6609 * dwarf2read.c (prototyped_function_p): New function.
6610 (read_subroutine_type): Use it.
6611
1c432e72
JB
66122013-05-20 Joel Brobecker <brobecker@adacore.com>
6613
6614 * rs6000-aix-tdep.c: De-indent some example code provided
6615 as a comment.
6616
4feebbdd
EBM
66172013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6618
6619 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6620 region is ok for a hardware watchpoint using the new ptrace interface
6621 on Power servers.
6622
7d0c9981
DE
66232013-05-17 Doug Evans <dje@google.com>
6624
6625 * NEWS: Mention new maintenance commands check-symtabs, and
6626 expand-symtabs, and renamed check-psymtabs.
6627 * psymtab.c (maintenance_check_psymtabs): Renamed from
6628 maintenance_check_symtabs. Only process already-expanded symbol
6629 tables.
6630 (_initialize_psymtab): Update.
6631 * symmisc.c (maintenance_check_symtabs): New function.
6632 (maintenance_expand_name_matcher): New function
6633 (maintenance_expand_file_matcher): New function
6634 (maintenance_expand_symtabs): New function.
6635 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6636 commands.
6637
6cbc7c3d
TT
66382013-05-17 Tom Tromey <tromey@redhat.com>
6639
6640 * python/py-inferior.c (infpy_read_memory): Don't call
6641 PyErr_SetString if PyObject_New fails.
6642 * python/py-frame.c (frame_info_to_frame_object): Don't call
6643 PyErr_SetString if PyObject_New fails.
6644
a48b32c0
L
66452013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6646
6647 * acinclude.m4: Add check for dlopen in libdl.
6648 * configure.ac: Ditto.
6649 * configure: Regenerate.
6650
3de661e6
PM
66512013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6652
6653 * frame.c (frame_stash): Convert to htab.
6654 (frame_addr_hash): New function.
6655 (frame_addr_hash_eq): New function.
6656 (frame_stash_create): Convert function to create
6657 a hash table.
6658 (frame_stash_add): Convert function to add an entry to a hash
6659 table.
6660 (frame_stash_find): Convert function to search the hash table.
6661 (frame_stash_invalidate): Convert function to empty the hash
6662 table.
6663 (get_frame_id): Only add to stash if a frame_id is created.
6664 (_initialize_frame): Call frame_stash_create.
6665
bb4168a9 66662013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6667
6668 * configure.ac: Ensure MIG is available when building for GNU Hurd
6669 hosts.
6670 * configure: Regenerate.
6671
d1be3247
JB
66722013-05-16 Joel Brobecker <brobecker@adacore.com>
6673
6674 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6675
b8fea896
JB
66762013-05-16 Joel Brobecker <brobecker@adacore.com>
6677
6678 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6679 all cleanups are done before returning from this function.
6680
af880d85
JB
66812013-05-15 Joel Brobecker <brobecker@adacore.com>
6682
6683 * utils.h: #include "exceptions.h".
6684 (enum errors): Remove partial declaration.
6685
356a5233
JB
66862013-05-15 Joel Brobecker <brobecker@adacore.com>
6687
6688 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6689 * gdbarch.h, gdbarch.c: Regenerate.
6690 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6691 handling.
6692
6693 * rs6000-aix-tdep.h: New file.
6694 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6695 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6696 "xml-utils.h".
6697 (struct field_info, struct ld_info_desc): New types.
6698 (ld_info32_desc, ld_info64_desc): New static constants.
6699 (struct ld_info): New type.
6700 (rs6000_aix_extract_ld_info): New function.
6701 (rs6000_aix_shared_library_to_xml): Likewise.
6702 (rs6000_aix_ld_info_to_xml): Likewise.
6703 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6704 (rs6000_aix_init_osabi): Add call to
6705 set_gdbarch_core_xfer_shared_libraries_aix.
6706 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6707 Remove "xml-utils.h" include.
6708 (LdInfo): Delete typedef.
6709 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6710 Delete macros.
6711 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6712 Adjust code accordingly.
6713 (rs6000_core_ldinfo): Delete, folded into
6714 rs6000_aix_core_xfer_shared_libraries_aix.
6715 (rs6000_xfer_shared_library): Delete.
6716 (rs6000_xfer_shared_libraries): Reimplement.
6717
742ce053
MM
67182013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6719
6720 * record.c (record_goto_cmdlist): New.
6721 (cmd_record_goto): Split into this ...
6722 (cmd_record_goto_begin): ... this
6723 (cmd_record_goto_end): ... and this.
6724 (_initialize_record): Change "record goto" to prefix command.
6725 Add commands for "record goto begin" and "record goto end".
6726 Add an alias for "record goto start" to "record goto begin".
6727
e93ba630
JK
67282013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6729
6730 * linespec.c (convert_linespec_to_sals): New comment for
6731 SOURCE_FILENAME assignment.
6732
5821aace
JK
67332013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6736 internal_warning.
6737
a1b8c4cc
TT
67382013-05-14 Tom Tromey <tromey@redhat.com>
6739
6740 * eval.c (parse_and_eval_long): Make 'exp' const.
6741 * value.h (parse_and_eval_long): Update.
6742
23b3a2c3
TT
67432013-05-14 Tom Tromey <tromey@redhat.com>
6744
6745 * ui-file.c (gdb_fopen): Make arguments const.
6746 * ui-file.h (gdb_fopen): Make arguments const.
6747
ca623f82
TT
67482013-05-14 Tom Tromey <tromey@redhat.com>
6749
6750 * remote.c (remote_set_trace_notes): Make arguments const.
6751 * target.c (update_current_target): Update cast.
6752 * target.h (to_set_trace_notes): Make arguments const.
6753
503ebb2c
TT
67542013-05-14 Tom Tromey <tromey@redhat.com>
6755
6756 * go32-nat.c (go32_terminal_info): Make 'args' const.
6757 * inferior.h (child_terminal_info): Update.
6758 * inflow.c (child_terminal_info): Make 'args' const.
6759 * target.c (default_terminal_info): Make 'args' const.
6760 (debug_to_terminal_save_ours): Likewise.
6761 * target.h (struct target_ops) <to_terminal_info>: Make argument
6762 const.
6763
85e1311a
TT
67642013-05-13 Tom Tromey <tromey@redhat.com>
6765
6766 * gcore.c (create_gcore_bfd): Make 'filename' const.
6767 * gcore.h (create_gcore_bfd): Make 'filename' const.
6768 * record-full.c (record_full_save): Make 'recfilename' const.
6769 * target.c (target_save_record): Make 'filename' const.
6770 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6771 const.
6772 (target_save_record): Likewise.
6773
d62bfeaf
TT
67742013-05-13 Tom Tromey <tromey@redhat.com>
6775
f5aee5ee 6776 PR gdb/15338:
d62bfeaf
TT
6777 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6778 ranges section has been read.
6779
ac1ca910
TT
67802013-05-13 Tom Tromey <tromey@redhat.com>
6781
6782 PR exp/15364:
6783 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6784 STRUCTOP_PTR>: Return a not_lval value for
6785 EVAL_AVOID_SIDE_EFFECTS.
6786 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6787 for EVAL_AVOID_SIDE_EFFECTS.
6788
36d1c68c
JB
67892013-05-13 Joel Brobecker <brobecker@adacore.com>
6790
6791 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6792 floating point registers to register type before storing
6793 value.
6794 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6795 Likewise.
6796
21ff4686
TT
67972013-05-10 Joel Brobecker <brobecker@adacore.com>
6798 Tom Tromey <tromey@redhat.com>
6799
6800 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6801 New functions.
6802 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6803 Declare.
6804 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6805 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6806 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6807 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6808
d3685d60
TT
68092013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6810 Tom Tromey <tromey@redhat.com>
6811
6812 PR build/15414:
6813 * configure: Rebuild.
6814 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6815 with -Wno-format.
6816
eb9fe518
PA
68172013-05-10 Pedro Alves <palves@redhat.com>
6818
6819 * remote.c (_initialize_remote): Fix spelling of
6820 qXfer:traceframe-info:read packet in packet config command.
6821
9779ab84
PA
68222013-05-10 David Taylor <dtaylor@emc.com>
6823
6824 PR remote/15455
6825
6826 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6827 "QTro" at start of packet.
6828
060cfbef
JB
68292013-05-10 Joel Brobecker <brobecker@adacore.com>
6830
6831 * solib-aix.c (solib_aix_relocate_section_addresses):
6832 For the .bss section action, apply the same offset as
6833 the .data section.
6834
ab1c4e88
JB
68352013-05-10 Joel Brobecker <brobecker@adacore.com>
6836
6837 * solib-aix.c (solib_aix_relocate_section_addresses):
6838 Remove FIXME comment.
6839
c1357578
JB
68402013-05-10 Joel Brobecker <brobecker@adacore.com>
6841
6842 PR tdep/15420:
6843 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6844 New functions, directly copied from sparc-sol-thread.c.
6845 * sparc-sol-thread.c: Delete.
6846 * configure.ac: Remove code handling sparc-solaris-thread.c.
6847 * configure: Regenerate.
6848
1e611234
PM
68492013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6850
6851 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6852 filter logic.
6853 (backtrace_command): Add "no-filters" option parsing.
6854 (_initialize_stack): Alter help to reflect "no-filters" option.
6855 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6856 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6857 (py-frame.o): Add target
6858 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6859 filter files.
6860 * python/python.h: Add new frame filter constants, and flag enum.
6861 (apply_frame_filter): Add definition.
6862 * python/python.c (apply_frame_filter): New non-Python
6863 enabled function.
6864 * python/py-utils.c (py_xdecref): New function.
6865 (make_cleanup_py_xdecref): Ditto.
6866 * python/py-objfile.c: Declare frame_filters dictionary.
6867 (objfpy_dealloc): Add frame_filters dealloc.
6868 (objfpy_new): Initialize frame_filters attribute.
6869 (objfile_to_objfile_object): Ditto.
6870 (objfpy_get_frame_filters): New function.
6871 (objfpy_set_frame_filters): New function.
6872 * python/py-progspace.c: Declare frame_filters dictionary.
6873 (pspy_dealloc): Add frame_filters dealloc.
6874 (pspy_new): Initialize frame_filters attribute.
6875 (pspacee_to_pspace_object): Ditto.
6876 (pspy_get_frame_filters): New function.
6877 (pspy_set_frame_filters): New function.
6878 * python/py-framefilter.c: New file.
6879 * python/lib/gdb/command/frame_filters.py: New file.
6880 * python/lib/gdb/frames.py: New file.
6881 * python/lib/gdb/__init__.py: Initialize global frame_filters
6882 dictionary
6883 * python/lib/gdb/FrameDecorator.py: New file.
6884 * python/lib/gdb/FrameIterator.py: New file.
6885 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6886 * mi/mi-cmds.h: Declare.
6887 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6888 --no-frame-filter logic, and Python frame filter logic.
6889 (stack_enable_frame_filters): New function.
6890 (parse_no_frame_option): Ditto.
6891 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6892 filter logic.
6893 (mi_cmd_stack_list_locals): Ditto.
6894 (mi_cmd_stack_list_args): Ditto.
6895 (mi_cmd_stack_list_variables): Ditto.
6896 * NEWS: Add frame filter note.
6897
2cb9c859
DE
68982013-05-09 Doug Evans <dje@google.com>
6899
6bf667bb
DE
6900 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6901 All callers updated.
6902 (syms_from_objfile): Ditto. Make static.
6903 (symbol_file_add_with_addrs): Renamed from
6904 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6905 num_offsets. All callers updated.
6906 * symfile.h (syms_from_objfile): Delete.
6907
2cb9c859
DE
6908 * symfile.c (decrement_reading_symtab): Add assert.
6909 (increment_reading_symtab): Ditto.
6910
40aea477
JB
69112013-05-09 Joel Brobecker <brobecker@adacore.com>
6912
6913 * source.c (forward_search_command): Replace call to getc
6914 by call to fgetc.
6915 (reverse_search_command): Likewise.
6916
680d1742
DE
69172013-05-08 Doug Evans <dje@google.com>
6918
6919 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6920 matching test.
6921
17e760ae
JB
69222013-05-08 Joel Brobecker <brobecker@adacore.com>
6923
6924 * sol-thread.c (info_cb): Factorize the code a little.
6925
c0f5f490
JB
69262013-05-08 Joel Brobecker <brobecker@adacore.com>
6927
6928 * sol-thread.c (info_cb): Rework the output of the "maintenance
6929 info sol-threads" command a bit.
6930
5d74e061
JB
69312013-05-08 Joel Brobecker <brobecker@adacore.com>
6932
6933 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6934 Replace ti.ti_startfunc by ti.ti_pc.
6935
814a3ff7
JB
69362013-05-08 Joel Brobecker <brobecker@adacore.com>
6937
6938 * solib-aix.c (solib_aix_free_library_list): New function
6939 for the case where HAVE_LIBEXPAT is not defined.
6940
58ce7251
SDJ
69412013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6942
6943 PR breakpoints/15413:
6944 * breakpoint.c (condition_completer): Simplify the code to
6945 disconsider multiple locations of breakpoints when completing the
6946 "condition" command.
6947
be8b1ea6
PM
69482013-05-07 Pierre Muller <muller@sourceware.org>
6949
6950 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6951 instead of <sys/wait.h>.
6952
1e52bda6
PM
69532013-05-07 Pierre Muller <muller@sourceware.org>
6954
6955 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6956 trailing new line from warning message.
6957
27fd0c6b
PM
69582013-05-07 Pierre Muller <muller@sourceware.org>
6959
6960 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6961 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6962
e228ac87
JB
69632013-05-07 Joel Brobecker <brobecker@adacore.com>
6964
6965 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6966 error message (ARI fix).
6967
69682013-05-07 Joel Brobecker <brobecker@adacore.com>
6969
6970 * features/library-list-aix.dtd: Replace library-list by
6971 library-list-aix.
6972 * rs6000-nat.c: Replace library-list by library-list-aix
6973 throughout.
6974 * solib-aix.c: Likewise.
6975
69762013-05-07 Joel Brobecker <brobecker@adacore.com>
6977
6978 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6979 Renames TARGET_OBJECT_AIX_LIBRARIES.
6980 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6981 TARGET_OBJECT_LIBRARIES_AIX throughout.
6982 * solib-aix.c: Likwise.
6983
26a4dda9
YQ
69842013-05-07 Yao Qi <yao@codesourcery.com>
6985
6986 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6987 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6988
3582629f
YQ
69892013-05-07 Yao Qi <yao@codesourcery.com>
6990
6991 * solib-dsbt.c (enable_break): Declare.
6992 (dsbt_current_sos): Remove call to enable_break2.
6993 (enable_break2): Rename to enable_break. Set solib breakpoint
6994 on '_dl_debug_state'.
6995 (enable_break): Remove.
6996
aacbb8a5
LM
69972013-05-07 Luis Machado <lgustavo@codesourcery.com>
6998
6999 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7000 debug state prior to replicating existing hardware watchpoints or
7001 breakpoints.
7002
0c013353
JK
70032013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7004
7005 * gcore.c (gcore_create_callback): Ignore sections with
7006 separate_debug_objfile_backlink != NULL.
7007
a1217d97
SL
70082013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7009 Andrew Jenner <andrew@codesourcery.com>
7010 Chung-Lin Tang <cltang@codesourcery.com>
7011 Julian Brown <julian@codesourcery.com>
7012
7013 Based on the nios2-elf port from Altera Corporation.
7014
7015 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7016 nios2-linux-tdep.o.
7017 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7018 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7019 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7020 * nios2-tdep.h: New.
7021 * nios2-tdep.c: New.
7022 * nios2-linux-tdep.c: New.
7023 * features/Makefile (WHICH): Add nios2-linux.
7024 (nios2-linux-expedite): Set.
7025 * features/nios2-cpu.xml: New.
7026 * features/nios2.xml: New.
7027 * features/nios2-linux.xml: New.
7028 * features/nios2.c: New (autogenerated).
7029 * features/nios2-linux.c: New (autogenerated).
7030 * regformats/nios2-linux.dat: New (autogenerated).
7031 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7032 and commands.
7033
0892cb63
DE
70342013-05-06 Doug Evans <dje@google.com>
7035
3b7bacac
DE
7036 * symfile.c: Whitespace cleanup.
7037
0892cb63
DE
7038 * solist.h (struct target_so_ops): New member clear_so.
7039 * solib-svr4.c (svr4_clear_so): New function.
7040 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7041 * solib.c (clear_so): Renamed from free_so_symbols.
7042 All callers updated. Call target clear_so if it exists.
7043
40501e00
TT
70442013-05-06 Tom Tromey <tromey@redhat.com>
7045
7046 * ada-lang.c (ada_value_primitive_packed_val): Don't
7047 call value_incref.
7048 * value.c (set_value_parent): Incref the new parent and decref
7049 the old parent.
7050 (value_copy, value_primitive_field): Use set_value_parent.
7051
b6807d98
TT
70522013-05-06 Tom Tromey <tromey@redhat.com>
7053
7054 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7055 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7056 if needed.
7057 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7058 * dwarf2read.c (write_constant_as_bytes)
7059 (dwarf2_fetch_constant_bytes): New functions.
7060
3aef2284
TT
70612013-05-06 Tom Tromey <tromey@redhat.com>
7062
7063 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7064 parameters.
7065 (dwarf2_const_value_attr): Update.
7066
66f65e2b
TT
70672013-05-06 Tom Tromey <tromey@redhat.com>
7068
7069 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7070 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7071 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7072 Remove declaration.
7073
7919a973
TT
70742013-05-06 Tom Tromey <tromey@redhat.com>
7075
7076 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7077 objfile's obstack.
7078
a7bfba49
DE
70792013-05-06 Doug Evans <dje@google.com>
7080
3189cb12
DE
7081 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7082 * stabsread.h (process_one_symbol): Update declaration.
7083 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7084 * elfread.c (elf_symfile_relocate_probe): Ditto.
7085 * psymtab.c (relocate_psymtabs): Ditto.
7086 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7087 (objfile_relocate): Ditto.
7088 * objfiles.h (objfile_relocate): Update declaration.
7089 * symfile.c (relative_addr_info_to_section_offsets): Constify
7090 addrs parameter.
7091 (default_symfile_offsets): Ditto.
7092 (syms_from_objfile_1): Constify offsets parameter.
7093 (syms_from_objfile): Ditto.
7094 (symbol_file_add_with_addrs_or_offsets): Ditto.
7095 (symfile_map_offsets_to_segments): Constify data parameter.
7096 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7097 delta parameters of member relocate.
7098 (struct sym_probe_fns): Constify new_offsets,
7099 delta parameters of member sym_relocate_probe.
7100 (struct sym_fns): Constify section_addr_info parameter of member
7101 sym_offsets.
7102 (relative_addr_info_to_section_offsets): Update declaration.
7103 (default_symfile_offsets): Ditto.
7104 (syms_from_objfile): Ditto.
7105 (symfile_map_offsets_to_segments): Ditto.
7106
a7bfba49
DE
7107 * symfile.c (syms_from_objfile_1): Use correct section count when
7108 objfile->sf == NULL.
7109
5f8e0b8f
MF
71102013-05-06 Mike Frysinger <vapier@gentoo.org>
7111
7112 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7113
ea52d893
DE
71142013-05-06 Doug Evans <dje@google.com>
7115
7116 * psympriv.h (struct partial_symtab): Augment comment for member
7117 section_offsets.
7118
4d1eb6b4
JB
71192013-05-06 Joel Brobecker <brobecker@adacore.com>
7120
7121 Reimplement shared library support on ppc-aix...
7122 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7123 * features/library-list-aix.dtd: New file.
7124 * solib-aix.h, solib-aix.c: New file.
7125 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7126 (rs6000_find_toc_address_hook): Delete.
7127 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7128 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7129 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7130 "xml-utils.h".
7131 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7132 (vmap_symtab, fixup_breakpoints): Delete.
7133 (rs6000_xfer_shared_libraries): New function.
7134 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7135 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7136 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7137 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7138 (rs6000_xfer_shared_library): New function.
7139 (find_toc_address): Delete.
7140 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7141 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7142 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7143 before creating minimal symbol. Adjust function description
7144 accordingly.
7145 (scan_xcoff_symtab): Replace call to
7146 prim_record_minimal_symbol_and_info by call to
7147 record_minimal_symbol.
7148 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7149 around default_symfile_offsets.
7150 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7151 powerpc-aix targets.
7152 * config/rs6000/nm-rs6000.h: Delete.
7153 * config/powerpc/aix.mh (NAT_FILE): Delete.
7154 (NATDEPFILES): Remove xcoffsolib.o.
7155 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7156 (ALL_TARGET_OBS): Add solib-aix.o.
7157 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7158 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7159 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7160 * xcoffsolib.h, xcoffsolib.c: Delete.
7161
7162 * solib.c (reload_shared_libraries): Remove reference to
7163 SOLIB_CREATE_INFERIOR_HOOK.
7164 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7165 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7166 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7167 comment.
7168 * corelow.c (deprecated_core_resize_section_table): Delete.
7169 * exec.c: Remove include of xcoffsolib.h".
7170 (map_vmap, vmap): Delete.
7171 (exec_close_1): Remove references to vmap.
7172 (exec_file_attach): Remove vmap handling code, and reference
7173 to DEPRECATED_IBM6000_TARGET.
7174 (bfdsec_to_vmap): Delete.
7175 (exec_files_info): Remove block of code handling VMAP.
7176 * infcmd.c (post_create_inferior): Remove reference to
7177 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7178 * infrun.c (follow_exec): Remove reference to
7179 SOLIB_CREATE_INFERIOR_HOOK.
7180 * stack.c (print_frame): Remove reference to PC_SOLIB.
7181 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7182 (dsbt_relocate_main_executable): Likewise.
7183 * solib-frv.c (frv_current_sos): Likewise.
7184
0c4f667c
JB
71852013-05-06 Joel Brobecker <brobecker@adacore.com>
7186
7187 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7188 to target_write_memory and target_read_memory.
7189
726ce67c
JB
71902013-05-06 Joel Brobecker <brobecker@adacore.com>
7191
7192 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7193 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7194
c8c9911f
JB
71952013-05-06 Joel Brobecker <brobecker@adacore.com>
7196
7197 * darwin-nat.c: Replace all "%x" instances in format strings
7198 into "0x%x" throughout.
7199
fda184b6
JB
72002013-05-06 Joel Brobecker <brobecker@adacore.com>
7201
7202 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7203 gdb_assert by call to MACH_CHECK_ERROR.
7204 (darwin_attach_pid): Raise an error rather than a failed
7205 assertion when various system calls failed. Report a warning
7206 instead of raising a failed assertion when PREV_NOT is not NULL
7207 after call to mach_port_request_notification.
7208 (darwin_ptrace_me): Raise an error rather than a failed
7209 assertion when read returns nonzero.
7210
d1d69afb
JB
72112013-05-06 Joel Brobecker <brobecker@adacore.com>
7212
7213 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7214
dc90b24d
JK
72152013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7216
7217 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7218
faab9922
JK
72192013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7220
7221 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7222 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7223 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7224 a stale cleanup. Fix double free of NAME.
7225
e0ea48a0
EZ
72262013-05-04 Eli Zaretskii <eliz@gnu.org>
7227
7228 * windows-nat.c (windows_delete_thread): Accept an additional
7229 argument, the thread's exit code, and announce thread death when
7230 print_thread_events is non-zero and we are deleting a thread that
7231 is not the main thread.
7232 (get_windows_debug_event): Pass thread exit code to
7233 windows_delete_thread.
7234
83b2706a
KB
72352013-05-03 Kevin Buettner <kevinb@redhat.com>
7236
7237 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7238 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7239 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7240 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7241 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7242 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7243 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7244 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7245 (gdbarch_tdep): New struct.
7246 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7247 E_NUM_REGS.
7248 (v850e3v5_register_name): New function.
7249 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7250 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7251 code handling the struct return conventions for the RH850 ABI.
7252 Update all callers.
7253 (v850_eight_byte_align_p): New function.
7254 (v850_push_call_dummy): Push structs by value, not by reference
7255 for the RH850 ABI. Add support for eight byte alignment.
7256 (v850_dbtrap_breakpoint_from_pc): New function.
7257 (v850_gdbarch_init): Add ABI detection code. Register
7258 v850e3v5_register_name for the v850e3v5 architecture. Set the
7259 number of registers for v850e3v5. Register
7260 v850_dbtrap_breakpoint_from_pc as appropriate.
7261 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7262
d445b2f6
DE
72632013-05-03 Doug Evans <dje@google.com>
7264
7265 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7266 of bfd_count_sections.
7267 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7268 * symfile.c (default_symfile_offsets): Ditto.
7269 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7270 one entry, not bfd_count_sections entries.
7271
b3ce41ea
KB
72722013-05-03 Kevin Buettner <kevinb@redhat.com>
7273
7274 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7275 `save' and `restore' register groups. Don't include SPL
7276 or SPH in these groups.
7277 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7278 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7279 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7280 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7281 dwarf2_append_unwinders().
7282
96f7d3f1
PW
72832013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7284
7285 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7286 ignore SIGINT and SIGTRAP in case these internal signals are
7287 caught explicitely.
7288
b9dd1947
JB
72892013-05-01 Joel Brobecker <brobecker@adacore.com>
7290
7291 * darwin-nat.c (darwin_read_write_inferior): Change types
7292 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7293 of copy_count to "mach_msg_type_number_t".
7294 (darwin_read_dyld_info): Change type of parameter
7295 rdaddr to "gdb_byte *".
7296
4ca18a63
JB
72972013-05-01 Joel Brobecker <brobecker@adacore.com>
7298
7299 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7300 of &info->load_map from "char *" to "gdb_byte *".
7301
2b692d32
JB
73022013-05-01 Joel Brobecker <brobecker@adacore.com>
7303
7304 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7305 from "char *" to "gdb_byte *".
7306 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7307
a98c29a0
DE
73082013-04-30 Doug Evans <dje@google.com>
7309
6a506a2d
DE
7310 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7311 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7312 DWO stub. If DWO isn't found, just use stub.
7313 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7314
a98c29a0
DE
7315 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7316 calling init_cutu_and_read_dies.
7317
f92b06da
WT
73182013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7319
7320 * target-descriptions.c (maint_print_c_tdesc_cmd):
7321 Add case to parse structures as register types and
7322 bitfields.
7323
95eebdcc
WT
73242013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7325
7326 * MAINTAINERS (Write After Approval): Add myself to the list.
7327
019c1128
JB
73282013-04-30 Joel Brobecker <brobecker@adacore.com>
7329
7330 * sol-thread.c (rw_common): Change type of parameter "buf"
7331 to "gdb_byte *".
7332 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7333 rw_common to "gdb_byte *" instead of "char *".
7334
5812197c
JB
73352013-04-30 Joel Brobecker <brobecker@adacore.com>
7336
7337 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7338 of local variable msym to const struct bound_minimal_symbol.
7339 Adjust use accordingly.
7340 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7341
ecccb813
TS
73422013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7343
7344 * i386gnu-nat.c (CREG_OFFSET): New macro.
7345 (creg_offset): New array.
7346 (CREG_ADDR): Use creg_offset instead of reg_offset.
7347
f1d02dd4 73482013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7349
7350 * mep-tdep.c (mep_write_pc): Delete.
7351 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7352 Add call to set_gdbarch_pc_regnum.
7353
f1d02dd4 73542013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7355
7356 * common/filestuff.c: Replace #include <dirent.h> by
7357 #include "gdb_dirent.h".
7358
f1d02dd4 73592013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7360
7361 * common/filestuff.c: Replace #include <sys/stat.h> by
7362 #include "gdb_stat.h".
7363
b385a60d
PM
73642013-04-29 Pierre Muller <muller@sourceware.org>
7365
7366 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7367 editCase function rule.
7368 (get_DW_AT_signature_type): Likewise.
7369
d27b54ad
JB
73702013-04-29 Joel Brobecker <brobecker@adacore.com>
7371
7372 * m32r-tdep.c (m32r_write_pc): Delete.
7373 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7374 Add call to set_gdbarch_pc_regnum.
7375
47d21dc5
PM
73762013-04-29 Pierre Muller <muller@sourceware.org>
7377
7378 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7379
9056882e
JB
73802013-04-29 Joel Brobecker <brobecker@adacore.com>
7381
7382 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7383
7ee4732a
YQ
73842013-04-28 Yao Qi <yao@codesourcery.com>
7385
7386 * solib-dsbt.c (fetch_loadmap): Re-indent.
7387 (displacement_from_map, enable_break2): Likewise.
7388 (dsbt_relocate_section_addresses): Likewise.
7389
2260af53 73902013-04-26 Joel Brobecker <brobecker@adacore.com>
7391
7392 GDB 7.6 released.
7393
ff546935
TT
73942013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7395
7396 PR corefiles/14983:
7397 * dwarf2read.c (process_full_comp_unit): Always create a static
7398 block.
7399
40fb6c5e
HZ
74002013-04-25 Hui Zhu <hui@codesourcery.com>
7401
7402 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7403 to loc->cmd_bytecode.
7404
74e04d1c
DE
74052013-04-24 Doug Evans <dje@google.com>
7406
7407 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7408
3cf62c1d
KS
74092013-04-22 Keith Seitz <keiths@redhat.com>
7410
7411 * tracepoint.c (trace_save): Call the writer's start method.
7412
bf9e4d0c
MB
74132013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7414
7415 PR gdb/10462
7416 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7417 before argument.
7418
5d71132c
TT
74192013-04-23 Tom Tromey <tromey@redhat.com>
7420
7421 * common/filestuff.c: Check USE_WIN32API before including
7422 sys/socket.h.
7423 (HAVE_F_GETFD): New define.
7424 (mark_cloexec): Check HAVE_F_GETFD.
7425 (gdb_open_cloexec): Change 'mode' to unsigned long.
7426 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7427 (gdb_pipe_cloexec): Check HAVE_PIPE.
7428 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7429 long.
7430
a11cfd87
HZ
74312013-04-23 Hui Zhu <hui@codesourcery.com>
7432
7433 PR gdb/15293
a11cfd87
HZ
7434 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7435
2d9442cc
HZ
74362013-04-23 Hui Zhu <hui@codesourcery.com>
7437
7438 PR gdb/15165
2d9442cc
HZ
7439 * breakpoint.c (dprintf_print_recreate): New.
7440 (save_breakpoints): Let it not save dprintf commands.
7441 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7442
614c279d
TT
74432013-04-22 Tom Tromey <tromey@redhat.com>
7444
7445 PR gdb/7912:
7446 * Makefile.in (SFILES): Add filestuff.c
7447 (COMMON_OBS): Add filestuff.o.
7448 (filestuff.o): New target.
7449 * auto-load.c (auto_load_objfile_script_1): Use
7450 gdb_fopen_cloexec.
7451 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7452 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7453 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7454 * common/agent.c (gdb_connect_sync_socket): Use
7455 gdb_socket_cloexec.
7456 * common/filestuff.c: New file.
7457 * common/filestuff.h: New file.
7458 * common/linux-osdata.c (linux_common_core_of_thread)
7459 (command_from_pid, commandline_from_pid, print_source_lines)
7460 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7461 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7462 gdb_fopen_cloexec.
7463 * common/linux-procfs.c (linux_proc_get_int)
7464 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7465 * config.in, configure: Rebuild.
7466 * configure.ac: Don't check for sys/socket.h. Check for
7467 fdwalk, pipe2.
7468 * corelow.c (core_open): Use gdb_open_cloexec.
7469 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7470 * fork-child.c (fork_inferior): Call close_most_fds.
7471 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7472 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7473 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7474 Use gdb_fopen_cloexec.
7475 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7476 gdb_open_cloexec.
7477 (linux_async_pipe): Use gdb_pipe_cloexec.
7478 * remote-fileio.c (remote_fileio_func_open): Use
7479 gdb_open_cloexec.
7480 * remote.c (remote_file_put, remote_file_get): Use
7481 gdb_fopen_cloexec.
7482 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7483 close_most_fds.
7484 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7485 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7486 * solib.c (solib_find): Use gdb_open_cloexec.
7487 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7488 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7489 (tfile_open): Use gdb_open_cloexec.
7490 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7491 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7492 * xml-support.c (xml_fetch_content_from_file): Use
7493 gdb_fopen_cloexec.
7494 * main.c (captured_main): Call notice_open_fds.
7495
5fda2332
EBM
74962013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7497
7498 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7499 'char *' to 'gdb_byte *'.
7500 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7501 'gdb_byte'.
7502
eb6c553b
YQ
75032013-04-22 Yao Qi <yao@codesourcery.com>
7504
7505 * infrun.c: Fix typo in comment.
7506
9991b207
SDJ
75072013-04-22 Andrew Haley <aph@redhat.com>
7508
7509 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7510 instead of "long".
7511
8b4833e3
YQ
75122013-04-20 Yao Qi <yao@codesourcery.com>
7513
7514 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7515 'char *' to 'gdb_byte *'. Cast the return value of
7516 'bt_ctf_get_char_array' to 'gdb_byte *'.
7517
bd3f3b55
PA
75182013-04-19 Pedro Alves <palves@redhat.com>
7519
7520 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7521 -Wpointer-sign.
7522 * configure: Regenerate.
7523
c49e7f76
PA
75242013-04-19 Pedro Alves <palves@redhat.com>
7525
7526 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7527 'void *'.
7528
12ff8552
PA
75292013-04-19 Pedro Alves <palves@redhat.com>
7530
7531 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7532 Change type of 'myaddr' parameter to gdb_byte pointer.
7533 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7534 to 'long long' pointer instead of to 'unsigned long long'.
7535 (monitor_write_memory_block, monitor_read_memory_single)
7536 (monitor_read_memory): Change type of 'myaddr' parameter to
7537 gdb_byte pointer.
7538
9c37696b
PA
75392013-04-19 Pedro Alves <palves@redhat.com>
7540
7541 * record.c (validate_history_size): Make parameter 'setting'
7542 unsigned.
7543
a398505b
PA
75442013-04-19 Pedro Alves <palves@redhat.com>
7545
7546 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7547 to 'gdb_byte *'.
7548
9f8afa72
PA
75492013-04-19 Pedro Alves <palves@redhat.com>
7550
7551 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7552 local to int.
7553
c714b426
PA
75542013-04-19 Pedro Alves <palves@redhat.com>
7555
7556 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7557 * ada-tasks.c (read_fat_string_value): Likewise.
7558
507a579c
PA
75592013-04-19 Pedro Alves <palves@redhat.com>
7560
7561 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7562 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7563 'offset', and adjust.
7564
f9d83a0b
PA
75652013-04-19 Pedro Alves <palves@redhat.com>
7566
7567 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7568 (read_index_from_section): Add cast to 'char *'.
7569
745eb4fd
PA
75702013-04-19 Pedro Alves <palves@redhat.com>
7571
7572 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7573
db5be46f
PA
75742013-04-19 Pedro Alves <palves@redhat.com>
7575
7576 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7577
0f928d68
PA
75782013-04-19 Pedro Alves <palves@redhat.com>
7579
7580 * record-full.c (record_full_get_bookmark): Change local 'ret'
7581 type to char * and add cast to gdb_byte *.
7582 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7583 string.
7584 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7585
89f6d837
PA
75862013-04-19 Pedro Alves <palves@redhat.com>
7587
7588 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7589 * python/py-prettyprint.c (print_string_repr): Change type of
7590 'output' local to char *. Add cast to gdb_byte * in
7591 LA_PRINT_STRING call.
7592 (print_children): Change type of 'output' local to char *.
7593 * python/py-value.c (valpy_string): Add cast to const char * in
7594 PyUnicode_Decode call.
7595
ce6ec7d8
PA
75962013-04-19 Pedro Alves <palves@redhat.com>
7597
7598 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7599 and change its type to 'const char *'. Adjust.
7600 (mips_send_packet): Add cast to 'char *', and remove cast to
7601 'unsigned char *'.
7602 (mips_receive_packet): Remove cast to 'unsigned char *'.
7603 (mips_load_srec): Use bfd_byte.
7604 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7605 (pmon_checkset): Make 'value' parameter unsigned.
7606
fda0389f
PA
76072013-04-19 Pedro Alves <palves@redhat.com>
7608
7609 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7610
bc20a4af
PA
76112013-04-19 Pedro Alves <palves@redhat.com>
7612
7613 * remote.c (remote_write_bytes_aux, compare_sections_command)
7614 (remote_read_qxfer)
7615 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7616 (remote_hostio_readlink, remote_bfd_iovec_pread)
7617 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7618 binary buffer, and char when buffer is used as string.
7619 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7620 (trace_save, tfile_open, traceframe_walk_blocks)
7621 (tfile_fetch_registers): Likewise.
7622
c628b528
PA
76232013-04-19 Pedro Alves <palves@redhat.com>
7624
7625 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7626 buffer and size_t size. Adjust.
7627 * ser-base.h (ser_base_write): Adjust.
7628 * ser-go32.c (cnts): Change type to size_t.
7629 (dos_write): Change prototype -- take 'void *'
7630 buffer and size_t size. Adjust.
7631 (dos_info): Print elements of 'cnts' as unsigned long.
7632 * serial.c (serial_write): Likewise.
7633 * serial.h (serial_write): Adjust.
7634 (struct serial_ops) <write>: Change prototype -- take 'void *'
7635 buffer and size_t size. Adjust.
7636
51a5cd90
PA
76372013-04-19 Pedro Alves <palves@redhat.com>
7638
7639 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7640 gdb_byte *.
7641 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7642
a9933661
PA
76432013-04-19 Pedro Alves <palves@redhat.com>
7644
7645 * alpha-tdep.c (alpha_extract_return_value): Use
7646 regcache_cooked_read_unsigned to read 'v0'.
7647
19afdd07
PA
76482013-04-19 Pedro Alves <palves@redhat.com>
7649
7650 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7651 parameters 'at', 'as' and 'offset' to uint32_t.
7652
96b32e50
PA
76532013-04-19 Pedro Alves <palves@redhat.com>
7654
7655 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7656 'is64' to signed 'int'.
7657
eb1bd1fb
PA
76582013-04-19 Pedro Alves <palves@redhat.com>
7659
7660 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7661 parameter to int *.
7662
463920bf
PA
76632013-04-19 Pedro Alves <palves@redhat.com>
7664
7665 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7666 'insnbuf' buffer type to unsigned int[].
7667
70242eb1
PA
76682013-04-19 Pedro Alves <palves@redhat.com>
7669
7670 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7671
9d1dd0e2
PA
76722013-04-19 Pedro Alves <palves@redhat.com>
7673
7674 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7675 unsigned long *.
7676
44096aee
PA
76772013-04-19 Pedro Alves <palves@redhat.com>
7678
7679 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7680 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7681 UINT_MAX.
7682 * mips-tdep.c (heuristic_fence_post): Change type to int.
7683 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7684
e4286e57
PA
76852013-04-19 Pedro Alves <palves@redhat.com>
7686
7687 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7688 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7689 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7690
001f13d8
PA
76912013-04-19 Pedro Alves <palves@redhat.com>
7692
7693 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7694 it to get a string view of the byte buffer.
7695 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7696 type to gdb_byte *. Adjust.
7697 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7698 Change local to char *.
7699 * solib-darwin.c (find_program_interpreter): Change return type to
7700 char *. Adjust.
7701 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7702 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7703 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7704 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7705 * solib-svr4.c (find_program_interpreter): Change return type to
7706 char *. Adjust.
7707 (enable_break): Change local 'interp_name' to char *.
7708 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7709 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7710 (spu_pseudo_register_write_spu): Use char for string buffer.
7711 Adjust.
7712 (info_spu_event_command, info_spu_signal_command): Add casts to
7713 'char *'.
7714
948f8e3d
PA
77152013-04-19 Pedro Alves <palves@redhat.com>
7716
7717 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7718 gdb_byte[].
7719 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7720 * ada-lang.c (ada_value_assign): Use gdb_byte.
7721 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7722 (alphanbsd_sigtramp_offset): Use gdb_byte.
7723 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7724 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7725 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7726 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7727 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7728 * arm-tdep.c (arm_stub_unwind_sniffer)
7729 (arm_displaced_init_closure): Use gdb_byte.
7730 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7731 (arm_default_thumb_le_breakpoint)
7732 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7733 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7734 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7735 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7736 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7737 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7738 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7739 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7740 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7741 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7742 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7743 (cris_store_return_value, cris_extract_return_value): Use
7744 gdb_byte.
7745 (constraint): Change type of parameter to char * from signed
7746 char*. Use gdb_byte.
7747 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7748 of local buffer to gdb_byte *.
7749 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7750 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7751 (add_address_entry): Change type of local buffer to gdb_byte[].
7752 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7753 (frv_push_dummy_call): Use gdb_byte.
7754 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7755 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7756 (hppa_hpux_supply_save_state): Use gdb_byte.
7757 * hppa-tdep.c (hppa32_push_dummy_call)
7758 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7759 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7760 (slotN_contents, replace_slotN_contents): Change type of parameter
7761 to gdb_byte *.
7762 (fetch_instruction, ia64_pseudo_register_write)
7763 (ia64_register_to_value, ia64_value_to_register)
7764 (ia64_extract_return_value, ia64_store_return_value)
7765 (ia64_push_dummy_call): Use gdb_byte.
7766 * m32c-tdep.c (m32c_return_value): Remove cast.
7767 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7768 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7769 gdb_byte.
7770 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7771 * mn10300-tdep.c (mn10300_store_return_value)
7772 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7773 gdb_byte.
7774 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7775 (moxie_process_record): Remove casts.
7776 * ppc-ravenscar-thread.c (supply_register_at_address)
7777 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7778 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7779 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7780 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7781 * remote.c (compare_sections_command): Use gdb_byte.
7782 * score-tdep.c (score7_free_memblock): Change type of parameter to
7783 gdb_byte *.
7784 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7785 gdb_byte *. Use gdb_byte.
7786 (sh_push_dummy_call_fpu): Use gdb_byte.
7787 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7788 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7789 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7790 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7791 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7792 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7793 (sh64_store_return_value, sh64_register_convert_to_virtual):
7794 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7795 (sh64_pseudo_register_write): Use gdb_byte.
7796 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7797 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7798 buffer.
7799 (irix_current_sos): Use gdb_byte.
7800 * solib-som.c (som_current_sos): Use gdb_byte.
7801 * sparc-ravenscar-thread.c (supply_register_at_address)
7802 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7803 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7804 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7805 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7806 'gdb_byte *'.
7807 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7808 'gdb_byte *'.
7809 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7810 * xstormy16-tdep.c (xstormy16_extract_return_value)
7811 (xstormy16_store_return_value): Change parameter type to
7812 'gdb_byte *'. Adjust.
7813 (xstormy16_push_dummy_call): Use gdb_byte.
7814 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7815 (call0_analyze_prologue, execute_code): Use gdb_byte.
7816
433730c9
PA
78172013-04-19 Vladimir Kargov <kargov@gmail.com>
7818 Pedro Alves <palves@redhat.com>
7819
7820 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7821 value contents.
7822
ac9ec31b
DE
78232013-04-17 Doug Evans <dje@google.com>
7824
7825 * dwarf2read.c (struct signatured_type): New member type.
7826 (struct attribute): Replace member signatured_type with signature.
7827 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7828 (read_call_site_scope): Call follow_die_ref instead of
7829 follow_die_ref_or_sig.
7830 (read_structure_type): Rewrite handling of signatured types.
7831 (read_enumeration_type): Ditto.
7832 (read_attribute_value): Update.
7833 (build_error_marker_type): New function.
7834 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7835 Don't call error for bad types, just build an error marker type.
7836 (dump_die_shallow): Update.
7837 (follow_die_sig_1): Renamed from follow_die_sig.
7838 Don't call error for bad types, instead return NULL.
7839 (follow_die_sig): New function.
7840 (get_signatured_type, get_DW_AT_signature_type): New functions.
7841
e546e8bb
YZ
78422013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7843
7844 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7845 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7846 function.
e546e8bb 7847
ab116149
YQ
78482013-04-17 Yao Qi <yao@codesourcery.com>
7849
7850 * top.c (print_gdb_configuration): Print configure-time
7851 parameter on using libbabeltrace or not.
7852
488a42b8
PA
78532013-04-16 Pedro Alves <palves@redhat.com>
7854
7855 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7856
f5fb825b
PA
78572013-04-16 Pedro Alves <palves@redhat.com>
7858
85d494ea 7859 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7860 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7861
e1154999
PA
78622013-04-16 Pedro Alves <palves@redhat.com>
7863
7864 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7865 * common/glibc_thread_db.h: ... this new file ...
7866 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7867
e3b50a7f
PA
78682013-04-16 Will Newton <will.newton@gmail.com>
7869 Pedro Alves <palves@redhat.com>
7870
7871 PR build/11881
7872
7873 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7874 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7875 HAVE_THREAD_DB_H.
7876
1c2e4450
PA
78772013-04-16 Pedro Alves <palves@redhat.com>
7878 Eli Zaretskii <eliz@gnu.org>
7879
7880 * NEWS: Mention "set foo unlimited".
7881
4031ecc5
DE
78822013-04-15 Doug Evans <dje@google.com>
7883
19c3d4c9
DE
7884 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7885 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7886 (create_dwo_cu_reader): Renamed from
7887 create_dwo_debug_info_hash_table_reader.
7888 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7889 Remove support for multiple CUs in a DWO file.
7890 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7891
4031ecc5
DE
7892 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7893 instead of phex.
7894 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7895 (create_dwo_in_dwp): Ditto.
7896
b340913d
TT
78972013-04-15 Tom Tromey <tromey@redhat.com>
7898
7899 * NEWS: Move recent entries into "since 7.6" section.
7900
cc16e6c9
TT
79012013-04-15 Tom Tromey <tromey@redhat.com>
7902
7903 PR c++/13588:
7904 * NEWS: Update.
7905 * break-catch-throw.c (struct exception_catchpoint)
7906 <exception_rx, pattern>: New fields.
7907 (fetch_probe_arguments, dtor_exception_catchpoint)
7908 (check_status_exception_catchpoint)
7909 (print_one_detail_exception_catchpoint): New functions.
7910 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7911 Compile regular expression if needed.
7912 (extract_exception_regexp): New function.
7913 (catch_exception_command_1): Use extract_exception_regexp.
7914 (compute_exception): Use fetch_probe_arguments.
7915 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7916 and check_status fields.
7917 * cp-abi.c (cplus_typename_from_type_info): New function.
7918 * cp-abi.h (cplus_typename_from_type_info): Declare.
7919 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7920 * gdb_regex.h (compile_rx_or_error): Declare.
7921 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7922 comment.
7923 (init_gnuv3_ops): Set get_type_from_type_info field.
7924 * probe.c (compile_rx_or_error): Move...
7925 * utils.c (compile_rx_or_error): ... here.
7926
72f1fe8a
TT
79272013-04-15 Tom Tromey <tromey@redhat.com>
7928
7929 PR c++/15176:
7930 * NEWS: Update.
7931 * break-catch-throw.c (compute_exception): New function.
7932 (exception_funcs): New global.
7933 (_initialize_break_catch_throw): Create $_exception.
7934 * cp-abi.c (cplus_type_from_type_info): New function.
7935 * cp-abi.h (cplus_type_from_type_info): Declare.
7936 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7937 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7938 (gnuv3_get_type_from_type_info): New functions.
7939 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7940
fc4746a2
TT
79412013-04-15 Tom Tromey <tromey@redhat.com>
7942
7943 * break-catch-throw.c (struct exception_names): New.
7944 (exception_functions): Change type.
7945 (re_set_exception_catchpoint): Look for SDT probes.
7946
15a73f56
TT
79472013-04-15 Tom Tromey <tromey@redhat.com>
7948
7949 PR c++/10119:
7950 * break-catch-throw.c (exception_functions): New global.
7951 (gnu_v3_exception_catchpoint_ops): Move earlier.
7952 (struct exception_catchpoint): New.
7953 (classify_exception_breakpoint): Rewrite.
7954 (re_set_exception_catchpoint): New function.
7955 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7956 Allocate a struct exception_catchpoint.
7957 (catch_exception_command_1): Update.
7958 (initialize_throw_catchpoint_ops): Set 're_set' method.
7959
916703c0
TT
79602013-04-15 Tom Tromey <tromey@redhat.com>
7961
7962 * Makefile.in (SFILES): Add break-catch-throw.c
7963 (COMMON_OBS): Add break-catch-throw.o.
7964 * break-catch-throw.c: New file.
7965 * breakpoint.c: Move exception-catching code to new file.
7966 (ep_parse_optional_if_clause): No longer static.
7967 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7968
6e72ca20
TT
79692013-04-15 Tom Tromey <tromey@redhat.com>
7970
7971 PR c++/9065:
7972 * NEWS: Update.
7973 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7974 * c-exp.y (TYPEID): New token.
7975 (exp): Add new TYPEID productions.
7976 (ident_tokens): Add "typeid".
7977 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7978 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7979 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7980 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7981 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7982 case.
7983 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7984 (build_std_type_info_type, gnuv3_get_typeid_type)
7985 (gnuv3_get_typeid): New functions.
7986 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7987 new fields on ABI object.
7988 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7989 * std-operator.def (OP_TYPEID): New.
7990
715c6909
TT
79912013-04-15 Tom Tromey <tromey@redhat.com>
7992
7993 * elfread.c (elf_symtab_read): Install versioned symbol under
7994 unversioned name as well.
7995
8de20a37
TT
79962013-04-15 Tom Tromey <tromey@redhat.com>
7997
7998 PR c++/11990:
7999 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8000 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8001 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8002 (gdb_demangle): New function.
8003 * cp-support.h (gdb_demangle): Declare.
8004 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8005 (dwarf2_name): Use gdb_demangle.
8006 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8007 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8008 suffixes from name.
8009 (gnuv3_print_method_ptr): Use gdb_demangle.
8010 * jv-lang.c (java_demangle): Use gdb_demangle.
8011 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8012 * language.c (unk_lang_demangle): Use gdb_demangle.
8013 * symtab.c (symbol_find_demangled_name)
8014 (demangle_for_lookup): Use gdb_demangle.
8015
591f19e8
TT
80162013-04-15 Tom Tromey <tromey@redhat.com>
8017
8018 PR c++/12824:
8019 * NEWS: Update.
8020 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8021 New constant.
8022 (classify_exception_breakpoint): New function.
8023 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8024 (print_mention_exception_catchpoint)
8025 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8026 (catch_exception_command_1): Handle "rethrow" catchpoint.
8027 (catch_rethrow_command): New function.
8028 (_initialize_breakpoint): Add "catch rethrow" command.
8029
4d40cad2
PM
80302013-04-15 Pierre Muller <muller@sourceware.org>
8031
8032 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8033 set_gdbarch_write_pc as deprecated anymore.
8034
30bcb456
JB
80352013-04-15 Joel Brobecker <brobecker@adacore.com>
8036
8037 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8038 declarations.
8039
da9160e4
YQ
80402013-04-13 Yao Qi <yao@codesourcery.com>
8041
8042 * ctf.c (_initialize_ctf): Include "completer.h".
8043 Call add_target_with_completer instead of add_target.
8044
39ed5604
JK
80452013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8046
8047 Fix GDB regression related to PR binutils/14813.
8048 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8049 * minidebug.c (lzma_close): Add return value comment.
8050 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8051 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8052 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8053
80542013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8055
8056 * config.in: Regenerate.
8057
d521ce57
TT
80582013-04-12 Tom Tromey <tromey@redhat.com>
8059
8060 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8061 const.
8062 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8063 (struct die_reader_specs) <buffer>: Likewise.
8064 (die_reader_func_ftype): Make 'info_ptr' const.
8065 (struct line_header) <include_dirs, statement_program_start,
8066 statement_program_end>: Now const.
8067 (struct file_entry) <name>: Likewise.
8068 (struct partial_die_info) <sibling>: Likewise.
8069 (struct dwarf_block) <data>: Likewise.
8070 (dwarf2_read_section): Remove cast.
8071 (dwarf2_get_section_info): Make 'bufp' const.
8072 (read_index_from_section): Constify.
8073 (dw2_get_file_names_reader): Make 'info_ptr' const.
8074 (dw2_get_primary_filename_reader): Likewise.
8075 (read_comp_unit_head): Make 'info_ptr' and return type const.
8076 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8077 Likewise.
8078 (read_abbrev_offset): Constify.
8079 (dwarf2_create_include_psymtab): Make 'name' const.
8080 (create_debug_types_hash_table): Update.
8081 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8082 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8083 Constify.
8084 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8085 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8086 (read_comp_units_from_section): Constify.
8087 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8088 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8089 const.
8090 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8091 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8092 (create_dwp_hash_table, dwarf2_ranges_read)
8093 (dwarf2_record_block_ranges): Constify.
8094 (read_die_and_children, read_die_and_siblings_1)
8095 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8096 const.
8097 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8098 (abbrev_table_read_table): Constify.
8099 (load_partial_dies): Make 'info_ptr' const.
8100 (read_partial_die, read_attribute_value, read_attribute): Make
8101 'info_ptr' and return type const.
8102 (read_address, read_initial_length)
8103 (read_checked_initial_length_and_offset, read_offset)
8104 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8105 const.
8106 (read_direct_string): Make 'buf' and return type const.
8107 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8108 (read_indirect_string): Make return type const.
8109 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8110 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8111 'info_ptr' const.
8112 (read_str_index): Make return type const.
8113 (add_include_dir): Make 'include_dir' const.
8114 (add_file_name): Make 'name' const.
8115 (dwarf_decode_line_header): Constify.
8116 (psymtab_include_file_name): Make return type const.
8117 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8118 (dwarf2_start_subfile): Make 'filename' const.
8119 (dwarf2_const_value_attr): Make 'bytes' const.
8120 (read_signatured_type_reader): Make 'info_ptr' const.
8121 (decode_locdesc): Constify.
8122 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8123 const.
8124 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8125 'mac_end', and return type const.
8126 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8127 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8128 type const.
8129 (per_cu_header_read_in): Constify.
8130 * symfile.h (dwarf2_get_section_info): Update.
8131
d47a1bc1
TT
81322013-04-12 Tom Tromey <tromey@redhat.com>
8133
8134 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8135
6eaaf48b
EZ
81362013-04-12 Eli Zaretskii <eliz@gnu.org>
8137
fc4c25bf 8138 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8139 * top.c (print_gdb_configuration): New function, displays the
8140 details about GDB configure-time parameters.
8141 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8142 * cli/cli-cmds.c (show_configuration): New function.
8143 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8144 * main.c (captured_main) <print_configuration>: New static var.
8145 <long_options>: Use it.
8146 If --configuration was given, call print_gdb_configuration.
8147
b292c783
JK
81482013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8149 Pedro Alves <palves@redhat.com>
8150
8151 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8152 (generated_files): Add gcore.
8153 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8154 HAVE_NATIVE_GCORE_HOST.
8155 (gcore): New.
8156 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8157 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8158 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8159 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8160 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8161 Add HAVE_NATIVE_GCORE_HOST.
8162 * configure: Regenerate.
8163 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8164 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8165 AC_CONFIG_FILES for gcore.
8166 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8167 gdb_have_gcore.
8168 * gdb_gcore.sh: Rename to ...
8169 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8170 and GCORE_TRANSFORM_NAME substitutions.
8171
c96b3c4f
JK
8172 Fix parsing tabs in ${gdb_target_obs}.
8173 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8174
d6cb50a2
JK
81752013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8176
8177 * remote.c (unpush_and_perror): Add output message final dot.
8178
cf2cb5ec
YQ
81792013-04-11 Yao Qi <yao@codesourcery.com>
8180
8181 * tracepoint.c (tfile_interp_line): Fit parameters line and
8182 utpp in one line.
8183
07293be4
JB
81842013-04-10 Joel Brobecker <brobecker@adacore.com>
8185
8186 * solib.c (solib_map_sections): Remove code overwriting
8187 SO->SO_NAME with the bfd's filename.
8188
f81d1120
PA
81892013-04-10 Pedro Alves <palves@redhat.com>
8190
8191 * cli/cli-decode.c (integer_unlimited_completer): New function.
8192 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8193 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8194 completer.
8195 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8196 (is_unlimited_literal): New function.
8197 (do_set_command): Handle literal "unlimited" arguments.
8198 * frame.c (_initialize_frame) <set backtrace limit>: Document
8199 "unlimited".
8200 * printcmd.c (_initialize_printcmd) <set print
8201 max-symbolic-offset>: Add help text.
8202 * record-full.c (_initialize_record_full) <set record full
8203 insn-number-max>: Likewise.
8204 * record.c (_initialize_record) <set record
8205 instruction-history-size, set record function-call-history-size>:
8206 Add help text.
8207 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8208 help text.
8209 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8210 Likewise.
8211 * source.c (_initialize_source) <set listsize>: Add help text.
8212 * utils.c (initialize_utils) <set height, set width>: Likewise.
8213 <set pagination>: Mention "set height unlimited".
8214 * valprint.c (_initialize_valprint) <set print elements, set print
8215 repeats>: Document "unlimited".
8216
2f9d54cf
PA
82172013-04-10 Pedro Alves <palves@redhat.com>
8218
8219 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8220 instead of disconnect_tracing.
8221 * infcmd.c (detach_command, disconnect_command): Call
8222 query_if_trace_running. Adjust.
8223 * top.c: Include "tracepoint.h".
8224 (quit_target): Delete. Contents moved ...
8225 (quit_force): ... here. Wrap each stage of teardown in
8226 TRY_CATCH. Call disconnect_tracing before detaching.
8227
393fd4c3
YQ
82282013-04-10 Hui Zhu <hui@codesourcery.com>
8229 Yao Qi <yao@codesourcery.com>
8230
8231 * configure.ac: Check libbabeltrace is installed.
8232 * config.in: Regenerate.
8233 * configure: Regenerate.
8234 * Makefile.in (LIBBABELTRACE): New.
8235 (CLIBS): Add LIBBABELTRACE.
8236 * ctf.c: Include "exec.h".
8237 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8238 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8239 (ctf_save_metadata_header): Define new type aliases in
8240 metadata.
8241 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8242 in metadata. Start a new faked packet for trace status.
8243 (ctf_write_status): Write trace status to CTF.
8244 (ctf_write_uploaded_tsv): Write TSV to CTF.
8245 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8246 (ctf_write_definition_end): End the faked packet.
8247
8248 (ctx, ctf_iter, trace_dirname): New.
8249 (start_pos): New variable.
8250 (ctf_destroy, ctf_open_dir, ctf_open): New.
8251 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8252 macros.
8253 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8254 (ctf_fetch_registers, ctf_xfer_partial): New.
8255 (ctf_get_trace_state_variable_value): New.
8256 (ctf_get_tpnum_from_frame_event): New.
8257 (ctf_get_traceframe_address): New.
8258 (ctf_trace_find, ctf_has_stack): New.
8259 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8260 (ctf_get_trace_status, ctf_read_status): New.
8261 (_initialize_ctf): New.
8262 * tracepoint.c (get_tracepoint_number): New
8263 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8264 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8265 * tracepoint.h: ... here.
8266 (get_tracepoint_number): Declare it.
8267 (get_uploaded_tsv): Declare it.
8268
8269 * NEWS: Mention new configure option.
8270
5c2b4418
HZ
82712013-04-10 Pedro Alves <palves@redhat.com>
8272 Hui Zhu <hui@codesourcery.com>
8273
8274 * breakpoint.c (dprintf_re_set): New.
8275 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8276 to dprintf_re_set.
8277
a5c66735
JB
82782013-04-09 Joel Brobecker <brobecker@adacore.com>
8279
8280 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8281 Remove solib-svr4.o from the list.
8282
9e77999c
JB
82832013-04-09 Joel Brobecker <brobecker@adacore.com>
8284
8285 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8286 Use gdb_assert_not_reached instead of invalid boolean expression.
8287
1927e618
PA
82882013-04-09 Pedro Alves <palves@redhat.com>
8289
8290 * remote.c (unpush_and_perror): New function.
8291 (readchar, remote_serial_write): Use it.
8292
10782d74
MM
82932013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8294
8295 * NEWS: Mention new btrace RSP packets.
8296
4c8429ef
TT
82972013-04-08 Tom Tromey <tromey@redhat.com>
8298
8299 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8300 long.
8301
8625fc1b
TT
83022013-04-08 Tom Tromey <tromey@redhat.com>
8303
8304 * maint.c (print_bfd_section_info): Print the section index.
8305 * symmisc.c (dump_msymbols): Print the section index.
8306
e27d198c
TT
83072013-04-08 Tom Tromey <tromey@redhat.com>
8308
8309 PR symtab/8424:
8310 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8311 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8312 * breakpoint.c (resolve_sal_pc): Update.
8313 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8314 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8315 (minsym_lookup_iterator_cb): Use it.
8316 (default_read_var_value): Update.
8317 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8318 Update.
8319 * infcmd.c (jump_command): Update.
8320 * linespec.c (minsym_found): Update.
8321 * maint.c (maintenance_translate_address): Update.
8322 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8323 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8324 * parse.c (write_exp_msymbol): Update.
8325 * printcmd.c (address_info): Update.
8326 * psymtab.c (find_pc_sect_psymbol): Update.
8327 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8328 SYMBOL_OBJ_SECTION.
8329 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8330 Don't initialize SYMBOL_OBJ_SECTION.
8331 * spu-tdep.c (spu_catch_start): Update.
8332 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8333 * symmisc.c (dump_msymbols, print_symbol): Update.
8334 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8335 how fallback section is computed.
8336 (fixup_symbol_section): Update.
8337 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8338 Update.
8339 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8340 Initialize SYMBOL_SECTION.
8341 * symtab.h (struct general_symbol_info) <section>: Update comment.
8342 <obj_section>: Remove.
8343 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8344 (SYMBOL_OBJFILE): New macro.
8345
e6dc44a8
TT
83462013-04-08 Tom Tromey <tromey@redhat.com>
8347
8348 * coffread.c (record_minimal_symbol): Update.
8349 * dbxread.c (record_minimal_symbol): Update.
8350 * elfread.c (record_minimal_symbol): Update.
8351 * machoread.c (macho_symtab_add_minsym): Update.
8352 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8353 Update.
8354 * minsyms.c (prim_record_minimal_symbol): Update.
8355 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8356 argument.
8357 (prim_record_minimal_symbol_and_info): Likewise.
8358 * minsyms.h (prim_record_minimal_symbol_full)
8359 (prim_record_minimal_symbol_and_info): Update.
8360 * symtab.c (allocate_symbol, initialize_symbol)
8361 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8362 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8363 Update.
8364
36192a8d
TT
83652013-04-08 Tom Tromey <tromey@redhat.com>
8366
8367 PR symtab/8423:
8368 * solib-som.c (som_solib_section_offsets): Use BFD section
8369 indices. Set offsets for all sections.
8370 * somread.c (som_symtab_read): Compute BFD section for
8371 symbol. Use prim_record_minimal_symbol_and_info.
8372 (som_symfile_read): Fix comment.
8373 (struct find_section_offset_arg): New.
8374 (find_section_offset, set_section_index): New functions.
8375 (som_symfile_offsets): Use set_section_index to compute
8376 section indices.
8377
65cf3563
TT
83782013-04-08 Tom Tromey <tromey@redhat.com>
8379
8380 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8381 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8382 gdb_bfd_section_index.
8383 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8384 New functions.
8385 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8386 Declare.
8387 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8388 Update.
8389 * objfiles.c (add_to_objfile_sections_full): New function.
8390 (add_to_objfile_sections): Use it.
8391 (build_section_table): Rewrite.
8392 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8393 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8394 (struct objfile) <sections>: Update comment.
8395 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8396 is NULL.
8397 (ALL_OBJSECTIONS): Use it.
8398 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8399 * solib-frv.c (frv_relocate_main_executable): Update.
8400 * solib-target.c (solib_target_relocate_section_addresses):
8401 Use gdb_bfd_section_index.
8402 * symfile.c (build_section_addr_info_from_section_table):
8403 Use gdb_bfd_section_index.
8404 (build_section_addr_info_from_bfd, place_section): Likewise.
8405 * symtab.c (fixup_section): Update.
8406 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8407
7cbd4a93
TT
84082013-04-08 Tom Tromey <tromey@redhat.com>
8409
8410 * minsyms.h (struct bound_minimal_symbol): New.
8411 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8412 Remove objfile argument.
8413 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8414 Return bound_minimal_symbol.
8415 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8416 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8417 Return bound_minimal_symbol.
8418 (in_gnu_ifunc_stub): Update.
8419 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8420 Remove 'objfile_p' argument.
8421 (lookup_solib_trampoline_symbol_by_pc): Update.
8422 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8423 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8424 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8425 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8426 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8427 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8428 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8429 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8430 stack.c, symtab.c, tui/tui-disasm.c: Update.
8431
f85f34ed
TT
84322013-04-08 Tom Tromey <tromey@redhat.com>
8433
8434 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8435 Use symbol's obstack, not an objfile.
8436 * coffread.c (process_coff_symbol): Update.
8437 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8438 * jv-lang.c (add_class_symbol): Update.
8439 * mdebugread.c (new_symbol): Update.
8440 * minsyms.c (prim_record_minimal_symbol_full)
8441 (terminate_minimal_symbol_table): Update.
8442 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8443 * stabsread.c (define_symbol, read_enum_type): Update.
8444 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8445 Handle Ada specially.
8446 (symbol_set_language): Add 'obstack' argument.
8447 (symbol_set_names): Update.
8448 (symbol_natural_name, symbol_demangled_name): Always use
8449 ada_decode_symbol.
8450 * symtab.h (struct general_symbol_info)
8451 <language_specific::obstack>: New field.
8452 <ada_mangled>: New field.
8453 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8454 (symbol_set_language): Update.
8455
ccde22c0
TT
84562013-04-08 Tom Tromey <tromey@redhat.com>
8457
8458 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8459 Take an obstack, not an objfile.
8460 (symbol_set_names): Update.
8461 * symtab.h (symbol_set_demangled_name): Update.
8462
e623cf5d
TT
84632013-04-08 Tom Tromey <tromey@redhat.com>
8464
8465 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8466 allocate_symbol.
8467 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8468 (read_func_scope): Call allocate_template_symbol.
8469 (new_symbol_full): Call allocate_symbol.
8470 * jit.c (finalize_symtab): Call allocate_symbol.
8471 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8472 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8473 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8474 (common_block_end): Call allocate_symbol.
8475 * symtab.c (allocate_symbol, initialize_symbol)
8476 (allocate_template_symbol): New functions.
8477 * symtab.c (allocate_symbol, initialize_symbol)
8478 (allocate_template_symbol): Declare.
8479 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8480
f6de8ec2
PA
84812013-04-08 Pedro Alves <palves@redhat.com>
8482 Keith Seitz <keiths@redhat.com>
8483
8484 * breakpoint.c (create_breakpoint): Rename
8485 "parse_condition_and_thread" parameter to "parse_arg". Update
8486 describing comment. If !PARSE_ARG, then error out if ARG is not
8487 the empty string after extracting the location.
8488 * breakpoint.h (create_breakpoint): Rename
8489 "parse_condition_and_thread" parameter to "parse_arg".
8490
f65ce5fb
AR
84912013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8492
8493 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8494
cc5925ad
YQ
84952013-04-07 Yao Qi <yao@codesourcery.com>
8496
8497 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8498 and 'addr2' to CORE_ADDR.
8499 * target.c (update_current_target): Update.
8500 * target.h (struct target_ops) <to_trace_find>: Change parameter
8501 type to CORE_ADDR.
8502 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8503 'addr2' to CORE_ADDR.
8504 (tfile_trace_find): Likewise.
8505 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8506 Change local variable 'addr' to type CORE_ADDR.
8507 * tracepoint.h (tfind_1): Update declaration.
8508
d9ac0664
EZ
85092013-04-06 Eli Zaretskii <eliz@gnu.org>
8510
8511 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8512 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8513 Include main.h.
8514
8515 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8516 here...
8517 * main.h (windows_get_absolute_argv0): ...to here.
8518
02142a6c
DE
85192013-04-05 Doug Evans <dje@google.com>
8520
8521 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8522 (read_cutu_die_from_dwo): Add comments.
8523 (read_structure_type): Update comment.
8524 (read_enumeration_type, read_namespace_type): Update comment.
8525 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8526
43662968
JK
85272013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8528
8529 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8530 * Makefile.in (gdb.z): Remove.
8531 (install-only): Remove $(man1dir) and gdb.1 installation.
8532 * gdb.1: Remove.
8533
9ead1b84
JK
85342013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8535
8536 Fix compatibility with Linux kernel 3.8.3.
8537 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8538 to more inner block. Remove parsing of NUMBER from outer block.
8539 Parse NUMBER only if KEYWORD has been identified.
8540
d1794952
JK
85412013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8542
8543 Fix variable name shadowing.
8544 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8545 filename to mapsfilename and update its uses.
8546
9025569e
EZ
85472013-04-05 Eli Zaretskii <eliz@gnu.org>
8548
8549 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8550 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8551 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8552 details of the problem.
8553
c9a6ce02
PA
85542013-04-04 Pedro Alves <palves@redhat.com>
8555 Hui Zhu <hui@codesourcery.com>
8556
8557 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8558 tracepoint, reset its STEP_COUNT and call validate_actionline.
8559
5ff888ce
DE
85602013-04-03 Doug Evans <dje@google.com>
8561
bf6af496
DE
8562 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8563 read_die_and_siblings.
8564 (read_die_and_siblings): New function.
8565 (read_cutu_die_from_dwo): Dump die if requested.
8566 (read_die_and_children): Call read_full_die_1 and
8567 read_die_and_siblings_1.
8568 (read_full_die): Dump die if requested.
8569
8570 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8571
0ac5b59e
DE
8572 * dwarf2read.c (struct dwo_file): New member comp_dir.
8573 Rename member name to dwo_name. All uses updated.
8574 (hash_dwo_file): Include comp_dir in computation.
8575 (eq_dwo_file): Ditto.
8576 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8577 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8578
5ff888ce
DE
8579 * psymtab.c (read_psymtabs_with_fullname): Don't call
8580 psymtab_to_fullname if the basenames are different.
8581
ec83d211
JK
85822013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8583
8584 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8585 New entry about "fullname" presence.
8586
4f4352f7
PA
85872013-04-03 Pedro Alves <palves@redhat.com>
8588
8589 * NEWS: Mention x86_64/Cygwin as new native configuration.
8590
3d1d5ea3
DE
85912013-04-02 Doug Evans <dje@google.com>
8592
8593 * dwarf2read.c (read_structure_type): Fix typo in comment.
8594
be9a8770
PA
85952013-04-02 Pedro Alves <palves@redhat.com>
8596
8597 * NEWS: Mention "set/show debug aarch64", "set/show debug
8598 coff-pe-read" and "set/show debug mach-o".
8599
a46c1e42
PA
86002013-04-02 Pedro Alves <palves@redhat.com>
8601
8602 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8603
3ad18b19
EZ
86042013-04-02 Eli Zaretskii <eliz@gnu.org>
8605
8606 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8607 gdb_string.h is now in common/.
8608
e9f1758d
PA
86092013-04-02 Pedro Alves <palves@redhat.com>
8610
8611 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8612 under "New options".
8613
049dc89b
JK
86142013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8615
8616 Revert this patch:
8617 PR gdb/15275
8618 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8619
c33e31fd
PA
86202013-04-02 Pedro Alves <palves@redhat.com>
8621
8622 PR gdb/15275
8623
8624 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8625 (remote_serial_write): New function.
8626 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8627
ea5f3910
JW
86282013-04-01 Jiong Wang <jiwang@tilera.com>
8629
8630 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8631 "New targets" sections.
ea5f3910 8632
5c6fa7ab
DE
86332013-04-01 Doug Evans <dje@google.com>
8634
c0f78cd4
DE
8635 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8636 (process_enumeration_scope): Simplify.
8637
0186c6a7
DE
8638 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8639 type_unit_group ...
8640 (struct signatured_type): ... to here.
8641 (sig_type_ptr): New typedef.
8642 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8643 out of union 't'. All uses updated.
8644 (dw2_get_file_names_reader): Assert not called for a type unit.
8645 (dw2_get_file_names): Assert not called for a type unit or type
8646 unit group.
8647 (build_type_psymtabs_reader): Assert called for a type unit.
8648 (build_type_psymtab_dependencies): Assert called for a type unit group.
8649
5c6fa7ab
DE
8650 * dwarf2read.c (free_dwo_file): Add comment.
8651 (dwarf2_per_objfile_free): Unref dwp bfd.
8652
b3c0ad67 86532013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8654
8655 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8656 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8657 (read_pe_exported_syms): Remove unused 'exportix'.
8658 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8659 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8660 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8661
e2df1547
AR
86622013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8663
8664 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8665 (print_it_watchpoint): Remove unused 'bl'.
8666 (say_where): Remove unused 'uiout'.
8667 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8668 (bkpt_breakpoint_hit): Remove unused 'b'.
8669 (internal_bkpt_print_it): Remove unused 'uiout'.
8670 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8671
d81e75c0
TD
86722013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8673
8674 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8675 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8676
5a8b3f62
DE
86772013-03-29 Doug Evans <dje@google.com>
8678
ab5088bf
DE
8679 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8680 Delete arg is_dwp. All callers updated.
8681 (open_dwp_file): New function.
8682 (open_and_init_dwp_file): Call it.
8683 (get_dwp_file): New function.
8684 (lookup_dwo_cutu): Call it.
8685
a8ad1e57
DE
8686 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8687 unnecessary, cleanup.
8688
6296d8c1
DE
8689 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8690
b0c7bfa9
DE
8691 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8692 (lookup_dwo_unit): New function.
8693 (init_cutu_and_read_dies): Move DWO handling to new functions.
8694
c88ee1f0
DE
8695 * dwarf2read.c (struct signatured_type): Tweak comment.
8696 (struct dwo_unit): Tweak comment.
8697 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8698 (create_dwo_debug_info_hash_table): Tweak comment.
8699 (dwarf2_per_cu_offset_and_type): Tweak comment.
8700
5a8b3f62
DE
8701 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8702 missing .debug_types section.
8703
9852c492
YQ
87042013-03-29 Yao Qi <yao@codesourcery.com>
8705
8706 * corelow.c: Include "completer.h".
8707 (_initialize_corelow): Call add_target_with_completer with
8708 argument 'filename_completer'.
8709 * tracepoint.c: Likewise.
8710 * exec.c (_initialize_exec): Likewise.
8711 * target.c (add_target): Rename to ...
8712 (add_target_with_completer): ... this. Call set_cmd_completer
8713 if parameter completer is not NULL.
8714 (add_target): New.
8715 * target.h: Include "command.h".
8716 (add_target_with_completer): Declare it.
8717
af312be7
JB
87182013-03-28 Joel Brobecker <brobecker@adacore.com>
8719
8720 * coffread.c (is_import_fixup_symbol): New function.
8721 (record_minimal_symbol): Use is_import_fixup_symbol to
8722 detect import fixup symbols, and discard them.
8723
8a0459fd
DE
87242013-03-28 Doug Evans <dje@google.com>
8725
0349ea22
DE
8726 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8727 types hash table until we know we need it.
8728
f652bce2
DE
8729 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8730 index numbers.
8731
e4a48d9d
DE
8732 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8733 All callers updated.
8734 (dw2_print_stats): Print #read CUs too.
8735 (dump_die_shallow): Print signatured types better.
8736
8a0459fd
DE
8737 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8738 info_or_types_section to section. All uses updated.
8739 (struct dwo_unit): Ditto.
8740
bd3eecc3
PA
87412013-03-28 Pedro Alves <palves@redhat.com>
8742
8743 * NEWS (New options): New section.
8744 (New options): Mention set/show remote trace-status-packet.
8745 * remote.c (PACKET_qTStatus): New enumeration value.
8746 (remote_get_trace_status): Skip sending qTStatus if the packet is
8747 disabled. Use packet_ok.
8748 (_initialize_remote): Register a configuration command for
8749 qTStatus packet.
8750
41245087
DE
87512013-03-28 Doug Evans <dje@google.com>
8752
7edbb660
DE
8753 * symfile.c (find_separate_debug_file): Add comment.
8754 (terminate_after_last_dir_separator): Tweak comment.
8755
0018ea6f
DE
8756 * dwarf2read.c (create_partial_symtab): Add forward decl.
8757 (create_partial_symtab): Move to be closer to other psymtab functions.
8758 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8759
ca69b9e6
DE
8760 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8761 (compute_symtab_includes): Remove unnecessary forward declaration.
8762 (die_needs_namespace): Add comment marking group of functions for
8763 dwarf2 name computation.
8764
a9375afe
DE
8765 * typeprint.c (_initialize_typeprint): Improve type help text.
8766
41245087
DE
8767 * python/python.c (finish_python_initialization): Provide suggestion
8768 for how to tell gdb to find its python files.
8769
7f7cc265
PA
87702013-03-28 Pedro Alves <palves@redhat.com>
8771
8772 PR gdb/15294
8773
8774 * source.c (_initialize_source): Change back "set listsize" to an
8775 integer command.
8776
ec21308c
JK
87772013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8778
8779 PR gdb/15275
8780 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8781
840a9a1f
PA
87822013-03-27 Pedro Alves <palves@redhat.com>
8783
8784 * top.c (history_size): Rename to ...
8785 (history_size_setshow_var): ... this. Add comment.
8786 (show_commands): Use readline's 'history_length' instead of
8787 computing the history length by calling history_get in a loop.
8788 (set_history_size_command): Error out for sizes over INT_MAX.
8789 Restore previous history size on invalid size.
8790 (init_history): If HISTSIZE is negative, leave the history size as
8791 zero. Add comments.
8792 (init_main): Adjust.
8793
826ecc4d
PA
87942013-03-27 Pedro Alves <palves@redhat.com>
8795
8796 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8797 coff_pe_read" command to "set debug coff-pe-read".
8798
0ccfeeae
MM
87992013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8800
8801 * record.c (command_size_to_target_size): Fix size comparison.
8802 Change parameter type from pointer to integer to integer.
8803 Update all users.
8804
40653b35
PM
88052013-03-27 Pierre Muller <muller@sourceware.org>
8806
8807 * windows-nat.c (handle_output_debug_string): Avoid typecast
8808 from integer of different size warning.
8809
c62fa0e2
JB
88102013-03-26 Joel Brobecker <brobecker@adacore.com>
8811
8812 * windows-nat.c (handle_output_debug_string): Add empty line
8813 after local block variable definition.
8814
2c619be2
PA
88152013-03-26 Pedro Alves <palves@redhat.com>
8816
8817 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8818 (net_open): Make 'polls' local unsigned.
8819
1b493192
PA
88202013-03-26 Pedro Alves <palves@redhat.com>
8821
8822 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8823 a zuinteger command instead of uinteger.
8824
7ee70bf5
PA
88252013-03-26 Pedro Alves <palves@redhat.com>
8826
8827 * record-full.c (record_full_insn_num): Make it unsigned.
8828 (record_full_check_insn_num, record_full_message)
8829 (record_full_registers_change, record_full_xfer_partial): Remove
8830 record_full_insn_max_num check (it's always != 0).
8831 (record_full_info, record_full_restore): Use %u as format string.
8832 (): Use %u as format string.
8833 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8834 check (it's always != 0).
8835
dfd1f9bb
PA
88362013-03-26 Pedro Alves <palves@redhat.com>
8837
8838 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8839 and "set dcache size" commands zuinteger instead of uinteger.
8840
addb4faf
PA
88412013-03-26 Pedro Alves <palves@redhat.com>
8842
8843 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8844 command zuinteger instead of uinteger.
8845
b75bf488
PA
88462013-03-26 Pedro Alves <palves@redhat.com>
8847
8848 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8849 zuinteger instead of uinteger.
8850
42c634cb
PA
88512013-03-26 Pedro Alves <palves@redhat.com>
8852
8853 * record.c (record_insn_history_size_setshow_var)
8854 (record_call_history_size_setshow_var): New globals.
8855 (command_size_to_target_size): New function.
8856 (cmd_record_insn_history, cmd_record_call_history): Use
8857 command_size_to_target_size instead of cast.
8858 (validate_history_size, set_record_insn_history_size)
8859 (set_record_call_history_size): New functions.
8860 (_initialize_record): Install set_record_insn_history_size and
8861 set_record_call_history_size as "set" hooks of "set record
8862 instruction-history-size" and "set record
8863 function-call-history-size".
8864
1fb2e2b5
PA
88652013-03-26 Pedro Alves <palves@redhat.com>
8866
8867 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8868 use with history_max_entries use. Remove FIXME note.
8869
99c819ee
MM
88702013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8871
8872 * record-btrace.c (record_btrace_close): Call
8873 record_btrace_auto_disable.
8874
9f9e404c
JB
88752013-03-25 Joel Brobecker <brobecker@adacore.com>
8876
8877 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8878
ebcdfe33
DE
88792013-03-25 Doug Evans <dje@google.com>
8880
8881 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8882
24955f63
TT
88832013-03-25 Tom Tromey <tromey@redhat.com>
8884
8885 PR symtab/11462:
8886 * c-exp.y (exp): Add new productions for destructors after '.' and
8887 '->'.
8888 (write_destructor_name): New function.
8889
fce632b6
TT
88902013-03-25 Tom Tromey <tromey@redhat.com>
8891
8892 PR c++/9197:
8893 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8894 value_struct_elt, not lookup_struct_elt_type.
8895 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8896 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8897 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8898
a4341769
YQ
88992013-03-25 Yao Qi <yao@codesourcery.com>
8900
8901 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8902 instead of '_mkdir'.
8903
b5981e5a
EZ
89042013-03-23 Eli Zaretskii <eliz@gnu.org>
8905
8906 * windows-nat.c (windows_get_absolute_argv0): New function.
8907 * windows-nat.h: Add its prototype.
8908
8909 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8910 Use IS_DIR_SEPARATOR instead of looking for a character inside
8911 SLASH_STRING. Include filenames.h.
8912 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8913 relocate_gdb_directory works when passed gdb_program_name.
8914 Include windows-nat.h.
8915
598d3636
JK
89162013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8917
8918 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8919 * remote.c (trace_error): Remove the special handling of '2'.
8920 (readchar) <SERIAL_EOF>
8921 (readchar) <SERIAL_ERROR>
8922 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8923 (remote_get_trace_status): Call throw_exception if EX is
8924 TARGET_CLOSE_ERROR.
8925 * utils.c (perror_with_name): Rename to ...
8926 (throw_perror_with_name): ... here. New parameter errcode, describe it
8927 in the function comment.
8928 (perror_with_name): New function wrapper.
8929 * utils.h (enum errors): New stub declaration.
8930 (throw_perror_with_name): New declaration.
8931
82b821e9
PA
89322013-03-22 Pedro Alves <palves@redhat.com>
8933 Yao Qi <yao@codesourcery.com>
8934 Mark Kettenis <kettenis@gnu.org>
8935
8936 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8937 Don't let the user set the value to UINT_MAX directly.
8938 <var_integer>: Don't let the user set the value to INT_MAX
8939 directly.
8940
78a095c3
JK
89412013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8942
8943 * remote.c (remote_unpush_target): New function.
8944 (remote_open_1): Remove two pop_target calls, update one comment, add
8945 comment to target_preopen call. Replace pop_target call by
8946 remote_unpush_target call.
8947 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8948 pop_target calls by remote_unpush_target calls.
8949
3e74e146
PA
89502013-03-22 Pedro Alves <palves@redhat.com>
8951
8952 * linux-nat.c (linux_child_follow_fork): Don't call
8953 linux_enable_event_reporting.
8954 (linux_handle_extended_wait): Don't call
8955 linux_enable_event_reporting.
8956
a2213dca
PA
89572013-03-22 Pedro Alves <palves@redhat.com>
8958
8959 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8960 use it to rewrite the trampoline buffers with type gdb_byte[], and
8961 undefine the macro. Remove char* cast.
8962
bd712aed
DE
89632013-03-21 Doug Evans <dje@google.com>
8964
8965 New commands "mt set per-command {space,time,symtab} {on,off}".
8966 * NEWS: Add entry.
8967 * event-top.c: #include "maint.h".
8968 * main.c: #include "maint.h".
8969 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8970 timeval-utils.h, maint.h, cli/cli-setshow.h.
8971 (per_command_time, per_command_space): New static globals.
8972 (per_command_symtab): New static global.
8973 (per_command_setlist, per_command_showlist): New static globals.
8974 (struct cmd_stats): Move here from utils.c.
8975 (set_per_command_time): Renamed from set_display_time in utils.c
8976 and moved here. All callers updated.
8977 (set_per_command_space): Renamed from set_display_space in utils.c
8978 and moved here. All callers updated.
8979 (count_symtabs_and_blocks): New function.
8980 (report_command_stats): Moved here from utils.c. Add support for
8981 printing symtab stats. Only print data if enabled before command
8982 executed.
8983 (make_command_stats_cleanup): Ditto.
8984 (sert_per_command_cmd, show_per_command_cmd): New functions.
8985 (_initialize_maint_cmds): Add new commands
8986 mt set per-command {space,time,symtab} {on,off}.
8987 * maint.h: New file.
8988 * top.c: #include "maint.h".
8989 * utils.c (reset_prompt_for_continue_wait_time): New function.
8990 (get_prompt_for_continue_wait_time): New function.
8991 * utils.h (reset_prompt_for_continue_wait_time): Declare
8992 (get_prompt_for_continue_wait_time): Declare.
8993 (make_command_stats_cleanup): Moved to maint.h.
8994 (set_display_time, set_display_space): Moved to maint.h and renamed
8995 to set_per_command_time, set_per_command_space.
8996 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8997 parse_binary_operation and made non-static. Don't call error,
8998 just return an error marker. All callers updated.
8999 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9000
d76488d8
TT
90012013-03-21 Tom Tromey <tromey@redhat.com>
9002
9003 * symfile.c (alloc_section_addr_info): Update header. Don't set
9004 'num_sections' field.
9005 (build_section_addr_info_from_section_table): Set 'num_sections'.
9006 (build_section_addr_info_from_bfd): Likewise.
9007 (build_section_addr_info_from_objfile): Remove dead loop
9008 condition.
9009 (free_section_addr_info): Unconditionally call xfree.
9010 (relative_addr_info_to_section_offsets, addrs_section_sort)
9011 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9012 condition.
9013 (syms_from_objfile_1): Remove dead 'if' condition. Check
9014 'num_sections'.
9015 (add_symbol_file_command): Set 'num_sections'.
9016 * symfile-mem.c (symbol_file_add_from_memory): Set
9017 'num_sections'.
9018 * somread.c (som_symfile_offsets): Remove dead loop condition.
9019 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9020 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9021
a72e5169 90222013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9023
9024 * tracepoint.h (decode_agent_options): Add 'trace_string'
9025 argument.
9026 * tracepoint.c (decode_agent_options): Add 'trace_string'
9027 argument.
9028 (validate_actionline): Update.
9029 (collect_symbol): Add 'trace_string' argument.
9030 (struct add_local_symbols_data) <trace_string>: New field.
9031 (do_collect_symbol): Update.
9032 (add_local_symbols): Add 'trace_string' argument.
9033 (encode_actions_1): Update.
9034 (trace_dump_actions): Update.
9035 * dwarf2loc.c (access_memory): Update.
9036 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9037 * ax-general.c (new_agent_expr): Update.
9038 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9039 (gen_trace_for_return_address): Add argument.
9040 (trace_kludge, trace_string_kludge): Remove.
9041 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9042 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9043 (gen_trace_for_var): Add 'trace_string' argument.
9044 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9045 (gen_printf, agent_eval_command_one): Update.
9046
b2f83c08
TT
90472013-03-21 Tom Tromey <tromey@redhat.com>
9048
9049 PR exp/15109:
9050 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9051 Handle FILENAME token.
9052
9507860e
TT
90532013-03-21 Tom Tromey <tromey@redhat.com>
9054
9055 * c-exp.y (YYPRINT): Define.
9056 (c_print_token): New function.
9057
e403aa4b
TT
90582013-03-21 Tom Tromey <tromey@redhat.com>
9059
9060 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9061
af307d6a
YQ
90622013-03-21 Yao Qi <yao@codesourcery.com>
9063
9064 * ctf.c: Include "gdb_stat.h".
9065 [USE_WIN32API]: New macro 'mkdir'.
9066 (ctf_start): Use permission bits macros if they are defined.
9067
fb81d016
KS
90682013-03-20 Keith Seitz <keiths@redhat.com>
9069
9070 * breakpoint.h (struct breakpoint): Add comment to
9071 extra_string indicating that this member is mallod'd.
9072 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9073
ef0026f0
PA
90742013-03-20 Pedro Alves <palves@redhat.com>
9075
9076 PR gdb/15289
9077
9078 * cli/cli-setshow.c (do_set_command)
9079 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9080 the result of parsing the command argument. Throw error if the
9081 value is greater than UINT_MAX. Print the invalid value with
9082 plongest.
9083 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9084 result of parsing the command argument. Throw error if the value
9085 is greater than INT_MAX, not greater or equal. Also throw error
9086 if the value is less than INT_MIN. Print the invalid value with
9087 plongest.
9088 <var_zuinteger_unlimited>: Throw error if the value is greater
9089 than INT_MAX, not greater or equal.
9090 (do_show_command) <var_integer, var_zinteger,
9091 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9092
24d6c2a0
TT
90932013-03-20 Tom Tromey <tromey@redhat.com>
9094
9095 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9096 if possible.
9097 * dwarf2read.c (read_func_scope): Remove old FIXME.
9098 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9099 not LOC_COMPUTED.
9100 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9101 Unconditionally call via computed ops, if possible.
9102 * printcmd.c (address_info): Unconditionally call via computed ops,
9103 if possible.
9104 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9105 if possible.
9106 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9107 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9108 if possible.
9109
f1e6e072
TT
91102013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9111 Tom Tromey <tromey@redhat.com>
9112
9113 PR symtab/8421:
9114 * coffread.c (coff_register_index): New global.
9115 (process_coff_symbol, coff_read_enum_type): Set
9116 SYMBOL_ACLASS_INDEX.
9117 (_initialize_coffread): Initialize new global.
9118 * dwarf2loc.c (locexpr_find_frame_base_location)
9119 (dwarf2_block_frame_base_locexpr_funcs)
9120 (loclist_find_frame_base_location)
9121 (dwarf2_block_frame_base_loclist_funcs): New.
9122 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9123 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9124 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9125 (dwarf2_block_frame_base_loclist_funcs): New.
9126 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9127 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9128 globals.
9129 (read_func_scope): Update.
9130 (fixup_go_packaging, mark_common_block_symbol_computed)
9131 (var_decode_location, new_symbol_full, dwarf2_const_value):
9132 Set SYMBOL_ACLASS_INDEX.
9133 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9134 (_initialize_dwarf2_read): Initialize new globals.
9135 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9136 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9137 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9138 globals.
9139 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9140 (_initialize_mdebugread): Initialize new globals.
9141 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9142 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9143 (stab_register_index, stab_regparm_index): New globals.
9144 (define_symbol, read_enum_type, common_block_end): Set
9145 SYMBOL_ACLASS_INDEX.
9146 (_initialize_stabsread): Initialize new globals.
9147 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9148 globals.
9149 (MAX_SYMBOL_IMPLS): New define.
9150 (register_symbol_computed_impl, register_symbol_block_impl)
9151 (register_symbol_register_impl)
9152 (initialize_ordinary_address_classes): New functions.
9153 (_initialize_symtab): Call initialize_ordinary_address_classes.
9154 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9155 (struct symbol_impl): New.
9156 (SYMBOL_ACLASS_BITS): New define.
9157 (struct symbol) <aclass, ops>: Remove fields.
9158 <aclass_index>: New field.
9159 (symbol_impls): Declare.
9160 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9161 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9162 (register_symbol_computed_impl, register_symbol_block_impl)
9163 (register_symbol_register_impl): Declare.
9164 (struct symbol_computed_ops): Add location_has_loclist.
9165 (struct symbol_block_ops): New.
9166 (SYMBOL_BLOCK_OPS): New.
9167 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9168
dbccfd4c
TT
91692013-03-20 Tom Tromey <tromey@redhat.com>
9170
9171 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9172 (print_partial_symbols, recursively_search_psymtabs): Use
9173 PSYMBOL_CLASS.
9174
e3f1ad4f
PM
91752013-03-20 Pierre Muller <muller@sourceware.org>
9176
9177 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9178 addtion, subtraction, multiplication and division binary operator.
9179
460014f5
JK
91802013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9181
9182 Code cleanup.
9183 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9184 * bsd-kvm.c (bsd_kvm_close): Likewise.
9185 * bsd-uthread.c (bsd_uthread_close): Likewise.
9186 * corelow.c (core_close): Likewise.
9187 (core_close_cleanup): Remove parameter quitting from a caller.
9188 * event-top.c (async_disconnect): Likewise.
9189 * exec.c (exec_close_1): Remove parameter quitting.
9190 * go32-nat.c (go32_close): Likewise.
9191 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9192 parameter quitting from a caller.
9193 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9194 variable.
9195 (mips_linux_close): Remove parameter quitting. Remove parameter
9196 quitting from a caller.
9197 * monitor.c (monitor_close): Remove parameter quitting.
9198 * monitor.h (monitor_close): Likewise.
9199 * record-btrace.c (record_btrace_close): Likewise.
9200 * record-full.c (record_full_close): Likewise.
9201 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9202 it also from fprintf_unfiltered.
9203 * remote-mips.c (mips_close): Remove parameter quitting.
9204 (mips_detach): Remove parameter quitting from a caller.
9205 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9206 (gdbsim_close): Remove duplicate function comment. Remove parameter
9207 quitting and remove it also from printf_filtered.
9208 * remote.c (remote_close): Remove parameter quitting.
9209 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9210 * target.c (update_current_target): Remove parameter int from to_close
9211 de_fault.
9212 (push_target, unpush_target, pop_target): Remove parameter quitting from
9213 a caller.
9214 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9215 Remove parameter quitting from a caller.
9216 (target_preopen): Remove parameter quitting from a caller.
9217 (target_close): Remove parameter quitting. Remove parameter quitting
9218 from a caller two times. Remove parameter quitting also from
9219 fprintf_unfiltered.
9220 * target.h (struct target_ops): Remove parameter quitting and as int
9221 from fields to_xclose and to_close.
9222 (extern struct target_ops current_target):
9223 (target_close, pop_all_targets): Remove parameter quitting. Update the
9224 comment.
9225 (pop_all_targets_above): Remove parameter quitting.
9226 * top.c (quit_target): Remove parameter quitting from a caller.
9227 * tracepoint.c (tfile_close): Remove parameter quitting.
9228 * windows-nat.c (windows_close): Remove parameter quitting.
9229
35a7120b
CV
92302013-03-20 Corinna Vinschen <vinschen@redhat.com>
9231
9232 * windows-nat.c (handle_output_debug_string): Replace call
9233 to string_to_core_addr with call to strtoull.
9234
8249a5a9
YQ
92352013-03-20 Yao Qi <yao@codesourcery.com>
9236
9237 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9238 and write it to CTF metadata.
9239
2c15ef43
CV
92402013-03-19 Corinna Vinschen <vinschen@redhat.com>
9241
9242 * windows-nat.c (handle_output_debug_string): Change type of n to
9243 SIZE_T to avoid crash on 64 bit systems.
9244
1cdd3232
EZ
92452013-03-17 Eli Zaretskii <eliz@gnu.org>
9246
9247 * python/python-internal.h (HAVE_SNPRINTF)
9248 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9249 about redefinition of snprintf by pyerrors.h.
9250
3cb2ab1a
SE
92512013-03-15 Steve Ellcey <sellcey@mips.com>
9252
9253 * remote-sim.c (sim_command_completer): Make char arguments const.
9254
9ce98649
TT
92552013-03-15 Tom Tromey <tromey@redhat.com>
9256
9257 PR c++/15116:
9258 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9259
dccee2de
TT
92602013-03-14 Tom Tromey <tromey@redhat.com>
9261
9262 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9263 New fields.
9264 (get_file_crc): Move from symfile.c.
9265 (gdb_bfd_crc): New function.
9266 * gdb_bfd.h (gdb_bfd_crc): Declare.
9267 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9268 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9269 (separate_debug_file_exists): Use gdb_bfd_crc.
9270
cc0ea93c
TT
92712013-03-14 Tom Tromey <tromey@redhat.com>
9272
9273 * symfile.c (get_debug_link_info): Remove.
9274 (find_separate_debug_file_by_debuglink): Use
9275 bfd_get_debug_link_info.
9276
08c23b0d
TT
92772013-03-14 Tom Tromey <tromey@redhat.com>
9278
9279 * symtab.c (error_in_psymtab_expansion): New function.
9280 (lookup_symbol_aux_quick)
9281 (basic_lookup_transparent_type_quick): Remove "last resort"
9282 code. Use error_in_psymtab_expansion.
9283
288e77a7
JK
92842013-03-14 Doug Evans <dje@google.com>
9285 Jan Kratochvil <jan.kratochvil@redhat.com>
9286
9287 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9288 any successful compare_filenames_for_search or FILENAME_CMP.
9289 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9290 * symtab.c (iterate_over_some_symtabs): Likewise.
9291
8f1b8b82
JK
92922013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9293
9294 * source.c (print_source_lines_base): Make a local copy of
9295 symtab_to_fullname.
9296
23eb71e4
JK
92972013-03-14 Hui Zhu <hui_zhu@mentor.com>
9298 Jan Kratochvil <jan.kratochvil@redhat.com>
9299
9300 * source.c (print_source_lines_base): Suppress "file" for TUI.
9301
bb869963
SDJ
93022013-03-14 Keith Seitz <keiths@redhat.com>
9303 Alan Matsuoka <alanm@redhat.com>
9304
9305 PR c++/15203
9306 PR c++/15210
9307 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9308 TYPE_CODE_METHOD.
9309 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9310 symbols.
9311
d6682f9e
YQ
93122013-03-14 Yao Qi <yao@codesourcery.com>
9313
9314 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9315 status to tfile if trace is stopped by command 'tstop'.
9316
a22fa6e4
YQ
93172013-03-14 Yao Qi <yao@codesourcery.com>
9318
9319 * tracepoint.c (tfile_write_status): Write trace notes and user
9320 name into tfile if they are not NULL.
9321
d0353e76
YQ
93222013-03-14 Hui Zhu <hui@codesourcery.com>
9323 Yao Qi <yao@codesourcery.com>
9324
9325 * Makefile.in (REMOTE_OBS): Add ctf.o.
9326 (SFILES): Add ctf.c.
9327 (HFILES_NO_SRCDIR): Add ctf.h.
9328 * ctf.c, ctf.h: New files.
9329 * tracepoint.c: Include 'ctf.h'.
9330 (collect_pseudocommand): Remove static.
9331 (trace_save_command): Parse option "-ctf".
9332 Produce different trace file writers per option.
9333 Adjust output message.
9334 (trace_save_tfile, trace_save_ctf): New.
9335 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9336 * mi/mi-main.c: Include 'ctf.h'.
9337 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9338 trace_save_tfile or trace_save_ctf.
9339 * NEWS: Mention these changes.
9340
3f43bc09
YQ
93412013-03-14 Yao Qi <yao@codesourcery.com>
9342
9343 * tracepoint.c (trace_file_writer_xfree): New.
9344 (struct tfile_writer_data): New.
9345 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9346 (tfile_write_header, tfile_write_regblock_type): New.
9347 (tfile_write_status, tfile_write_uploaded_tsv): New.
9348 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9349 (tfile_write_raw_data, (tfile_end): New.
9350 (tfile_write_ops): New global variable.
9351 (TRACE_WRITE_R_BLOCK): New macro.
9352 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9353 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9354 (TRACE_WRITE_V_BLOCK): New macro.
9355 (trace_save): Add extra one parameter WRITER. Make it static.
9356 Use WRITER to writer trace.
9357 (tfile_trace_file_writer_new): New.
9358 (trace_save_command): Caller update.
9359 (trace_save_tfile): Write trace data in TFILE format.
9360 * tracepoint.h (struct trace_frame_write_ops): New.
9361 (struct trace_file_write_ops): New.
9362 (struct trace_file_writer): New.
9363 (trace_save): Remove its declaration.
9364 (trace_save_tfile): Declare it.
9365 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9366 instead of trace_save.
9367
58665b40
PA
93682013-03-13 Pedro Alves <palves@redhat.com>
9369
9370 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9371
10217050
PA
93722013-03-13 Pedro Alves <palves@redhat.com>
9373
9374 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9375 commented out code.
9376 * demangle.c (current_demangling_style_string): Make it const.
9377 (set_demangling_command): Assert the demangling style is known.
9378 Remove all handling of unknown styles. Set
9379 'current_demangling_style_string' to an element of the
9380 demangling_style_names array.
9381 (set_demangling_style): Delete.
9382 (_initialize_demangler): Set current_demangling_style_string to the
9383 element of the demangling_style_names array that corresponds to
9384 the default demangling style. Remove FIXME note. Don't call
9385 set_demangling_style.
9386 * gdb-demangle.h (set_demangling_style): Remove declaration.
9387
6f937416
PA
93882013-03-13 Pedro Alves <palves@redhat.com>
9389
9390 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9391 fields const.
9392 (ada_make_symbol_completion_list): Make "text0" parameter const.
9393 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9394 * breakpoint.c (condition_completer): Make "text" and "word"
9395 parameters const. Adjust.
9396 (check_tracepoint_command): Adjust to validate_actionline
9397 prototype change.
9398 (catch_syscall_completer): Make "text" and "word" parameters
9399 const.
9400 * cli/cli-cmds.c (show_user): Make "comname" local const.
9401 (valid_command_p): Make "command" parameter const.
9402 (alias_command): Make "alias_prefix" and "command_prefix" locals
9403 const.
9404 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9405 (add_alias_cmd): Make "name" and "oldname" parameters const.
9406 Adjust. No longer make copy of OLDNAME.
9407 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9408 (add_setshow_cmd_full, add_setshow_enum_cmd)
9409 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9410 (add_setshow_filename_cmd, add_setshow_string_cmd)
9411 (add_setshow_string_noescape_cmd)
9412 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9413 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9414 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9415 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9416 Make "name" parameter const.
9417 (help_cmd): Rename "command" parameter to "arg". New const local
9418 "command".
9419 (find_cmd): Make "command" parameter const.
9420 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9421 deprecated_cmd_warning prototype change.
9422 (undef_cmd_error): Make "cmdtype" parameter const.
9423 (lookup_cmd): Make "line" parameter const.
9424 (deprecated_cmd_warning): Change type of "text" parameter to
9425 pointer to const char, from pointer to pointer to char. Adjust.
9426 (lookup_cmd_composition): Make "text" parameter const.
9427 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9428 parameters const.
9429 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9430 const.
9431 * cli/cli-script.c (validate_comname): Make "tem" local const.
9432 (define_command): New const local "tem_c". Use it in calls to
9433 lookup_cmd.
9434 (document_command): Make "tem" and "comfull" locals const.
9435 (show_user_1): Make "prefix" and "name" parameters const.
9436 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9437 const.
9438 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9439 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9440 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9441 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9442 (complete_on_enum, add_setshow_enum_cmd)
9443 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9444 (add_setshow_filename_cmd, add_setshow_string_cmd)
9445 (add_setshow_string_noescape_cmd)
9446 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9447 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9448 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9449 Change prototypes, constifying strings.
9450 * completer.c (noop_completer, filename_completer): Make "text"
9451 and "prefix" parameters const.
9452 (location_completer, expression_completer)
9453 (complete_line_internal): Make "text" and "prefix" parameters
9454 const and adjust.
9455 (command_completer, signal_completer): Make "text" and "prefix"
9456 parameters const.
9457 * completer.h (noop_completer, filename_completer)
9458 (expression_completer, location_completer, command_completer)
9459 (signal_completer): Change prototypes.
9460 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9461 parameters const.
9462 * cp-abi.c (cp_abi_completer): Likewise.
9463 * expression.h (parse_expression_for_completion): Change
9464 prototype.
9465 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9466 parameters const.
9467 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9468 * infrun.c (handle_completer): Make "text" and "word" parameters
9469 const.
9470 * interps.c (interpreter_completer): Make "text" and "word"
9471 parameters const.
9472 * language.h (struct language_defn)
9473 <la_make_symbol_completion_list>: Make "text" and "word"
9474 parameters const.
9475 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9476 (parse_exp_in_context): Rename to ...
9477 (parse_exp_in_context_1): ... this.
9478 (parse_exp_in_context): Reimplement, with const hack from
9479 parse_exp_1.
9480 (parse_expression_for_completion): Make "string" parameter const.
9481 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9482 to pointer to const char. Adjust.
9483 (print_command_1): Make "exp" parameter const.
9484 (output_command): Rename to ...
9485 (output_command_const): ... this. Make "exp" parameter const.
9486 (output_command): Reimplement.
9487 (x_command): Adjust.
9488 (display_command): Rename "exp" parameter to "arg". New "exp"
9489 local, const version of "arg".
9490 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9491 "cmd_name" local const.
9492 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9493 call.
9494 (cmdpy_completer): Make "text" and "word" parameters const.
9495 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9496 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9497 const.
9498 * remote.c (_initialize_remote): Make "cmd_name" local const.
9499 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9500 parameters const. Adjust.
9501 (completion_list_add_fields): Make "sym_text", "text" and "word"
9502 parameters const.
9503 (struct add_name_data) <sym_text, text, word>: Make fields const.
9504 (default_make_symbol_completion_list_break_on): Make "text" and
9505 "word" parameters const. Adjust locals.
9506 (default_make_symbol_completion_list)
9507 (make_symbol_completion_list, make_symbol_completion_type)
9508 (make_symbol_completion_list_fn): Make "text" and "word"
9509 parameters const.
9510 (make_file_symbol_completion_list): Make "text", "word" and
9511 "srcfile" parameters const. Adjust locals.
9512 (add_filename_to_list): Make "text" and "word" parameters const.
9513 (struct add_partial_filename_data) <text, word>: Make fields
9514 const.
9515 (make_source_files_completion_list): Make "text" and "word"
9516 parameters const.
9517 * symtab.h (default_make_symbol_completion_list_break_on)
9518 (default_make_symbol_completion_list, make_symbol_completion_list)
9519 (make_symbol_completion_type enum type_code)
9520 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9521 (make_source_files_completion_list): Change prototype.
9522 * top.c (execute_command): Adjust to pass pointer to pointer to
9523 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9524 change.
9525 (set_verbose): Make "cmdname" local const.
9526 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9527 and adjust.
9528 (validate_actionline): Make "line" parameter a pointer to const
9529 char, and adjust.
9530 (encode_actions_1): Make "action_exp" local const, and adjust.
9531 (encode_actions): Adjust.
9532 (replace_comma): Delete.
9533 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9534 const, and adjust. Don't frob the action string while splitting
9535 it at commas. Instead, make a copy of each split substring in
9536 turn.
9537 (trace_dump_command): Adjust to validate_actionline prototype
9538 change.
9539 * tracepoint.h (decode_agent_options, decode_agent_options)
9540 (encode_actions, validate_actionline): Change prototypes.
9541 * valprint.h (output_command): Delete declaration.
9542 (output_command_const): Declare.
9543 * value.c (function_destroyer): Cast const away in xfree call.
9544
a0bcdaa7
PA
95452013-03-13 Pedro Alves <palves@redhat.com>
9546
9547 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9548 rather than casting 'const char * const *' to 'const char **'.
9549 * ada-lex.l (processInt): Make "trailer" local const. Remove
9550 'const char **' cast.
9551 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9552 locals, and use those as strtol output pointer, instead than doing
9553 invalid casts to from 'const char **' to 'char **'.
9554 (_initialize_demangle): Remove cast.
9555 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9556 locals, and use those as strtol output pointer, instead than doing
9557 invalid casts to from 'const char **' to 'char **'.
9558 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9559 casts.
9560 * stap-probe.c (stap_parse_register_operand)
9561 (stap_parse_single_operand): Likewise.
9562
8ddb1965
YQ
95632013-03-13 Yao Qi <yao@codesourcery.com>
9564
9565 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9566 the last matched 'V' blcok in trace frame.
9567
2d450646
JB
95682013-03-12 Joel Brobecker <brobecker@adacore.com>
9569
9570 * NEWS: Create a new section for the next release branch.
9571 Rename the section of the current branch, now that it has
9572 been cut.
9573
b4b79973 95742013-03-12 Joel Brobecker <brobecker@adacore.com>
9575
9576 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9577 * version.in: Bump version to 7.6.50.20130312-cvs.
9578
ee047554
KS
95792013-03-12 Keith Seitz <keiths@redhat.com>
9580
9581 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9582 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9583 Remove temporary copy of input string.
9584 (mi_execute_command_wrapper): Make "cmd" const.
9585 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9586 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9587 Use const strings.
9588 (mi_parse): Make "cmd" const.
9589 Use const strings.
9590 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9591
bbc13ae3
KS
95922013-03-12 Keith Seitz <keiths@redhat.com>
9593
9594 * ada-lang.c (ada_read_renaming_var_value): Pass const
9595 pointer to expression string to parse_exp_1.
9596 (create_excep_cond_exprs): Likewise.
9597 * ax-gdb.c (agent_eval_command_one): Likewise.
9598 (maint_agent_printf_command): Likewise.
9599 Constify much of the string handling/parsing.
9600 * breakpoint.c (set_breakpoint_condition): Pass const
9601 pointer to expression string to parse_exp_1.
9602 (update_watchpoint): Likewise.
9603 (parse_cmd_to_aexpr): Constify string handling.
9604 Pass const pointer to parse_exp_1.
9605 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9606 (find_condition_and_thread): Likewise.
9607 Make TOK const.
9608 (watch_command_1): Make "arg" const.
9609 Constify string handling.
9610 Copy the expression string instead of changing the input
9611 string.
9612 (update_breakpoint_location): Pass const pointer to
9613 parse_exp_1.
9614 * eval.c (parse_and_eval_address): Make "exp" const.
9615 (parse_to_comma_and_eval): Make "expp" const.
9616 (parse_and_eval): Make "exp" const.
9617 * expression.h (parse_expression): Make argument const.
9618 (parse_exp_1): Make first argument const.
9619 * findcmd.c (parse_find_args): Treat "args" as const.
9620 * linespec.c (parse_linespec): Pass const pointer to
9621 linespec_expression_to_pc.
9622 (linespec_expression_to_pc): Make "exp_ptr" const.
9623 * parse.c (parse_exp_1): Make "stringptr" const.
9624 Make a copy of the expression to pass to parse_exp_in_context until
9625 this whole interface can be constified.
9626 (parse_expression): Make "string" const.
9627 * printcmd.c (ui_printf): Treat "arg" as const.
9628 Handle const strings.
9629 * tracepoint.c (validate_actionline): Pass const pointer to
9630 all calls to parse_exp_1.
9631 (encode_actions_1): Likewise.
9632 * value.h (parse_to_comma_and_eval): Make argument const.
9633 (parse_and_eval_address): Likewise.
9634 (parse_and_eval): Likewise.
9635 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9636 (varobj_set_value): Likewise.
9637 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9638 constify string handling.
9639 Pass const pointers to parse_and_eval_address and
9640 parse_to_comman_and_eval.
9641 * cli/cli-utils.c (skip_to_space): Rename to ...
9642 (skip_to_space_const): ... this. Handle const strings.
9643 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9644 skip_to_space_const.
9645 (skip_to_space_const): Declare.
9646 * common/format.c (parse_format_string): Make "arg" const.
9647 Handle const strings.
9648 * common/format.h (parse_format_string): Make "arg" const.
9649 * gdbserver/ax.c (ax_printf): Make "format" const.
9650 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9651 of the expression string.
9652
f3cec7e6
HZ
96532013-03-12 Hui Zhu <hui@codesourcery.com>
9654
9655 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9656
9df7235c
HZ
96572013-03-12 Yao Qi <yao@codesourcery.com>
9658 Hui Zhu <hui@codesourcery.com>
9659
9660 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9661 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9662 DW_OP_deref_size.
9663
82d049ab
PH
96642013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9665
5f8e0b8f
MF
9666 * ada-lex.l (rules): Only recognize 'thread' as a
9667 delimiter when followed by numerals, as for c-exp.y.
9668 Use new rewind_to_char function to rewind the input for
9669 expression-delimiting tokens.
9670 (rewind_to_char): New function.
82d049ab 9671
8c1fb155
JK
96722013-03-11 Pedro Alves <palves@redhat.com>
9673 Jan Kratochvil <jan.kratochvil@redhat.com>
9674
9675 * configure: Regenerate.
9676 * configure.ac (check dynamic export flag): Link python test with
9677 $PYTHON_LIBS.
9678
cc81e1c6
DE
96792013-03-11 Doug Evans <dje@google.com>
9680 Keith Seitz <keiths@redhat.com>
9681
9682 * linespec.c (find_linespec_symbols): Call find_function_symbols
9683 first, and then call lookup_prefix_sym/find_method.
9684
39086a0e
PA
96852013-03-11 Pedro Alves <palves@redhat.com>
9686
9687 * charset.c (convert_between_encodings): Don't cast between
9688 different pointer to pointer types. Instead, make the 'inp' local
9689 be of the type iconv expects.
9690 (wchar_iterate): Don't cast between different pointer to pointer
9691 types. Instead, use new pointer local of the type iconv expects.
9692 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9693 Add new local of type char pointer, and use it to get a
9694 char/string view of the byte buffer, instead of casting between
9695 pointer to pointer types.
9696
90585175
HAQ
96972013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9698
9699 * remote.c (remote_set_trace_buffer_size): Move != operator
9700 to the start of next line to fix an ARI warning.
9701
59ea5688
MM
97022013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9703
9704 * NEWS: Add record changes.
9705
946287b7
MM
97062013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9707
9708 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9709 the instruction history disassembly.
9710 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9711 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9712
afedecd3
MM
97132013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9714
9715 * Makefile.in (SFILES): Add record-btrace.c
9716 (COMMON_OBS): Add record-btrace.o
9717 * record-btrace.c: New.
9718 * objfiles.c: Include btrace.h.
9719 (free_objfile): call btrace_free_objfile.
9720
15984c13
MM
97212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9722
9723 * target.c (target_call_history, target_call_history_from,
9724 target_call_history_range): New.
9725 * target.h (target_ops) <to_call_history, to_call_history_from,
9726 to_call_history_range>: New fields.
9727 (target_call_history, target_call_history_from,
9728 target_call_history_range): New declaration.
9729 * record.c (get_call_history_modifiers, cmd_record_call_history,
9730 record_call_history_size): New.
9731 (_initialize_record): Add the "record function-call-history" command.
9732 Add "set/show record function-call-history-size" commands.
9733 * record.h (record_print_flag): New.
9734
67c86d06
MM
97352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9736
9737 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9738 to_insn_history_range>: New fields.
9739 (target_insn_history): New.
9740 (target_insn_history_from): New.
9741 (target_insn_history_range): New.
9742 * target.c (target_insn_history): New.
9743 (target_insn_history_from): New.
9744 (target_insn_history_range): New.
9745 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9746 (record_insn_history_size): New.
9747 (get_insn_number): New.
9748 (get_context_size): New.
9749 (no_chunk): New.
9750 (get_insn_history_modifiers): New.
9751 (cmd_record_insn_history): New.
9752 (_initialize_record): Add "set/show record instruction-history-size"
9753 command. Add "record instruction-history" command.
9754
7c1687a9
MM
97552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9756
9757 * record.h (record_disconnect): New.
9758 (record_detach): New.
9759 (record_mourn_inferior): New.
9760 (record_kill): New.
9761 * record-full.c (record_disconnect, record_detach,
9762 record_mourn_inferior, record_kill): Move to...
9763 * record.c: ...here.
9764 (DEBUG): New.
9765 (record_stop): New.
9766 (record_unpush): New.
9767 (cmd_record_stop): Call record_stop. Replace unpush_target
9768 call with record_unpush call.
9769 (record_disconnect, record_detach): Assert that the target
9770 is of record stratum. Call record_unpush, record_stop, and
9771 DEBUG.
9772 (record_mourn_inferior, record_kill): Assert that the target
9773 is of record stratum. Call record_unpush and DEBUG.
9774
25ea693b
MM
97752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9776
9777 * record-full.h, record-full.c (record_memory_query): Rename
9778 to ...
9779 (record_full_memory_query): ...this. Update all users.
9780 (record_arch_list_add_reg): Rename to ...
9781 (record_full_arch_list_add_reg): ...this. Update all users.
9782 (record_arch_list_add_mem): Rename to ...
9783 (record_full_arch_list_add_mem): ...this. Update all users.
9784 (record_arch_list_add_end): Rename to ...
9785 (record_full_arch_list_add_end): ...this. Update all users.
9786 (record_gdb_operation_disable_set): Rename to ...
9787 (record_full_gdb_operation_disable_set): ...this.
9788 Update all users.
9789
88d1aa9d
MM
97902013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9791
9792 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9793 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9794 (RECORD_IS_REPLAY): Renamed to ...
9795 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9796 (RECORD_FILE_MAGIC): Renamed to ...
9797 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9798 (record_mem_entry): Renamed to ...
9799 (record_full_mem_entry): ... this. Updated all users.
9800 (record_reg_entry): Renamed to ...
9801 (record_full_reg_entry): ... this. Updated all users.
9802 (record_end_entry): Renamed to ...
9803 (record_full_end_entry): ... this. Updated all users.
9804 (record_type) <record_end, record_reg, record_mem>: Renamed
9805 to ...
9806 (record_full_type) <record_full_end, record_full_reg,
9807 record_full_mem>: ... this. Updated all users.
9808 (record_entry): Renamed to ...
9809 (record_full_entry): ... this. Updated all users.
9810 (record_core_buf_entry): Renamed to ...
9811 (record_full_core_buf_entry): ... this. Updated all users.
9812 (record_core_regbuf): Renamed to ...
9813 (record_full_core_regbuf): ... this. Updated all users.
9814 (record_core_start): Renamed to ...
9815 (record_full_core_start): ... this. Updated all users.
9816 (record_core_end): Renamed to ...
9817 (record_full_core_end): ... this. Updated all users.
9818 (record_core_buf_list): Renamed to ...
9819 (record_full_core_buf_list): ... this. Updated all users.
9820 (record_first): Renamed to ...
9821 (record_full_first): ... this. Updated all users.
9822 (record_list): Renamed to ...
9823 (record_full_list): ... this. Updated all users.
9824 (record_arch_list_head): Renamed to ...
9825 (record_full_arch_list_head): ... this. Updated all users.
9826 (record_arch_list_tail): Renamed to ...
9827 (record_full_arch_list_tail): ... this. Updated all users.
9828 (record_stop_at_limit): Renamed to ...
9829 (record_full_stop_at_limit): ... this. Updated all users.
9830 (record_insn_max_num): Renamed to ...
9831 (record_full_insn_max_num): ... this. Updated all users.
9832 (record_insn_num): Renamed to ...
9833 (record_full_insn_num): ... this. Updated all users.
9834 (record_insn_count): Renamed to ...
9835 (record_full_insn_count): ... this. Updated all users.
9836 (record_ops): Renamed to ...
9837 (record_full_ops): ... this. Updated all users.
9838 (record_core_ops): Renamed to ...
9839 (record_full_core_ops): ... this. Updated all users.
9840 (set_record_cmdlist): Renamed to ...
9841 (set_record_full_cmdlist): ... this. Updated all users.
9842 (show_record_cmdlist): Renamed to ...
9843 (show_record_full_cmdlist): ... this. Updated all users.
9844 (record_cmdlist): Renamed to ...
9845 (record_full_cmdlist): ... this. Updated all users.
9846 (record_beneath_to_resume_ops): Renamed to ...
9847 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9848 (record_beneath_to_resume): Renamed to ...
9849 (record_full_beneath_to_resume): ... this. Updated all users.
9850 (record_beneath_to_wait_ops): Renamed to ...
9851 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9852 (record_beneath_to_wait): Renamed to ...
9853 (record_full_beneath_to_wait): ... this. Updated all users.
9854 (record_beneath_to_store_registers_ops): Renamed to ...
9855 (record_full_beneath_to_store_registers_ops): ... this.
9856 Updated all users.
9857 (record_beneath_to_store_registers): Renamed to ...
9858 (record_full_beneath_to_store_registers): ... this.
9859 Updated all users.
9860 (record_beneath_to_xfer_partial_ops): Renamed to ...
9861 (record_full_beneath_to_xfer_partial_ops): ... this.
9862 Updated all users.
9863 (record_beneath_to_xfer_partial): Renamed to ...
9864 (record_full_beneath_to_xfer_partial): ... this.
9865 Updated all users.
9866 (record_beneath_to_insert_breakpoint): Renamed to ...
9867 (record_full_beneath_to_insert_breakpoint): ... this.
9868 Updated all users.
9869 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9870 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9871 Updated all users.
9872 (record_beneath_to_stopped_data_address): Renamed to ...
9873 (record_full_beneath_to_stopped_data_address): ... this.
9874 Updated all users.
9875 (record_beneath_to_async): Renamed to ...
9876 (record_full_beneath_to_async): ... this. Updated all users.
9877 (record_goto_insn): Renamed to ...
9878 (record_full_goto_insn): ... this. Updated all users.
9879 (record_save): Renamed to ...
9880 (record_full_save): ... this. Updated all users.
9881 (record_reg_alloc): Renamed to ...
9882 (record_full_reg_alloc): ... this. Updated all users.
9883 (record_reg_release): Renamed to ...
9884 (record_full_reg_release): ... this. Updated all users.
9885 (record_mem_alloc): Renamed to ...
9886 (record_full_mem_alloc): ... this. Updated all users.
9887 (record_mem_release): Renamed to ...
9888 (record_full_mem_release): ... this. Updated all users.
9889 (record_end_alloc): Renamed to ...
9890 (record_full_end_alloc): ... this. Updated all users.
9891 (record_end_release): Renamed to ...
9892 (record_full_end_release): ... this. Updated all users.
9893 (record_entry_release): Renamed to ...
9894 (record_full_entry_release): ... this. Updated all users.
9895 (record_list_release): Renamed to ...
9896 (record_full_list_release): ... this. Updated all users.
9897 (record_list_release_following): Renamed to ...
9898 (record_full_list_release_following): ... this.
9899 Updated all users.
9900 (record_list_release_first): Renamed to ...
9901 (record_full_list_release_first): ... this. Updated all users.
9902 (record_arch_list_add): Renamed to ...
9903 (record_full_arch_list_add): ... this. Updated all users.
9904 (record_get_loc): Renamed to ...
9905 (record_full_get_loc): ... this. Updated all users.
9906 (record_check_insn_num): Renamed to ...
9907 (record_full_check_insn_num): ... this. Updated all users.
9908 (record_arch_list_cleanups): Renamed to ...
9909 (record_full_arch_list_cleanups): ... this. Updated all users.
9910 (record_message): Renamed to ...
9911 (record_full_message): ... this. Updated all users.
9912 (record_message_wrapper): Renamed to ...
9913 (record_full_message_wrapper): ... this. Updated all users.
9914 (record_message_wrapper_safe): Renamed to ...
9915 (record_full_message_wrapper_safe): ... this. Updated all users.
9916 (record_gdb_operation_disable): Renamed to ...
9917 (record_full_gdb_operation_disable): ... this. Updated all users.
9918 (record_hw_watchpoint): Renamed to ...
9919 (record_full_hw_watchpoint): ... this. Updated all users.
9920 (record_exec_insn): Renamed to ...
9921 (record_full_exec_insn): ... this. Updated all users.
9922 (record_restore): Renamed to ...
9923 (record_full_restore): ... this. Updated all users.
9924 (record_async_inferior_event_token): Renamed to ...
9925 (record_full_async_inferior_event_token): ... this.
9926 Updated all users.
9927 (record_async_inferior_event_handler): Renamed to ...
9928 (record_full_async_inferior_event_handler): ... this.
9929 Updated all users.
9930 (record_core_open_1): Renamed to ...
9931 (record_full_core_open_1): ... this. Updated all users.
9932 (record_open_1): Renamed to ...
9933 (record_full_open_1): ... this. Updated all users.
9934 (record_open): Renamed to ...
9935 (record_full_open): ... this. Updated all users.
9936 (record_close): Renamed to ...
9937 (record_full_close): ... this. Updated all users.
9938 (record_resume_step): Renamed to ...
9939 (record_full_resume_step): ... this. Updated all users.
9940 (record_resumed): Renamed to ...
9941 (record_full_resumed): ... this. Updated all users.
9942 (record_execution_dir): Renamed to ...
9943 (record_full_execution_dir): ... this. Updated all users.
9944 (record_resume): Renamed to ...
9945 (record_full_resume): ... this. Updated all users.
9946 (record_get_sig): Renamed to ...
9947 (record_full_get_sig): ... this. Updated all users.
9948 (record_sig_handler): Renamed to ...
9949 (record_full_sig_handler): ... this. Updated all users.
9950 (record_wait_cleanups): Renamed to ...
9951 (record_full_wait_cleanups): ... this. Updated all users.
9952 (record_wait_1): Renamed to ...
9953 (record_full_wait_1): ... this. Updated all users.
9954 (record_wait): Renamed to ...
9955 (record_full_wait): ... this. Updated all users.
9956 (record_stopped_by_watchpoint): Renamed to ...
9957 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9958 (record_disconnect): Renamed to ...
9959 (record_full_disconnect): ... this. Updated all users.
9960 (record_detach): Renamed to ...
9961 (record_full_detach): ... this. Updated all users.
9962 (record_mourn_inferior): Renamed to ...
9963 (record_full_mourn_inferior): ... this. Updated all users.
9964 (record_kill): Renamed to ...
9965 (record_full_kill): ... this. Updated all users.
9966 (record_stopped_data_address): Renamed to ...
9967 (record_full_stopped_data_address): ... this. Updated all users.
9968 (record_registers_change): Renamed to ...
9969 (record_full_registers_change): ... this. Updated all users.
9970 (record_store_registers): Renamed to ...
9971 (record_full_store_registers): ... this. Updated all users.
9972 (record_xfer_partial): Renamed to ...
9973 (record_full_xfer_partial): ... this. Updated all users.
9974 (record_breakpoint): Renamed to ...
9975 (record_full_breakpoint): ... this. Updated all users.
9976 (record_breakpoint_p): Renamed to ...
9977 (record_full_breakpoint_p): ... this. Updated all users.
9978 (record_breakpoints): Renamed to ...
9979 (record_full_breakpoints): ... this. Updated all users.
9980 (record_sync_record_breakpoints): Renamed to ...
9981 (record_full_sync_record_breakpoints): ... this.
9982 Updated all users.
9983 (record_init_record_breakpoints): Renamed to ...
9984 (record_full_init_record_breakpoints): ... this.
9985 Updated all users.
9986 (record_insert_breakpoint): Renamed to ...
9987 (record_full_insert_breakpoint): ... this. Updated all users.
9988 (record_remove_breakpoint): Renamed to ...
9989 (record_full_remove_breakpoint): ... this. Updated all users.
9990 (record_can_execute_reverse): Renamed to ...
9991 (record_full_can_execute_reverse): ... this. Updated all users.
9992 (record_get_bookmark): Renamed to ...
9993 (record_full_get_bookmark): ... this. Updated all users.
9994 (record_goto_bookmark): Renamed to ...
9995 (record_full_goto_bookmark): ... this. Updated all users.
9996 (record_async): Renamed to ...
9997 (record_full_async): ... this. Updated all users.
9998 (record_can_async_p): Renamed to ...
9999 (record_full_can_async_p): ... this. Updated all users.
10000 (record_is_async_p): Renamed to ...
10001 (record_full_is_async_p): ... this. Updated all users.
10002 (record_execution_direction): Renamed to ...
10003 (record_full_execution_direction): ... this. Updated all users.
10004 (record_info): Renamed to ...
10005 (record_full_info): ... this. Updated all users.
10006 (record_delete): Renamed to ...
10007 (record_full_delete): ... this. Updated all users.
10008 (record_is_replaying): Renamed to ...
10009 (record_full_is_replaying): ... this. Updated all users.
10010 (record_goto_entry): Renamed to ...
10011 (record_full_goto_entry): ... this. Updated all users.
10012 (record_goto_begin): Renamed to ...
10013 (record_full_goto_begin): ... this. Updated all users.
10014 (record_goto_end): Renamed to ...
10015 (record_full_goto_end): ... this. Updated all users.
10016 (record_goto): Renamed to ...
10017 (record_full_goto): ... this. Updated all users.
10018 (init_record_ops): Renamed to ...
10019 (init_record_full_ops): ... this. Updated all users.
10020 (record_core_resume): Renamed to ...
10021 (record_full_core_resume): ... this. Updated all users.
10022 (record_core_kill): Renamed to ...
10023 (record_full_core_kill): ... this. Updated all users.
10024 (record_core_fetch_registers): Renamed to ...
10025 (record_full_core_fetch_registers): ... this. Updated all users.
10026 (record_core_prepare_to_store): Renamed to ...
10027 (record_full_core_prepare_to_store): ... this. Updated all users.
10028 (record_core_store_registers): Renamed to ...
10029 (record_full_core_store_registers): ... this. Updated all users.
10030 (record_core_xfer_partial): Renamed to ...
10031 (record_full_core_xfer_partial): ... this. Updated all users.
10032 (record_core_insert_breakpoint): Renamed to ...
10033 (record_full_core_insert_breakpoint): ... this. Updated all users.
10034 (record_core_remove_breakpoint): Renamed to ...
10035 (record_full_core_remove_breakpoint): ... this. Updated all users.
10036 (record_core_has_execution): Renamed to ...
10037 (record_full_core_has_execution): ... this. Updated all users.
10038 (init_record_core_ops): Renamed to ...
10039 (init_record_full_core_ops): ... this. Updated all users.
10040 (cmd_record_restore): Renamed to ...
10041 (cmd_record_full_restore): ... this. Updated all users.
10042 (record_save_cleanups): Renamed to ...
10043 (record_full_save_cleanups): ... this. Updated all users.
10044 (cmd_record_start): Renamed to ...
10045 (cmd_record_full_start): ... this. Updated all users.
10046 (set_record_insn_max_num): Renamed to ...
10047 (set_record_full_insn_max_num): ... this. Updated all users.
10048 (set_record_command): Renamed to ...
10049 (set_record_full_command): ... this. Updated all users.
10050 (show_record_command): Renamed to ...
10051 (show_record_full_command): ... this. Updated all users.
10052 (_initialize_record): Renamed to ...
10053 (_initialize_record_full): ... this. Updated all users.
10054
d02ed0bb
MM
100552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10056
10057 * record.h: Split into this and ...
10058 * record-full.h: ... this.
10059 * record.c: Split into this and ...
10060 * record-full.c: ... this.
10061 * target.h (target_ops): Add new fields to_info_record,
10062 to_save_record, to_delete_record, to_record_is_replaying,
10063 to_goto_record_begin, to_goto_record_end, to_goto_record.
10064 (target_info_record): New.
10065 (target_save_record): New.
10066 (target_supports_delete_record): New.
10067 (target_delete_record): New.
10068 (target_record_is_replaying): New.
10069 (target_goto_record_begin): New.
10070 (target_goto_record_end): New.
10071 (target_goto_record): New.
10072 * target.c (target_info_record): New.
10073 (target_save_record): New.
10074 (target_supports_delete_record): New.
10075 (target_delete_record): New.
10076 (target_record_is_replaying): New.
10077 (target_goto_record_begin): New.
10078 (target_goto_record_end): New.
10079 (target_goto_record): New.
10080 * record.h: Declare struct cmd_list_element.
10081 (record_cmdlist): New declaration.
10082 (set_record_cmdlist): New declaration.
10083 (show_record_cmdlist): New declaration.
10084 (info_record_cmdlist): New declaration.
10085 (cmd_record_goto): New declaration.
10086 * record.c: Remove unnecessary includes.
10087 Include inferior.h.
10088 (cmd_record_goto): Remove declaration.
10089 (record_cmdlist): Now extern. Initialize.
10090 (set_record_cmdlist): Now extern. Initialize.
10091 (show_record_cmdlist): Now extern. Initialize.
10092 (info_record_cmdlist): Now extern. Initialize.
10093 (find_record_target): New.
10094 (require_record_target): New.
10095 (cmd_record_start): Update.
10096 (cmd_record_delete): Remove target-specific code.
10097 Call target_delete_record.
10098 (cmd_record_stop): Unpush any record target.
10099 (set_record_insn_max_num): Move to record-full.c
10100 (set_record_command): Add comment.
10101 (show_record_command): Add comment.
10102 (info_record_command): Update comment.
10103 Remove target-specific code.
10104 Call the record target's to_info_record.
10105 (cmd_record_start): New.
10106 (cmd_record_goto): Now extern.
10107 Remove target-specific code.
10108 Call target_goto_begin, target_goto_end, or target_goto.
10109 (_initialize_record): Move record target ops initialization to
10110 record-full.c.
10111 Change "record" command help text.
10112 Move "record restore", "record set", and "record show" commands to
10113 record-full.c.
10114 * Makefile.in (SFILES): Add record-full.c.
10115 (HFILES_NO_SRCDIR): Add record-full.h.
10116 (COMMON_OBS): Add record-full.o.
10117 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10118 * arm-tdep.c: Include record-full.h.
10119 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10120 * i386-tdep.c: Include record-full.h.
10121 * infrun.c: Include record-full.h.
10122 * linux-record.c: Include record-full.h.
10123 * moxie-tdep.c: Include record-full.h.
10124 * record-full.c: Include record-full.h.
10125 Change module comment.
10126 (set_record_full_cmdlist): New.
10127 (show_record_full_cmdlist): New.
10128 (record_full_cmdlist): New.
10129 (record_goto_insn): New declaration.
10130 (record_save): New declaration.
10131 (record_check_insn_num): Change query string.
10132 (record_info): New.
10133 (record_delete): New.
10134 (record_is_replaying): New.
10135 (record_goto_entry): New.
10136 (record_goto_begin): New.
10137 (record_goto_end): New.
10138 (record_goto): New.
10139 (init_record_ops): Update.
10140 (init_record_core_ops): Update.
10141 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10142 (cmd_record_start): New.
10143 (set_record_insn_max_num): Moved from record.c
10144 (set_record_full_command): New.
10145 (show_record_full_command): New.
10146 (_initialize_record_full): New.
10147
b48d48eb
MM
101482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10149
10150 * target.h (add_deprecated_target_alias): New.
10151 * target.c (add_deprecated_target_alias): New.
10152
a950d57c
MM
101532013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10154
10155 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10156 and signal.h.
10157 (linux_supports_btrace): Add kernel and
10158 cpuid check.
10159 (kernel_supports_btrace): New function.
10160 (cpu_supports_btrace): New function.
10161 (intel_supports_btrace): New function.
10162
9accd112
MM
101632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10164
10165 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10166 * remote.c: Include btrace.h.
10167 (struct btrace_target_info): New struct.
10168 (remote_supports_btrace): New function.
10169 (send_Qbtrace): New function.
10170 (remote_enable_btrace): New function.
10171 (remote_disable_btrace): New function.
10172 (remote_teardown_btrace): New function.
10173 (remote_read_btrace): New function.
10174 (init_remote_ops): Add btrace ops.
10175 (enum <unnamed>): Add btrace packets.
10176 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10177 (_initialize_remote): Add packet configuration for branch tracing.
10178
c12a2917
MM
101792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10180
10181 * features/btrace.dtd: New file.
10182 * Makefile.in (XMLFILES): Add btrace.dtd.
10183 * btrace.h (parse_xml_btrace): New declaration.
10184 * btrace.c: Include xml-support.h.
10185 (parse_xml_btrace): New function.
10186 (parse_xml_btrace_block): New function.
10187 (block_attributes): New struct.
10188 (btrace_attributes): New struct.
10189 (btrace_children): New struct.
10190 (btrace_elements): New struct.
10191
3e3aea48
MM
101922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10193
10194 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10195 (amd64_linux_enable_btrace): New.
10196 (amd64_linux_disable_btrace): New.
10197 (amd64_linux_teardown_btrace): New.
10198 (_initialize_amd64_linux_nat): Initialize btrace ops.
10199 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10200 (i386_linux_enable_btrace): New.
10201 (i386_linux_disable_btrace): New.
10202 (i386_linux_teardown_btrace): New.
10203 (_initialize_i386_linux_nat): Initialize btrace ops.
10204 * config/i386/linux.mh: Add linux-btrace.o.
10205 * config/i386/linux64.mh: Add linux-btrace.o.
10206
7c97f91e
MM
102072013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10208
10209 * common/linux_btrace.h: New file.
10210 * common/linux_btrace.c: New file.
10211 * Makefile.in (SFILES): Add btrace.c.
10212 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10213 (COMMON_OBS): Add btrace.o.
10214 (linux-btrace.o): New rule.
10215
1999790b 102162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10217
10218 * target.h: Include btrace.h.
10219 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10220 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10221 * target.c (target_supports_btrace): New function.
10222 (target_enable_btrace): New function.
10223 (target_disable_btrace): New function.
10224 (target_teardown_btrace): New function.
10225 (target_read_btrace): New function.
10226 * btrace.h: New file.
10227 * btrace.c: New file.
10228 * Makefile.in: Add btrace.c.
10229 * gdbthread.h: Include btrace.h.
10230 (struct thread_info): Add btrace field.
10231 * thread.c: Include btrace.h.
10232 (clear_thread_inferior_resources): Call target_teardown_btrace.
10233 * common/btrace-common.h: New file.
10234
61a31a67
JK
102352013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10236
10237 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10238 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10239 kill_status to outer block.
10240
05c56a9d
JK
102412013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10242
10243 Fix entry-values if the callee called a noreturn function.
10244 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10245 get_frame_address_in_block. Add new comment.
10246
9112db09
JK
102472013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10248
10249 Fix entry-values in C++ across CUs.
10250 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10251 lookup_minimal_symbol. Add a comment.
10252 * dwarf2read.c
10253 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10254 DW_AT_linkage_name.
10255
9b67fcec
YQ
102562013-03-08 Yao Qi <yao@codesourcery.com>
10257
10258 * tracepoint.c (_initialize_tracepoint): Indent the code.
10259
6221be90
PA
102602013-03-08 Pedro Alves <palves@redhat.com>
10261
10262 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10263 (parse_find_args, find_command): Change type of pattern buffer
10264 locals to 'gdb_byte *'.
10265
be9a119c 102662013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10267 Hafiz Abid Qadeer <abidh@codesourcery.com>
10268
10269 * NEWS: Mention set and show trace-buffer-size commands.
10270 Mention new packet.
10271 * target.h (struct target_ops): New method
10272 to_set_trace_buffer_size.
10273 (target_set_trace_buffer_size): New macro.
10274 * target.c (update_current_target): Set up new method.
10275 * tracepoint.c (trace_buffer_size): New global.
10276 (start_tracing): Send it to the target.
10277 (set_trace_buffer_size): New function.
10278 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10279 * remote.c (remote_set_trace_buffer_size): New function.
10280 (_initialize_remote): Use it.
10281 (QTBuffer:size) New remote command.
10282 (PACKET_QTBuffer_size): New enum.
10283 (remote_protocol_features): Add an entry for
10284 PACKET_QTBuffer_size.
10285
7da3ab79
TT
102862013-03-08 Tom Tromey <tromey@redhat.com>
10287
10288 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10289 variable.
10290
0c1f71e7
PA
102912013-03-07 Pedro Alves <palves@redhat.com>
10292
10293 * target.c (target_read_stralloc, target_fileio_read_alloc):
10294 *Cast pointer to 'gdb_byte *' in target call.
10295
c8af03a2
PA
102962013-03-07 Pedro Alves <palves@redhat.com>
10297
10298 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10299 call.
10300
529480d0
KS
103012013-03-07 Keith Seitz <keiths@redhat.com>
10302
10303 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10304 (trace_pass_command): Likewise.
10305 * cli/cli-cmds.c: Include cli/cli-utils.h.
10306 (source_command): Use skip-spaces.
10307 (disassemble_command): Likewise.
10308 * findcmd.c: Include cli/cli-utils.h.
10309 (parse_find_args): Use skip_spaces.
10310 * go32-nat.c: Include cli/cli-utils.h.
10311 (go32_sldt): Use skip_spaces.
10312 (go32_sgdt): Likewise.
10313 (go32_sidt): Likewise.
10314 (go32_pde): Likewise.
10315 (go32_pte): Likewise.
10316 (go32_pte_for_address): Likewise.
10317 * infcmd.c: Include cli/cli-utils.h.
10318 (registers_info): Use skip_spaces.
10319 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10320 (linux_info_proc): Likewise.
10321 * linux-thread-db.c: Include cli/cli-utils.h.
10322 (info_auto_load_libthread_db): Use skip_spaces_const.
10323 * m32r-rom.c: Include cli/cli-utils.h.
10324 (m32r_upload_command): Use skip_spaces.
10325 * maint.c: Include cli/cli-utils.h.
10326 (maintenance_translate_address): Use skip_spaces.
10327 * mi/mi-parse.c: Include cli/cli-utils.h.
10328 (mi_parse_argv): Use skip_spaces.
10329 (mi_parse): Likewise.
10330 * minsyms.c: Include cli/cli-utils.h.
10331 (msymbol_hash_iw): Use skip_spaces_const.
10332 * objc-lang.c: Include cli/cli-utils.h.
10333 (parse_selector): Use skip_spaces.
10334 (parse_method): Likewise.
10335 * python/python.c: Include cli/cli-utils.h.
10336 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10337 (python_command)[HAVE_PYTHON]: Likewise.
10338 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10339 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10340 (m32r_load): Use skip_spaces.
10341 * serial.c: Include cli/cli-utils.h.
10342 (serial_open): Use skip_spaces_const.
10343 * stack.c: Include cli/cli-utils.h.
10344 (parse_frame_specification_1): Use skip_spaces_const.
10345 * symfile.c: Include cli/cli-utils.h.
10346 (set_ext_lang_command): Use skip_spaces.
10347 * symtab.c: Include cli/cli-utils.h.
10348 (rbreak_command): Use skip_spaces.
10349 * thread.c (thread_name_command): Use skip_spaces.
10350 * tracepoint.c (validate_actionline): Use skip_spaces.
10351 (encode_actions_1): Likewise.
10352 (trace_find_range_command): Likewise.
10353 (trace_find_outside_command): Likewise.
10354 (trace_dump_actions): Likewise.
10355
ac91cd70
PA
103562013-03-07 Pedro Alves <palves@redhat.com>
10357
10358 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10359 * expprint.c (print_subexp_standard): Likewise.
10360 * utils.c (host_char_to_target): Likewise.
10361 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10362 * varobj.c (value_get_print_value): Change type of local to char*.
10363 Cast it gdb_byte * in call to language printer.
10364
2898e560
PA
103652013-03-07 Pedro Alves <palves@redhat.com>
10366
10367 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10368 gdb_byte *'.
10369 (make_wchar_iterator): Remove cast to char*.
10370 (wchar_iterate): Change type of local.
10371
a09b4448
PA
103722013-03-07 Pedro Alves <palves@redhat.com>
10373
10374 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10375 for 'regcache->register_status'.
10376
20ced3e4
PA
103772013-03-07 Pedro Alves <palves@redhat.com>
10378
c2d6a675 10379 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10380 int.
10381
fe106009
PA
103822013-03-07 Pedro Alves <palves@redhat.com>
10383
10384 * stap-probe.c (handle_stap_probe): Add cast to char*.
10385
8ac2c12b
PA
103862013-03-07 Pedro Alves <palves@redhat.com>
10387
10388 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10389 RECORD_MSGRCV>: Pass a signed variable to
10390 regcache_raw_read_signed, instead of an unsigned one.
10391
99f0a309
PA
103922013-03-07 Pedro Alves <palves@redhat.com>
10393
10394 * remote-notif.c (notif_debug): Change type to int.
10395 * remote-notif.h (notif_debug): Likewise.
10396
964b8317
PA
103972013-03-07 Pedro Alves <palves@redhat.com>
10398
10399 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10400
f0cc8ad4
PA
104012013-03-07 Pedro Alves <palves@redhat.com>
10402
10403 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10404 * remote.h (hex2bin, bin2hex): ... here.
10405 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10406
77dec115
EZ
104072013-03-07 Eli Zaretskii <eliz@gnu.org>
10408
10409 * utils.c (initialize_utils): Improve doc strings of "set/show
10410 width", "set/show height", and "set/show pagination".
10411
741d92cf
KS
104122013-03-06 Keith Seitz <keiths@redhat.com>
10413
10414 * ax-gdb.c (gen_printf): Make FORMAT const.
10415 * ax-gdb.h (gen_printf): Likewise.
10416 * ax-general.c (ax_string): Make STR const.
10417 * ax.h (ax_string): Likewise.
10418
7b6c814e
DE
104192013-03-06 Doug Evans <dje@google.com>
10420
10421 * elfread.c (elf_symfile_read): Move debugging printf to more
10422 logical location.
10423
634334ab
PA
104242013-03-06 Pedro Alves <palves@redhat.com>
10425
10426 * python/py-utils.c (target_string_to_unicode): Delete function.
10427 * python/python-internal.h (target_string_to_unicode): Delete
10428 declaration.
10429
e482a1a7
PM
104302013-03-06 Pierre Muller <muller@sourceware.org>
10431
10432 * linespec.c (get_current_search_block): ARI fix, use (void)
10433 for empty parameter list.
10434
4eeaa230
DE
104352013-03-05 Doug Evans <dje@google.com>
10436
10437 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10438 of old ada_lookup_symbol_list. In !full_search case, don't
10439 search superblocks.
10440 (ada_lookup_symbol_list): Delete arg full_search, all callers
10441 updated. Call ada_lookup_symbol_list_worker.
10442 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10443 * ada-lang.h (ada_lookup_symbol_list): Update.
10444 * language.h (language_defn): Update comment for
10445 la_iterate_over_symbols.
10446 * linespec.c (iterate_over_file_blocks): New function.
10447 (iterate_over_all_matching_symtabs): Call it.
10448 (lookup_prefix_sym): Ditto.
10449 (get_current_search_block): New function.
10450 (get_search_block): Delete.
10451 (find_label_symbols): Call get_current_search_block.
10452 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10453 * symtab.c (iterate_over_symbols): Don't search superblocks.
10454
b69b1fb1
YQ
104552013-03-05 Yao Qi <yao@codesourcery.com>
10456
10457 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10458 parameter VAR's type from "unsigned int" to "int".
10459 * command.h (var_zuinteger_unlimited): Update its comments.
10460 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10461
3c095f49
CV
104622013-03-05 Corinna Vinschen <vinschen@redhat.de>
10463
10464 * NEWS: Mention new target x86_64-*-cygwin*.
10465
b5b0b0af
CV
104662013-03-05 Corinna Vinschen <vinschen@redhat.de>
10467
10468 * configure.host: Add x86_64-*-cygwin* as host.
10469 * configure.tgt: Add x86_64-*-cygwin* as target.
10470 * config/i386/cygwin64.mh: New file.
10471
f6f99966
JK
104722013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10473
10474 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10475
33f448b1
JK
104762013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10477
10478 * linespec.c (struct linespec_canonical_name): New.
10479 (struct linespec_state): Change canonical_names type to it.
10480 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10481 xrealloc element size. Initialize the different CANONICAL fields.
10482 (canonical_to_fullform): New.
10483 (filter_results): Use it. Add variables canonical, fullform and
10484 cleanup.
10485 (struct decode_line_2_item, decode_line_2_compare_items): New.
10486 (decode_line_2): Remove variables iter and item_names, add variables
10487 items and items_count. Modify the code for these new variables.
10488
feb14725
CV
104892013-03-04 Corinna Vinschen <vinschen@redhat.com>
10490
10491 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10492 calling do_cleanup.
10493
e83b17ba
HZ
104942013-03-04 Luis Machado <lgustavo@codesourcery.com>
10495
10496 * tracepoint.c (build_traceframe_info): Add code for byte order.
10497
a2d13a0d
KB
104982013-03-02 Kevin Buettner <kevinb@redhat.com>
10499
8dddcae8
KB
10500 * v850-tdep.c: (v850e2_register_name): Revise system register
10501 names to match current V850E2M architecture specifications.
10502 Update register number enum comments too.
f5aee5ee 10503
d79e58d8
JW
105042013-03-01 Jiong Wang <jiwang@tilera.com>
10505 Pedro Alves <palves@redhat.com>
10506
10507 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10508 to END_ADDR.
10509 (tilegx_skip_prologue): Limit prologue analysis to section end.
10510
c4be5165
JK
105112013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10512
10513 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10514 use it.
10515
e362b510
PA
105162013-03-01 Pedro Alves <palves@redhat.com>
10517
10518 Use gdb_byte for bytes from the program being debugged.
10519
10520 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10521 Change type of local 'buf' to gdb_byte.
10522 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10523 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10524 * cris-tdep.c (cris_sigcontext_addr)
10525 (cris_sigtramp_frame_unwind_cache): Likewise.
10526 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10527 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10528 Likewise.
10529 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10530 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10531 (hppa32_hpux_search_dummy_call_sequence)
10532 (hppa_hpux_supply_save_state): Likewise.
10533 * hppa-linux-tdep.c (insns_match_pattern)
10534 (hppa_linux_find_global_pointer): Likewise.
10535 * hppa-tdep.c (hppa_in_function_epilogue_p)
10536 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10537 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10538 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10539 (i386fbsd_collect_uthread): Likewise.
10540 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10541 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10542 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10543 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10544 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10545 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10546 (ia64_libunwind_frame_prev_register)
10547 (ia64_libunwind_sigtramp_frame_this_id)
10548 (ia64_find_global_pointer_from_dynamic_section)
10549 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10550 (ia64_unwind_pc): Likewise.
10551 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10552 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10553 (m68hc11_extract_return_value): Likewise.
10554 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10555 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10556 (mep_get_insn, mep_push_dummy_call): Likewise.
10557 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10558 (mips_linux_in_dynsym_stub): Likewise.
10559 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10560 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10561 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10562 to gdb_byte.
10563 * remote-mips.c (mips_set_register): Likewise.
10564 * remote-sim.c (gdbsim_fetch_register): Likewise.
10565 * score-tdep.c (score7_fetch_inst): Change type of parameter
10566 'memblock' and local 'buf' to gdb_byte.
10567 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10568 Change type of local 'buf' to gdb_byte. Adjust.
10569 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10570 to gdb_byte**.
10571 (score7_analyze_prologue): Change type of 'memblock' and
10572 'memblock_ptr' locals to gdb_byte*.
10573 * sh64-tdep.c (sh64_extract_return_value)
10574 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10575 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10576 * solib-pa64.c (pa64_solib_create_inferior_hook)
10577 (pa64_open_symbol_file_object): Remove local 'buf'.
10578 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10579 (som_open_symbol_file_object): Likewise.
10580 * solib-spu.c (spu_current_sos): Likewise.
10581 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10582 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10583 (spu_store_registers): Likewise.
10584 * target.c (debug_print_register): Likewise.
10585 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10586 * xstormy16-tdep.c (xstormy16_store_return_value)
10587 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10588 (xstormy16_find_jmp_table_entry): Likewise.
10589
75cc61ca 105902013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10591
10592 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10593 (tilegx_gdbarch_init): Install it.
10594
ddb08e9c
TT
105952013-02-28 Tom Tromey <tromey@redhat.com>
10596
10597 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10598 PyLong_Check.
10599
62d7fb51
DE
106002013-02-28 Doug Evans <dje@google.com>
10601
10602 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10603 * python/python.c (gdbpy_find_pc_line): Ditto.
10604
c4a9e8b4
TT
106052013-02-28 Tom Tromey <tromey@redhat.com>
10606
10607 * contrib/excheck.py: New file.
10608 * contrib/exsummary.py: New file.
10609 * contrib/gcc-with-excheck: New file.
10610
7f6a5dde
TT
106112013-02-28 Tom Tromey <tromey@redhat.com>
10612
10613 * python/python.c (gdbpy_print_stack): Call begin_line and
10614 fprintf_filtered inside TRY_CATCH.
10615
9e974e55
TT
106162013-02-28 Tom Tromey <tromey@redhat.com>
10617
10618 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10619 inside TRY_CATCH.
10620
dd5fa3e7
TT
106212013-02-28 Tom Tromey <tromey@redhat.com>
10622
10623 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10624 frame_object_to_frame_info inside TRY_CATCH.
10625
86a3263f
TT
106262013-02-28 Tom Tromey <tromey@redhat.com>
10627
10628 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10629 TRY_CATCH.
10630
81b52a3a
TT
106312013-02-28 Tom Tromey <tromey@redhat.com>
10632
10633 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10634
d50a0ce2
CV
106352013-02-27 Corinna Vinschen <vinschen@redhat.com>
10636
10637 * windows-nat.c: Throughout, fix format strings and casts of
10638 printf-like functions to avoid type related warnings on all
10639 platforms.
10640 (handle_output_debug_string): Fetch context information address
10641 from debug string using string_to_core_addr.
10642
e1f58301
JW
106432013-02-27 Jiong Wang <jiwang@tilera.com>
10644
10645 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10646 * regformats/reg-tilegx32.dat: New.
10647
4fcd89fc
JW
106482013-02-27 Jiong Wang <jiwang@tilera.com>
10649
10650 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10651
748d24e6
JW
106522013-02-27 Jiong Wang <jiwang@tilera.com>
10653
10654 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10655
6c8e944d
YQ
106562013-02-27 Yao Qi <yao@codesourcery.com>
10657 Pedro Alves <palves@redhat.com>
10658
10659 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10660 pc/tp/range/outside, look for the next trace frame instead of
10661 always starting from frame 0.
6c8e944d 10662
acd7db30
AG
106632013-02-26 Anthony Green <green@moxielogic.com>
10664
10665 * configure.tgt: Add support for moxie-*-rtems* target.
10666
025e6dce
PA
106672013-02-25 Pedro Alves <palves@redhat.com>
10668
10669 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10670 warning text.
10671
ca9c94ef
MR
106722013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10673
10674 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10675 if $fp is used as the virtual frame pointer.
10676
24c274a1
AM
106772013-02-23 Alan Modra <amodra@gmail.com>
10678
10679 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10680 symbol size.
10681 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10682 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10683 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10684 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10685
bfada189
JK
106862013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10687
10688 Code cleanup.
10689 * elfread.c (build_id_bfd_get): Make the return type const.
10690 (build_id_verify): Make the check parameter const.
10691 (build_id_to_debug_filename): Make the build_id parameter and variable
10692 data const.
10693 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10694
c0355132
AM
106952013-02-21 Alan Modra <amodra@gmail.com>
10696
10697 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10698
9f44fbc0
SCR
106992013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10700
10701 Add a new method 'disassemble' to gdb.Architecture class.
10702 * python/py-arch.c (archpy_disassmble): Implementation of the
10703 new method gdb.Architecture.disassemble.
10704 (arch_object_methods): Add entry for the new method.
10705
b74ea3eb
JW
107062013-02-20 Jiong Wang <jiwang@tilera.com>
10707
10708 * MAINTAINERS (Write After Approval): Add myself to the list.
10709
61a672f1
PA
107102013-02-19 Pedro Alves <palves@redhat.com>
10711
10712 Garbage collect 'struct monitor_ops'::load_routine.
10713
10714 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10715 * monitor.c (monitor_load): No longer call
10716 current_monitor->load_routine.
10717 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10718 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10719 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10720
40e397df
PA
107212013-02-19 Pedro Alves <palves@redhat.com>
10722
10723 PR gdb/15161
10724
10725 Harmonize with generic_load.
10726
10727 * monitor.c: Include "readline/readline.h".
10728 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10729 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10730 long/strtol for the 'load_offset' local. Error out if no argument
10731 is given or if too many arguments are given. Tilde expand the
10732 passed in file name.
10733
f698ca8e
KT
107342013-02-19 Kai Tietz <ktietz@redhat.com>
10735
10736 PR gdb/15161
10737 * symfile.c (load_section_data): Change type of load_offset
10738 to CORE_ADDR.
10739 (generic_load): User strtoulst instead of strtoul for conversion
10740 of load_offset.
10741
3361b059
WL
107422013-02-19 Jiong Wang <jiwang@tilera.com>
10743
10744 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10745 for return address, "lr" register, saved on stack.
10746 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10747 after we invoke tilegx_analyze_prologue.
10748
3e9d5130
WL
107492013-02-19 Jiong Wang <jiwang@tilera.com>
10750
bb1bcd86
WL
10751 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10752
3361b059 107532013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10754
b74ea3eb 10755 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10756
4aaf2503
WL
107572013-02-19 Jiong Wang <jiwang@tilera.com>
10758
b74ea3eb 10759 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10760 (tilegx_write_pc): New function.
10761 (tilegx_cannot_reference_register): Return zero if REGNO
10762 is TILEGX_FAULTNUM_REGNUM.
10763 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10764 (tilegx_register_name): Add handling of "faultnum" register.
10765 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10766 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10767 handling of TILEGX_FAULTNUM_REGNUM.
10768 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10769
bc23a956
WL
107702013-02-19 Jiong Wang <jiwang@tilera.com>
10771
10772 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10773 should be aligned to 64bit.
bc23a956 10774
42f45f1a
KT
107752013-02-19 Kai Tietz <ktietz@redhat.com>
10776
10777 * windows-nat.c (windows_xfer_memory): Fix debug-output
10778 for LLP64.
10779
6ce4c112
LL
107802013-02-19 Lei Liu <lei.liu2@windriver.com>
10781
10782 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10783 Don't check DSP register number if HAVE_DSP is not set.
10784
30e8ee25
AM
107852013-02-19 Alan Modra <amodra@gmail.com>
10786
10787 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10788 throughout file instead.
10789 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10790 Don't xmalloc return value.
10791 (build_id_verify): Similarly. Don't xfree.
10792 (build_id_to_debug_filename): Update.
10793 (find_separate_debug_file_by_buildid): Update, don't xfree.
10794
4c9ad8c2
TT
107952013-02-18 Tom Tromey <tromey@redhat.com>
10796
10797 PR gdb/15102:
10798 * dwarf2read.c (read_subrange_type): Use result of
10799 'check_typedef'.
10800
983dc440
YQ
108012013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10802
10803 * frame.c: Remove one extra white space after #include
10804 directive.
10805
7fb2b84a
JK
108062013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10807
10808 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10809
edceb2a9
JK
108102013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10811
10812 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10813 and dir commands into an if block.
10814
e81b7af8
TT
108152013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10816
10817 * python/py-breakpoint (struct pybp_code): Use int instead of
10818 enum type_code.
10819
f5911ea1
HAQ
108202013-02-15 Pedro Alves <pedro@codesourcery.com>
10821 Hafiz Abid Qadeer <abidh@codesourcery.com>
10822
10823 * NEWS: Mention new field "trace-file".
10824 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10825 (tfile_open): Record the trace file's filename in the trace
10826 status.
10827 (tfile_files_info): Mention the name of the trace file.
10828 Check the "filename" field explicitely.
10829 (trace_status_command): Explicitely check "filename" field.
10830 (trace_find_command): Ditto.
10831 (trace_find_pc_command): Ditto.
10832 (trace_find_tracepoint_command): Ditto.
10833 (trace_find_line_command): Ditto.
10834 (trace_find_range_command): Ditto.
10835 (trace_find_outside_command): Ditto.
10836 * tracepoint.h (struct trace_status) <from_file>: Rename it
10837 to "filename" and make it hold the trace file's filename
10838 instead of a boolean.
10839 * remote.c (remote_get_trace_status): Initialize "filename"
10840 field with NULL instead of 0.
10841
796cb314
YQ
108422013-02-15 Yao Qi <yao@codesourcery.com>
10843
10844 * remote.c: Fix a typo.
10845
42e79b1d
PM
108462013-02-14 Pierre Muller <muller@sourceware.org>
10847
10848 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10849
baea0dae
PA
108502013-02-14 Pedro Alves <palves@redhat.com>
10851
10852 * utils.c (savestring): Don't #undef it. Move function to
10853 common/common-utils.c.
10854 * common/common-utils.c: Include gdb_string.h.
10855 (savestring): Move here from utils.c.
10856 * common/common-utils.h (savestring): Declare.
10857
57c3b6ed
PA
108582013-02-14 Pedro Alves <palves@redhat.com>
10859
10860 * utils.c (savestring): Rename parameter 'size' to 'len'.
10861
d6c44983
YZ
108622013-02-14 Pedro Alves <palves@redhat.com>
10863 Yufeng Zhang <yufeng.zhang@arm.com>
10864
10865 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10866 (aarch64_inferior_data, struct aarch64_inferior_data):
10867 Delete.
10868 (struct aarch64_process_info): New.
10869 (aarch64_process_list): New global.
10870 (aarch64_find_process_pid, aarch64_add_process)
10871 (aarch64_process_info_get): New functions.
10872 (aarch64_inferior_data_get): Delete.
10873 (aarch64_process_info_get): New function.
10874 (aarch64_forget_process): New function.
10875 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10876 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10877 aarch64_get_debug_reg_state.
10878 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10879 instead of linux_nat_iterate_watchpoint_lwps.
10880 (aarch64_linux_new_fork): New function.
10881 (aarch64_linux_child_post_startup_inferior): Use
10882 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10883 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10884 (aarch64_linux_remove_hw_breakpoint)
10885 (aarch64_handle_aligned_watchpoint)
10886 (aarch64_handle_unaligned_watchpoint)
10887 (aarch64_linux_insert_watchpoint)
10888 (aarch64_linux_remove_watchpoint)
10889 (aarch64_linux_stopped_data_address): Adjust to pass the current
10890 process id to aarch64_debug_reg_state.
10891 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10892 linux_nat_new_fork hook, and aarch64_forget_process as
10893 linux_nat_forget_process hook; remove the call to
10894 register_inferior_data_with_cleanup.
10895
4819b3f8
PA
108962013-02-14 Pedro Alves <palves@redhat.com>
10897
10898 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10899 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10900 lval_memory.
10901
1773c82c
HAQ
109022013-02-14 Pedro Alves <pedro@codesourcery.com>
10903 Hafiz Abid Qadeer <abidh@codesourcery.com>
10904
10905 * tracepoint.h (validate_trace_state_variable_name): Declare.
10906 * tracepoint.c (validate_trace_state_variable_name): New.
10907 (trace_variable_command): Parse the trace state variable's name
10908 without using parse_expression. Do several validations.
10909 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10910 trace state variable's name with parse_expression. Validate it.
10911
53778a97
YQ
109122013-02-14 Yao Qi <yao@codesourcery.com>
10913
10914 * infcmd.c (breakpoint_proceeded): Remove it.
10915
7b3ae3a6
YQ
109162013-02-14 Yao Qi <yao@codesourcery.com>
10917
10918 * tracepoint.c (end_actions_pseudocommand): Make it static.
10919 (while_stepping_pseudocommand): Likewise.
10920 * tracepoint.h (end_actions_pseudocommand): Remove the
10921 declaration.
10922 (while_stepping_pseudocommand): Likewise.
10923
64580925
YQ
109242013-02-14 Yao Qi <yao@codesourcery.com>
10925
10926 * cli/cli-decode.c (help_cmd): Remove the declaration of
10927 "cmdlist".
10928 (help_all): Likewise.
10929
26cb8b7c
PA
109302013-02-13 Pedro Alves <palves@redhat.com>
10931
10932 * amd64-linux-nat.c (update_debug_registers_callback):
10933 Update comment.
10934 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10935 iterate_over_lwps.
10936 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10937 i386_debug_reg_state.
10938 (amd64_linux_new_fork): New function.
10939 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10940 linux_nat_new_fork hook, and i386_forget_process as
10941 linux_nat_forget_process hook.
10942 * i386-linux-nat.c (update_debug_registers_callback):
10943 Update comment.
a8256ea1 10944 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10945 iterate_over_lwps.
10946 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10947 i386_debug_reg_state.
10948 (i386_linux_new_fork): New function.
10949 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10950 linux_nat_new_fork hook, and i386_forget_process as
10951 linux_nat_forget_process hook.
10952 * i386-nat.c (i386_init_dregs): Delete.
10953 (i386_inferior_data, struct i386_inferior_data):
10954 Delete.
10955 (struct i386_process_info): New.
10956 (i386_process_list): New global.
10957 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10958 New functions.
10959 (i386_inferior_data_get): Delete.
10960 (i386_process_info_get): New function.
10961 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10962 (i386_forget_process): New function.
10963 (i386_cleanup_dregs): Rewrite.
10964 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10965 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10966 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10967 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10968 to i386_debug_reg_state.
10969 (i386_use_watchpoints): Don't register inferior data.
10970 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10971 adjust comment.
10972 (i386_forget_process): Declare.
10973 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10974 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10975 New static globals.
10976 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10977 (add_initial_lwp): New, factored out from ...
10978 (add_lwp): ... this. Don't check the number of lwps before
10979 calling linux_nat_new_thread.
10980 (linux_nat_iterate_watchpoint_lwps): Delete.
10981 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10982 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10983 forks and vforks.
10984 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10985 initial lwp.
10986 (linux_nat_kill, linux_nat_mourn_inferior): Call
10987 linux_nat_forget_process.
10988 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10989 (linux_nat_forget_process): New functions.
10990 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10991 type.
10992 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10993 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10994 types.
10995 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10996 (linux_nat_forget_process): New declarations.
10997
10998 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10999 (amd64fbsd_mourn_inferior): New function.
11000 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11001 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11002
5befea72
MS
110032013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11004
55015247
YQ
11005 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11006 Adding _().
5befea72 11007
1d3ffd6b
MS
110082013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11009
11010 * aarch64-linux-nat.c (debug_reg_change_callback)
11011 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11012 %s and phex().
11013
6eb04473
MS
110142013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11015
11016 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11017 with LONGEST.
11018
a016fc87
HAQ
110192013-02-13 Pedro Alves <palves@redhat.com>
11020 Hafiz Abid Qadeer <abidh@codesourcery.com>
11021
11022 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11023
e234dfaf
TT
110242013-02-12 Tom Tromey <tromey@redhat.com>
11025
11026 PR symtab/11464:
11027 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11028 NAME return.
11029 (classify_inner_name): Remove 'first_name' argument, add
11030 'context'. Remove unused variable.
11031 (yylex): Explicitly maintain the context type. Exit loop earlier
11032 if NAME result is seen.
11033
0b1afbb3
PA
110342013-02-12 Pedro Alves <palves@redhat.com>
11035
11036 * amd64-darwin-tdep.c: Add (C) after Copyright.
11037 * cli/cli-cmds.h: Ditto.
11038 * cli/cli-decode.c: Ditto.
11039 * cli/cli-decode.h: Ditto.
11040 * cli/cli-dump.c: Ditto.
11041 * cli/cli-dump.h: Ditto.
11042 * cli/cli-interp.c: Ditto.
11043 * cli/cli-logging.c: Ditto.
11044 * cli/cli-script.c: Ditto.
11045 * cli/cli-script.h: Ditto.
11046 * cli/cli-setshow.c: Ditto.
11047 * cli/cli-setshow.h: Ditto.
11048 * cli/cli-utils.c: Ditto.
11049 * cli/cli-utils.h: Ditto.
11050 * config/alpha/nm-osf3.h: Ditto.
11051 * config/djgpp/djconfig.sh: Ditto.
11052 * config/i386/nm-fbsd.h: Ditto.
11053 * config/i386/nm-i386gnu.h: Ditto.
11054 * config/nm-linux.h: Ditto.
11055 * config/nm-nto.h: Ditto.
11056 * config/rs6000/nm-rs6000.h: Ditto.
11057 * config/sparc/nm-sol2.h: Ditto.
11058 * darwin-nat-info.c: Ditto.
11059 * dfp.c: Ditto.
11060 * dfp.h: Ditto.
11061 * gdb-demangle.h: Ditto.
11062 * i386-darwin-nat.c: Ditto.
11063 * i386-darwin-tdep.c: Ditto.
11064 * linux-fork.h: Ditto.
11065 * m32c-tdep.c: Ditto.
11066 * microblaze-linux-tdep.c: Ditto.
11067 * microblaze-rom.c: Ditto.
11068 * microblaze-tdep.c: Ditto.
11069 * microblaze-tdep.h: Ditto.
11070 * mips-linux-tdep.h: Ditto.
11071 * ppc-ravenscar-thread.c: Ditto.
11072 * ppc-ravenscar-thread.h: Ditto.
11073 * prologue-value.c: Ditto.
11074 * prologue-value.h: Ditto.
11075 * ravenscar-thread.c: Ditto.
11076 * ravenscar-thread.h: Ditto.
11077 * sparc-ravenscar-thread.c: Ditto.
11078 * sparc-ravenscar-thread.h: Ditto.
11079 * tilegx-linux-tdep.c: Ditto.
11080 * unwind_stop_reasons.def: Ditto.
11081 * windows-nat.h: Ditto.
11082 * xtensa-linux-tdep.c: Ditto.
11083 * xtensa-xtregs.c: Ditto.
11084 * regformats/regdat.sh: Ditto.
11085 * regformats/regdef.h: Ditto.
11086
6c01dd94
PA
110872013-02-12 Pedro Alves <palves@redhat.com>
11088
11089 * break-catch-sig.c: Update copyright years.
11090
b65a2bd9
SCR
110912013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11092
11093 Add support for a destructor for ui_out data and use it to
11094 provide a ui_out destructor.
11095 * ui-out.h: Declare the new ui_out destructor.
11096 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11097 * ui-out.c (default_data_destroy): Add a default data destructor
11098 which does nothing.
11099 (default_ui_out_impl): Set the new data_destroy field to
11100 default_data_destroy
11101 (uo_data_destroy): Local function which invokes the data
11102 destructor if present.
11103 (clear_table): Local function which clears the table data of a
11104 ui_out object.
11105 (ui_out_destroy): Public function which frees a ui_out object.
11106 (ui_out_table_end): Use the new clear_table function.
11107 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11108 NULL.
11109 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11110 to NULL.
11111
c2792f5a
DE
111122013-02-11 Doug Evans <dje@google.com>
11113
11114 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11115 (printf_decfloat): New function. Broken out from ui_printf.
11116 Remove unnecessary code to shift the entire format string down.
11117 (printf_pointer): New function.
11118 (ui_printf): Code to print C strings, wide C strings, decfloats,
11119 and pointers moved to separate functions.
11120
d9e98382
SDJ
111212013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11122
11123 * valops.c (value_assign): Handling bitfield offset in
11124 `lval_internalvar_component' case.
11125
4ff3ce77
DE
111262013-02-08 Doug Evans <dje@google.com>
11127
11128 * common/format.c (parse_format_string): Fix whitespace.
11129
901900c4
MGD
111302013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11131
11132 * stack.c (return_command): Work around uninitialized variable
11133 warning.
11134
b5dbc8d4
YZ
111352013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11136
11137 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11138 number of the registers from 36 to 34.
11139
51d66578
MS
111402013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11141
11142 * NEWS: Mention new AArch64 native and target support.
11143
176b1c95
MS
111442013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11145
11146 * MAINTAINERS (Write After Approval): Add myself.
11147
9d19df75
MS
111482013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11149 Marcus Shawcroft <marcus.shawcroft@arm.com>
11150 Nigel Stephens <nigel.stephens@arm.com>
11151 Yufeng Zhang <yufeng.zhang@arm.com>
11152
11153 * aarch64-linux-nat.c: New file.
11154 * config/aarch64/linux.mh: New file.
11155 * configure.host: Add AArch64.
11156 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11157
7e1e0340
DE
111582013-02-07 Doug Evans <dje@google.com>
11159
11160 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11161 disassemble command.
11162
45e25a36
MS
111632013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11164
11165 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11166 set_gdbarch_fetch_tls_load_module_address.
11167
bbfdfe1c
DM
111682013-02-06 David S. Miller <davem@davemloft.net>
11169
11170 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11171 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11172 * value.c (struct_return_convention): New function.
11173 (using_struct_return): Implement in terms of struct_return_convention.
11174 * value.h (struct_return_convention): Declare.
11175 * stack.c (return_command): Allow successful overriding of the return
11176 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11177
bc9abe4a
TT
111782013-02-06 Tom Tromey <tromey@redhat.com>
11179
11180 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11181 outside of TRY_CATCH.
11182
134a2066
YQ
111832013-02-06 Yao Qi <yao@codesourcery.com>
11184
11185 * mi/mi-interp.c: Include "tracepoint.h".
11186 (mi_tsv_modified): Declare.
11187 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11188 (mi_interpreter_init): Call observer_attach_tsv_modified.
11189 (mi_tsv_modified): New.
11190 (mi_tsv_created, mi_tsv_deleted): Update.
11191 * tracepoint.c (trace_variable_command): Call
11192 observer_notify_tsv_modified if the initial value of tsv is
11193 changed.
11194 (delete_trace_state_variable): Call
11195 observer_notify_tsv_deleted earlier.
11196 (trace_variable_command): Caller update.
11197 (create_tsv_from_upload): Likewise.
11198 * observer.sh: Declare "struct trace_state_variable".
11199
11200 * NEWS: Mention the new MI notification "=tsv-modified".
11201
59be2b6a
DE
112022013-02-05 Doug Evans <dje@google.com>
11203
11204 * completer.c (location_completer): Fix typo in comment.
11205
d30113d4
JK
112062013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11207
11208 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11209 ADDRESS sorted.
11210
14ac654f
MS
112112013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11212
11213 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11214 Refactor if statement to avoid trailing || operator.
11215
543bf33d
AT
112162013-02-05 Andreas Tobler <andreast@fgznet.ch>
11217
11218 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11219
dc18f110
AT
112202013-02-04 Andreas Tobler <andreast@fgznet.ch>
11221
11222 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11223 * configure.host: Add powerpc*-*-freebsd* target.
11224 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11225 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11226 * config/powerpc/fbsd.mh: New file.
11227
b3ac9c77
SDJ
112282013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11229 Denys Vlasenko <dvlasenk@redhat.com>
11230 Pedro Alves <palves@redhat.com>
11231
11232 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11233 (struct elf_internal_linux_prpsinfo): Forward declare.
11234 * gdbarch.h, gdbarch.c: Regenerate.
11235 * linux-tdep.c: Include `cli/cli-utils.h'.
11236 (linux_fill_prpsinfo): New function.
11237 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11238 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11239 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11240 depending on gdbarch pointer bitness.
11241 * ppc-linux-tdep.c: Include elf-bfd.h.
11242 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11243 on 32-bit.
11244
176eb98c
MS
112452013-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 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11251
cf0dbd6f
MS
112522013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11253 Marcus Shawcroft <marcus.shawcroft@arm.com>
11254 Nigel Stephens <nigel.stephens@arm.com>
11255 Yufeng Zhang <yufeng.zhang@arm.com>
11256
11257 * aarch64-newlib-tdep.c: New file.
11258 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11259 aarch64*-*-elf.
11260 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11261 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11262 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11263 * osabi.c (gdb_osabi_names): Add "Newlib".
11264
1ae3db19
MS
112652013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11266 Marcus Shawcroft <marcus.shawcroft@arm.com>
11267 Nigel Stephens <nigel.stephens@arm.com>
11268 Yufeng Zhang <yufeng.zhang@arm.com>
11269
11270 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11271 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11272 * aarch64-linux-tdep.c: New file.
11273 * aarch64-linux-tdep.h: New file.
11274 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11275 * configure.tgt: Add aarch64-none-linux-gnu.
11276
07b287a0
MS
112772013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11278 Marcus Shawcroft <marcus.shawcroft@arm.com>
11279 Nigel Stephens <nigel.stephens@arm.com>
11280 Yufeng Zhang <yufeng.zhang@arm.com>
11281
11282 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11283 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11284 (ALLDEPFILES): Add aarch64-tdep.c.
11285 * aarch64-tdep.c: New file.
11286 * aarch64-tdep.h: New file.
11287 * configure.tgt: Add AArch64.
11288 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11289 (aarch64-expedite): New definition.
11290 * features/aarch64-core.xml: New file.
11291 * features/aarch64-fpu.xml: New file.
11292 * features/aarch64-without-fpu.c: New file (generated).
11293 * features/aarch64-without-fpu.xml: New file.
11294 * features/aarch64.c: New file (generated).
11295 * features/aarch64.xml: New file.
11296 * regformats/aarch64-without-fpu.dat: New file (generated).
11297 * regformats/aarch64.dat: New file (generated).
11298
0f1b18ab
JK
112992013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11300
11301 * contrib/expect-read1.c: New file.
11302 * contrib/expect-read1.sh: New file.
11303
233d95b5
JK
113042013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11305
11306 * dwarf2read.c (file_file_name): New function with code from
11307 file_full_name.
11308 (file_full_name): Move most of the code to file_file_name.
11309 (macro_start_file): Rename variable full_name to file_name and use
11310 file_file_name for it. Add comp_dir parameter to new_macro_table.
11311 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11312 macro_source_file->filename access by macro_source_fullname call.
11313 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11314 caller.
11315 * macrotab.c (struct macro_table): New field comp_dir.
11316 (macro_include): New variables link_fullname and source_fullname.
11317 Replace any macro_source_file->filename access by macro_source_fullname
11318 call.
11319 (macro_lookup_inclusion): Remove the partial filenames checking code.
11320 (check_for_redefinition): New variables source_fullname and
11321 found_key_fullname. Replace any macro_source_file->filename access by
11322 macro_source_fullname call.
11323 (macro_undef): New variables source_fullname and key_fullname. Replace
11324 any macro_source_file->filename access by macro_source_fullname call.
11325 (macro_lookup_definition): New variables retval and source_fullname.
11326 Replace any macro_source_file->filename access by macro_source_fullname
11327 call.
11328 (foreach_macro): New variable key_fullname. Replace any
11329 macro_source_file->filename access by macro_source_fullname call.
11330 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11331 macro_source_file->filename access by macro_source_fullname call.
11332 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11333 (macro_source_fullname): New function.
11334 * macrotab.h (struct macro_source_file): Extent the filename field
11335 comment.
11336 (new_macro_table): New parameter comp_dir, add a comment for it.
11337 (macro_source_fullname): new declaration.
11338
da235a7c
JK
113392013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11340
11341 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11342 this_real_name to outer block. Use it also for
11343 compare_filenames_for_search.
11344 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11345 with dw2_get_real_path for file_matcher, considering also
11346 BASENAMES_MAY_DIFFER.
11347 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11348
fbd9ab74
JK
113492013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11350
11351 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11352 to the file_matcher parameter. Pass 0 to it.
11353 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11354 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11355 NULL psymtab_to_fullname result.
11356 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11357 an expected filename instead.
11358 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11359 file_matcher parameter. Call also psymtab_to_fullname, after newly
11360 considering BASENAMES_MAY_DIFFER.
11361 * source.c (rewrite_source_path): Remove static.
11362 * source.h (rewrite_source_path): New declaration.
11363 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11364 the expand_symtabs_matching field. Comment it.
11365 * symtab.c (file_matches): New function comment. Add parameter
11366 basenames, implement it.
11367 (search_symbols_file_matches): Add basenames parameter. Update the
11368 file_matches caller.
11369 (search_symbols): Match FILES also against symtab_to_fullname.
11370 Optimize it for BASENAMES_MAY_DIFFER.
11371
56d397a3
JK
113722013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11373
11374 * source.c (print_source_lines_base): Print for TUI also "fullname".
11375 * tui/tui-data.c (init_content_element): Change tui_locator_element
11376 field to full_name.
11377 * tui/tui-data.h (struct tui_locator_element): Likewise.
11378 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11379 tui_update_locator_filename calls to tui_update_locator_fullname.
11380 Replace symtab->filename refererence by symtab_to_fullname call.
11381 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11382 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11383 field to full_name. Replace symtab->filename refererence by
11384 symtab_to_fullname call.
11385 (tui_show_symtab_source): Rename parameter to fullname. Change
11386 tui_locator_element field to full_name.
11387 * tui/tui-stack.c: Include source.h.
11388 (tui_set_locator_filename): Rename the declaration to ...
11389 (tui_set_locator_fullname): ... here. Rename its parameter to
11390 fullname, updates its comment.
11391 (tui_set_locator_info): Rename its parameter to fullname.
11392 (tui_set_locator_filename): Rename the definition to ...
11393 (tui_set_locator_fullname): ... here. Rename its parameter to
11394 fullname, updates its comment. Change tui_locator_element field to
11395 full_name.
11396 (tui_set_locator_info): Rename its parameter to fullname.
11397 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11398 (tui_update_locator_filename): Rename to ...
11399 (tui_update_locator_fullname): ... here. Rename callee to
11400 tui_set_locator_fullname.
11401 (tui_show_frame_info): Replace symtab->filename refererence by
11402 symtab_to_fullname call.
11403 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11404 (tui_update_locator_fullname): ... here.
11405 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11406 tui_update_locator_fullname. Replace symtab->filename refererence by
11407 symtab_to_fullname call.
11408 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11409 Rename the callee to tui_update_locator_fullname.
11410 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11411
05cba821
JK
114122013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11413
11414 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11415 by symtab_to_filename_for_display calls.
11416 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11417 (clear_command): New variable sal_fullname, initialize it. Replace
11418 compare_filenames_for_search by filename_cmp with sal_fullname.
11419 (say_where, update_static_tracepoint): Replace symtab->filename
11420 refererences by symtab_to_filename_for_display calls.
11421 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11422 Likewise.
11423 * dwarf2read.c: Include source.h.
11424 (fixup_go_packaging): Replace symtab->filename refererences by
11425 symtab_to_filename_for_display calls.
11426 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11427 Replace symtab->filename refererences by symtab_to_filename_for_display
11428 calls.
11429 (create_sals_line_offset, convert_linespec_to_sals): New variable
11430 fullname, initialize it, replace symtab->filename reference by the
11431 variable.
11432 * linux-fork.c: Include source.h.
11433 (info_checkpoints_command): Replace symtab->filename refererences by
11434 symtab_to_filename_for_display calls.
11435 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11436 by symtab_to_filename_for_display calls.
11437 * mdebugread.c: Include source.h.
11438 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11439 symtab_to_filename_for_display calls.
11440 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11441 (mi_cmd_file_list_exec_source_files): Likewise.
11442 * printcmd.c: Include source.h.
11443 (build_address_symbolic): Replace symtab->filename refererences by
11444 symtab_to_filename_for_display calls.
11445 * psymtab.c (partial_map_symtabs_matching_filename)
11446 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11447 with psymtab_to_fullname.
11448 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11449 by symtab_to_filename_for_display calls.
11450 (stpy_get_filename): New variable filename, initialize it, use instead
11451 of symtab->filename refererences.
11452 (salpy_str): Make variable filename const char *. Replace
11453 symtab->filename refererences by symtab_to_filename_for_display calls.
11454 * skip.c: Include source.h and filenames.h.
11455 (skip_file_command): Remove const from the symtab variable. Replace
11456 symtab->filename refererences by symtab_to_fullname call.
11457 (function_name_is_marked_for_skip): New variables searched_for_fullname
11458 and fullname. Use them to search also with symtab's fullname.
11459 * source.c (find_source_lines): Replace symtab->filename refererences
11460 by symtab_to_filename_for_display calls.
11461 (print_source_lines_base): New variable filename, use it instead of
11462 symtab->filename. Replace symtab->filename refererences by
11463 symtab_to_filename_for_display calls.
11464 (line_info, forward_search_command): Replace symtab->filename
11465 refererences by symtab_to_filename_for_display calls.
11466 (reverse_search_command): Replace symtab->filename refererences by
11467 symtab_to_filename_for_display calls. New variable filename for it.
11468 * stack.c (frame_info): Likewise.
11469 * symmisc.c: Include source.h.
11470 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11471 (maintenance_info_symtabs): Replace symtab->filename refererences by
11472 symtab_to_filename_for_display calls.
11473 * symtab.c (iterate_over_some_symtabs): Call
11474 compare_filenames_for_search also with symtab_to_fullname.
11475 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11476 symtab->filename refererences by symtab_to_filename_for_display calls.
11477 (find_line_symtab): Replace symtab->filename refererences by
11478 symtab_to_filename_for_display calls.
11479 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11480 (print_symbol_info): Make the last parameter const char *. New
11481 variable s_filename. Use it in the function.
11482 (symtab_symbol_info): Make the last_filename variable const char *.
11483 Replace symtab->filename refererences by symtab_to_filename_for_display
11484 calls.
11485 (rbreak_command): New variable fullname. Use it. Replace
11486 symtab->filename refererence by symtab_to_filename_for_display call.
11487 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11488 (print_one_static_tracepoint_marker): Replace symtab->filename
11489 refererences by symtab_to_filename_for_display calls.
11490 * tui/tui-source.c (tui_set_source_content): New variables filename and
11491 s_filename. Replace symtab->filename refererences by this variable.
11492 Replace other symtab->filename refererences by
11493 symtab_to_filename_for_display calls.
11494
1b56eb55
JK
114952013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11496 Jan Kratochvil <jan.kratochvil@redhat.com>
11497
11498 Add a new variable that controls a way in which filenames are
11499 displayed.
11500 * NEWS (set filename-display): New entry.
11501 * source.c (filename_display_basename, filename_display_relative)
11502 (filename_display_absolute, filename_display_kind_names)
11503 (filename_display_string, show_filename_display_string)
11504 (symtab_to_filename_for_display): New.
11505 (_initialize_source): Added initialization of 'filename-display'
11506 variable.
11507 * source.h (symtab_to_filename_for_display): Added declaration.
11508 * stack.c (print_frame): Added new variable and calling of a new
11509 function and condition with this variable. Changed third argument of
11510 calling of a function.
11511
aa079c93
JK
115122013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11513
11514 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11515 Rename field reference filename to fullname.
11516 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11517 fullname. New comment for it.
11518 * tui/tui-source.c (tui_set_source_content): Rename field reference
11519 filename to fullname. Initialize field by symtab_to_fullname now.
11520 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11521 reference filename to fullname. Use symtab_to_fullname during
11522 comparison.
11523
652a8996
JK
115242013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11525
11526 Code cleanup.
11527 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11528 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11529 filename to fullname. Rename variable this_name to this_fullname.
11530 Lowercase FILENAME_CMP call.
11531 (dw2_find_symbol_file): New comment for the returned string.
11532 (dwarf2_gdb_index_functions): Rename the function to
11533 dw2_expand_symtabs_with_fullname.
11534 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11535 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11536 fullname.
11537 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11538 * symfile.h (struct quick_symbol_functions): Rename field
11539 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11540 parameter filename to fullname. Document returned string meaning for
11541 find_symbol_file.
11542 * symtab.c (find_line_symtab): Rename the called function to
11543 expand_symtabs_with_fullname.
11544
af529f8f
JK
115452013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11546
11547 Code cleanup.
11548 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11549 call of filename_cmp with compare_filenames_for_search.
11550 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11551 is_abs, unify the call of FILENAME_CMP with
11552 compare_filenames_for_search. New gdb_asserts for real_path and name.
11553 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11554 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11555 * symfile.h (struct quick_symbol_functions): Extend the comment for
11556 map_symtabs_matching_filename.
11557 * symtab.c (compare_filenames_for_search): Remove the function comment
11558 relative path requirement. Handle absolute filenames, with a comment.
11559 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11560 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11561 real_path and name. Unify the call of compare_filenames_for_search
11562 with FILENAME_CMP.
11563 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11564
2f202fde
JK
115652013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11566
11567 Code cleanup.
11568 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11569 source_file references by symtab field references. Remove variables
11570 sal and fullname.
11571 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11572 (clear_command, say_where): Replace bp_location field source_file
11573 references by symtab field references.
11574 (bp_location_dtor): Remove the source_file reference.
11575 (update_static_tracepoint): Replace bp_location field source_file
11576 references by symtab field references.
11577 (breakpoint_free_objfile): New function.
11578 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11579 Replace the field source_file by field symtab, extend its comment.
11580 (breakpoint_free_objfile): New declaration.
11581 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11582 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11583 field source_file references by symtab field references.
11584
f5b95b50
JK
115852013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11586
11587 Replace xfullpath calls by gdb_realpath calls.
11588 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11589 function comment.
11590 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11591 Remove it from the iterate_over_some_symtabs call.
11592 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11593 Remove it from the dw2_map_expand_apply calls, remove a block handling
11594 it.
11595 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11596 Remove it from the iterate_over_some_symtabs call.
11597 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11598 Remove it from the partial_map_expand_apply calls, remove a block
11599 handling it. Drop gdb_realpath call and cleanups from the real_path
11600 handling.
11601 * source.c (openp): Drop the comment part about xfullpath. Replace
11602 xfullpath calls by gdb_realpath calls.
11603 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11604 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11605 from method map_symtabs_matching_filename and its comment.
11606 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11607 gdb_realpath call.
11608 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11609 remove it also from the function comment, remove a block handling it.
11610 Drop gdb_realpath call and cleanups from the real_path handling.
11611 (iterate_over_symtabs): Drop variable full_path and its use.
11612 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11613 * utils.c (xfullpath): Remove.
11614 * utils.h (xfullpath): Remove.
11615
d78489bf
AT
116162013-02-01 Andreas Tobler <andreast@fgznet.ch>
11617
11618 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11619 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11620 (ALLDEPFILES): Add ppc64-tdep.c.
11621 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11622 ppc64-tdep.o to gdb_target_obs.
11623 * ppc64-tdep.h: New file.
11624 * ppc64-tdep.c: New file.
11625 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11626 ppc-linux-tdep.c to here.
11627 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11628 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11629 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11630 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11631 from ppc-linux-tdep.c to here.
11632 (ppc64_convert_from_func_ptr_addr): Rename from
11633 ppc64_linux_convert_from_func_ptr_addr to
11634 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11635 here.
11636 * rs6000-tdep.c:
11637 (read_insn): Move from ppc-linux-tdep.c to here.
11638 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11639 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11640 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11641 Removed above functions.
11642 (ppc_linux_init_abi): Adjust.
11643
8db60374
AR
116442013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11645
11646 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11647
f2e5f4ce
AR
116482013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11649
11650 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11651
c1f7d745
PA
116522013-02-01 Pedro Alves <palves@redhat.com>
11653
11654 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11655 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11656
8a92335b
JK
116572013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11658
11659 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11660 files with no separate debug info.
11661 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11662 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11663 only for files with no separate debug info.
11664
8eacb197
TT
116652013-01-31 Tom Tromey <tromey@redhat.com>
11666
11667 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11668 change type.
11669 (struct jit_program_space_data): Rename from jit_inferior_data.
11670 Update comments.
11671 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11672 Change return type. Attach data to program space.
11673 (jit_program_space_data_cleanup): Rename from
11674 jit_inferior_data_cleanup; change argument type.
11675 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11676 change type.
11677 (jit_register_code): Update.
11678 (jit_update_inferior_cache): Remove.
11679 (jit_breakpoint_deleted): Get jit data from the location's program
11680 space.
11681 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11682 'ps_data', change type.
11683 (jit_inferior_init, jit_breakpoint_re_set_internal)
11684 (jit_event_handler): Update.
11685 (free_objfile_data): Get data from objfile's program space.
11686 (_initialize_jit): Update.
11687
f25c0135
TT
116882013-01-31 Tom Tromey <tromey@redhat.com>
11689
11690 PR gdb/13987:
11691 * jit.c (struct jit_inferior_data) <cached_code_address,
11692 jit_breakpoint>: New fields.
11693 (jit_breakpoint_re_set_internal): Fix logging. Only create
11694 breakpoint if cached address has changed.
11695 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11696 functions.
11697 (_initialize_jit): Register breakpoint deleted observer.
11698
974a734b
AR
116992013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11700
11701 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11702 (save_infcall_suspend_state): Ifdef out unused inf.
11703 (restore_infcall_suspend_state): Ifdef out unused inf.
11704 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11705 (jit_frame_sniffer): Remove unused inf_data.
11706
df54f8eb
AR
117072013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11708
11709 * c-exp.y (classify_inner_name): Remove unused type.
11710 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11711 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11712 need_escape.
11713 (c_get_string): Remove unused kind.
11714 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11715
5799c0b9
AR
117162013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11717
11718 * charset.c (intermediate_encoding): Remove unused i.
11719 * completer.c (signal_completer): Remove unused i.
11720 * continuations.c (discard_my_continuations_1): Remove unused
11721 continuation_ptr.
11722 * corelow.c (core_close): Remove unuseD name.
11723 (get_core_siginfo): Remove unused pid.
11724 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11725 i, cps.
11726 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11727 (loclist_describe_location): Remove unused first.
11728 * event-top.c (command_line_handler): Remove unused got_eof.
11729 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11730 (resize_section_table): Remove unused old_value.
11731 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11732 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11733 * i386-tdep.c (i386_process_record): Remove unused rex.
11734 * infcmd.c (get_return_value): Remove unused uiout.
11735 * jv-lang.c (type_from_class): Remove unused is_array.
11736 * jv-valprint.c (java_val_print): Remove unused i.
11737 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11738 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11739 * m2-typeprint.c (m2_print_type): Remove unused code.
11740 * macroexp.c (get_character_constant): Remove unused body_start.
11741 (macro_stringify): Remove unused result.
11742 * objc-lang.c (find_methods): Remove unused gdbarch.
11743 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11744 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11745 * stack.c (print_frame_args): Remove unused summary.
11746 * thread.c (thread_apply_command): Remove unused p.
11747 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11748 * valops.c (search_struct_method): Remove unused skip.
11749 * valprint.c (generic_val_print): Remove unused byte_order.
11750 * varobj.c (varobj_update): Remove unused changed.
11751 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11752 (alias_command): Remove unused c.
11753 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11754 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11755 format.
11756 (mi_cmd_data_write_memory): Remove unused word_format.
11757 (mi_cmd_data_write_memory_bytes): Remove unused r.
11758 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11759 p_start, p_end.
11760 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11761 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11762 line_width.
11763
c656bca5
AR
117642013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11765
11766 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11767 * symtab.c (iterate_over_symtabs): Remove unused s.
11768 (find_pc_sect_symtab): Remove unused pspAce.
11769 (find_pc_sect_line): Remove unused alt_symtab.
11770 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11771 (completion_list_add_name): Remove unused newsize.
11772
7078baeb
TT
117732013-01-31 Tom Tromey <tromey@redhat.com>
11774
11775 PR c++/14998:
11776 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11777 TYPE_CODE_FUNC.
11778
c2e8b827
AR
117792013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11780
11781 * target.c (target_read_string): Remove unused origlen.
11782
0e43993a
AR
117832013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11784
11785 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11786 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11787 * ax-general.c (ax_print): Remove unused is_float.
11788 * blockframe.c (block_innermost_frame): Remove unused start, end.
11789 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11790
765a97ab
AR
117912013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11792
11793 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11794 (svr4_read_so_list): Remove unused lmo.
11795 * solib-target.c (solib_target_relocate_section_addresses): Remove
11796 unused flags.
11797
a99dad3d
TT
117982013-01-30 Tom Tromey <tromey@redhat.com>
11799
11800 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11801
3bff1ecd
TT
118022013-01-30 Tom Tromey <tromey@redhat.com>
11803
11804 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11805 * utils.c (gnu_debuglink_crc32): Remove.
11806 * utils.h (gnu_debuglink_crc32): Don't declare.
11807
7d455152
TT
118082013-01-30 Tom Tromey <tromey@redhat.com>
11809
11810 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11811 (read_structure_type, read_enumeration_type): Remove cast.
11812
abee88f2
TT
118132013-01-30 Tom Tromey <tromey@redhat.com>
11814
11815 * dwarf2read.c (read_namespace_type): Remove cast.
11816 (read_typedef): Likewise.
11817
8d9878a4
TT
118182013-01-29 Tom Tromey <tromey@redhat.com>
11819
11820 * dwarf2read.c (free_dwo_file): Remove assert.
11821
a543d2a9
TT
118222013-01-29 Tom Tromey <tromey@redhat.com>
11823
11824 * value.c (deprecated_set_value_modifiable): Remove.
11825 * value.h (deprecated_set_value_modifiable): Remove.
11826
bed911e5
DE
118272013-01-28 Doug Evans <dje@google.com>
11828
11829 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11830 to addresses from dwo files.
11831
28c64fc2
SCR
118322013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11833
11834 * valops.c (find_overload_match): Remove unused argument 'lax'.
11835 * value.h: Remove unused argument 'lax' from the declaration of
11836 find_overload_match.
11837 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11838 to find_overload_match.
11839 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11840 argument to find_overload_match.
11841
4d4ec4e5
TT
118422013-01-25 Tom Tromey <tromey@redhat.com>
11843
11844 * dwarf2read.c (processing_has_namespace_info): Remove.
11845 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11846 (process_die, read_func_scope, dwarf2_start_symtab)
11847 (new_symbol_full): Update.
11848
195a3f6c
TT
118492013-01-25 Tom Tromey <tromey@redhat.com>
11850
11851 * cp-namespace.c (cp_set_block_scope): Remove.
11852 * cp-support.h (cp_set_block_scope): Remove.
11853 * dbxread.c: Include block.h.
11854 (cp_set_block_scope): New function.
11855 (process_one_symbol): Update.
11856 * dwarf2read.c (read_func_scope): Use block_set_scope.
11857
8ba0730a
PA
118582013-01-25 Pedro Alves <palves@redhat.com>
11859
11860 * remote.c (add_current_inferior_and_thread): Tweak comment.
11861
12aaed36
TT
118622013-01-25 Tom Tromey <tromey@redhat.com>
11863
11864 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11865 (cp_add_using_directive): Add 'copy_names' argument.
11866 * cp-support.h (cp_add_using_directive): Update.
11867 (struct using_direct) <import_src, import_dest, alias,
11868 declaration>: Now const.
11869 * dwarf2read.c (read_import_statement): Use obconcat.
11870 Don't copy names passed to cp_add_using_directive.
11871
7fc75ca7
TT
118722013-01-25 Tom Tromey <tromey@redhat.com>
11873
11874 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11875
3405876a
PA
118762013-01-25 Pedro Alves <palves@redhat.com>
11877
11878 * remote.c (stop_reply_extract_thread): New.
11879 (add_current_inferior_and_thread): New parameter 'wait_status'.
11880 Handle it.
11881 (remote_start_remote): Pass wait status to
11882 add_current_inferior_and_thread.
11883 (extended_remote_run): Update comment.
11884 (extended_remote_create_inferior_1): Pass wait status to
11885 add_current_inferior_and_thread.
11886
8954db33
AB
118872013-01-25 Andrew Burgess <aburgess@broadcom.com>
11888 Ulrich Weigand <uweigand@de.ibm.com>
11889
11890 * valarith.c (value_vector_widen): New function for replicating a
11891 scalar into a vector.
11892 (value_binop): Use value_vector_widen to widen scalar to vector
11893 rather than casting, this better matches gcc C behaviour.
11894 * valops.c (value_casst): Update logic for casting between vector
11895 types, and for casting from scalar to vector, try to match gcc C
11896 behaviour.
11897 * value.h (value_vector_widen): Declare.
11898 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11899 function, handle special case for casting scalar to vector.
11900 (opencl_relop): Use opencl_value_cast.
11901 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11902 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11903 in order to use opencl_value_cast.
11904
843b20dc
YQ
119052013-01-25 Yao Qi <yao@codesourcery.com>
11906
11907 * event-loop.c: Include "queue.h".
11908 (gdb_event_p): New typedef.
11909 (DECLARE_QUEUE_P): Use.
11910 (DEFINE_QUEUE_P): Use.
11911 (async_queue_event): Remove.
11912 (gdb_event_xfree): New.
11913 (initialize_event_loop): New.
11914 (process_event): Use QUEUE macros.
11915 (event_queue): Remove.
11916 (gdb_wait_for_event): Caller update.
11917 (check_async_event_handlers): Likewise.
11918 (poll_timers): Likewise.
11919 * event-loop.h (initialize_event_loop): Declare.
11920 * event-loop.c (gdb_event_xfree): New.
11921 * top.c (gdb_init): Call initialize_event_loop.
11922
20ad8856
YQ
119232013-01-25 Yao Qi <yao@codesourcery.com>
11924
11925 * event-loop.c (async_queue_event): Remove one parameter
11926 'position'. Remove code handling 'position' == TAIL.
11927 (gdb_wait_for_event): Caller update.
11928 (check_async_event_handlers): Caller update.
11929 (poll_timers): Caller update.
11930 * event-loop.h (enum queue_position): Remove.
11931
3bbbe775
MK
119322013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11933
11934 * MAINTAINERS: Update my email.
11935
a87d9ac4
YQ
119362013-01-25 Yao Qi <yao@codesourcery.com>
11937
11938 * main.c (print_gdb_help): Remove "--epoch" from the help
11939 message.
11940
2077afdd
TD
119412013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11942
11943 * symtab.c (skip_prologue_using_sal): Consider a file
11944 change the same as an increased line number
11945
63da4037
TD
119462013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11947
30e8ee25 11948 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11949
45e6c716
TT
119502013-01-24 Tom Tromey <tromey@redhat.com>
11951
11952 * ada-lang.h (ada_decode_symbol): Make return type const.
11953 * ada-lang.c (ada_decode_symbol): Likewise.
11954
b1ae631a
DE
119552013-01-23 Doug Evans <dje@google.com>
11956
11957 * linespec.c (find_linespec_symbols): Make static.
11958
55a78401
SDJ
119592013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11960
11961 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11962 type on float conversion for complex type.
11963
bea883fd
SCR
119642013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11965
11966 Add a new class gdb.Architecture which exposes GDB's
11967 internal representation of architecture via GDB Python API.
11968 * Makefile.in: Add entries corresponding to the new file
11969 python/py-arch.c.
11970 * NEWS (Python Scripting): Add entries for the new class
11971 gdb.Architecture and the new method gdb.Frame.architecture.
11972 * python/py-arch.c: Implement gdb.Architecture class.
11973 * python/py-frame.c (frapy_arch): Implement the method
11974 gdb.Frame.architecture().
11975 (frame_object_methods): Add 'architecture' to the method table.
11976 * python/python-internal.h: Add declarations of new utility
11977 functions.
11978 * python/python.c (_initialize_python): Initialize
11979 gdb.Architecture class.
11980
796a7ff8
DE
119812013-01-23 Doug Evans <dje@google.com>
11982
11983 Work around binutils/15021.
11984 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11985 type_unit_group out of union s. All uses updated.
11986 (read_index_from_section): Watch for index version 8.
11987 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11988 an imported symtab.
11989 (write_psymtabs_to_index): Increment version number to 8.
11990
0928e93d
PA
119912013-01-22 Pedro Alves <palves@redhat.com>
11992
11993 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11994 user-visible.
11995
9c97429f
PA
119962013-01-22 Pedro Alves <palves@redhat.com>
11997
11998 * annotate.c (annotate_breakpoints_changed): Rename to ...
11999 (annotate_breakpoints_invalid): ... this. Make static.
12000 (breakpoint_changed): Adjust.
12001 (_initialize_annotate): Always install the observers. Install a
12002 "breakpoint_created" observer.
12003 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12004 * breakpoint.c (set_breakpoint_condition)
12005 (breakpoint_set_commands, do_map_commands_command)
12006 (init_raw_breakpoint, clear_command, set_ignore_count)
12007 (enable_breakpoint_disp): No longer call
12008 annotate_breakpoints_changed.
12009
bd00c694
PA
120102013-01-22 Pedro Alves <palves@redhat.com>
12011
12012 * annotate.c: Include "inferior.h".
12013 (frames_invalid_emitted)
12014 (breakpoints_invalid_emitted): New globals.
12015 (async_background_execution_p): New function.
12016 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12017 emitting the annotation if it has already been emitted.
12018 (annotate_display_prompt): New function.
12019 * annotate.h (annotate_display_prompt): New declaration.
12020 * event-top.c: Include annotate.h.
12021 (display_gdb_prompt): Call annotate_display_prompt.
12022
187d10dd
PA
120232013-01-22 Pedro Alves <palves@redhat.com>
12024
12025 * annotate.c (ignore_count_changed): Delete.
12026 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12027 (annotate_ignore_count_change): Delete.
12028 (annotate_stopped): Don't emit a delayed breakpoints-changed
12029 annotation.
12030 * annotate.h (annotate_ignore_count_change): Delete.
12031 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12032 annotate_ignore_count_change.
12033
d84cf7eb
TT
120342013-01-22 Tom Tromey <tromey@redhat.com>
12035
12036 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12037 require_rvalue for a register location.
12038
8f1d5693
MK
120392013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12040
12041 * breakpoint.c (print_one_breakpoint_location): Add MI
12042 field 'thread-groups' when printing a breakpoint.
12043 (output_thread_groups): New function.
12044
aa6199c6
SCR
120452013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12046
12047 * python/lib/gdb/commands/explore.py
12048 (CompoundExplorer.explore_expr): Correct the name of a method
12049 being invoked.
12050 (ExploreTypeCommand.invoke): Add a missing 'return'.
12051
d2afef13
TT
120522013-01-21 Tom Tromey <tromey@redhat.com>
12053
12054 * gdb_obstack.h (obconcat): Move declaration here, from...
12055 * symfile.h (obconcat): ... here.
12056 * gdb_obstack.c: New file.
12057 (obconcat): Move from...
12058 * symfile.c (obconcat): ... here.
12059 * Makefile.in (SFILES): Add gdb_obstack.c.
12060 (COMMON_OBS): Add gdb_obstack.o.
12061
10f0c4bb
TT
120622013-01-21 Tom Tromey <tromey@redhat.com>
12063
12064 * symfile.h (obsavestring): Don't declare.
12065 * symfile.c (obsavestring): Remove.
12066 * ada-exp.y: Use obstack_copy0, not obsavestring.
12067 * ada-lang.c: Use obstack_copy0, not obsavestring.
12068 * coffread.c: Use obstack_copy0, not obsavestring.
12069 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12070 * dbxread.c: Use obstack_copy0, not obsavestring.
12071 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12072 * jit.c: Use obstack_copy0, not obsavestring.
12073 * mdebugread.c: Use obstack_copy0, not obsavestring.
12074 * psymtab.c: Use obstack_copy0, not obsavestring.
12075 * stabsread.c: Use obstack_copy0, not obsavestring.
12076 * xcoffread.c: Use obstack_copy0, not obsavestring.
12077
86f62fd7
TT
120782013-01-21 Tom Tromey <tromey@redhat.com>
12079
12080 * dwarf2read.c (fixup_go_packaging): Save package name
12081 on objfile obstack.
12082 * gdbtypes.c (init_type): Don't copy name.
12083
15d034d0
TT
120842013-01-21 Tom Tromey <tromey@redhat.com>
12085
12086 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12087 const.
12088 (struct attribute) <u.str>: Now const.
12089 (struct fnfieldlist) <name>: Now const.
12090 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12091 (partial_die_parent_scope): Make return type const.
12092 (partial_die_full_name, add_partial_symbol): Update.
12093 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12094 'name' const.
12095 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12096 (read_file_scope, read_func_scope, dwarf2_add_field)
12097 (dwarf2_add_member_fn, read_structure_type)
12098 (process_enumeration_scope, read_array_type, read_module_type)
12099 (read_base_type, read_subrange_type): Update.
12100 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12101 (new_symbol_full, guess_full_die_structure_name): Update.
12102 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12103 (dwarf2_name): Return const type.
12104 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12105 const.
12106
748e18ae
TT
121072013-01-21 Tom Tromey <tromey@redhat.com>
12108
12109 * gdbtypes.c (init_type): Make 'name' const.
12110 * gdbtypes.h (init_type): Update.
12111
46212e0b
TT
121122013-01-21 Tom Tromey <tromey@redhat.com>
12113
12114 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12115 (start_symtab): Make 'name' and 'dirname' const. Use
12116 set_last_source_file.
12117 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12118 (last_source_file): Define. Now static.
12119 (set_last_source_file, get_last_source_file): New functions.
12120 * buildsym.h (last_source_file): Don't declare.
12121 (start_symtab): Update.
12122 (set_last_source_file, get_last_source_file): Declare.
12123 * coffread.c (complete_symtab): Use set_last_source_file.
12124 (coff_end_symtab): Likewise.
12125 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12126 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12127 set_last_source_file.
12128 (process_one_symbol): Use get_last_source_file.
12129 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12130 (psymtab_to_symtab_1): Use get_last_source_file.
12131 * xcoffread.c (process_linenos): Use get_last_source_file.
12132 (complete_symtab): Use set_last_source_file.
12133 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12134 (scan_xcoff_symtab): Use set_last_source_file.
12135
9d2ceabe
TT
121362013-01-21 Tom Tromey <tromey@redhat.com>
12137
12138 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12139 (symbol_set_names): Remove casts. Handle field const-ness.
12140
cfc594ee
TT
121412013-01-21 Tom Tromey <tromey@redhat.com>
12142
12143 * dwarf2read.c (new_symbol_full): Remove cast.
12144 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12145 * symtab.h (symbol_set_demangled_name): Update.
12146
5484b13a
TT
121472013-01-21 Tom Tromey <tromey@redhat.com>
12148
12149 * main.c (captured_main): Call bfd_init.
12150
1605ef26
TT
121512013-01-21 Tom Tromey <tromey@redhat.com>
12152
12153 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12154 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12155 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12156 * NEWS: Update.
12157
3b74cdc3
JK
121582013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12159
12160 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12161
5a352474
JK
121622013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12163
12164 Fix gdb.fortran/common-block.exp crash in PIE mode.
12165 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12166 LOC_COMMON_BLOCK.
12167 * f-valprint.c (info_common_command_for_block): Expect
12168 LOC_COMMON_BLOCK in gdb_assert.
12169 * symtab.h (struct general_symbol_info): Update comment for the
12170 common_block member.
12171 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12172 (enum address_class): New member LOC_COMMON_BLOCK.
12173
c60797fd
DB
121742013-01-18 David Blaikie <dblaikie@gmail.com>
12175
12176 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12177
46f35228
TT
121782013-01-18 Tom Tromey <tromey@redhat.com>
12179
12180 PR c++/14999:
12181 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12182 Call require_rvalue.
12183
257e7a09
YQ
121842013-01-18 Yao Qi <yao@codesourcery.com>
12185
12186 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12187 (dbx_read_symtab): New declaration.
12188 (dbx_psymtab_to_symtab): Delete.
12189 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12190 Rename parameter PST to SELF. Exchanged two parameters.
12191 (start_psymtab): Caller update.
12192 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12193 (dwarf2_read_symtab): New declaration.
12194 (dwarf2_psymtab_to_symtab): Delete.
12195 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12196 Rename parameter PST to SELF. Exchanged two parameters.
12197 (create_partial_symtab): Caller update.
12198 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12199 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12200 Rename parameter PST to SELF. Exchanged two parameters.
12201 (parse_partial_symbols, new_psymtab): Caller update.
12202 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12203 two parameters.
12204 * psymtab.c (psymtab_to_symtab): Caller update.
12205 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12206 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12207 Rename parameter PST to SELF. Exchanged two parameters.
12208 (xcoff_start_psymtab): Caller update.
12209
0de5618e
YQ
122102013-01-18 Yao Qi <yao@codesourcery.com>
12211
12212 * infrun.c (proceed): Rename local variable 'oneproc' to
12213 'force_step'.
12214
5c04624b
DE
122152013-01-17 Doug Evans <dje@google.com>
12216
848e3e78
DE
12217 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12218 (dw2_build_type_unit_groups): Delete. All uses updated.
12219
5c04624b
DE
12220 * symtab.h (struct symbol_search): Add comment.
12221
d84fca2c
JK
122222013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12223
12224 * symtab.c (compare_filenames_for_search): New comment for
12225 HAS_DRIVE_SPEC.
12226
6108433d
TT
122272013-01-17 Tom Tromey <tromey@redhat.com>
12228
12229 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12230
c89ffd86
JK
122312013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12232
12233 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12234 initialize it by existing make_cleanup. Call new do_cleanups.
12235
db2b2972
TT
122362013-01-17 Tom Tromey <tromey@redhat.com>
12237
12238 * cp-abi.c (cp_abi_completer): New function.
12239 (_initialize_cp_abi): Set completer for "set cp-abi".
12240
be7d37a2
TT
122412013-01-17 Tom Tromey <tromey@redhat.com>
12242
12243 * mem-break.c: Remove obsolete comment.
12244 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12245
c9fb1240
SD
122462012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12247
12248 * jit.c (jit_reader_load_command): Interpret the jit reader name
12249 as an absolute path if it begins with a forward slash.
12250
db334a01
SD
122512012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12252
12253 PR gdb/14550
12254
12255 * jit.c (finalize_symtab): Ensure that only the global block has a
12256 NULL superblock.
12257
7d928dac
PA
122582013-01-17 Pedro Alves <palves@redhat.com>
12259
12260 * acinclude.m4: Include ../config/plugins.m4,
12261 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12262 * Makefile.in (aclocal_m4_deps): Update.
12263 * aclocal.m4: Renegerate.
12264
fb8cf7c5
DE
122652013-01-16 Doug Evans <dje@google.com>
12266
12267 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12268
ab04a2af
TT
122692013-01-16 Pedro Alves <palves@redhat.com>
12270 Tom Tromey <tromey@redhat.com>
12271
12272 PR cli/7221:
12273 * NEWS: Add "catch signal".
12274 * breakpoint.c (base_breakpoint_ops): No longer static.
12275 (bpstat_explains_signal): New function.
12276 (init_catchpoint): No longer static.
12277 (base_breakpoint_explains_signal): New function.
12278 (base_breakpoint_ops): Initialize new field.
12279 * breakpoint.h (enum bpstat_signal_value): New.
12280 (struct breakpoint_ops) <explains_signal>: New field.
12281 (bpstat_explains_signal): Remove macro, declare as function.
12282 (base_breakpoint_ops, init_catchpoint): Declare.
12283 * break-catch-sig.c: New file.
12284 * inferior.h (signal_catch_update): Declare.
12285 * infrun.c (signal_catch): New global.
12286 (handle_syscall_event): Update for change to
12287 bpstat_explains_signal.
12288 (handle_inferior_event): Likewise. Always handle random signals
12289 via bpstats.
12290 (signal_cache_update): Check signal_catch.
12291 (signal_catch_update): New function.
12292 (_initialize_infrun): Initialize signal_catch.
12293 * Makefile.in (SFILES): Add break-catch-sig.c.
12294 (COMMON_OBS): Add break-catch-sig.o.
12295
8ac3646f
TT
122962013-01-16 Tom Tromey <tromey@redhat.com>
12297
12298 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12299 (print_one_catch_solib, print_one_catch_syscall)
12300 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12301 "catch-type".
12302
5a18e302
YQ
123032013-01-16 Yao Qi <yao@codesourcery.com>
12304
12305 * printcmd.c (current_display_number): Make it static.
12306
3f01d0d0
YQ
123072013-01-16 Yao Qi <yao@codesourcery.com>
12308
12309 * infcmd.c (step_once): Don't check '!single_inst' as it was
12310 checked before.
12311
1ed59174
JK
123122013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12313
12314 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12315
44478ab3
TT
123162013-01-14 Tom Tromey <tromey@redhat.com>
12317
12318 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12319 set command.
12320 * command.h (add_setshow_string_noescape_cmd): Update.
12321 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12322 (complete_set_gnutarget): New function.
12323 (_initialize_core): Set the "set gnutarget" completer.
12324
06d66ee9
TT
123252013-01-14 Tom Tromey <tromey@redhat.com>
12326
12327 PR symtab/14442:
12328 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12329 (c_type_print_modifier): Likewise.
12330 * dwarf2read.c (read_tag_restrict_type): New function.
12331 (read_type_die_1): Handle DW_TAG_restrict_type.
12332 * gdbtypes.c (make_restrict_type): New function.
12333 (recursive_dump_type): Handle TYPE_RESTRICT.
12334 * gdbtypes.h (enum type_flag_values): Renumber.
12335 (enum type_instance_flag_value): Add
12336 TYPE_INSTANCE_FLAG_RESTRICT.
12337 (TYPE_RESTRICT): New macro.
12338 (make_restrict_type): Declare.
12339
c9bf0622
TT
123402013-01-14 Tom Tromey <tromey@redhat.com>
12341
12342 PR symtab/14931:
12343 * psymtab.c (struct psymtab_state): New.
12344 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12345 functions.
12346 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12347 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12348
44d594fd
PA
123492013-01-14 Richard Sharman <richard_sharman@mitel.com>
12350 Pedro Alves <palves@redhat.com>
12351
12352 PR remote/14786
12353
12354 * remote.c (remote_threads_info): Make a copy of the reply from
12355 qfThreadInfo and use that instead of rs->buf.
12356
442e4d9c
YQ
123572013-01-14 Yao Qi <yao@codesourcery.com>
12358
12359 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12360 (dbx_psymtab_to_symtab): Likewise.
12361 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12362 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12363 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12364
5b12a61c
JK
123652013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12366
12367 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12368 make_cleanup_restore_current_language. Call set_language. Move
12369 OLD_CHAIN and INNER_CHAIN cleanups.
12370 * utils.c (do_restore_current_language)
12371 (make_cleanup_restore_current_language): New functions.
12372 * utils.h (make_cleanup_restore_current_language): New declaration.
12373
f0a4b570
JK
123742013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12375
12376 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12377 non-existing files.
12378
57b3c00c
JK
12379 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12380 non-existing files if FILENAME is already absolute.
12381
daefa854
JK
123822013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12383
12384 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12385 fputs_filtered. Append trailing newline.
12386
ca9c6ee2
YQ
123872013-01-11 Yao Qi <yao@codesourcery.com>
12388 Stan Shebs <stan@codesourcery.com>
12389
12390 * psymtab.c (init_psymbol_list): Clarify the comment.
12391
f28045c2
YQ
123922013-01-11 Yao Qi <yao@codesourcery.com>
12393
12394 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12395 (update_dprintf_command_list): Assert that 'printf_line' is
12396 non-null. Remove condition check.
12397
da5132d3
JK
123982013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12399
12400 Code cleanup.
12401 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12402 type const char *.
12403 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12404 const char *.
12405 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12406
843e694d
AG
124072013-01-09 Anthony Green <green@moxielogic.com>
12408
12409 * cp-abi.c (cplus_print_vtable): Don't return value from void
12410 function.
12411 * ada-lang.c (re_set_catch_assert): Ditto.
12412
da51c347
DE
124132013-01-09 Doug Evans <dje@google.com>
12414
12415 * symfile.h (quick_symbol_functions): Delete member
12416 pre_expand_symtabs_matching. All uses removed.
12417 * dwarf2read.c (dw2_lookup_symbol): Implement.
12418 (dw2_do_expand_symtabs_matching): Delete.
12419 (dw2_pre_expand_symtabs_matching): Delete.
12420 (struct dw2_symtab_iterator): New type.
12421 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12422 (dw2_expand_symtabs_for_function): Rewrite.
12423 (dwarf2_gdb_index_functions): Update.
12424 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12425 (psym_functions): Update.
12426
b2259038
TT
124272013-01-09 Tom Tromey <tromey@redhat.com>
12428
12429 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12430 * configure: Rebuild.
12431 * configure.ac: Add somread.o to the build if BFD has SOM
12432 support.
12433 * somread.c: Include som/aout.h, not syms.h.
12434 (som_symtab_read): Use som_external_symbol_dictionary_record.
12435 Unpack records manually.
12436 (_initialize_somread): Declare.
12437
bdad4180
MF
124382012-01-08 Mike Frysinger <vapier@gentoo.org>
12439
12440 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12441 Cast return_address to 64bits.
12442
03cdf680
HZ
124432013-01-08 Hui Zhu <hui_zhu@mentor.com>
12444
12445 * printcmd.c: Remove define of function output_command.
12446 * tracepoint.c: Remove extern of function output_command.
12447 * valprint.h: (output_command): New extern.
12448
8a808554
TT
124492013-01-07 Tom Tromey <tromey@redhat.com>
12450
12451 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12452 Remove.
12453 (objc_language_defn): Use c_printchar, c_printstr,
12454 c_emit_char.
12455
e93a8774
TT
124562013-01-07 Tom Tromey <tromey@redhat.com>
12457
12458 PR cli/7719:
12459 * NEWS: Update.
12460 * ada-valprint.c (printstr, print_field_values): Remove
12461 "inspect_it" code.
12462 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12463 code.
12464 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12465 code.
12466 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12467 * main.c (captured_main): Remove "epoch" argument.
12468 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12469 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12470 * p-valprint.c (pascal_object_print_value_fields): Remove
12471 "inspect_it" code.
12472 * printcmd.c (print_command_1): Remove 'inspect' argument.
12473 (print_command, call_command): Update.
12474 (inspect_command): Remove.
12475 (_initialize_printcmd): Make "inspect" an alias for "print".
12476 * top.c (epoch_interface): Remove.
12477 * top.h (epoch_interface): Remove.
12478 * valprint.c (user_print_options): Update.
12479 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12480 * valprint.h (struct value_print_options) <inspect_it>: Remove
12481 field.
12482
124832013-01-04 Tom Tromey <tromey@redhat.com>
12484
12485 * valprint.h (read_string): Add 'extern'.
12486
b967eb24
JB
124872013-01-07 Joel Brobecker <brobecker@adacore.com>
12488
12489 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12490 used to decide whether to define darwin_read_dyld_info or not.
12491
78a8b30e
PM
124922013-01-03 Pierre Muller <muller@sourceware.org>
12493
12494 * main.c (relocate_gdb_directory): Avoid calling stat function
12495 if DIR is empty.
12496
50da2f25
YQ
124972013-01-03 Yao Qi <yao@codesourcery.com>
12498
12499 * psymtab.c (fixup_psymbol_section): Update declaration.
12500 (fixup_psymbol_section): Remove code returning value.
12501
e7e8980f
YQ
125022013-01-03 Yao Qi <yao@codesourcery.com>
12503
12504 * symtab.h: Remove some out of date comments.
12505 (enum exception_event_kind): Move it ...
12506 * breakpoint.c: ... here.
12507
569283d4
MF
125082013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12509
9f9d9a96 12510 PR gdb/14405
569283d4
MF
12511 * darwin-nat.c (darwin_read_dyld_info): Only build if
12512 TASK_DYLD_INFO_COUNT is defined.
12513 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12514 TASK_DYLD_INFO_COUNT is defined.
12515
2e36fbea
TT
125162013-01-02 Tom Tromey <tromey@redhat.com>
12517
12518 * symfile.h (struct ecoff_debug_hack): Remove.
12519 * objfiles.c: Don't include mdebugread.h.
12520
4f05add4
TT
125212013-01-02 Tom Tromey <tromey@redhat.com>
12522
12523 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12524 * configure.ac: Check for Mach-O support in BFD. Update
12525 CONFIG_OBS.
12526 * configure: Rebuild.
12527
def63ff0
TT
125282013-01-02 Tom Tromey <tromey@redhat.com>
12529
12530 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12531 * configure.ac: Use GDB_AC_CHECK_BFD.
12532 * configure: Rebuild.
12533
60c5dd93
MK
125342013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12535
12536 * MAINTAINERS: Update my email.
12537
6e58437e
JB
125382013-01-01 Joel Brobecker <brobecker@adacore.com>
12539
12540 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12541
627fe805
JB
125422013-01-01 Joel Brobecker <brobecker@adacore.com>
12543
12544 * rs6000-nat.c (bss_data_overlap): New function.
12545 (vmap_symtab): Use it to adjust the .bss section's offset.
12546
28e7fd62
JB
125472013-01-01 Joel Brobecker <brobecker@adacore.com>
12548
12549 Update year range in copyright notice of all files.
12550
e93a8774 125512013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12552
12553 * top.c (print_gdb_version): Update copyright year.
12554
72b20e9c 12555For older changes see ChangeLog-2012.
c906108c
SS
12556\f
12557Local Variables:
12558mode: change-log
12559left-margin: 8
12560fill-column: 74
12561version-control: never
57da7796 12562coding: utf-8
c906108c 12563End:
This page took 2.880522 seconds and 4 git commands to generate.