Move types_deeply_equal from py-type.c to gdbtypes.c.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ca092b61
DE
12013-11-21 Doug Evans <xdje42@gmail.com>
2
3 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
4 (type_equality_entry): Move here from python/py-type.c.
5 (type_equality_entry_d): Ditto.
6 (compare_maybe_null_strings, check_types_equal): Ditto.
7 (check_types_worklist, types_deeply_equal): Ditto.
8 * gdbtypes.h (types_deeply_equal): Declare.
9 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
10 (typy_richcompare): Update.
11
7c245c24
JB
122013-11-20 Joel Brobecker <brobecker@adacore.com>
13
14 * python/py-value.c (is_intlike): Delete.
15 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
16 by use of is_integral_type.
17 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
18 by use of is_integral_type and check for TYPE_CODE_PTR.
19
8986e351
TT
202013-11-20 Tom Tromey <tromey@redhat.com>
21
22 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
23 strerror module.
24 * gnulib/aclocal.m4: Update.
25 * gnulib/config.in: Update.
26 * gnulib/configure: Update.
27 * gnulib/import/Makefile.am: Update.
28 * gnulib/import/Makefile.in: Update.
29 * gnulib/import/errno.in.h: Remove.
30 * gnulib/import/intprops.h: Remove.
31 * gnulib/import/m4/errno_h.m4: Remove.
32 * gnulib/import/m4/gnulib-cache.m4: Update.
33 * gnulib/import/m4/gnulib-comp.m4: Update.
34 * gnulib/import/m4/strerror.m4: Remove.
35 * gnulib/import/m4/sys_socket_h.m4: Remove.
36 * gnulib/import/strerror-override.c: Remove.
37 * gnulib/import/strerror-override.h: Remove.
38 * gnulib/import/strerror.c: Remove.
39 * gnulib/update-gnulib.sh: Update.
40
6b1141e3
YQ
412013-11-20 Yao Qi <yao@codesourcery.com>
42
43 * target-dcache.c (target_dcache_get_or_init): Call
44 set_address_space_data if 'dcache' is NULL.
45
60650f2e
WT
462013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
47
48 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
49
09748966
WT
502013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
51
52 * python/lib/gdb/command/bound_register.py: New file.
53 * gdb/data-directory/Makefile.in: copy bond_register.py to the right path to
54 be initialized at gdb startup.
55
e43e105e
WT
562013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
57
58 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
59 Add MPX registers.
60 (amd64_linux_read_description): Add initialization for MPX and
61 AVX independently.
62 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
63 (amd64_linux_gregset_reg_offset): Add MPX registers.
64 (amd64_linux_core_read_description): Add initialization for MPX
65 registers.
66 (_initialize_amd64_linux_tdep): Initialize MPX targets.
67 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
68 register on the list.
69 (tdesc_amd64_mpx_linux) Add new target for MPX.
70 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
71 (amd64_mpx_names): MPX register names.
72 (amd64_init_abi): Add MPX register while initializing the ABI.
73 (_initialize_amd64_tdep): Initialize MPX targets.
74 * amd64-tdep.h (amd64_regnum): Add MPX registers.
75 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
76
1dbcd68c
WT
772013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
78
79 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
80 registers on the range of registers to be read from
81 xsave buffer.
82 (i386_linux_read_description): Add case for MPX.
83 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
84 (i386_linux_gregset_reg_offset): Add MPX registers.
85 (i386_linux_core_read_description): Initialize also MPX.
86 (_initialize_i386_linux_tdep): Add mpx initialization.
87 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
88 mpx_register_names.
89 (i386_regnum): Add MPX registers.
90 (I386_MPX_NUM_REGS): New macro.
91 (i386_bnd_regnum_p): New function.
92 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
93 number of registers to be the number of BNDSTATUS.
94 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
95 * i386-tdep.c: Include features/i386/i386-mpx.c.
96 (i386_mpx_names): Add MPX register names array.
97 (i386_bnd_names): Add bnd pseudo register names array.
98 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
99 registers.
100 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
101 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
102 registers.
103 (i386_bnd_type): New function.
104 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
105 register types.
106 (i386_pseudo_register_read_into_value): Add bnd case.
107 (i386_pseudo_register_write): Add bnd pseudo registers.
108 (i386_register_reggroup_p): Add MPX register to the group all.
109 (i386_validate_tdesc_p): Add MPX to the target description
110 validation.
111 (i386_pseudo_register_name): Add bnd pseudo registers.
112 (i386_gdbarch_init): Add MPX for architecture initialization.
113 (_initia_initialize_i386_tdep): Add mpx initialization.
114 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
115 XSAVE buffer.
116 (XSAVE_MPX_ADDR): New macro.
117 (i387_supply_xsave): Add MPX case.
118 (i387_collect_xsave): Add MPX case.
119 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
120 (I387_BNDCFGU_REGNUM): New macro.
121 (I387_NUM_MPX_REGS): New macro.
122 (I387_NUM_BND_REGS): New macro.
123 (I387_NUM_MPX_CTRL_REGS): New macro.
124 (I387_MPXEND_REGNUM): New macro.
125 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
126 (I386_XSTATE_BNDCFG): Likewise.
127 (I386_XSTATE_MPX_MASK): Likewise.
128 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
129 (I386_XSTATE_BNDREGS_SIZE): New macro.
130 (I386_XSTATE_BNDCFG_SIZE): Likewise.
131 (I386_XSTATE_SIZE): Adapt for MPX.
132 (I386_XSTATE_MAX_SIZE): Likewise.
133
ccc42043
WT
1342013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
135
136 * features/i386/Makefile: Adapts for using MPX registers.
137 * features/i386/32bit-mpx.xml: New file.
138 * features/i386/64bit-mpx.xml: Likewise.
139 * features/i386/amd64-mpx-linux.c: Likewise.
140 * features/i386/amd64-mpx-linux.xml: Likewise.
141 * features/i386/amd64-mpx.c: Likewise.
142 * features/i386/amd64-mpx.xml: Likewise.
143 * features/i386/i386-mpx-linux.c: Likewise.
144 * features/i386/i386-mpx-linux.xml: Likewise.
145 * features/i386/i386-mpx.c: Likewise.
146 * features/i386/i386-mpx.xml: Likewise.
147 * regformats/i386/amd64-mpx-linux.dat: New file.
148 * regformats/i386/amd64-mpx.dat: Likewise.
149 * regformats/i386/i386-mpx-linux.dat: Likewise.
150 * regformats/i386/i386-mpx.dat: Likewise.
151
57803a3c
WT
1522013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
153
154 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
155 Modified logic of creating a bitfield to be in sync with
156 tdesc_gdb_type.
157
2b59118e
WN
1582013-11-20 Will Newton <will.newton@linaro.org>
159
160 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
161 error message.
162
b26dfc9a
YQ
1632013-11-20 Yao Qi <yao@codesourcery.com>
164
165 * progspace.h (struct address_space_data): Declare.
166 * target-dcache.c: Include "progspace.h".
167 (target_dache): Remove.
168 (target_dcache_aspace_key): New.
169 (target_dcache_cleanup): New function.
170 (target_dcache_init_p): Get data through
171 target_dcache_aspace_key.
172 (target_dcache_invalidate): Likewise.
173 (target_dcache_get): Likewise.
174 (target_dcache_get_or_init): Likewise.
175 (_initialize_target_dcache): Initialize
176 target_dcache_aspace_key.
177
3a8356ff
YQ
1782013-11-20 Yao Qi <yao@codesourcery.com>
179
180 * progspace.c (struct address_space): Update comments.
181 <REGISTRY_FIELDS>: New fields.
182 DEFINE_REGISTRY for address_space.
183 (new_address_space): Call address_space_alloc_data.
184 (free_address_space): Call address_space_free_data.
185 * progspace.h: Use DECLARE_REGISTRY.
186
68c765e2
YQ
1872013-11-20 Yao Qi <yao@codesourcery.com>
188
189 * Makefile.in (SFILES):Add target-dcache.c.
190 (HFILES_NO_SRCDIR): Add target-dcache.h.
191 (COMMON_OBS): Add target-dcache.o.
192 * dcache.c: Remove inclusion to "target.h". Include
193 "target-dcache.h".
194 * memattr.c: Include "target-dcache.h".
195 * top.c: Likewise.
196 * tracepoint.c: Likewise.
197 * target.c: (stack_cache_enabled_p_1): Move to
198 target-dcache.c.
199 (stack_cache_enabled_p): Likewise.
200 (set_stack_cache_enabled_p): Likewise.
201 (show_stack_cache_enabled_p): Likewise.
202 (target_dcache, target_dcache_init_p): Likewise.
203 (target_dcache_invalidate): Likewise.
204 (target_dcache_get, target_dcache_get_or_init): Likewise.
205 (memory_xfer_partial_1): Call function stack_cache_enabled.
206 (initialize_target): Move code to target-dcache.c.
207 * target.h (target_dcache_invalidate): Move to
208 target-dcache.h.
209 (target_dcache_get): Likewise.
210 * target-dcache.c: New.
211 * target-dcache.h: New.
212
f2de9785
YQ
2132013-11-20 Yao Qi <yao@codesourcery.com>
214
215 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
216 it is initialized.
217
2a2f9fe4
YQ
2182013-11-20 Yao Qi <yao@codesourcery.com>
219
220 * dcache.c (last_cache): Remove.
221 (dcache_free, dcache_init): Update.
222 (dcache_update):
223 (dcache_print_line): Add parameter 'dcache'. Replace
224 'target_dcache' with 'dcache'.
225 (dcache_info): Move code to dcache_info_1. Call
226 'dcache_info_1'.
227 (dcache_info_1): New function.
228 (set_dcache_size): Call target_dcache_invalidate.
229 (set_dcache_line_size): Call target_dcache_invalidate.
230 * target.c (target_dcache_init_p): New function.
231 (target_dcache_invalidate): Check target_dcache_init_p first.
232 (target_dcache_get, target_dcache_get_or_init): New function.
233 (memory_xfer_partial_1): Adjust.
234 (initialize_target): Don't initialize 'target_dcache'.
235 * target.h (struct dcache_struct): Declare.
236 (target_dcache_get): Declare.
237
8ab91b96
YQ
2382013-11-19 Yao Qi <yao@codesourcery.com>
239
240 * varobj.c (varobj_get_type): Fix typo.
241
df7752b0
JB
2422013-11-19 Joel Brobecker <brobecker@adacore.com>
243
244 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
245
4a0a886a
JB
2462013-11-19 Joel Brobecker <brobecker@adacore.com>
247
248 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
249 "stat.h".
250
53ce3c39
TT
2512013-11-18 Tom Tromey <tromey@redhat.com>
252
253 * common/gdb_stat.h: Remove.
254 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
255 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
256 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
257 * corefile.c: Use sys/stat.h, not gdb_stat.h.
258 * ctf.c: Use sys/stat.h, not gdb_stat.h.
259 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
260 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
261 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
262 * exec.c: Use sys/stat.h, not gdb_stat.h.
263 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
264 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
265 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
266 * jit.c: Use sys/stat.h, not gdb_stat.h.
267 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
268 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
269 * main.c: Use sys/stat.h, not gdb_stat.h.
270 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
271 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
272 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
273 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
274 * procfs.c: Use sys/stat.h, not gdb_stat.h.
275 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
276 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
277 * remote.c: Use sys/stat.h, not gdb_stat.h.
278 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
279 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
280 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
281 * source.c: Use sys/stat.h, not gdb_stat.h.
282 * symfile.c: Use sys/stat.h, not gdb_stat.h.
283 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
284 * symtab.c: Use sys/stat.h, not gdb_stat.h.
285 * top.c: Use sys/stat.h, not gdb_stat.h.
286 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
287
09607c9e
TT
2882013-11-18 Tom Tromey <tromey@redhat.com>
289
290 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
291 sys_stat.
292 * gnulib/aclocal.m4: Update.
293 * gnulib/config.in: Update.
294 * gnulib/configure: Update.
295 * gnulib/import/Makefile.am: Update.
296 * gnulib/import/Makefile.in: Update.
297 * gnulib/import/m4/gnulib-cache.m4: Update.
298 * gnulib/import/m4/gnulib-comp.m4: Update.
299 * gnulib/import/m4/sys_stat_h.m4: New.
300 * gnulib/import/m4/time_h.m4: New.
301 * gnulib/import/sys_stat.in.h: New.
302 * gnulib/import/time.in.h: New.
303
4ff70b84
TT
3042013-11-18 Tom Tromey <tromey@redhat.com>
305
306 * configure: Rebuild.
307 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
308
3447c057
TT
3092013-11-18 Tom Tromey <tromey@redhat.com>
310
311 * configure: Rebuild.
312 * configure.ac: Don't check for unistd.h.
313
0080a2f6
TT
3142013-11-18 Tom Tromey <tromey@redhat.com>
315
316 * configure: Rebuild.
317 * configure.ac: Don't check for stdlib.h
318 * defs.h: Include stdlib.h unconditionally.
319
161d1bec
TT
3202013-11-18 Tom Tromey <tromey@redhat.com>
321
322 * config.in: Rebuild.
323 * configure: Rebuild.
324 * configure.ac: Don't check for stddef.h.
325 * defs.h: Unconditionally include stddef.h. Remove duplicate
326 inclusion.
327
2978b111
TT
3282013-11-18 Tom Tromey <tromey@redhat.com>
329
330 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
331 * common/gdb_dirent.h: Remove.
332 * common/filestuff.c: Use dirent.h.
333 * common/linux-osdata.c: Use dirent.h.
334 (NAMELEN): Define.
335 * config.in: Rebuild.
336 * configure: Rebuild.
337 * configure.ac: Don't use AC_HEADER_DIRENT.
338 * linux-fork.c: Use dirent.h
339 * linux-nat.c: Use dirent.h.
340 * nto-procfs.c: Use dirent.h.
341 * procfs.c: Use dirent.h.
342
e26b6bb0
TT
3432013-11-18 Tom Tromey <tromey@redhat.com>
344
345 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
346 * gnulib/aclocal.m4: Update.
347 * gnulib/config.in: Update.
348 * gnulib/configure: Update.
349 * gnulib/import/Makefile.am: Update.
350 * gnulib/import/Makefile.in: Update.
351 * gnulib/import/dirent.in.h: New.
352 * gnulib/import/m4/dirent_h.m4: New.
353 * gnulib/import/m4/gnulib-cache.m4: Update.
354 * gnulib/import/m4/gnulib-comp.m4: Update.
355
a3d08894
TT
3562013-11-18 Tom Tromey <tromey@redhat.com>
357
358 * configure: Rebuild.
359 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
360 strings.h.
361
0e9f083f
TT
3622013-11-18 Tom Tromey <tromey@redhat.com>
363
364 * common/gdb_string.h: Remove.
365 * aarch64-tdep.c: Use string.h, not gdb_string.h.
366 * ada-exp.y: Use string.h, not gdb_string.h.
367 * ada-lang.c: Use string.h, not gdb_string.h.
368 * ada-lex.l: Use string.h, not gdb_string.h.
369 * ada-typeprint.c: Use string.h, not gdb_string.h.
370 * ada-valprint.c: Use string.h, not gdb_string.h.
371 * aix-thread.c: Use string.h, not gdb_string.h.
372 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
373 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
374 * alpha-nat.c: Use string.h, not gdb_string.h.
375 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
376 * alpha-tdep.c: Use string.h, not gdb_string.h.
377 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
378 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
379 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
380 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
381 * amd64-nat.c: Use string.h, not gdb_string.h.
382 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
383 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
384 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
385 * arch-utils.c: Use string.h, not gdb_string.h.
386 * arm-linux-nat.c: Use string.h, not gdb_string.h.
387 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
388 * arm-tdep.c: Use string.h, not gdb_string.h.
389 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
390 * armbsd-tdep.c: Use string.h, not gdb_string.h.
391 * armnbsd-nat.c: Use string.h, not gdb_string.h.
392 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
393 * armobsd-tdep.c: Use string.h, not gdb_string.h.
394 * avr-tdep.c: Use string.h, not gdb_string.h.
395 * ax-gdb.c: Use string.h, not gdb_string.h.
396 * ax-general.c: Use string.h, not gdb_string.h.
397 * bcache.c: Use string.h, not gdb_string.h.
398 * bfin-tdep.c: Use string.h, not gdb_string.h.
399 * breakpoint.c: Use string.h, not gdb_string.h.
400 * build-id.c: Use string.h, not gdb_string.h.
401 * buildsym.c: Use string.h, not gdb_string.h.
402 * c-exp.y: Use string.h, not gdb_string.h.
403 * c-lang.c: Use string.h, not gdb_string.h.
404 * c-typeprint.c: Use string.h, not gdb_string.h.
405 * c-valprint.c: Use string.h, not gdb_string.h.
406 * charset.c: Use string.h, not gdb_string.h.
407 * cli-out.c: Use string.h, not gdb_string.h.
408 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
409 * cli/cli-decode.c: Use string.h, not gdb_string.h.
410 * cli/cli-dump.c: Use string.h, not gdb_string.h.
411 * cli/cli-interp.c: Use string.h, not gdb_string.h.
412 * cli/cli-logging.c: Use string.h, not gdb_string.h.
413 * cli/cli-script.c: Use string.h, not gdb_string.h.
414 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
415 * cli/cli-utils.c: Use string.h, not gdb_string.h.
416 * coffread.c: Use string.h, not gdb_string.h.
417 * common/common-utils.c: Use string.h, not gdb_string.h.
418 * common/filestuff.c: Use string.h, not gdb_string.h.
419 * common/linux-procfs.c: Use string.h, not gdb_string.h.
420 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
421 * common/signals.c: Use string.h, not gdb_string.h.
422 * common/vec.h: Use string.h, not gdb_string.h.
423 * core-regset.c: Use string.h, not gdb_string.h.
424 * corefile.c: Use string.h, not gdb_string.h.
425 * corelow.c: Use string.h, not gdb_string.h.
426 * cp-abi.c: Use string.h, not gdb_string.h.
427 * cp-support.c: Use string.h, not gdb_string.h.
428 * cp-valprint.c: Use string.h, not gdb_string.h.
429 * cris-tdep.c: Use string.h, not gdb_string.h.
430 * d-lang.c: Use string.h, not gdb_string.h.
431 * dbxread.c: Use string.h, not gdb_string.h.
432 * dcache.c: Use string.h, not gdb_string.h.
433 * demangle.c: Use string.h, not gdb_string.h.
434 * dicos-tdep.c: Use string.h, not gdb_string.h.
435 * disasm.c: Use string.h, not gdb_string.h.
436 * doublest.c: Use string.h, not gdb_string.h.
437 * dsrec.c: Use string.h, not gdb_string.h.
438 * dummy-frame.c: Use string.h, not gdb_string.h.
439 * dwarf2-frame.c: Use string.h, not gdb_string.h.
440 * dwarf2loc.c: Use string.h, not gdb_string.h.
441 * dwarf2read.c: Use string.h, not gdb_string.h.
442 * elfread.c: Use string.h, not gdb_string.h.
443 * environ.c: Use string.h, not gdb_string.h.
444 * eval.c: Use string.h, not gdb_string.h.
445 * event-loop.c: Use string.h, not gdb_string.h.
446 * exceptions.c: Use string.h, not gdb_string.h.
447 * exec.c: Use string.h, not gdb_string.h.
448 * expprint.c: Use string.h, not gdb_string.h.
449 * f-exp.y: Use string.h, not gdb_string.h.
450 * f-lang.c: Use string.h, not gdb_string.h.
451 * f-typeprint.c: Use string.h, not gdb_string.h.
452 * f-valprint.c: Use string.h, not gdb_string.h.
453 * fbsd-nat.c: Use string.h, not gdb_string.h.
454 * findcmd.c: Use string.h, not gdb_string.h.
455 * findvar.c: Use string.h, not gdb_string.h.
456 * fork-child.c: Use string.h, not gdb_string.h.
457 * frame.c: Use string.h, not gdb_string.h.
458 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
459 * frv-tdep.c: Use string.h, not gdb_string.h.
460 * gdb.c: Use string.h, not gdb_string.h.
461 * gdb_bfd.c: Use string.h, not gdb_string.h.
462 * gdbarch.c: Use string.h, not gdb_string.h.
463 * gdbtypes.c: Use string.h, not gdb_string.h.
464 * gnu-nat.c: Use string.h, not gdb_string.h.
465 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
466 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
467 * go-exp.y: Use string.h, not gdb_string.h.
468 * go-lang.c: Use string.h, not gdb_string.h.
469 * go32-nat.c: Use string.h, not gdb_string.h.
470 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
471 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
472 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
473 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
474 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
475 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
476 * i386-linux-nat.c: Use string.h, not gdb_string.h.
477 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
478 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
479 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
480 * i386-tdep.c: Use string.h, not gdb_string.h.
481 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
482 * i386gnu-nat.c: Use string.h, not gdb_string.h.
483 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
484 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
485 * i387-tdep.c: Use string.h, not gdb_string.h.
486 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
487 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
488 * inf-child.c: Use string.h, not gdb_string.h.
489 * inf-ptrace.c: Use string.h, not gdb_string.h.
490 * inf-ttrace.c: Use string.h, not gdb_string.h.
491 * infcall.c: Use string.h, not gdb_string.h.
492 * infcmd.c: Use string.h, not gdb_string.h.
493 * inflow.c: Use string.h, not gdb_string.h.
494 * infrun.c: Use string.h, not gdb_string.h.
495 * interps.c: Use string.h, not gdb_string.h.
496 * iq2000-tdep.c: Use string.h, not gdb_string.h.
497 * irix5-nat.c: Use string.h, not gdb_string.h.
498 * jv-exp.y: Use string.h, not gdb_string.h.
499 * jv-lang.c: Use string.h, not gdb_string.h.
500 * jv-typeprint.c: Use string.h, not gdb_string.h.
501 * jv-valprint.c: Use string.h, not gdb_string.h.
502 * language.c: Use string.h, not gdb_string.h.
503 * linux-fork.c: Use string.h, not gdb_string.h.
504 * linux-nat.c: Use string.h, not gdb_string.h.
505 * lm32-tdep.c: Use string.h, not gdb_string.h.
506 * m2-exp.y: Use string.h, not gdb_string.h.
507 * m2-typeprint.c: Use string.h, not gdb_string.h.
508 * m32c-tdep.c: Use string.h, not gdb_string.h.
509 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
510 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
511 * m32r-rom.c: Use string.h, not gdb_string.h.
512 * m32r-tdep.c: Use string.h, not gdb_string.h.
513 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
514 * m68k-tdep.c: Use string.h, not gdb_string.h.
515 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
516 * m68klinux-nat.c: Use string.h, not gdb_string.h.
517 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
518 * m88k-tdep.c: Use string.h, not gdb_string.h.
519 * macrocmd.c: Use string.h, not gdb_string.h.
520 * main.c: Use string.h, not gdb_string.h.
521 * mdebugread.c: Use string.h, not gdb_string.h.
522 * mem-break.c: Use string.h, not gdb_string.h.
523 * memattr.c: Use string.h, not gdb_string.h.
524 * memory-map.c: Use string.h, not gdb_string.h.
525 * mep-tdep.c: Use string.h, not gdb_string.h.
526 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
527 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
528 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
529 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
530 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
531 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
532 * mi/mi-console.c: Use string.h, not gdb_string.h.
533 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
534 * mi/mi-interp.c: Use string.h, not gdb_string.h.
535 * mi/mi-main.c: Use string.h, not gdb_string.h.
536 * mi/mi-parse.c: Use string.h, not gdb_string.h.
537 * microblaze-rom.c: Use string.h, not gdb_string.h.
538 * microblaze-tdep.c: Use string.h, not gdb_string.h.
539 * mingw-hdep.c: Use string.h, not gdb_string.h.
540 * minidebug.c: Use string.h, not gdb_string.h.
541 * minsyms.c: Use string.h, not gdb_string.h.
542 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
543 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
544 * mips-tdep.c: Use string.h, not gdb_string.h.
545 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
546 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
547 * mipsread.c: Use string.h, not gdb_string.h.
548 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
549 * mn10300-tdep.c: Use string.h, not gdb_string.h.
550 * monitor.c: Use string.h, not gdb_string.h.
551 * moxie-tdep.c: Use string.h, not gdb_string.h.
552 * mt-tdep.c: Use string.h, not gdb_string.h.
553 * nbsd-tdep.c: Use string.h, not gdb_string.h.
554 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
555 * nto-procfs.c: Use string.h, not gdb_string.h.
556 * nto-tdep.c: Use string.h, not gdb_string.h.
557 * objc-lang.c: Use string.h, not gdb_string.h.
558 * objfiles.c: Use string.h, not gdb_string.h.
559 * opencl-lang.c: Use string.h, not gdb_string.h.
560 * osabi.c: Use string.h, not gdb_string.h.
561 * osdata.c: Use string.h, not gdb_string.h.
562 * p-exp.y: Use string.h, not gdb_string.h.
563 * p-lang.c: Use string.h, not gdb_string.h.
564 * p-typeprint.c: Use string.h, not gdb_string.h.
565 * parse.c: Use string.h, not gdb_string.h.
566 * posix-hdep.c: Use string.h, not gdb_string.h.
567 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
568 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
569 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
570 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
571 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
572 * printcmd.c: Use string.h, not gdb_string.h.
573 * procfs.c: Use string.h, not gdb_string.h.
574 * prologue-value.c: Use string.h, not gdb_string.h.
575 * python/py-auto-load.c: Use string.h, not gdb_string.h.
576 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
577 * ravenscar-thread.c: Use string.h, not gdb_string.h.
578 * regcache.c: Use string.h, not gdb_string.h.
579 * registry.c: Use string.h, not gdb_string.h.
580 * remote-fileio.c: Use string.h, not gdb_string.h.
581 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
582 * remote-mips.c: Use string.h, not gdb_string.h.
583 * remote-sim.c: Use string.h, not gdb_string.h.
584 * remote.c: Use string.h, not gdb_string.h.
585 * reverse.c: Use string.h, not gdb_string.h.
586 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
587 * ser-base.c: Use string.h, not gdb_string.h.
588 * ser-go32.c: Use string.h, not gdb_string.h.
589 * ser-mingw.c: Use string.h, not gdb_string.h.
590 * ser-pipe.c: Use string.h, not gdb_string.h.
591 * ser-tcp.c: Use string.h, not gdb_string.h.
592 * ser-unix.c: Use string.h, not gdb_string.h.
593 * serial.c: Use string.h, not gdb_string.h.
594 * sh-tdep.c: Use string.h, not gdb_string.h.
595 * sh64-tdep.c: Use string.h, not gdb_string.h.
596 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
597 * skip.c: Use string.h, not gdb_string.h.
598 * sol-thread.c: Use string.h, not gdb_string.h.
599 * solib-dsbt.c: Use string.h, not gdb_string.h.
600 * solib-frv.c: Use string.h, not gdb_string.h.
601 * solib-osf.c: Use string.h, not gdb_string.h.
602 * solib-spu.c: Use string.h, not gdb_string.h.
603 * solib-target.c: Use string.h, not gdb_string.h.
604 * solib.c: Use string.h, not gdb_string.h.
605 * somread.c: Use string.h, not gdb_string.h.
606 * source.c: Use string.h, not gdb_string.h.
607 * sparc-nat.c: Use string.h, not gdb_string.h.
608 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
609 * sparc-tdep.c: Use string.h, not gdb_string.h.
610 * sparc64-tdep.c: Use string.h, not gdb_string.h.
611 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
612 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
613 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
614 * spu-linux-nat.c: Use string.h, not gdb_string.h.
615 * spu-multiarch.c: Use string.h, not gdb_string.h.
616 * spu-tdep.c: Use string.h, not gdb_string.h.
617 * stabsread.c: Use string.h, not gdb_string.h.
618 * stack.c: Use string.h, not gdb_string.h.
619 * std-regs.c: Use string.h, not gdb_string.h.
620 * symfile.c: Use string.h, not gdb_string.h.
621 * symmisc.c: Use string.h, not gdb_string.h.
622 * symtab.c: Use string.h, not gdb_string.h.
623 * target.c: Use string.h, not gdb_string.h.
624 * thread.c: Use string.h, not gdb_string.h.
625 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
626 * tilegx-tdep.c: Use string.h, not gdb_string.h.
627 * top.c: Use string.h, not gdb_string.h.
628 * tracepoint.c: Use string.h, not gdb_string.h.
629 * tui/tui-command.c: Use string.h, not gdb_string.h.
630 * tui/tui-data.c: Use string.h, not gdb_string.h.
631 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
632 * tui/tui-file.c: Use string.h, not gdb_string.h.
633 * tui/tui-layout.c: Use string.h, not gdb_string.h.
634 * tui/tui-out.c: Use string.h, not gdb_string.h.
635 * tui/tui-regs.c: Use string.h, not gdb_string.h.
636 * tui/tui-source.c: Use string.h, not gdb_string.h.
637 * tui/tui-stack.c: Use string.h, not gdb_string.h.
638 * tui/tui-win.c: Use string.h, not gdb_string.h.
639 * tui/tui-windata.c: Use string.h, not gdb_string.h.
640 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
641 * typeprint.c: Use string.h, not gdb_string.h.
642 * ui-file.c: Use string.h, not gdb_string.h.
643 * ui-out.c: Use string.h, not gdb_string.h.
644 * user-regs.c: Use string.h, not gdb_string.h.
645 * utils.c: Use string.h, not gdb_string.h.
646 * v850-tdep.c: Use string.h, not gdb_string.h.
647 * valarith.c: Use string.h, not gdb_string.h.
648 * valops.c: Use string.h, not gdb_string.h.
649 * valprint.c: Use string.h, not gdb_string.h.
650 * value.c: Use string.h, not gdb_string.h.
651 * varobj.c: Use string.h, not gdb_string.h.
652 * vax-tdep.c: Use string.h, not gdb_string.h.
653 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
654 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
655 * windows-nat.c: Use string.h, not gdb_string.h.
656 * xcoffread.c: Use string.h, not gdb_string.h.
657 * xml-support.c: Use string.h, not gdb_string.h.
658 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
659 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
660
63ce7108
TT
6612013-11-18 Tom Tromey <tromey@redhat.com>
662
663 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
664 and strstr.
665 * gnulib/aclocal.m4: Update.
666 * gnulib/config.in: Update.
667 * gnulib/configure: Update.
668 * gnulib/import/Makefile.am: Update.
669 * gnulib/import/Makefile.in: Update.
670 * gnulib/import/errno.in.h: New.
671 * gnulib/import/intprops.h: New.
672 * gnulib/import/m4/errno_h.m4: New.
673 * gnulib/import/m4/gnulib-cache.m4: Update.
674 * gnulib/import/m4/gnulib-comp.m4: Update.
675 * gnulib/import/m4/strerror.m4: New.
676 * gnulib/import/m4/strstr.m4: New.
677 * gnulib/import/m4/sys_socket_h.m4: New.
678 * gnulib/import/strerror-override.c: New.
679 * gnulib/import/strerror-override.h: New.
680 * gnulib/import/strerror.c: New.
681 * gnulib/import/strstr.c: New.
682
a7c11ee1
TT
6832013-11-18 Tom Tromey <tromey@redhat.com>
684
685 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
686 multiple lines.
687
d0b5971a
JM
6882013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
689
690 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
691 * sparc-tdep.h: And its prototype.
692
693 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
694 function.
695 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
696
4b4589ad
PA
6972013-11-18 Pedro Alves <palves@redhat.com>
698
699 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
700 use unpack_pointer.
701
422ad5c2
JB
7022013-11-18 Joel Brobecker <brobecker@adacore.com>
703
704 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
705 to -list-features output.
706
b1370418
JB
7072013-11-17 Joel Brobecker <brobecker@adacore.com>
708
709 * dwarf2expr.h (struct dwarf_expr_context_funcs)
710 <read_addr_from_reg>: Renames "read_reg".
711 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
712 Adjust comment.
713 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
714 Use read_addr_from_reg in place of read_reg.
715 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
716 in place of read_reg.
717 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
718 dwarf_expr_read_reg.
719 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
720 with dwarf_expr_read_addr_from_reg.
721 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
722 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
723 needs_frame_read_addr_from_reg.
724
6ea71545
JK
7252013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
726
727 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
728
19a1b230
AA
7292013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
730
731 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
732 NULL.
733
805e1f19
TT
7342013-11-15 Tom Tromey <tromey@redhat.com>
735
736 PR c++/16117:
737 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
738 (classify_name): Likewise. Prefer a field of "this" over a
739 filename.
740 (classify_inner_name, yylex): Update.
741
0acf8b65
JB
7422013-11-15 Joel Brobecker <brobecker@adacore.com>
743
744 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
745 Extend the documentation a bit.
746 <get_reg_value>: New field.
747 * dwarf2loc.c (dwarf_expr_get_reg_value)
748 (needs_frame_get_reg_value): New functions.
749 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
750 callback.
751 * dwarf2-frame.c (get_reg_value): New function.
752 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
753 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
754 Use new callback to compute result_val.
755
ef1bc9e7
AM
7562013-11-15 Alan Modra <amodra@gmail.com>
757
758 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
759 (ppc64_desc_entry_point): ..this. Update comments here and at
760 call points.
761 (ppc64_standard_linkage1, ppc64_standard_linkage2,
762 ppc64_standard_linkage3): Update comments.
763 (ppc64_standard_linkage4, ppc64_standard_linkage5,
764 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
765 patterns.
766 (ppc64_standard_linkage4_target): New function.
767 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
768 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
769 nop match. Fix comment wrap.
770
36fa8042
PA
7712013-11-14 Pedro Alves <palves@redhat.com>
772
773 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
774 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
775
4f5d7f63
PA
7762013-11-14 Pedro Alves <palves@redhat.com>
777
778 * infrun.c (struct execution_control_state)
779 <stepped_after_stopped_by_watchpoint>: New field.
780 (get_inferior_stop_soon): New function.
781 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
782 moved to struct execution_control_state -- adjust. Use
783 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
784 new function.
785 (handle_signal_stop): New function, factored out from
786 handle_inferior_event.
787
47591c29
PA
7882013-11-14 Pedro Alves <palves@redhat.com>
789
790 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
791 return a boolean.
792 * breakpoint.c (bpstat_explains_signal): Adjust to return a
793 boolean.
794 (explains_signal_watchpoint, base_breakpoint_explains_signal):
795 Adjust to return a boolean.
796 * breakpoint.h (enum bpstat_signal_value): Delete.
797 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
798 (bpstat_explains_signal): Likewise.
799 * infrun.c (handle_inferior_event) <random signal checks>:
800 bpstat_explains_signal now returns a boolean - adjust. No longer
801 consider hiding signals.
802
bac7d97b
PA
8032013-11-14 Pedro Alves <palves@redhat.com>
804
805 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
806 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
807 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
808 BPSTAT_SIGNAL_HIDE.
809 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
810 instead of BPSTAT_SIGNAL_HIDE.
811 * infrun.c (handle_inferior_event): Rework random signal checks.
812
ce12b012
PA
8132013-11-14 Pedro Alves <palves@redhat.com>
814
815 * infrun.c (struct execution_control_state): Remove
816 'random_signal' field.
817 (handle_syscall_event): Use bpstat_causes_stop instead of
818 bpstat_explains_signal. Don't set ecs->random_signal.
819 (handle_inferior_event): New 'random_signal' local.
820 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
821 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
822 bpstat_explains_signal. Don't set ecs->random_signal.
823 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
824 ecs->random_signal.
825
05ba8510
PA
8262013-11-14 Pedro Alves <palves@redhat.com>
827
828 * infrun.c (handle_inferior_event): Move comment from the
829 function's body to the function's description, adjusted.
830
5c09a2c5
PA
8312013-11-14 Pedro Alves <palves@redhat.com>
832
833 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
834 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
835 Assert we never fall through out of the TARGET_WAITKIND_LOADED
836 case.
837
91822956
TT
8382013-11-14 Tom Tromey <tromey@redhat.com>
839
840 * python/py-linetable.c (ltpy_has_line)
841 (ltpy_get_all_source_lines): Fix loop termination condition.
842
403cb6b1
JB
8432013-11-14 Joel Brobecker <brobecker@adacore.com>
844
845 * mi/mi-parse.h (struct mi_parse) <language>: New field.
846 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
847 PARSE->LANGUAGE during command execution, if set.
848 * mi/mi-parse.c: Add "language.h" #include.
849 (mi_parse): Add parsing of "--language" command option.
850
851 * NEWS: Add entry mentioning the new "--language" command option.
852
b5be8ce0
JB
8532013-11-14 Pedro Alves <palves@redhat.com>
854 Joel Brobecker <brobecker@adacore.com>
855
856 * cli/cli-utils.h (extract_arg_const): Add declaration.
857 * cli/cli-utils.c (extract_arg_const): New function.
858 (extract_arg): Reimplement using extract_arg_const.
859
671afef6
JB
8602013-11-14 Joel Brobecker <brobecker@adacore.com>
861
862 * language.h: Add "symtab.h" #include.
863
6c1b0f7b
DE
8642013-11-13 Doug Evans <xdje42@gmail.com>
865
866 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
867 specific breakpoints, don't evaluate breakpoint condition if
868 different thread.
869
74921315
KS
8702013-11-13 Keith Seitz <keiths@redhat.com>
871
248ace2e 872 PR c++/7935
74921315
KS
873 PR c++/10541
874 * cp-support.c (insepct_type): Add support for substituting
875 namespace aliases, too.
876 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
877 for DW_TAG_imported_declaration.
878 (add_partial_symbol): Likewise.
879 (process_die): Handle namespace aliases with
880 read_namespace_alias.
881 (die_needs_namespace): Add DW_TAG_imported_declaration.
882 (read_namespace_alias): New function.
883 (load_partial_dies): Load DW_TAG_imported_declaration, too.
884 (new_symbol_full): Handle DW_TAG_imported_declaration.
885
793156e6
KS
8862013-11-13 Keith Seitz <keiths@redhat.com>
887
888 * p-exp.y (uptok): Make first parameter const.
889 (yylex): Make `tokstart' and `tokptr' const.
890 Don't copy the lexer input to a temporary buffer.
891 Make `p' const.
892 Remove const workaround for parse_escape.
893 Create a temporary buffer for a convenience variable instead
894 of doing in-place modification of the input.
895 If a match is found with a different case from the input,
896 do not change the input at all.
897 Use `tmp' to construct the resultant stoken instead of
898 `tokstart'.
899
c42bd95a
DE
9002013-11-13 Doug Evans <xdje42@gmail.com>
901
902 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
903
93973826
JB
9042013-11-13 Joel Brobecker <brobecker@adacore.com>
905
906 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
907 entry with "ada-exceptions".
908
846060df
JB
9092013-11-13 Joel Brobecker <brobecker@adacore.com>
910
911 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
912 after re-initialization of OBJFILE's obstack.
913
5efd1b2b 9142013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
915
916 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
917 bs->stop != 0 on entry. Update function comment. Simplify early
918 exit for frame mismatch. Reindent rest of function.
919
ee7615e1
AA
9202013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
921
922 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
923 NULL.
924
8943b874
DE
9252013-11-12 Doug Evans <dje@google.com>
926
927 Work around gold/15646.
928 * dwarf2read.c (read_index_from_section): Update comment.
929 (struct dw2_symtab_iterator): New member global_seen.
930 (dw2_symtab_iter_init): Initialize it.
931 (dw2_symtab_iter_next): Skip duplicate global symbols.
932 (dw2_expand_symtabs_matching): Ditto.
933
a8a9844d
JB
9342013-11-12 Joel Brobecker <brobecker@adacore.com>
935
936 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
937 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
938 command.
939 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
940 (mi_cmd_info_ada_exceptions): New function.
941 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
942
778865d3
JB
9432013-11-12 Joel Brobecker <brobecker@adacore.com>
944
945 * ada-lang.h: #include "vec.h".
946 (struct ada_exc_info): New.
947 (ada_exc_info): New typedef.
948 (DEF_VEC_O(ada_exc_info)): New vector.
949 (ada_exceptions_list): Add declaration.
950 * ada-lang.c (ada_is_exception_sym)
951 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
952 (sort_remove_dups_ada_exceptions_list)
953 (ada_exc_search_name_matches, ada_add_standard_exceptions)
954 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
955 (ada_exceptions_list_1, ada_exceptions_list)
956 (info_exceptions_command): New function.
957 (_initialize_ada_language): Add "info exception" command.
958
bc79de95
PM
9592013-11-11 Phil Muldoon <pmuldoon@redhat.com>
960
961 PR python/15629
962 * NEWS: Add linetable feature.
963 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
964 * python/py-linetable.c: New file.
965 * python/py-symtab.c (stpy_get_linetable): New function.
966 * python/python-internal.h (symtab_to_linetable_object): Declare.
967 (gdbpy_initialize_linetable): Ditto.
968 * python/python.c (_initialize_python): Call
969 gdbpy_initialize_linetable.
970
2df4d1d5
JB
9712013-11-11 Joel Brobecker <brobecker@adacore.com>
972
973 * ada-lang.c (create_ada_exception_catchpoint): Enhance
974 the documentation of fields "except_string" and "condition".
975 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
976 CONDITION on the heap before passing it to
977 create_ada_exception_catchpoint.
978 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
979 CONDITION.
980
99c1d451
TT
9812013-11-11 Tom Tromey <tromey@redhat.com>
982
983 * config.in, configure: Rebuild.
984 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
985
8ca5801b
JB
9862013-11-11 Joel Brobecker <brobecker@adacore.com>
987
988 * remote-sim.c (gdbsim_detach): Break declaration into
989 shorter lines. No code change.
990
7a06d430
EBM
9912013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
992
993 * remote-sim.c (gdbsim_detach): Fix prototype.
994
73be47f5
DE
9952013-11-08 Doug Evans <dje@google.com>
996
997 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
998 (create_debug_types_hash_table): Only print debugging messages for
999 each TU if dwarf2-read >= 2.
1000 (process_queue): Ditto.
1001 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1002 Update doc string.
1003
a18d8f10
TT
10042013-11-08 Tom Tromey <tromey@redhat.com>
1005
1006 * configure: Rebuild.
1007 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1008
9467110b
TT
10092013-11-08 Tom Tromey <tromey@redhat.com>
1010
1011 * configure, config.in: Rebuild.
1012 * configure.ac: Remove unused configury.
1013
69706679
TT
10142013-11-08 Tom Tromey <tromey@redhat.com>
1015
1016 * m32c-tdep.c: Use gdb_string.h.
1017
9b4bea72
TT
10182013-11-08 Tom Tromey <tromey@redhat.com>
1019
1020 * configure, config.in: Rebuild.
1021 * configure.ac: Remove all link.h-related checks.
1022
3266f10b
TT
10232013-11-08 Tom Tromey <tromey@redhat.com>
1024
1025 * acinclude.m4: Include common.m4.
1026 * common/common.m4: New file.
1027 * configure, config.in: Rebuild.
1028 * configure.ac: Use GDB_AC_COMMON.
1029
db0fec5c
DE
10302013-11-08 Doug Evans <dje@google.com>
1031
1032 * NEWS: Mention that "set debug symtab-create" now accepts a
1033 verbosity level.
1034 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1035 to set the symtab's primary flag.
1036 * jit.c (finalize_symtab): Ditto.
1037 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1038 * symfile.c (allocate_symtab): Only print debugging messages for
1039 symtab_create_debug levels 2 and higher.
1040 * symtab.c (symtab_create_debug): Change type to unsigned int.
1041 (set_symtab_primary): New function.
1042 (_initialize_symtab): Change "set debug symtab-create" to a
1043 zuinteger option.
1044 * symtab.h (set_symtab_primary): Declare.
1045 (symtab_create_debug): Update decl.
1046
52554a0e
TT
10472013-11-08 Tom Tromey <tromey@redhat.com>
1048
1049 * aix-thread.c (aix_thread_detach): Update.
1050 * corelow.c (core_detach): Update.
1051 * darwin-nat.c (darwin_detach): Update.
1052 * dec-thread.c (dec_thread_detach): Update.
1053 * gnu-nat.c (gnu_detach): Update.
1054 * go32-nat.c (go32_detach): Update.
1055 * inf-ptrace.c (inf_ptrace_detach): Update.
1056 * inf-ttrace.c (inf_ttrace_detach): Update.
1057 * linux-fork.c (linux_fork_detach): Update.
1058 * linux-fork.h (linux_fork_detach): Update.
1059 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1060 local for const-correctness.
1061 * linux-thread-db.c (thread_db_detach): Update.
1062 * monitor.c (monitor_detach): Update.
1063 * nto-procfs.c (procfs_detach): Update.
1064 * procfs.c (procfs_detach): Update.
1065 * record.c (record_detach): Update.
1066 * record.h (record_detach): Update.
1067 * remote-m32r-sdi.c (m32r_detach): Update.
1068 * remote-mips.c (mips_detach): Update.
1069 * remote-sim.c (gdbsim_detach): Update.
1070 * remote.c (remote_detach_1, remote_detach)
1071 (extended_remote_detach): Update.
1072 * sol-thread.c (sol_thread_detach): Update.
1073 * target.c (target_detach): Make "args" const.
1074 (init_dummy_target): Update.
1075 * target.h (struct target_ops) <to_detach>: Make argument const.
1076 (target_detach): Likewise.
1077 * windows-nat.c (windows_detach): Update.
1078
204b5331
DE
10792013-11-07 Doug Evans <dje@google.com>
1080
1081 PR 11786
1082 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1083 and align fields for PT_GNU_RELRO segments.
1084
92e32e33
PM
10852013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1086
ef1bc9e7
AM
1087 PR python/15747
1088 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1089
f76c27b5
PM
10902013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1091
1092 * NEWS: Document Python temporary breakpoint support.
1093 * python/py-breakpoint.c (bppy_get_temporary): New function.
1094 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1095 to temporary if True.
1096
d52cd232
JM
10972013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1098
1099 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1100 removed to allow analyzing unconditional branch instructions
1101 with PC-relative offsets of zero.
1102
fa4d0c40
YQ
11032013-11-07 Yao Qi <yao@codesourcery.com>
1104
1105 * mi/mi-cmd-var.c: Include "language.h".
1106 (mi_cmd_var_info_expression): Get language name from
1107 language_defn.
1108 * varobj.c (varobj_language_string): Remove.
1109 (variable_language): Remove declaration.
1110 (languages): Remove.
1111 (varobj_get_language): Change the type of return value.
1112 (variable_language): Remove.
1113 * varobj.h (enum varobj_languages): Remove.
1114 (varobj_language_string): Remove declaration.
1115 (varobj_get_language): Update declaration.
1116
6abde28f
YQ
11172013-11-07 Yao Qi <yao@codesourcery.com>
1118
1119 * language.h (struct language_defn) <la_natural_name>: New
1120 field.
1121 * ada-lang.c (ada_language_defn): Initialize field
1122 'la_natural_name'.
1123 * c-lang.c (c_language_defn): Likewise.
1124 (cplus_language_defn, asm_language_defn): Likewise.
1125 * d-lang.c (d_language_defn): Likewise.
1126 * f-lang.c (f_language_defn): Likewise.
1127 * go-lang.c (go_language_defn): Likewise.
1128 * jv-lang.c (java_language_defn): Likewise.
1129 * language.c (unknown_language_defn ): Likewise.
1130 (auto_language_defn): Likewise.
1131 * m2-lang.c (m2_language_defn): Likewise.
1132 * objc-lang.c (objc_language_defn): Likewise.
1133 * opencl-lang.c (opencl_language_defn): Likewise.
1134 * p-lang.c (pascal_language_defn): Likewise.
1135
27cd387b
YQ
11362013-11-07 Yao Qi <yao@codesourcery.com>
1137
1138 * language.c (language_str): Return const char *.
1139 (add_language): Add const to 'language_names'
1140 * language.h (struct language_defn) <la_name>: Add const.
1141 (language_str: Update declaration.
1142
6682d959
AA
11432013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1144
1145 * s390-linux-nat.c (s390_read_description): Consider the TE field
1146 in the HWCAP for determining 'have_regset_tdb'.
1147
b9502d3f
WN
11482013-11-06 Will Newton <will.newton@linaro.org>
1149
1150 PR gdb/12866
1151 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1152 values. (read_partial_die): Likewise.
1153
840da61a
MB
11542013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1155
1156 PR cli/16122
1157 * top.c (command_line_input): Unify interactivity tests to use
1158 input_from_terminal_p.
1159 * event-top.c (command_line_handler): Likewise.
1160
7636ccf9
YQ
11612013-11-06 Yao Qi <yao@codesourcery.com>
1162
1163 * Makefile.in (check-perf): New target.
1164
12b27276
WN
11652013-11-05 Will Newton <will.newton@linaro.org>
1166
1167 PR gdb/7670
1168 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1169 (arm_print_float_info): Likewise.
1170
67c059c2
AB
11712013-11-04 Anton Blanchard <anton@samba.org>
1172
1173 * target.c (memory_xfer_partial): Cap write to 4KB.
1174
0569175e
TSD
11752013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1176
1177 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1178 probe scan even when the arch provides no get_longjmp_target.
1179
b18e90f5
PA
11802013-10-31 Pedro Alves <palves@redhat.com>
1181
1182 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1183 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1184 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1185 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1186 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1187 <bpstat handling>: If the bpstat chain wants the signal to be
1188 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1189 GDB_SIGNAL_TRAP.
1190
638aa5a1
AB
11912013-10-31 Andrew Burgess <aburgess@broadcom.com>
1192
1193 * breakpoint.c (update_watchpoint): Update error message and add
1194 an additional error message.
1195
0e5fae36
UW
11962013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1197
1198 * s390-tdep.h: Rename to...
1199 * s390-linux-tdep.h: ...here.
1200 * s390-tdep.c: Rename to...
1201 * s390-linux-tdep.c: ...here. Adjust #include.
1202 * s390-nat.c: Rename to...
1203 * s390-linux-nat.c: ...here. Adjust #include.
1204 * config/s390/s390.mh: Rename to...
1205 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1206 s390-linux-nat.o.
1207 * configure.host: Reflect host rename "s390" -> "linux".
1208 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1209 * Makefile.in (ALL_TARGET_OBS): Likewise.
1210 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1211 s390-linux-tdep.h.
1212 (ALLDEPFILES): Reflect rename of .c files.
1213
34201ae3
UW
12142013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1215
1216 * s390-nat.c: Whitespace cleanup.
1217 * s390-tdep.c: Likewise.
1218 * s390-tdep.h: Remove empty line at end of file.
1219
e17aaa33
MR
12202013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1221
1222 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1223 siginfo_size.
1224
aee17e42
TT
12252013-10-29 Tom Tromey <tromey@redhat.com>
1226
1227 * utils.c (reg): Move undefinition...
1228 * gdb_curses.h: ... here. Update comment to mention AIX.
1229
9ac69859
NB
12302013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1231
1232 * exec.h (add_target_sections_of_objfile): New declaration.
1233 * exec.c (add_target_sections_of_objfile): New function.
1234 * symfile.c (add_symbol_file_command): Update current target sections.
1235 (remove_symbol_file_command): New command.
1236 (symfile_free_objfile): New function.
1237 (_initialize_symfile): Register observer for free_objfile events.
1238 * NEWS: Add description of the remove-symbol-file command.
1239 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1240 * objfiles.c (free_objfile): Notify free_objfile.
1241 (is_addr_in_objfile): New function.
1242 * objfiles.h (is_addr_in_objfile): New declaration.
1243 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1244 events instead of solib_unloaded events.
1245 (_initialize_printcmd): Register observer for free_objfile instead
1246 of solib_unloaded notifications.
1247 * solib.c (remove_user_added_objfile): New function.
1248 (_initialize_symfile): Add remove-symbol-file.
1249
f69d9aef
AB
12502013-10-29 Andrew Burgess <aburgess@broadcom.com>
1251
1252 * infcmd.c (default_print_one_register_info): Use val_print to
1253 print all values even optimized out or unavailable ones. Don't
1254 try to print a raw form of optimized out or unavailable values.
1255
487ad57c
YQ
12562013-10-29 Yao Qi <yao@codesourcery.com>
1257
1258 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1259 parameter 'arg' instead of from program_space_data.
1260 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1261 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1262 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1263 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1264 * inflow.c (inflow_inferior_data_cleanup): Get data from
1265 parameter 'arg' instead of inferior_data.
1266 * registry.h: Add comments.
1267
3c4797ba
PA
12682013-10-28 Pedro Alves <palves@redhat.com>
1269
1270 * breakpoint.c (watchpoints_triggered)
1271 <!target_stopped_data_address>: Hardcode return 1.
1272
cdaa5b73
PA
12732013-10-28 Pedro Alves <palves@redhat.com>
1274
1275 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1276 level and reindent.
1277
94c57d6a
PA
12782013-10-28 Pedro Alves <palves@redhat.com>
1279
1280 * infrun.c (process_event_stop_test): New function, factored out
1281 from handle_inferior_event.
1282 (handle_inferior_event): 'process_event_stop_test' is now a
1283 function instead of a goto label -- adjust.
1284
fcf3daef
PA
12852013-10-28 Pedro Alves <palves@redhat.com>
1286
1287 * infrun.c (handle_inferior_event): Move process_event_stop_test
1288 goto label to the else branch of the ecs->random_signal check,
1289 along with FRAME and GDBARCH re-fetching.
1290
c447ac0b
PA
12912013-10-28 Pedro Alves <palves@redhat.com>
1292
1293 * infrun.c (switch_back_to_stepped_thread): New function, factored
1294 out from handle_inferior_event.
1295 (handle_inferior_event): Adjust to call
1296 switch_back_to_stepped_thread. Call it also at the tail of the
1297 random signal handling, and return, instead of also handling
1298 random signals just before the stepping tests.
1299
f05e4c11
PA
13002013-10-28 Pedro Alves <palves@redhat.com>
1301
1302 * infrun.c (clear_stop_func): Delete.
1303 (handle_inferior_event): Don't call clear_stop_func and don't
1304 clear 'ecs->random_signal'.
1305
ca20d462
YQ
13062013-10-27 Yao Qi <yao@codesourcery.com>
1307
1308 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1309 (varobj_create, varobj_get_path_expr): Update.
1310 (varobj_value_has_mutated, varobj_update): Likewise.
1311 (create_child_with_value, new_root_variable): Likewise.
1312 (number_of_children, name_of_variable): Likewise.
1313 (value_of_child, my_value_of_variable): Likewise.
1314 (varobj_value_is_changeable_p): Likewise.
1315
a53b64ea
YQ
13162013-10-25 Yao Qi <yao@codesourcery.com>
1317
1318 * language.h (struct lang_varobj_ops): Declare.
1319 (struct language_defn) <la_varobj_ops>: New field.
1320 * ada-lang.c: Include "varobj.h"
1321 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1322 ada_varobj_ops.
1323 * c-lang.c: Include "varobj.h"
1324 (c_language_defn): Initialize field 'la_varobj_ops' with
1325 c_varobj_ops.
1326 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1327 cplus_varobj_ops.
1328 (asm_language_defn): Initialize field 'la_varobj_ops' with
1329 default_varobj_ops.
1330 (minimal_language_defn): Likewise.
1331 * d-lang.c (d_language_defn): Likewise.
1332 * f-lang.c (f_language_defn): Likewise.
1333 * go-lang.c (go_language_defn): Likewise.
1334 * m2-lang.c (m2_language_defn): Likewise.
1335 * objc-lang.c (objc_language_defn): Likewise.
1336 * opencl-lang.c (opencl_language_defn): Likewise.
1337 * p-lang.c (pascal_language_defn): Likewise.
1338 * language.c (unknown_language_defn): Likewise.
1339 (auto_language_defn): Likewise.
1340 (local_language_defn): Likewise.
1341 * jv-lang.c (java_language_defn): Initialize field
1342 'la_varobj_ops' with java_varobj_ops.
1343 * varobj.c (varobj_create): Update.
1344 * varobj.h (default_varobj_ops): Define macro.
1345
686d4def
PA
13462013-10-25 Pedro Alves <palves@redhat.com>
1347
1348 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1349 static field value.
1350 (cp_print_static_field): If the value is entirely optimized out,
1351 print <optimized out> here.
1352 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1353 static field value.
1354 * p-valprint.c (pascal_object_print_static_field): If the value is
1355 entirely optimized out, print <optimized out> here.
1356 * valops.c (do_search_struct_field)
1357 (value_struct_elt_for_reference): No longer handle a NULL static
1358 field value.
1359 * value.c (value_static_field): Return an optimized out value
1360 instead of NULL.
1361
6c177e28
YQ
13622013-10-25 Yao Qi <yao@codesourcery.com>
1363
1364 * remote.c (remote_traceframe_info): Return early if
1365 traceframe is not selected.
1366
98322bfa
YQ
13672013-10-25 Yao Qi <yao@codesourcery.com>
1368
1369 * tracepoint.c (traceframe_fun): Remove.
1370 (traceframe_sal): Remove.
1371 (set_traceframe_context): Add local variables.
1372
6ba1f115
JB
13732013-10-25 Joel Brobecker <brobecker@adacore.com>
1374
1375 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1376 and parameter name.
1377
bbe769cc
MR
13782013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1379
1380 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1381 failure from register information collection.
1382
72ee4495 13832013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1384
1385 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1386 member.
1387 (linux_corefile_thread_callback): Update accordingly.
1388 (linux_make_corefile_notes): Likewise.
1389
98882a26
PA
13902013-10-24 Pedro Alves <palves@redhat.com>
1391
1392 * NEWS (New options): Mention set/show startup-with-shell.
1393 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1394 instead of 3.
1395 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1396 startup-with-shell'.
1397 (show_startup_with_shell): New function.
1398 (_initialize_fork_child): Register the set/show startup-with-shell
1399 commands.
1400 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1401 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1402 * procfs.c (procfs_init_inferior): Remove comment.
1403 * infcmd.c (startup_with_shell): New global.
1404 * inferior.h (startup_with_shell): Declare global.
1405 (STARTUP_WITH_SHELL): Delete.
1406 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1407
c9737c08
PA
14082013-10-23 Pedro Alves <palves@redhat.com>
1409
1410 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1411 * common/signals.c: Include "gdb_assert.h".
1412 (signals): New field 'symbol'.
1413 (SET): Use the 'symbol' parameter.
1414 (gdb_signal_to_symbol_string): New function.
1415 * infrun.c (handle_inferior_event) <random signal>: In debug
1416 output, print the random signal enum as string in addition to its
1417 number.
1418 * target/waitstatus.c (target_waitstatus_to_string): Print the
1419 signal's enum value as string instead of the (POSIX) signal name.
1420
f60db4f0
GB
14212013-10-23 Gary Benson <gbenson@redhat.com>
1422
1423 PR 16013
1424 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1425 from 32 to 18. Adjusted fscanf format string accordingly.
1426 (Avoids leaving cmd unterminated.)
1427 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1428 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1429 that local_address and remote_address will not overflow.
1430 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1431 leaving dependencies unterminated. Parse size as "%u" to match
1432 definition.
1433
6d3e7a94
PA
14342013-10-22 Pedro Alves <palves@redhat.com>
1435
1436 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1437 set ecs->random signal.
1438
42ec045f
PA
14392013-10-22 Pedro Alves <palves@redhat.com>
1440
1441 * infrun.c (keep_going): Update comments.
1442
14432013-10-22 Pedro Alves <palves@redhat.com>
1444
1445 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1446 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1447
14482013-10-22 Pedro Alves <palves@redhat.com>
1449
1450 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1451 GDB_EXC_BAD_ACCESS.
1452 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1453 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1454 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1455 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1456 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1457 (GDB_SIGNAL_LAST): Change description string.
1458 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1459 Adjust to signal renaming.
1460 * darwin-nat.c (darwin_decode_message): Likewise.
1461
c8fde1b1
JM
14622013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1463
1464 * MAINTAINERS (Write After Approval): Add myself to the list.
1465
e8369a73
AB
14662013-10-18 Andrew Burgess <aburgess@broadcom.com>
1467
1468 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1469 forced off, downgrade them to software watchpoints if possible,
1470 and error out if not possible.
1471 (watch_command_1): Move watchpoint type selection closer to
1472 watchpoint creation, and extend the comments.
1473
776f04fa
PA
14742013-10-18 Pedro Alves <palves@redhat.com>
1475
1476 PR gdb/16062
1477 * infrun.c (handle_inferior_event): Keep going if we got a random
1478 signal we should not stop for, instead of falling through to the
1479 step tests.
1480
0c6faab5
YQ
14812013-10-18 Yao Qi <yao@codesourcery.com>
1482
1483 * c-varobj.c (cplus_number_of_children): Fix indentation.
1484
50b34a18
TT
14852013-10-17 Tom Tromey <tromey@redhat.com>
1486
1487 PR gdb/15995:
1488 * printcmd.c (printcmd): Call gdb_flush.
1489
5c4c8a59
TT
14902013-10-17 Tom Tromey <tromey@redhat.com>
1491
1492 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1493 (elf_locate_sections): Update.
1494
c4124bf1
YQ
14952013-10-17 Yao Qi <yao@codesourcery.com>
1496
1497 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1498 * ada-varobj.c: Remove the include of ada-varobj.h.
1499 (ada_varobj_get_number_of_children): Declare.
1500 (ada_varobj_get_name_of_child): Make it static.
1501 (ada_varobj_get_path_expr_of_child): Likewise.
1502 (ada_varobj_get_value_of_child): Likewise.
1503 (ada_varobj_get_type_of_child): Likewise.
1504 (ada_varobj_get_value_of_array_variable): Likewise.
1505 * ada-varobj.h: Remove.
1506
99ad9427
YQ
15072013-10-17 Yao Qi <yao@codesourcery.com>
1508
1509 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1510 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1511 * ada-varobj.c: Include "varobj.h".
1512 (ada_number_of_children): New. Moved from varobj.c.
1513 (ada_name_of_variable, ada_name_of_child): Likewise.
1514 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1515 (ada_type_of_child, ada_value_of_variable): Likewise.
1516 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1517 (ada_varobj_ops): New.
1518 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1519 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1520 * gdbtypes.h (get_target_type): Declare.
1521 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1522 "ada-lang.h".
1523 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1524 (ANONYMOUS_UNION_NAME): Likewise.
1525 (get_type, get_value_type, get_target_type): Remove declarations.
1526 (value_get_print_value, varobj_value_get_print_value): Likewise.
1527 (c_number_of_children, c_name_of_variable): Likewise.
1528 (c_name_of_child, c_path_expr_of_child): Likewise.
1529 (c_value_of_child, c_type_of_child): Likewise.
1530 (c_value_of_variable, cplus_number_of_children): Likewise.
1531 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1532 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1533 (cplus_value_of_child, cplus_type_of_child): Likewise.
1534 (cplus_value_of_variable, java_number_of_children): Likewise.
1535 (java_name_of_variable, java_name_of_child): Likewise.
1536 (java_path_expr_of_child, java_value_of_child): Likewise.
1537 (java_type_of_child, java_value_of_variable): Likewise.
1538 (ada_number_of_children, ada_name_of_variable): Likewise.
1539 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1540 (ada_value_of_child, ada_type_of_child): Likewise.
1541 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1542 (ada_value_has_mutated): Likewise.
1543 (struct language_specific): Move it to varobj.h.
1544 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1545 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1546 Callers update.
1547 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1548 Make it extern.
1549 (is_anonymous_child): Move it to c-varobj.c and rename to
1550 varobj_is_anonymous_child. Caller update.
1551 (get_type): Move it to c-varobj.c.
1552 (get_value_type): Rename it varobj_get_value_type. Make it
1553 extern.
1554 (get_target_type): Move it gdbtypes.c.
1555 (varobj_formatted_print_options): New function.
1556 (value_get_print_value): Rename it to
1557 varobj_value_get_print_value and make it extern.
1558 (varobj_value_is_changeable_p): Make it extern.
1559 (adjust_value_for_child_access): Move it to c-varobj.c.
1560 (default_value_is_changeable_p): Rename it to
1561 varobj_default_value_is_changeable_p. Make it extern.
1562 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1563 (c_name_of_child, c_path_expr_of_child): Likewise.
1564 (c_value_of_child, c_type_of_child): Likewise.
1565 (c_value_of_variable, cplus_number_of_children): Likewise.
1566 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1567 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1568 (cplus_value_of_child, cplus_type_of_child): Likewise.
1569 (cplus_value_of_variable): Likewise.
1570 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1571 (java_name_of_child, java_path_expr_of_child): Likewise.
1572 (java_value_of_child, java_type_of_child): Likewise.
1573 (java_value_of_variable): Likewise.
1574 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1575 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1576 (ada_value_of_child, ada_type_of_child): Likewise.
1577 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1578 (ada_value_has_mutated): Likewise.
1579 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1580 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1581 (c_varobj_ops, cplus_varobj_ops): Declare.
1582 (java_varobj_ops, ada_varobj_ops): Declare.
1583 (varobj_default_value_is_changeable_p): Declare.
1584 (varobj_value_is_changeable_p): Declare.
1585 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1586 (varobj_get_path_expr_parent): Declare.
1587 (varobj_value_get_print_value): Declare.
1588 (varobj_formatted_print_options): Declare.
1589 (varobj_restrict_range): Declare.
1590
c8a62302
LM
15912013-10-17 Luis Machado <lgustavo@codesourcery.com>
1592
1593 * target/waitstatus.h (target_waitkind): Remove spurious
1594 character from the comments.
1595
eade6471
JB
15962013-10-17 Joel Brobecker <brobecker@adacore.com>
1597
1598 * gdbarch.sh (get_longjmp_target): Add method documentation.
1599 * gdbarch.h: Regenerate.
1600
5411b26c
TT
16012013-10-16 Tom Tromey <tromey@redhat.com>
1602
1603 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1604 label.
1605
87326c87
LM
16062013-10-16 Luis Machado <lgustavo@codesourcery.com>
1607
1608 * gcore.in: Call GDB using the full path to the gcore script.
1609 Error out if the GDB binary is not found.
1610
fd0a4d76
SDJ
16112013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1612
1613 PR gdb/16014
1614 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1615 sizeof.
1616
d92f7ee3
SDJ
16172013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1618
1619 PR gdb/16042
1620 * target.c (target_disable_btrace): Fix invalid return value for
1621 void function.
1622 (target_teardown_btrace): Likewise.
1623
bb5ce47a
YQ
16242013-10-14 Yao Qi <yao@codesourcery.com>
1625
1626 * varobj.c (struct varobj): Move most of the fields to
1627 varobj.h.
1628 (struct varobj_dynamic): New struct.
1629 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1630 (varobj_has_more): Likewise.
1631 (dynamic_varobj_has_child_method): Likewise.
1632 (update_dynamic_varobj_children): Likewise.
1633 (varobj_get_num_children): Likewise.
1634 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1635 (install_new_value_visualizer): Likewise.
1636 (install_new_value_visualizer, install_new_value): Likewise.
1637 (varobj_update, new_variable, free_variable): Likewise.
1638 (my_value_of_variable, value_get_print_value): Likewise.
1639 (install_visualizer): Change the type of parameter 'var' to
1640 'struct varobjd_dynamic *'. Callers update.
1641 * varobj.h (struct varobj): Moved from varobj.c.
1642 (struct varobj) <dynamic>: New field.
1643
0b76b0ce
SL
16442013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1645
1646 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1647 as the preferred name of r30.
1648 * nios2-linux-tdep.c (reg_offsets): Likewise.
1649 * features/nios2-cpu.xml: Likewise.
1650 * features/nios2-linux.c: Regenerated.
1651 * features/nios2.c: Regenerated.
1652 * regformats/nios2-linux.dat: Regenerated.
1653
4856b6bc
JK
16542013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1655
1656 Canonicalize directories for EXEC_FILENAME.
1657 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1658 exec_filename.
1659 * utils.c (gdb_realpath_keepfile): New function.
1660 * utils.h (gdb_realpath_keepfile): New declaration.
1661
9b557b58
DE
16622013-10-11 Doug Evans <dje@google.com>
1663
1664 * Makefile.in (GDBFLAGS): New variable.
1665 (run): New rule.
1666
ce13fade
JB
16672013-10-11 Joel Brobecker <brobecker@adacore.com>
1668
1669 * NEWS: Add entry documenting the new "-catch-assert" and
1670 "-catch-exception" GDB/MI commands.
1671
349774ef
JB
16722013-10-11 Joel Brobecker <brobecker@adacore.com>
1673
1674 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1675 "enabled".
1676 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1677 "enabled". Set B->ENABLE_STATE accordingly.
1678 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1679 ada-lang.c.
1680 (create_ada_exception_catchpoint): Add declaration.
1681 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1682 (create_ada_exception_catchpoint): Make non-static. Add new
1683 parameter "disabled". Use it in call to
1684 init_ada_exception_breakpoint.
1685 (catch_ada_exception_command): Add parameter "enabled" in call
1686 to create_ada_exception_catchpoint.
1687 (catch_assert_command): Likewise.
1688
1689 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1690 Add declarations.
1691 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1692 "catch-exception" commands.
1693 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1694 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1695
761269c8
JB
16962013-10-11 Joel Brobecker <brobecker@adacore.com>
1697
1698 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1699 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1700 of all its enumerates with "ada_". Update the rest of this
1701 file throughout.
1702
b4a5b78b
JB
17032013-10-11 Joel Brobecker <brobecker@adacore.com>
1704
1705 * ada-lang.c (ada_decode_exception_location): Delete.
1706 (create_ada_exception_catchpoint): Remove arguments "sal",
1707 "addr_string" and "ops". Add argument "ex_kind" instead.
1708 Adjust implementation accordingly, calling ada_exception_sal
1709 to get the entities it no longer gets passed as arguments.
1710 Document the function's arguments.
1711 (catch_ada_exception_command): Use catch_ada_exception_command_split
1712 instead of ada_decode_exception_location, and update call to
1713 create_ada_exception_catchpoint.
1714 (catch_ada_assert_command_split): Renames
1715 ada_decode_assert_location. Remove parameters "addr_string" and
1716 "ops", and now returns void. Adjust implementation accordingly.
1717 Update the function documentation.
1718 (catch_assert_command): Use catch_ada_assert_command_split
1719 instead of ada_decode_assert_location. Update call to
1720 create_ada_exception_catchpoint.
1721
7ad1d32c 17222013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1723
1724 * utils.h (perror_warning_with_name): Add declaration.
1725 * utils.c (perror_warning_with_name): New function.
1726 * cli/cli-cmds.c (source_script_with_search): Add call to
1727 perror_warning_with_name if from_tty is nul.
1728
7ad1d32c 17292013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1730
1731 * utils.c (perror_string): New function, extracted out of
1732 throw_perror_with_name.
1733 (throw_perror_with_name): Rework to use perror_string.
1734
bcc75809
YQ
17352013-10-11 Yao Qi <yao@codesourcery.com>
1736
1737 * remote.c (discard_pending_stop_replies_in_queue): Update
1738 declaration.
1739 (struct stop_reply) <rs>: New field.
1740 (remove_stop_reply_of_remote_state): New function.
1741 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1742 Callers update. Pass remove_stop_reply_of_remote_state to
1743 QUEUE_iterate.
1744 (remote_parse_stop_reply): Initialize field 'rs'.
1745
05feb193
WN
17462013-10-10 Will Newton <will.newton@linaro.org>
1747
1748 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1749 linux_init_abi.
1750
0d12017b
JB
17512013-10-10 Joel Brobecker <brobecker@adacore.com>
1752
1753 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1754 serial_baud_show_cmd.
1755 (_initialize_cli_cmds): Delete the code creating the
1756 "set/show remotebaud" commands.
1757 * serial.c (baud_rate): Move here from top.c.
1758 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1759 (_initialize_serial): Create "set/show serial baud" commands.
1760 Add "set/show remotebaud" command aliases.
1761 * top.c (baud_rate): Moved to serial.c.
1762 * NEWS: Document the new "set/show serial baud" commands,
1763 replacing "set/show remotebaud".
1764
578d3588
PA
17652013-10-09 Pedro Alves <palves@redhat.com>
1766
1767 * breakpoint.c (insert_bp_location): Use memory_error_message to
1768 build the memory error string.
1769 * c-lang.c: Include "gdbcore.h".
1770 (c_get_string): Use memory_error to throw error.
1771 (target_xfer_memory_error): Delete.
1772 (memory_error_message): New, factored out from
1773 target_xfer_memory_error.
1774 (memory_error): Change parameter type to target_xfer_error.
1775 Rewrite.
1776 (read_memory): Use memory_error instead of
1777 target_xfer_memory_error.
1778 * gdbcore.h: Include "target.h".
1779 (memory_error): Change parameter type to target_xfer_error.
1780 (memory_error_message): Declare function.
1781 * target.c (target_read_memory, target_read_stack)
1782 (target_write_memory, target_write_raw_memory): Return
1783 TARGET_XFER_E_IO on error. Adjust comments.
1784 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1785 instead of EIO.
1786 * target.h (target_read, target_insert_breakpoint)
1787 (target_remove_breakpoint): Adjust comments.
1788 * valprint.c (partial_memory_read): Rename parameter, and adjust
1789 comment.
1790 (val_print_string): Use memory_error_message to build the memory
1791 error string.
1792
c74e1ccf
JK
17932013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1794
1795 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1796 result variable. Rename variable fopen_e_ever_failed to
1797 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1798
915215be
PA
17992013-10-09 Pedro Alves <palves@redhat.com>
1800
1801 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1802 (monitor_write_memory_longlongs, monitor_write_memory_block):
1803 Constify 'myaddr' parameter.
1804 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1805 helper.
1806 (monitor_xfer_partial): New function.
1807 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1808 hook. Install a to_xfer_partial hook.
1809
acd13123
TT
18102013-10-09 Tom Tromey <tromey@redhat.com>
1811
1812 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1813 bfd_get_alt_debug_link_info.
1814
40135bb1
JK
18152013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1816
1817 New flag OBJF_NOT_FILENAME.
1818 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1819 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1820 allocate_objfile.
1821 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1822 symbol_file_add_from_bfd.
1823 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1824 allocate_objfile.
1825 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1826 NULL.
1827 * objfiles.h (OBJF_NOT_FILENAME): New.
1828
dc294be5
TT
18292013-10-08 Tom Tromey <tromey@redhat.com>
1830
1831 * Makefile.in (SFILES): Add build-id.c.
1832 (HFILES_NO_SRCDIR): Add build-id.h.
1833 * build-id.c: New file, largely from elfread.c. Modified
1834 most functions.
1835 * build-id.h: New file.
1836 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1837 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1838 Search for dwz file using build-id.
1839 * elfread.c (build_id_bfd_get, build_id_verify)
1840 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1841
db230ce3
JB
18422013-10-08 Joel Brobecker <brobecker@adacore.com>
1843
1844 * ada-lang.c (compare_names_with_case): Renamed from
1845 compare_names, adding a new parameter "casing" and its handling.
1846 New function documentation.
1847 (compare_names): New function, implemented using
1848 compare_names_with_case.
1849
6501c98a
JB
18502013-10-08 Joel Brobecker <brobecker@adacore.com>
1851
1852 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1853
84a1243b
TT
18542013-10-07 Tom Tromey <tromey@redhat.com>
1855
1856 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1857 demangled_names_hash.
1858 (free_objfile): Don't delete the demangled_names_hash.
1859 * objfiles.h (struct objfile_per_bfd_storage)
1860 <demangled_names_hash>: New field.
1861 (struct objfile) <demangled_names_hash>: Move to
1862 objfile_per_bfd_storage.
1863 * symfile.c (reread_symbols): Don't delete the
1864 demangled_names_hash.
1865 * symtab.c (create_demangled_names_hash): Update.
1866 (symbol_set_names): Update.
1867
1da77581
TT
18682013-10-07 Tom Tromey <tromey@redhat.com>
1869
1870 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1871 needs_relocations>: New fields.
1872 (gdb_bfd_requires_relocations): New function.
1873 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1874 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1875 the BFD needs relocations applied.
1876
46ecd527
PA
18772013-10-07 Pedro Alves <palves@redhat.com>
1878
1879 PR breakpoints/11568
1880 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1881 the thread list" instead of "gone".
1882
0c557179
SDJ
18832013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1884
1885 * NEWS: Mention new convenience variable $_exitsignal.
1886 * corelow.c (core_open): Reset exit convenience variables. Set
1887 $_exitsignal to the uncaught signal which generated the corefile.
1888 * infrun.c (handle_inferior_event): Reset exit convenience
1889 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1890 (clear_exit_convenience_vars): New function.
1891 * inferior.h (clear_exit_convenience_vars): New prototype.
1892
1cc47d81
YQ
18932013-10-06 Yao Qi <yao@codesourcery.com>
1894
1895 * varobj.h: Add comments to enum varobj_languages.
1896
73869dc2
DE
18972013-10-04 Doug Evans <dje@google.com>
1898
1899 Add support for DWP file format version 2.
1900 * NEWS: Mention support for DWP file format version 2.
1901 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1902 union of asection, containing_section. New fields virtual_offset
1903 and is_virtual. Change type of readin filed from int to char.
1904 (dwo_sections, dwo_file): Tweak comments.
1905 (dwp_v2_section_ids): New enum.
1906 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1907 str_offsets, types.
1908 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1909 All uses updated.
1910 (virtual_v2_dwo_sections): New struct.
1911 (dwp_hash_table): New fields version, nr_columns. Change type of
1912 section_pool field to a union.
1913 (dwp_file): New field version.
1914 (dwarf2_has_info): Check for virtual sections.
1915 (get_containing_section): New function.
1916 (get_section_bfd_owner, get_section_bfd_section): Call it.
1917 (dwarf2_locate_sections): Update.
1918 (dwarf2_section_empty_p): Update.
1919 (dwarf2_read_section): Handle virtual sections.
1920 (locate_dwz_sections): Update.
1921 (create_dwp_hash_table): Document and handle V2 format.
1922 (locate_v1_virtual_dwo_sections): Renamed from
1923 locate_virtual_dwo_sections and update. All callers updated.
1924 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1925 Delete arg htab. Rename arg section_index to unit_index.
1926 All callers updated.
1927 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1928 All uses updated.
1929 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1930 (lookup_dwo_unit_in_dwp): Add V2 support.
1931 (dwarf2_locate_dwo_sections): Update.
1932 (dwarf2_locate_common_dwp_sections): Renamed from
1933 dwarf2_locate_dwp_sections and update. All callers updated.
1934 (dwarf2_locate_v2_dwp_sections): New function.
1935 (open_and_init_dwp_file): Add V2 support.
1936 (read_str_index): New locals str_section, str_offsets_section.
1937
9a2c3737
PA
19382013-10-04 Pedro Alves <palves@redhat.com>
1939
1940 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1941 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1942 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1943 describing comments with references to ptid.h.
1944 * common/ptid.h: Remove intro description of constructors,
1945 accessors and predicates.
1946 (struct ptid): Reformat.
1947 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1948 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1949 describing comments.
1950
f5371440
JB
19512013-10-04 Joel Brobecker <brobecker@adacore.com>
1952
1953 * aix-thread.c (sync_threadlists): Add missing ')' in call
1954 to ptid_build.
1955
793e1c06
JB
19562013-10-04 Joel Brobecker <brobecker@adacore.com>
1957
1958 * procfs.c (procfs_init_inferior): Fix typo causing the build
1959 to fail.
1960
26f0edc1
JB
19612013-10-04 Joel Brobecker <brobecker@adacore.com>
1962
1963 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1964
5713b9b5
JB
19652013-10-04 Joel Brobecker <brobecker@adacore.com>
1966
1967 * mi/mi-main.c (run_one_inferior): Add function description.
1968 Make ARG a pointer to an integer whose value determines whether
1969 we should "run" or "start" the program.
1970 (mi_cmd_exec_run): Add handling of the "--start" option.
1971 Reject all other command-line options.
1972 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1973
f48ff2a7
YQ
19742013-10-04 Yao Qi <yao@codesourcery.com>
1975
1976 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1977 (struct notif_client) <pending_event>: Moved
1978 to struct remote_notif_state.
1979 <id>: New field.
1980 (struct remote_notif_state) <pending_event>: New field.
1981 (notif_event_xfree): Declare.
1982 * remote-notif.c (handle_notification): Adjust.
1983 (notif_event_xfree): New function.
1984 (do_notif_event_xfree): Call notif_event_xfree.
1985 (remote_notif_state_xfree): Call notif_event_xfree to free
1986 each element in field pending_event.
1987 * remote.c (discard_pending_stop_replies): Remove declaration.
1988 (discard_pending_stop_replies_in_queue): Declare.
1989 (remote_close): Call discard_pending_stop_replies_in_queue
1990 instead of discard_pending_stop_replies.
1991 (remote_start_remote): Adjust.
1992 (stop_reply_xfree): Call notif_event_xfree.
1993 (notif_client_stop): Adjust initialization.
1994 (remote_notif_remove_all): Rename it to ...
1995 (remove_stop_reply_for_inferior): ... this. Update comments.
1996 Don't check INF is NULL.
1997 (discard_pending_stop_replies): Return early if notif_state is
1998 NULL. Adjust. Don't check INF is NULL.
1999 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2000 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2001 (remote_wait_ns): Likewise.
2002
5965e028
YQ
20032013-10-04 Yao Qi <yao@codesourcery.com>
2004
2005 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2006 (notif_queue): Remove.
2007 (remote_notif_process): Add one parameter 'notif_queue'.
2008 Update comments. Callers update.
2009 (remote_async_get_pending_events_token): Remove.
2010 (remote_notif_register_async_event_handler): Remove.
2011 (remote_notif_unregister_async_event_handler): Remove.
2012 (handle_notification): Add parameter 'notif_queue'. Update
2013 comments. Callers update.
2014 (notif_xfree): Remove.
2015 (remote_notif_state_allocate): New function.
2016 (remote_notif_state_xfree): New function.
2017 (_initialize_notif): Remove code to allocate queue.
2018 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2019 (struct remote_notif_state): New.
2020 (handle_notification): Update declaration.
2021 (remote_notif_process): Likewise.
2022 (remote_notif_register_async_event_handler): Remove.
2023 (remote_notif_unregister_async_event_handler): Remove.
2024 (remote_notif_state_allocate): Declare.
2025 (remote_notif_state_xfree): Declare.
2026 * remote.c (struct remote_state) <notif_state>: New field.
2027 (remote_close): Don't call
2028 remote_notif_unregister_async_event_handler. Call
2029 remote_notif_state_xfree.
2030 (remote_open_1): Don't call
2031 remote_notif_register_async_event_handler. Call
2032 remote_notif_state_allocate.
2033
5e5ac9a5
YQ
20342013-10-04 Yao Qi <yao@codesourcery.com>
2035
2036 * varobj.c (create_child_with_value): Remove 'const' from the
2037 type of parameter 'name'.
2038 (varobj_add_child): Likewise.
2039 (install_dynamic_child): Remove 'const' from the type of
2040 parameter 'name'.
2041 (varobj_add_child): Likewise.
2042 (create_child_with_value): Likewise. Update comments. Don't
2043 duplicate 'name'.
2044 (update_dynamic_varobj_children): Duplicate 'name'
2045 and pass it to install_dynamic_child.
2046
06ab7b19
PM
20472013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2048
2049 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2050 conversion logic to occur after PyLong_Check. Comment on order
2051 change significance.
2052 * python/py-arch.c (archpy_disassemble): Comment on order of
2053 conversion for integers and longs.
2054
8ae377e8
PA
20552013-10-03 Pedro Alves <palves@redhat.com>
2056
2057 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2058 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2059 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2060 PTRACE_O_TRACEFORK is not supported.
2061 (linux_test_for_tracesysgood): New function.
2062 (linux_test_for_tracefork): New function, factored out from
2063 linux_check_ptrace_features, and also don't kill child_pid here.
2064
b1328b1b
TG
20652013-10-03 Tristan Gingold <gingold@adacore.com>
2066
2067 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2068 Remove verbose error reporting. Use detected state to
2069 thread_set_state call.
2070 (i386_darwin_dr_get): Fix return type. Remove verbose error
2071 report.
2072 Remove trailing spaces.
2073
901461f8
PA
20742013-10-02 Pedro Alves <palves@redhat.com>
2075
2076 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2077 val_print_optimized_out.
2078 * jv-valprint.c (java_print_value_fields): Likewise.
2079 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2080 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2081 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2082 new optimized out value.
2083 * findvar.c (address_from_register): Likewise.
2084 * frame.c (put_frame_register): Tweak error string to say the
2085 register was not saved, rather than optimized out.
2086 * infcmd.c (default_print_one_register_info): Adjust call to
2087 val_print_optimized_out. Use value_of_register instead of
2088 get_frame_register_value.
2089 * mi/mi-main.c (output_register): Use value_of_register instead of
2090 get_frame_register_value.
2091 * valprint.c (valprint_check_validity): Likewise.
2092 (val_print_optimized_out): New value parameter. If the value is
2093 lval_register, print <not saved> instead.
2094 (value_check_printable, val_print_scalar_formatted): Adjust calls
2095 to val_print_optimized_out.
2096 * valprint.h (val_print_optimized_out): New value parameter.
2097 * value.c (struct value) <optimized_out>: Extend comment.
2098 (error_value_optimized_out): New function.
2099 (require_not_optimized_out): Use it. Use a different string for
2100 lval_register values.
2101 * value.h (error_value_optimized_out): New declaration.
2102 * NEWS: Mention <not saved>.
2103
042a84d9
JB
21042013-10-02 Joel Brobecker <brobecker@adacore.com>
2105
2106 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2107 strcmp to compare two symtab filenames.
2108
6b9780fb
JB
21092013-10-02 Joel Brobecker <brobecker@adacore.com>
2110
2111 * symtab.c (search_symbols_equal): Delete.
2112 (sort_search_symbols_remove_dups): Replace call to
2113 search_symbols_equal by call to compare_search_syms,
2114 adjusting as necessary.
2115
751e7549
PM
21162013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2117
2118 PR python/15579
751e7549
PM
2119 * python/python.c: Document gdb.execute command in Python help.
2120
1efd7661
PM
21212013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2122
2123 * python/py-frame.c (frame_info_to_frame_object): Use
2124 gdbpy_convert_exception. Clean up Python object on failure.
2125
562fc849
PM
21262013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2127
2128 * python/lib/gdb/command/frame_filters.py
2129 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2130 (ShowFrameFilterPriority.invoke): Ditto.
2131
d7561cbb
KS
21322013-10-01 Keith Seitz <keiths@redhat.com>
2133
2134 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2135 (parse_linespec): Make 'argptr' const.
2136 Remove temporary cast of 'argptr' to const char **.
2137 (decode_line_full): Pass const pointer to parse_linespec.
2138 (decode_line_1): Likewise.
2139 (decode_objc): Make local variable 'new_argptr' const.
2140 (find_function_symbols): Remove temporary cast to char *
2141 to find_imps.
2142 * objc-lang.c (find_imps): Make argument 'method' const.
2143 Return const.
2144 * objc-lang.h (find_imps): Likewise.
2145
21462013-10-01 Keith Seitz <keiths@redhat.com>
2147
2148 * completer.c (skip_quoted_chars): Make all arguments const.
2149 Return const.
2150 (skip_quoted): Likewise.
2151 * completer.h (skip_quoted_chars): Likewise.
2152 (skip_quoted): Likewise.
2153 * defs.h (skip_quoted): Remove duplicate declaration.
2154 * jv-exp.y: Include completer.h.
2155 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2156 * p-exp.y: Include completer.h.
2157
21582013-10-01 Keith Seitz <keiths@redhat.com>
2159
2160 * c-exp.y (parse_number): Make first argument const.
2161 Make a copy of the input to manipulate.
2162 (c_parse_escape): Make first argument const.
2163 Make local variable 'tokptr' const.
2164 (parse_string_or_char): Make first two arguments const.
2165 (macro_original_text): Make const.
2166 (lex_one_token): Make local variable 'tokstart' const.
2167 Likewise for local variables named 'p'.
2168 Cast away const for struct stoken (temporary).
2169 * c-lang.h (c_parse_escpae): Make first argument const.
2170 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2171 const.
2172 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2173 var_string case.
2174 * f-exp.y (parse_number): Make first argument const.
2175 (match_string_literal): Make local variable 'tokstart'
2176 const.
2177 (yylex): Make local variable 'p' const.
2178 Cast away const for struct stoken (temporary).
2179 * go-exp.y (parse_number): Make first argument const.
2180 (parse_string_or_char): Likewise.
2181 Make local variable 'tokstart' const.
2182 (lex_one_token): Likewise for numerous locals called 'p'.
2183 Cast away const for struct stoken (temporary).
2184 * jv-exp.y (parse_number): Make first argument const.
2185 Make local variables 'tokstart' and 'tokptr' const.
2186 Cast away const for call to skip_quoted (temporary).
2187 (yylex): Make local variable 'p' const.
2188 Cast away const for struct stoken (temporary).
2189 * m2-exp.y (parse_number): Make local variable 'p' const.
2190 (yylex): Likewise for 'tokstart'.
2191 Cast away const for struct stoken (temporary).
2192 Make local variable 'p' const.
2193 * macroexp.c (get_character_constant): Pass a const string
2194 to c_parse_escape.
2195 (get_string_literal): Likewise.
2196 (macro_expand_next): Make first argument const.
2197 Cast away const for init_shared_buffer.
2198 * macroexp.h (macro_expand_next): Make first argument const.
2199 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2200 Pass a const string to c_parse_escape.
2201 Make local variables 'p' and 'namestart' const.
2202 * parse.c (lexptr): Make const.
2203 (prev_lexptr): Likewise.
2204 (find_template_name_end): Return const.
2205 Make argument const, too.
2206 (parse_exp_in_context): Make first argument const.
2207 Remove the entire const_hack.
2208 (parse_exp_in_context_1): Make first argument const.
2209 * parser-defs.h (find_template_name_end): Return const.
2210 Make argument const, too.
2211 (lexptr): Make const.
2212 (prev_lexptr): Likewise.
2213 * utils.c (parse_escape): Make second argument const.
2214 * utils.h (parse_escape): Likewise.
2215
22162013-10-01 Keith Seitz <keiths@redhat.com>
2217
2218 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2219 is now const.
2220 (block_lookup): Make 'raw_name' and 'name' const.
2221 * ada-lex.l (processString): Update for struct stoken.ptr.
2222 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2223 (operator_stoken): Likewise.
2224 (lex_one_token): Remove temporary cast to char * for
2225 'yylval.sval.ptr'.
2226 * f-exp.y (yylex): Likewise.
2227 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2228 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2229 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2230 'yylval.sval.ptr'.
2231 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2232 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2233 * linespec.c (struct ls_parser): Make 'stream' const.
2234 (find_parameter_list_end): Make argument 'input' and local
2235 variable 'p' const.
2236 (linespec_lexer_lex_string): Make local variables 'start' and
2237 'p' const.
2238 Use skip_spaces_const instead of skip_spaces.
2239 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2240 const.
2241 (parse_linespec): Temporarily cast 'argptr' to const for
2242 'parser->lexer.stream'.
2243 * m2-exp.y (yylex): Remove temporary cast to char * for
2244 'yylval.sval.ptr'.
2245 * objc-lang.c (add_msglist): Make local variable 'p' const.
2246 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2247 (exp : STRING): Make 'sp' const.
2248 (parse_number): Make argument 'p' const.
2249 * parser-defs.h (struct stoken): Make 'ptr' const.
2250
193a8eac
DE
22512013-10-01 Doug Evans <dje@google.com>
2252
2253 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2254
2213e2be
YQ
22552013-10-01 Yao Qi <yao@codesourcery.com>
2256
2257 * varobj.c (c_value_of_root): Remove declaration.
2258 (cplus_value_of_root, java_value_of_root): Likewise.
2259 (ada_value_of_root): Likewise.
2260 (struct language_specific) <value_of_root>: Remove.
2261 (languages): Update initialization.
2262 (check_scope): Move earlier.
2263 (c_value_of_root): Move earlier and rename to ...
2264 (value_of_root_1): ... this.
2265 (value_of_root): Caller update.
2266 (cplus_value_of_root, java_value_of_root): Remove.
2267 (ada_value_of_root): Remove.
2268
c573f273
YQ
22692013-10-01 Yao Qi <yao@codesourcery.com>
2270
2271 * varobj.c (varobj_format_string): Remove "unknown".
2272 (languages): Remove the first element.
2273 * varobj.h (enum varobj_languages): Remove vlang_c.
2274
56250258
YQ
22752013-10-01 Yao Qi <yao@codesourcery.com>
2276
2277 * varobj.c (struct language_specific) <language>: Remove.
2278 (languages): Update the initialization.
2279
29f9ebfa
YQ
22802013-10-01 Yao Qi <yao@codesourcery.com>
2281
2282 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2283 "solib-target.h". Include "windows-tdep.h".
2284 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2285 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2286 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2287 windows-tdep.o to gdb_target_obs.
2288
64870a42
YQ
22892013-10-01 Yao Qi <yao@codesourcery.com>
2290
2291 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2292 "solib-target.h".
2293 (amd64_windows_init_abi): Don't call set_solib_ops and
2294 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2295 windows_init_abi instead.
2296 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2297 "solib-target.h".
2298 (i386_cygwin_init_abi): Don't call set_solib_ops,
2299 set_gdbarch_has_dos_based_file_system and
2300 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2301 windows_init_abi instead.
2302 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2303 (windows_init_abi): New function.
2304 (windows_iterate_over_objfiles_in_search_order): Make it
2305 static.
2306 * windows-tdep.h (windows_init_abi): Declare.
2307 (windows_iterate_over_objfiles_in_search_order): Remove
2308 declaration.
2309
0aebdefa
JB
23102013-10-01 Jerome Guitton <guitton@adacore.com>
2311
2312 Checked in by Joel Brobecker <brobecker@adacore.com>
2313 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2314 incomplete dictionnary instead of None in case of missing
2315 environment variables.
2316 (elinos_init): in case of an incomplete environment, best
2317 effort to load system libraries instead of abort.
2318
1c8e84b0
JB
23192013-10-01 Joel Brobecker <brobecker@adacore.com>
2320
2321 * ada-lang.c (ada_has_this_exception_support): Ignore
2322 mst_solib_trampoline minimal symbols.
2323
61d82a0d
TG
23242013-09-30 Tristan Gingold <gingold@adacore.com>
2325
2326 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2327 hardware watchpoint.
2328 (i386_darwin_dr_set): Support 32 and 64 bit states.
2329 (i386_darwin_dr_get): Likewise.
2330 (i386_darwin_dr_set_control): Make static.
2331 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2332 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2333
dfd4cc63
LM
23342013-09-30 Luis Machado <lgustavo@codesourcery.com>
2335
2336 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2337 Replace TIDGET with ptid_get_lwp.
2338 Replace GET_LWP with ptid_get_lwp.
2339 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2340 Replace BUILD_THREAD with ptid_build.
2341 Replace BUILD_LWP with ptid_build.
2342 Replace PIDGET with ptid_get_pid.
2343 Replace TIDGET with ptid_get_lwp.
2344 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2345 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2346 Replace TIDGET with ptid_get_lwp.
2347 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2348 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2349 Replace TIDGET with ptid_get_lwp.
2350 Replace GET_LWP with ptid_get_lwp.
2351 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2352 * auxv.c: Likewise.
2353 * breakpoint.c: Likewise.
2354 * common/ptid.c (ptid_is_pid): Condense check for
2355 null_ptid and minus_one_ptid.
2356 (ptid_lwp_p): New function.
2357 (ptid_tid_p): New function.
2358 * common/ptid.h: Update comments for accessors.
2359 (ptid_lwp_p): New prototype.
2360 (ptid_tid_p): New prototype.
2361 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2362 * gcore.c: Replace PIDGET with ptid_get_pid.
2363 * gdbthread.h: Likewise.
2364 * gnu-nat.c: Likewise.
2365 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2366 Replace TIDGET with ptid_get_lwp.
2367 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2368 * hppanbsd-nat.c: Likewise.
2369 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2370 Replace TIDGET with ptid_get_lwp.
2371 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2372 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2373 * infcmd.c: Likewise.
2374 * inferior.h: Likewise.
2375 * inflow.c: Likewise.
2376 * infrun.c: Likewise.
2377 * linux-fork.c: Likewise.
2378 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2379 Replace GET_PID with ptid_get_pid.
2380 Replace is_lwp with ptid_lwp_p.
2381 Replace GET_LWP with ptid_get_lwp.
2382 Replace BUILD_LWP with ptid_build.
2383
5b4e221c
MF
23842013-09-28 Mike Frysinger <vapier@gentoo.org>
2385
2386 * common/linux-btrace.c: Move sys/syscall.h out of the
2387 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2388 Also check for SYS_perf_event_open before attempting to buid.
2389
57d63ce2
DE
23902013-09-27 Doug Evans <dje@google.com>
2391
19ac8c2e
DE
2392 * dwarf2read.c (dwarf2_section_info): Add comment.
2393 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2394 All uses updated.
2395 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2396 (dwarf2_read_section): Delete unused local "header". Add section
2397 name to error message.
2398 (create_dwo_in_dwp): Tweak comment.
2399 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2400
a32a8923
DE
2401 * dwarf2read.c (die_reader_specs): Tweak comment.
2402 (get_section_bfd_owner, get_section_bfd_section): New functions.
2403 (get_section_name, get_section_file_name): New functions.
2404 (get_section_id, get_section_flags): New functions.
2405 (*): Use new functions to access section fields.
2406
57d63ce2
DE
2407 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2408 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2409 arg "htab". All callers updated.
2410 (create_debug_types_hash_table): Remove redundant copy of
2411 abbrev_section.
2412 (create_dwo_in_dwp): Tweak comments.
2413 (read_str_index): Tweak comment. Record dwarf form name in static
2414 local.
2415
3736004f
PA
24162013-09-27 Pedro Alves <palves@redhat.com>
2417
2418 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2419 (remote_filename_p): Add comment.
2420 * remote.c (remote_filename_p): Adjust to use
2421 REMOTE_SYSROOT_PREFIX.
2422 * solib.c (solib_find): When deciding whether we need to add a
2423 directory separator, check whether the sysroot is "remote:"
2424 instead of checking whether the patch has a drive spec. Add
2425 comments.
2426
5b5596ff
PA
24272013-09-27 Pedro Alves <palves@redhat.com>
2428
2429 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2430 Delete fields.
2431 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2432 directly.
2433
b5eef7aa
JK
24342013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2435
2436 Fix set debug frame output.
2437 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2438 SENTINEL_FRAME entry lower to match enum frame_type order.
2439
5b856f36
PM
24402013-09-26 Pierre Muller <muller@sourceware.org>
2441
2442 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2443 AMD64_R15_REGNUM when a register index is expected.
2444 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2445 Substitute in array.
2446 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2447 (amd64_push_arguments): Substitute in integer_regnum array.
2448
ade7ed9e
DE
24492013-09-25 Doug Evans <dje@google.com>
2450
d3e81981
DE
2451 * objfiles.c (allocate_objfile): Move comment to better place.
2452
8fb8eb5c
DE
2453 New option "set debug symfile on".
2454 * NEWS: Mention "set debug symfile".
2455 * Makefile.in (SFILES): Add symfile-debug.c.
2456 (COMMON_OBS): Add symfile-debug.o.
2457 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2458 objfile's symbol functions.
2459 * objfiles.h (objfile_set_sym_fns): Declare.
2460 * symfile-debug.c: New file.
2461 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2462 objfile's symbol functions.
2463 (reread_symbols): Ditto.
2464
c256e171
DE
2465 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2466 All uses updated.
2467 (add_symtab_fns): Update prototype.
2468 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2469 (registered_sym_fns): ... this.
2470 (symtab_fns): Update.
2471 (add_symtab_fns): New arg "flavour". All callers updated.
2472 (find_sym_fns): Rewrite to use new sym_fns registry.
2473
f56ce883
DE
2474 * symfile.h (struct sym_fns): Add "objfile" argument to
2475 sym_read_linetable. All uses updated.
2476
20c681d1
DE
2477 * symtab.c (domain_name, search_domain_name): New functions.
2478 * symtab.h (domain_name, search_domain_name): Declare.
2479
ade7ed9e
DE
2480 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2481 map_matching_symbols so objfile is first. All uses updated.
2482 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2483 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2484
7d760051
UW
24852013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2486
2487 PR shlibs/8882
2488 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2489 link map entries.
2490
020f7036
DE
24912013-09-24 Doug Evans <dje@google.com>
2492
2493 * objfiles.c (free_objfile): Move comment.
2494
598402f0
JB
24952013-09-24 Joel Brobecker <brobecker@adacore.com>
2496
2497 * ada-exp.y (string_to_operator): Delete.
2498 (dummy_string_to_ada_operator): Delete.
2499
bf4d6c1c
JB
25002013-09-24 Joel Brobecker <brobecker@adacore.com>
2501
2502 Revert:
2503 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2504 amd64-tdep.c.
2505 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2506 call_dummy_integer_regs, and classify.
2507 * amd64-tdep.h (amd64_classify): Add declaration.
2508 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2509 (amd64_reg_class): Delete, moved to i386-tdep.h.
2510 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2511 Replace call to amd64_classify by call to tdep->classify.
2512 (amd64_push_arguments): Get the list of registers to use for
2513 passing integer parameters from the gdbarch tdep structure,
2514 rather than using a hardcoded one. Replace calls to amd64_classify
2515 by calls to tdep->classify.
2516 (amd64_push_dummy_call): Get the register number used for
2517 the "hidden" argument from tdep->call_dummy_integer_regs.
2518 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2519 and tdep->call_dummy_integer_regs. Set tdep->classify.
2520
849e9755
JB
25212013-09-24 Joel Brobecker <brobecker@adacore.com>
2522
2523 Revert:
2524 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2525 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2526 where tdep->memory_args_by_pointer is non-zero.
2527
c1459fd6
JB
25282013-09-24 Joel Brobecker <brobecker@adacore.com>
2529
2530 Revert:
2531 * i386-tdep.h (struct gdbarch_tdep): Add new field
2532 integer_param_regs_saved_in_caller_frame.
2533 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2534 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2535
20c2e3e0
JB
25362013-09-24 Joel Brobecker <brobecker@adacore.com>
2537
874440b8 2538 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2539 (amd64_windows_classify): Delete.
2540 (amd64_windows_passed_by_integer_register)
2541 (amd64_windows_passed_by_xmm_register)
2542 (amd64_windows_passed_by_pointer)
2543 (amd64_windows_adjust_args_passed_by_pointer)
2544 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2545 (amd64_windows_push_dummy_call): New functions.
2546 (amd64_windows_init_abi): Remove setting of
2547 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2548 tdep->classify, tdep->memory_args_by_pointer and
2549 tdep->integer_param_regs_saved_in_caller_frame.
2550 Add call to set_gdbarch_push_dummy_call.
2551
82bf32bc
JK
25522013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2553
2554 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2555 objfile->original_name.
2556
24ba069a
JK
25572013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2558
2559 Pass down original filename for objfile.
2560 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2561 * elfread.c (elf_symfile_read): Likewise.
2562 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2563 longer set ORIGINAL_NAME.
2564 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2565 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2566 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2567 symbol_file_add_from_bfd call.
2568 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2569 (macho_check_dsym): Add parameter filenamep. Change function comment.
2570 Set *filenamep.
2571 (macho_symfile_read): New variable dsym_filename. Update
2572 macho_check_dsym call. Use it for symbol_file_add_separate.
2573 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2574 it. Use it for objfile->original_name.
2575 (objfile_name): Return OBFD's filename, if available.
2576 * objfiles.h (allocate_objfile): Add new parameter name.
2577 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2578 * symfile-mem.c (symbol_file_add_from_memory): Update
2579 symbol_file_add_from_bfd call.
2580 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2581 comment for it.
2582 (symbol_file_add_with_addrs): New parameter name, add function comment
2583 for it. Remove variable name. Update allocate_objfile call.
2584 (symbol_file_add_separate): New parameter name, add function comment
2585 for it. Update symbol_file_add_with_addrs call.
2586 (symbol_file_add_from_bfd): New parameter name. Update
2587 symbol_file_add_with_addrs call.
2588 (symbol_file_add): Update symbol_file_add_from_bfd call.
2589 (reread_symbols): New variable original_name. Save
2590 objfile->original_name by it.
2591 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2592 second parameter.
2593
4262abfb
JK
25942013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2595
2596 Code cleanup: Add objfile_name accessor function.
2597 * ada-lang.c (is_known_support_routine): Use objfile_name.
2598 * auto-load.c (source_gdb_script_for_objfile)
2599 (auto_load_objfile_script): Likewise.
2600 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2601 * dbxread.c (dbx_symfile_read): Likewise.
2602 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2603 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2604 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2605 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2606 (lookup_dwp_signatured_type, lookup_dwo_unit)
2607 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2608 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2609 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2610 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2611 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2612 (read_subrange_type, load_partial_dies, read_partial_die)
2613 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2614 (die_containing_type, build_error_marker_type, lookup_die_type)
2615 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2616 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2617 (get_DW_AT_signature_type, write_psymtabs_to_index)
2618 (save_gdb_index_command): Likewise.
2619 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2620 Likewise.
2621 * expprint.c (dump_subexp_body_standard): Likewise.
2622 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2623 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2624 original_name.
2625 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2626 obj_name, use objfile_name for it, use the variable.
2627 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2628 Use objfile_name.
2629 * machoread.c (macho_symtab_read, macho_check_dsym)
2630 (macho_symfile_relocate): Likewise.
2631 * maint.c (maintenance_translate_address): Likewise.
2632 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2633 * minsyms.c (install_minimal_symbols): Likewise.
2634 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2635 original_name.
2636 (filter_overlapping_sections): Use objfile_name.
2637 (objfile_name): New function.
2638 * objfiles.h (struct objfile): Rename field name to original_name.
2639 (objfile_name): New prototype.
2640 * printcmd.c (sym_info, address_info): Use objfile_name.
2641 * probe.c (parse_probes, collect_probes, compare_probes)
2642 (info_probes_for_ops): Likewise.
2643 * progspace.c (clone_program_space): Likewise.
2644 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2645 (maintenance_info_psymtabs): Likewise.
2646 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2647 (source_section_scripts): Likewise.
2648 * python/py-objfile.c (objfpy_get_filename): Likewise.
2649 * python/py-progspace.c (pspy_get_filename): Likewise.
2650 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2651 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2652 * solib.c (solib_read_symbols): Likewise.
2653 * stabsread.c (scan_file_globals): Likewise.
2654 * stap-probe.c (handle_stap_probe): Likewise.
2655 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2656 (find_separate_debug_file_by_debuglink): Likewise.
2657 (reread_symbols): Likewise. Use the objfile field name renamed to
2658 original_name.
2659 (allocate_symtab): Use objfile_name.
2660 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2661 (dump_objfile, dump_msymbols, dump_symtab_1)
2662 (maintenance_print_msymbols, maintenance_print_objfiles)
2663 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2664 * target.c (target_translate_tls_address, target_info): Likewise.
2665 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2666 objfile_name.
2667
4721dc18
JK
26682013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2669
2670 Code cleanup.
2671 * probe.c (parse_probes): Rename variable objfile_name to
2672 objfile_namestr.
2673
a61d6db8
JK
26742013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2675
2676 Remove solib-sunos.c.
2677 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2678 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2679 * objfiles.c (rt_common_objfile): Remove.
2680 (free_objfile): Remove rt_common_objfile comparison.
2681 * objfiles.h (rt_common_objfile): Remove.
2682 * solib-sunos.c: Remove.
2683 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2684
2659903b
JK
26852013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2686
2687 Remove a.out NetBSD and OpenBSD hosts.
2688 * NEWS (Removed native configurations): New.
2689 * config/arm/nbsdaout.mh: Remove.
2690 * config/i386/nbsdaout.mh: Remove.
2691 * config/i386/obsdaout.mh: Remove.
2692 * config/m68k/nbsdaout.mh: Remove.
2693 * config/sparc/nbsdaout.mh: Remove.
2694 * config/vax/nbsdaout.mh: Remove.
2695 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2696 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2697 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2698 error.
2699 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2700 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2701 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2702
f60e2d5c
TT
27032013-09-23 Tom Tromey <tromey@redhat.com>
2704
2705 * linespec.c (struct minsym_and_objfile): Remove.
2706 (minsym_and_objfile_d): Remove.
2707 (struct linespec, struct collect_info, linespec_parse_basic)
2708 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2709 (compare_msymbols, find_method, find_function_symbols)
2710 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2711 (add_minsym, search_minsyms_for_name): Update.
2712
d3eaaf66
AB
27132013-09-23 Andrew Burgess <aburgess@broadcom.com>
2714
2715 * regcache.c: Add include of valprint.h.
2716 (dump_endian_bytes): Delete.
2717 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2718
2cc762b5
AB
27192013-09-23 Andrew Burgess <aburgess@broadcom.com>
2720
2721 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2722
96181529
PA
27232013-09-19 Pedro Alves <palves@redhat.com>
2724
2725 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2726 breakpoints.
2727
9b3f3ee6
TS
27282013-09-19 Pedro Alves <palves@redhat.com>
2729 Thomas Schwinge <thomas@codesourcery.com>
2730 Yue Lu <hacklu.newborn@gmail.com>
2731
2732 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2733 Take a gdb_byte pointer instead of a char pointer.
2734
2735 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2736 gnu_xfer_partial helper.
2737 (gnu_xfer_partial): New function.
2738 (gnu_target): Don't install a deprecated_xfer_memory hook.
2739 Install a to_xfer_partial hook.
2740
69150c3d
JK
27412013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2742
2743 Constification.
2744 * main.c (captured_main): Replace catch_command_errors by
2745 catch_command_errors_const. Twice.
2746 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2747 (symbol_file_add): Make name parameter const.
2748 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2749 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2750 variable name. Change their usage accordingly.
2751 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2752 const.
2753 (symbol_file_add_main): Make args parameter const.
2754
086850b2
UW
27552013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2756 Ulrich Weigand <uweigand@de.ibm.com>
2757
2758 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2759 of c_value member.
2760 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2761
ca08a94c 27622013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2763 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2764
2765 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2766 (gnu_create_inferior)
2767 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2768 (set_sig_thread_cmd): Use the lwpid field of ptids to
2769 store/extract thread ids instead of the tid field.
2770 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2771
e4c6a2c4
AB
27722013-09-18 Andrew Burgess <aburgess@broadcom.com>
2773
2774 * infcmd.c (default_print_one_register_info): Add detection of
2775 optimized out values.
2776 (default_print_registers_info): Switch to using
2777 get_frame_register_value.
2778
58c48e72
MM
27792013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2780
2781 * infrun.c (handle_inferior_event): Check if we know the
2782 function start address before setting a resume breakpoint.
2783
c8d37639
PA
27842013-09-18 Pedro Alves <palves@redhat.com>
2785
2786 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2787 minus_one_ptid instead of looking at the ptid's tid field and
2788 comparing that to -1.
2789
71926e28
AB
27902013-09-18 Andrew Burgess <aburgess@broadcom.com>
2791
2792 * main.h (get_gdb_program_name): Remove extra whitespace.
2793
c88a1531
AB
27942013-09-18 Andrew Burgess <aburgess@broadcom.com>
2795
2796 * main.h (get_gdb_program_name): Add declaration.
2797 * main.c (get_gdb_program_name): Add definition.
2798
4390d890
DE
27992013-09-17 Doug Evans <dje@google.com>
2800
2801 * dwarf2read.c: Move definitions of complaint functions to after
2802 forward declarations of local functions.
2803
49fa26b0
PA
28042013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2805 Pedro Alves <palves@redhat.com>
2806
2807 PR gdb/11568
2808 * breakpoint.c (remove_threaded_breakpoints): New function.
2809 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2810 as thread_exit observer.
2811
08d72866
PA
28122013-09-17 Pedro Alves <palves@redhat.com>
2813
2814 PR gdb/15911
2815 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2816 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2817 * corelow.c (core_open):
2818 * frame.h (print_stack_frame, print_frame_info): New
2819 'set_current_sal' parameter.
2820 * infcmd.c (finish_command, kill_command): Adjust call to
2821 print_stack_frame.
2822 * inferior.c (inferior_command): Likewise.
2823 * infrun.c (normal_stop): Likewise.
2824 * linux-fork.c (linux_fork_context): Likewise.
2825 * record-full.c (record_full_goto_entry, record_full_restore):
2826 Likewise.
2827 * remote-mips.c (common_open): Likewise.
2828 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2829 Use it.
2830 (print_frame_info): New 'set_current_sal' parameter. Set the last
2831 displayed sal depending on the new paremeter instead of looking at
2832 print_what.
2833 (backtrace_command_1, select_and_print_frame, frame_command)
2834 (current_frame_command, up_command, down_command): Adjust call to
2835 print_stack_frame.
2836 * thread.c (print_thread_info, restore_selected_frame)
2837 (do_captured_thread_select): Adjust call to print_stack_frame.
2838 * tracepoint.c (tfind_1): Likewise.
2839 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2840 (mi_cmd_stack_info_frame): Likewise.
2841 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2842 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2843
6bc305f5
SDJ
28442013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2845
2846 * value.c (isvoid_internal_fn): Replace "parameter" with
2847 "argument".
2848
0a7cfe2c
SS
28492013-09-16 Stan Shebs <stan@codesourcery.com>
2850
2851 * README: Update references to writing code for GDB.
2852 * configure.ac (build_warnings): Remove obsolete comment.
2853 * configure: Regenerate.
2854 * gdbarch.sh: Remove references to gdbint.texinfo.
2855 * gdbarch.h: Regenerate.
2856 * gdbtypes.c (objfile_type): Remove comments referencing internals
2857 manual and D10V.
2858
a280dbd1
SDJ
28592013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2860
2861 * NEWS: Mention new convenience function $_isvoid.
2862 * value.c (isvoid_internal_fn): New function.
2863 (_initialize_values): Add new convenience function $_isvoid.
2864
04a83fee
PM
28652013-09-16 Pierre Muller <muller@sourceware.org>
2866
2867 * arm-linux-tdep.c: Add "elf/common.h" header.
2868 Remove AT_HWCAP macro definintion as it is provided in
2869 added include file.
2870 * s390-tdep.c: Remove system header <elf.h>
2871 Add "elf/common.h" header for AT_HWCAP definition.
2872 (s390_core_read_description): Use correct CORE_ADDR
2873 for hwcap local variable used as third parameter
2874 of function target_auxv_search.
2875
88505fac
PM
28762013-09-14 Pierre Muller <muller@sourceware.org>
2877 Tom Tromey <tromey@redhat.com>
2878 Pedro Alves <palves@redhat.com>
2879
2880 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2881 mode if operating system doesn't know O_CLOEXEC.
2882
d3846e71
JK
28832013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2884
2885 Code cleanup.
2886 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2887 inner block.
2888
4ac33720
UW
28892013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2890
2891 * NEWS: Mention TDB support.
2892 * features/s390-tdb.xml: New file.
2893 * features/s390-te-linux64.xml: New file.
2894 * features/s390x-te-linux64.xml: New file.
2895 * features/Makefile (WHICH): Add new tdescs above.
2896 (s390-te-linux64-expedite): Set.
2897 (s390x-te-linux64-expedite): Set.
2898 * features/s390-te-linux64.c: New file (generated).
2899 * features/s390x-te-linux64.c: New file (generated).
2900 * regformats/s390-te-linux64.dat: New file (generated).
2901 * regformats/s390x-te-linux64.dat: New file (generated).
2902 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2903 (HWCAP_S390_TE): Likewise.
2904 (S390_TDB_DWORD0_REGNUM): Likewise.
2905 (S390_TDB_DWORD0_REGNUM): Likewise.
2906 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2907 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2908 (S390_TDB_ATIA_REGNUM): Likewise.
2909 (S390_TDB_R0_REGNUM): Likewise.
2910 (S390_TDB_R1_REGNUM): Likewise.
2911 (S390_TDB_R2_REGNUM): Likewise.
2912 (S390_TDB_R3_REGNUM): Likewise.
2913 (S390_TDB_R4_REGNUM): Likewise.
2914 (S390_TDB_R5_REGNUM): Likewise.
2915 (S390_TDB_R6_REGNUM): Likewise.
2916 (S390_TDB_R7_REGNUM): Likewise.
2917 (S390_TDB_R8_REGNUM): Likewise.
2918 (S390_TDB_R9_REGNUM): Likewise.
2919 (S390_TDB_R10_REGNUM): Likewise.
2920 (S390_TDB_R11_REGNUM): Likewise.
2921 (S390_TDB_R12_REGNUM): Likewise.
2922 (S390_TDB_R13_REGNUM): Likewise.
2923 (S390_TDB_R14_REGNUM): Likewise.
2924 (S390_TDB_R15_REGNUM): Likewise.
2925 (S390_NUM_REGS): Increase.
2926 (S390_IS_TDBREGSET_REGNUM): New macro.
2927 (s390_regmap_tdb): Declare.
2928 (s390_sizeof_tdbregset): Define.
2929 (tdesc_s390_te_linux64): Declare.
2930 (tdesc_s390x_te_linux64): Likewise.
2931 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2932 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2933 (s390_regmap_tdb): New regmap.
2934 (s390_supply_tdb_regset): New function.
2935 (s390_tdb_regset): New regset.
2936 (s390_linux64v2_regset_sections): Add TDB regset to list.
2937 (s390x_linux64v2_regset_sections): Likewise.
2938 (s390_regset_from_core_section): Recognize TDB core note section.
2939 (s390_core_read_description): If HWCAP indicates TE support,
2940 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2941 (s390_gdbarch_init): Handle TDB regset.
2942 (_initialize_s390_tdep): Initialize new tdescs.
2943 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2944 (have_regset_tdb): New variable.
2945 (s390_native_supply): Support register invalidation.
2946 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2947 (check_regset): Treat ENODATA as "regset exists".
2948 (s390_linux_fetch_inferior_registers): Add TDB.
2949 (s390_read_description): Check for TDB existence and select
2950 appropriate tdesc.
2951 * gdbserver/Makefile.in (clean): Add removal of new makefile
2952 targets.
2953 (s390-te-linux64.c): New makefile target.
2954 (s390x-te-linux64.c): Likewise.
2955 * gdbserver/configure.srv (srv_regobj): Append new objects
2956 s390-te-linux64.o and s390x-te-linux64.o.
2957 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2958 s390x-te-linux64.xml, and s390-tdb.xml.
2959 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2960 declaration.
2961 (tdesc_s390_te_linux64): Likewise.
2962 (init_registers_s390x_te_linux64): Likewise.
2963 (tdesc_s390x_te_linux64): Likewise.
2964 (s390_check_regset): Treat ENODATA as "regset exists".
2965 (s390_arch_setup): Add TDB regset support.
2966 (initialize_low_arch): Initialize registers for new tdescs.
2967
2ccd1468
UW
29682013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2969
2970 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2971 (S390_IS_FPREGSET_REGNUM): New macro.
2972 * s390-tdep.c (s390_dwarf_regmap): Make const.
2973 (regnum_is_gpr_full): New function for replacing repeated code.
2974 (s390_pseudo_register_name): Use it.
2975 (s390_pseudo_register_type): Likewise.
2976 (s390_pseudo_register_read): Likewise.
2977 (s390_pseudo_register_write): Likewise.
2978 (s390_unwind_pseudo_register): Likewise.
2979 (s390_regmap_gregset): New format for regmap.
2980 (s390x_regmap_gregset): Likewise.
2981 (s390_regmap_fpregset): Likewise.
2982 (s390_regmap_upper): Likewise.
2983 (s390_regmap_last_break): Likewise.
2984 (s390_regmap_system_call): Likewise.
2985 (s390_supply_regset): Adjust to new regmap format.
2986 (s390_collect_regset): Likewise.
2987 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2988 (s390_native_collect): Likewise.
2989 (supply_gregset): Likewise.
2990 (fill_gregset): Likewise.
2991 (supply_fpregset): Likewise.
2992 (fill_fpregset): Likewise.
2993 (fetch_regset): Likewise.
2994 (store_regset): Likewise.
2995 (s390_linux_fetch_inferior_registers): Likewise.
2996 (s390_linux_fetch_inferior_registers): Likewise.
2997
1aa4cd77
AP
29982013-09-12 Andrew Pinski <apinski@cavium.com>
2999
3000 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3001
d91fab15
UW
30022013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3003
3004 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3005
5a5d8ead
AB
30062013-09-09 Andrew Burgess <aburgess@broadcom.com>
3007
3008 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3009
1385f66c
PA
30102013-09-06 Pedro Alves <palves@redhat.com>
3011
3012 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3013 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3014 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3015 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3016 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3017 gdb_stdlog.
3018
146ec4db
PA
30192013-09-06 Pedro Alves <palves@redhat.com>
3020
3021 * remote-sim.c (dump_mem): Constify buf parameter.
3022 gdbsim_xfer_inferior_memory): Rename to ...
3023 (gdbsim_xfer_memory): ... this. Adjust interface as
3024 target_xfer_partial helper.
3025 (gdbsim_xfer_partial): New function.
3026 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3027 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3028
fcde0081
PA
30292013-09-06 Pedro Alves <palves@redhat.com>
3030
3031 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3032 host_address_to_string, and send debug output to gdb_stdlog.
3033
749c8b38
RW
30342013-09-06 Ricard Wanderlof <ricardw@axis.com>
3035
3036 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3037 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3038 gdb_target_obs for cris target.
3039 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3040 (cris_gdbarch_init): Move calls to
3041 set_gdbarch_fetch_tls_load_module_address and
3042 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3043 Add call to gdbarch_init_osabi.
3044 * cris-linux-tdep.c: New file.
3045 * cris-tdep.h: New file.
3046
43df09d9
AB
30472013-09-06 Andrew Burgess <aburgess@broadcom.com>
3048
3049 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3050 to deprecated_init_ui_hook.
3051
4d09c5b4
AB
30522013-09-06 Andrew Burgess <aburgess@broadcom.com>
3053
3054 * cli/cli-interp.c (_initialize_cli_interp): Add a
3055 command_loop_proc to interp_procs.
3056 * event-top.c (cli_command_loop): Change signature to match
3057 interp_command_loop_ftype.
3058 * event-top.h (cli_command_loop): Same.
3059 * interps.c (interp_new): Require every interpreter to have a
3060 command_loop_proc.
3061 (current_interp_command_loop): Just call the command_loop_proc on
3062 the current interpreter.
3063 * tui/tui-interp.c (_initialize_tui_interp): Add a
3064 command_loop_proc to interp_procs.
3065
8eb3d7b6
RW
30662013-09-06 Ricard Wanderlof <ricardw@axis.com>
3067
3068 * cris-tdep.c (cris_gdbarch_init): Add call to
3069 get_gdbarch_fetch_tls_load_module_address.
3070
18b3c2f5
RW
30712013-09-06 Ricard Wanderlof <ricardw@axis.com>
3072
3073 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3074 (cris_elf_gregset_t): Rename from elf_gregset_t.
3075 (crisv32_elf_gregset_t): Adjust.
3076 (cris_supply_gregset, fetch_core_registers): Adjust.
3077
dc8636ef
RW
30782013-09-06 Ricard Wanderlof <ricardw@axis.com>
3079
3080 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3081
257e6d53
AB
30822013-09-05 Andrew Burgess <aburgess@broadcom.com>
3083
1581d8a7 3084 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3085 references in comments.
1581d8a7 3086 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3087 deprecated_command_loop_hook.
3088 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3089 setup.
1581d8a7 3090 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3091
7c33b57c
PA
30922013-09-05 Pedro Alves <palves@redhat.com>
3093
3094 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3095 local is now int instead of ULONGEST. Print it with %d
3096 instead of paddress.
3097
9f8edbd5
TG
30982013-09-05 Tristan Gingold <gingold@adacore.com>
3099
3100 * MAINTAINERS: Remove avr maintainership.
3101
d5b495b4
PA
31022013-09-05 Pedro Alves <palves@redhat.com>
3103
3104 * findvar.c (value_of_register): Rework in terms of
3105 value_of_register_lazy.
3106
40b91786
MB
31072013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3108
3109 * symfile.c (add_symbol_file_command): Remove trailing
3110 whitespaces and blank line after comment.
3111
6eed1678
PA
31122013-09-05 Pedro Alves <palves@redhat.com>
3113
3114 * tui/tui-regs.c (tui_register_format): Don't look at the
3115 register's name here. Return string representing register
3116 value instead of storing it in the data element.
3117 (tui_get_register): Compare register string representations
3118 instead of register value states and contents.
3119
8eb6bda2
PA
31202013-09-05 Pedro Alves <palves@redhat.com>
3121
3122 PR tui/15933
3123 * tui/tui-regs.c (tui_show_registers): Show registers of the
3124 selected frame, not the current frame.
3125
48b1f08c
RW
31262013-09-05 Ricard Wanderlof <ricardw@axis.com>
3127
3128 * MAINTAINERS (Write After Approval): Add myself to the list.
3129
89e63ee4
DE
31302013-09-04 Doug Evans <dje@google.com>
3131
3132 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3133 (queue_and_load_dwo_tu): New function.
3134 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3135 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3136 Make dependent_cu optional.
3137 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3138 and an older .gdb_index is in use, queue and load all its TUs too.
3139
492c0ab7
JK
31402013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3141
3142 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3143 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3144 variable search_flags.
3145 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3146 (OPF_RETURN_REALPATH): ... here.
3147 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3148 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3149 call. Twice.
3150 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3151 openp call.
3152 * solib.c (solib_find): Likewise. Four times.
3153 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3154 in the function comment and for the realpath_fptr variable.
3155 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3156 (find_and_open_source): Likewise. Twice.
3157 * symfile.c (symfile_bfd_open): Likewise, also twice.
3158
23a44de8
DE
31592013-09-04 Doug Evans <dje@google.com>
3160
3161 * progspace.c (save_current_space_and_thread): Remove unnecessary
3162 call to save_current_inferior.
3163
47061676
AB
31642013-09-04 Andrew Burgess <aburgess@broadcom.com>
3165
3166 * sh64-tdep.c (sh64_do_register): Return after printing message
3167 about unavailable register contents.
3168
41dc8db8
MB
31692013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3170 Pedro Alves <palves@redhat.com>
3171
3172 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3173 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3174 options and collapse into single conditional branch.
41dc8db8 3175
07107ca6
LM
31762013-09-03 Luis Machado <lgustavo@codesourcery.com>
3177
a7ea61cf 3178 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3179 detach_fork.
3180 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3181 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3182 * inferior.h (detach_fork): Remove.
3183 * infrun.c (detach_fork): Adjust comment and make it
3184 static.
3185 (follow_fork): Pass detach_fork parameter to
3186 target_follow_fork.
3187 * linux-nat.c (linux_child_follow_fork): New parameter
3188 detach_fork.
3189 * target.c (target_follow_fork): New parameter detach_fork.
3190 Pass detach_fork as parameter and print its value.
3191 * target.h (struct target_ops) <to_follow_fork>: New int
3192 parameter.
3193 (target_follow_fork): New parameter detach_fork.
3194
3bec2768
JB
31952013-09-03 Joel Brobecker <brobecker@adacore.com>
3196
3197 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3198 Replace sec->bfd by sec->the_bfd_section->owner.
3199
c01cbb3d
YQ
32002013-09-03 Yao Qi <yao@codesourcery.com>
3201
3202 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3203 from linux_has_shared_address_space.
3204 (linux_has_shared_address_space): Call linux_is_uclinux.
3205 * linux-tdep.h (linux_is_uclinux): Declare.
3206 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3207 linux_is_uclinux.
3208
7b00db47
YQ
32092013-09-03 Yao Qi <yao@codesourcery.com>
3210
3211 * config/djgpp/fnchange.lst: Remove entry of
3212 i386-interix-nat.c and i386-interix-tdep.c.
3213 * configure.ac: Remove '*-*-interix*'.
3214 * configure: Re-generated.
3215 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3216 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3217 obsolete comments.
3218 * osabi.c (gdb_osabi_names): Remove "Interix".
3219
0f9741f2
YQ
32202013-09-03 Yao Qi <yao@codesourcery.com>
3221
3222 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3223
1e038f67
MM
32242013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3225
3226 * record.h (record_print_flag) <record_print_src_line,
3227 record_print_insn_range>: Rename into ...
3228 (record_print_flag) <record_print_src_line,
3229 record_print_insn_range>: ... this. Update all users.
3230
9e52adf9
PM
32312013-09-02 Pierre Muller <muller@sourceware.org>
3232
3233 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3234 error code.
3235
a2388568
PM
32362013-09-02 Pierre Muller <muller@sourceware.org>
3237
3238 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3239 by use of plongest function.
3240
9058cc3a
TG
32412013-09-02 Tristan Gingold <gingold@adacore.com>
3242
3243 * NEWS: Add entry mentioning support for native Windows x64
3244 SEH data.
3245
3246 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3247 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3248 (struct amd64_windows_frame_cache): New struct.
3249 (amd64_windows_w2gdb_regnum): New global.
3250 (pc_in_range, amd64_windows_frame_decode_epilogue)
3251 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3252 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3253 (amd64_windows_frame_this_id): New functions.
3254 (amd64_windows_frame_unwind): New static global.
3255 (amd64_windows_skip_prologue): New function.
3256 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3257 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3258 with amd64_windows_skip_prologue.
3259
3161820b 32602013-08-30 Joel Brobecker <brobecker@adacore.com>
3261
3262 GDB 7.6.1 released.
3263
02457c76
PA
32642013-08-30 Pedro Alves <palves@redhat.com>
3265
3266 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3267 SRC_AND_LOC.
3268
e0162910
PA
32692013-08-30 Pedro Alves <palves@redhat.com>
3270
3271 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3272 warning text.
3273
6391ce51
PA
32742013-08-30 Pedro Alves <palves@redhat.com>
3275
3276 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3277 Adjust arguments to print_stack_frame.
3278
d1da0587
PA
32792013-08-30 Pedro Alves <palves@redhat.com>
3280
3281 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3282
adfd8245
PA
32832013-08-30 Pedro Alves <palves@redhat.com>
3284
3285 * frame.h (show_and_print_stack_frame): Delete declaration.
3286
96d9056e
PM
32872013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3288
3289 PR python/15461
96d9056e
PM
3290 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3291 (archpy_name): Check for valid architecture.
3292 (archpy_disassemble): Ditto.
3293
11cb8762
JB
32942013-08-29 Joel Brobecker <brobecker@adacore.com>
3295
3296 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3297 instead of "long long" in call to ptrace64.
3298
1af12a7d
AB
32992013-08-29 Andrew Burgess <aburgess@broadcom.com>
3300
3301 * mi/mi-interp.c (mi_command_loop): Change signature to match
3302 interp_command_loop_ftype.
3303 (mi1_command_loop): Remove.
3304 (mi2_command_loop): Remove.
3305 (mi3_command_loop): Remove.
3306 (mi_interpreter_resume): Remove setting of
3307 deprecated_command_loop_hook.
3308 (_initialize_mi_interp): Set mi_command_loop as the command loop
3309 callback.
3310
acc900c2
SA
33112013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3312
3313 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3314 value_type.
3315
548b762d
SA
33162013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3317
3318 * value.c (allocate_value_contents): Make static.
3319 * value.h (allocate_value_contents): Remove prototype.
3320
08039c9e
SA
33212013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3322
3323 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3324 of assembling value via allocate_value_lazy and attribute setter.
3325 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3326 assembling value via allocate_value_lazy and attribute setter.
3327 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3328 assembling value via allocate_value_lazy and attribute setter.
3329
314c7de9
SA
33302013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3331
3332 * value.c (value_from_contents_and_address): Replace allocate_value and
3333 memcpy with value_from_contents.
3334
8f28f522
PM
33352013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3336
3337 * python/py-framefilter.c (py_print_frame): Remove usage of
3338 PyString_AsString. Use python_string_to_host_string instead.
3339 Refactor function to work with a string as a new allocation
3340 instead of a pointer.
3341 (py_print_frame): Ditto.
3342 * python/lib/gdb/frames.py (return_list): Cain iterators together
3343 instead of adding them as a list.
3344 (_sort_list): Call return_list, and remove duplicate code.
3345 (execute_frame_filters): Convert iterator to a list with list().
3346 * python/lib/gdb/command/frame_filters.py
3347 (SetFrameFilterPriority._set_filter_priority): Convert priority
3348 attribute to an integer.
3349 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3350 wrapper function __next__.
3351 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3352 define as "str".
3353
8ee002df
PM
33542013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3355
3356 PR python/15752
8ee002df
PM
3357 * python/py-framefilter.c (apply_frame_filter): Check
3358 gdb_python_initialized. Exit if the Python frame-filter code
3359 cannot be initialized.
3360
af4c453a
PM
33612013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3362
3363 PR cli/15842
af4c453a
PM
3364 * top.c (print_gdb_version): Remove erroneous newline after help
3365 text.
3366
bf8793bb
YQ
33672013-08-29 Yao Qi <yao@codesourcery.com>
3368
3369 * varobj.c (install_dynamic_child): Remove trailing space.
3370 Add one blank line after variable declaration.
3371
1f0c4988
JK
33722013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3373
3374 PR gdb/15415
3375 * corefile.c (get_exec_file): Use exec_filename.
3376 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3377 * exec.c (exec_close): Free EXEC_FILENAME.
3378 (exec_file_attach): New variable canonical_pathname. Use
3379 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3380 EXEC_FILENAME.
3381 * exec.h (exec_filename): New.
3382 * inferior.c (print_inferior, inferior_command): Use
3383 PSPACE_EXEC_FILENAME.
3384 * mi/mi-main.c (print_one_inferior): Likewise.
3385 * progspace.c (clone_program_space, print_program_space): Likewise.
3386 * progspace.h (struct program_space): New field pspace_exec_filename.
3387 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3388 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3389
59ee9f94
WN
33902013-08-28 Will Newton <will.newton@linaro.org>
3391
3392 * common/linux-ptrace.c: Include stdint.h unconditionally.
3393
c8a2a419
JK
33942013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 Code cleanup.
3397 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3398
ffa4ac95
YQ
33992013-08-28 Yao Qi <yao@codesourcery.com>
3400 Pedro Alves <palves@redhat.com>
3401
3402 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3403 instead of stdio_fileopen.
3404 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3405 .Call stderr_fileopen instead of stdio_fileopen.
3406 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3407 [__MINGW32__] (stderr_file_fputs): New function.
3408 (stderr_fileopen): New function.
3409 * ui-file.h (stderr_fileopen): Declare.
3410
69d751e3
DE
34112013-08-27 Doug Evans <dje@google.com>
3412
3413 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3414 (struct dwarf2_per_cu_data): Ditto.
3415 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3416 (process_imported_unit_die): Ditto.
3417 (follow_die_sig_1): Simplify assert.
3418
44f38867
PA
34192013-08-27 Pedro Alves <palves@redhat.com>
3420
3421 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3422 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3423 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3424 windows_xfer_memory directly.
3425 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3426
d28d46b5
PA
34272013-08-27 Pedro Alves <palves@redhat.com>
3428
3429 * darwin-nat.c (darwin_xfer_memory): Delete.
3430 (_initialize_darwin_inferior): Don't install a
3431 deprecated_xfer_memory method.
3432
6211c335
YQ
34332013-08-27 Pedro Alves <pedro@codesourcery.com>
3434 Yao Qi <yao@codesourcery.com>
3435
3436 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3437 (parse_no_frames_option): Remove.
3438 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3439 (mi_cmd_stack_list_args): Adjust.
3440 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3441 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3442 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3443 Caller update.
3444 (list_args_or_locals): New parameter 'skip_unavailable'.
3445 Handle it.
3446 * valprint.c (scalar_type_p): Rename to ...
3447 (val_print_scalar_type_p): ... this. Make extern.
3448 (val_print, value_check_printable): Adjust.
3449 * valprint.h (val_print_scalar_type_p): Declare.
3450 * value.c (value_entirely_unavailable): New function.
3451 * value.h (value_entirely_unavailable): Declare.
3452
3453 * NEWS: Mention the new option "--skip-unavailable" to MI
3454 commands '-stack-list-locals', '-stack-list-arguments' and
3455 '-stack-list-variables'.
3456
242f1fd7
YQ
34572013-08-27 Yao Qi <yao@codesourcery.com>
3458
3459 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3460 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3461 options.
3462 * mi/mi-getopt.c (mi_getopt): Remove.
3463 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3464 'error_on_unknown'.
3465 (mi_getopt): Call mi_getopt_1.
3466 (mi_getopt_silent): New.
3467 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3468
260b681b
DE
34692013-08-26 Doug Evans <dje@google.com>
3470
779bd270
DE
3471 PR symtab/15885
3472 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3473 .gdb_index is in use.
3474 * symfile.c (reread_symbols): Reset objfile->sf.
3475
52e260a3
DE
3476 * NEWS: Document "mt print objfiles" now takes optional regexp.
3477 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3478 regexp of objfiles to print.
3479 (_initialize_symmisc): Update doc string for "mt print objfiles".
3480
260b681b
DE
3481 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3482 missing debug info checks.
3483
a85c52f2
UW
34842013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3485 Ulrich Weigand <uweigand@de.ibm.com>
3486
3487 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3488 line tables generated by XLC compiled binaries.
3489
4f00dda3
DE
34902013-08-23 Doug Evans <dje@google.com>
3491
db68bbae
DE
3492 * symmisc.c (dump_symtab): Delete prototype.
3493 (dump_msymbols, dump_objfile): Ditto.
3494 (maintenance_info_symtabs): Mark as dont_repeat.
3495 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3496
4f00dda3
DE
3497 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3498 debugging printf to better location.
3499
23d577b0
PA
35002013-08-23 Pedro Alves <palves@redhat.com>
3501
3502 * target.c (target_read_live_memory): Change type of 'ret' local
3503 to LONGEST.
3504
00d84524
PA
35052013-08-23 Pedro Alves <palves@redhat.com>
3506
3507 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3508 (remote_read_bytes): Change return type to LONGEST, and adjust to
3509 return a target_xfer_error on error.
3510 (remote_xfer_memory): Delete.
3511 (remote_flash_write): Change type of 'ret' local to LONGEST.
3512 (remote_xfer_partial, remote_xfer_partial): Adjust.
3513 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3514
1ed3ee94
PM
35152013-08-23 Pierre Muller <muller@sourceware.org>
3516
3517 ARI fix: Push # directives to start of line.
3518 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3519
9eaabc75
MW
35202013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3521
3522 PR gdb/15501
3523 * breakpoint.c (enable_command, disable_command): Iterate over
3524 all specified breakpoint locations.
3525
101158d9
LM
35262013-08-22 Luis Machado <lgustavo@codesourcery.com>
3527
3528 * common/linux-ptrace.c (linux_fork_to_function): Push #
3529 directives to the start of the line.
3530 (linux_check_ptrace_features): Fix warning message to use
3531 the "_" markup.
3532
96d7229d
LM
35332013-08-22 Luis Machado <lgustavo@codesourcery.com>
3534
3535 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3536 nat/linux-waitpid.h.
3537 (linux-waitpid.o): New object file rule.
3538 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3539 (current_ptrace_options): Moved from linux-nat.c.
3540 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3541 parameters.
3542 (linux_fork_to_function): New function.
3543 (linux_grandchild_function): Likewise.
3544 (linux_child_function): Likewise.
3545 (linux_check_ptrace_features): New function, heavily
3546 based on linux-nat.c:linux_test_for_tracefork.
3547 (linux_enable_event_reporting): New function.
3548 (ptrace_supports_feature): Likewise.
3549 (linux_supports_tracefork): Likewise.
3550 (linux_supports_traceclone): Likewise.
3551 (linux_supports_tracevforkdone): Likewise.
3552 (linux_supports_tracesysgood): Likewise.
3553 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3554 gdbserver/linux-low.c.
3555 (linux_enable_event_reporting): New declaration.
3556 (linux_supports_tracefork): Likewise.
3557 (linux_supports_traceclone): Likewise.
3558 (linux_supports_tracevforkdone): Likewise.
3559 (linux_supports_tracesysgood): Likewise.
3560 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3561 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3562 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3563 * config/arm/linux.mh (NATDEPFILES): Likewise.
3564 * config/i386/linux.mh (NATDEPFILES): Likewise.
3565 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3566 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3567 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3568 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3569 * config/mips/linux.mh (NATDEPFILES): Likewise.
3570 * config/pa/linux.mh (NATDEPFILES): Likewise..
3571 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3572 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3573 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3574 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3575 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3576 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3577 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3578 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3579 ptrace's 4th argument's types.
3580 Check the type of PTRACE_TYPE_ARG4.
3581 * configure: Regenerate.
3582 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3583 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3584 (linux_supports_tracefork_flag): Remove.
3585 (linux_supports_tracesysgood_flag): Likewise.
3586 (linux_supports_tracevforkdone_flag): Likewise.
3587 (current_ptrace_options): Moved to
3588 common/linux-ptrace.c.
3589 (linux_tracefork_child): Remove.
3590 (my_waitpid): Remove.
3591 (linux_test_for_tracefork): Renamed to
3592 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3593 (linux_test_for_tracesysgood): Remove.
3594 (linux_supports_tracesysgood): Remove.
3595 (linux_supports_tracefork): Remove.
3596 (linux_supports_tracevforkdone): Remove.
3597 (linux_enable_tracesysgood): Remove.
3598 (linux_enable_event_reporting): Remove.
3599 (linux_init_ptrace): New function.
3600 (linux_child_post_attach): Call linux_init_ptrace.
3601 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3602 (linux_child_follow_fork): Call linux_supports_tracefork
3603 and linux_supports_tracevforkdone.
3604 (linux_child_insert_fork_catchpoint): Call
3605 linux_supports_tracefork.
3606 (linux_child_insert_vfork_catchpoint): Likewise.
3607 (linux_child_set_syscall_catchpoint): Call
3608 linux_supports_tracesysgood.
3609 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3610 * nat/linux-nat.h: New file.
3611 * nat/linux-waitpid.c: New file.
3612 * nat/linux-waitpid.h: New file.
3613
9f948660
SDJ
36142013-08-22 Samuel Bronson <naesten@gmail.com>
3615
3616 ARM Linux support for `catch syscall'.
3617 * syscalls/arm-linux.py: New file.
3618 * syscalls/arm-linux.xml: Likewise.
3619 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3620 (arm_linux_init_abi): Register the new function and syscall xml file.
3621 * data-directory/Makefile.in: Install the new syscall xml file.
3622 * NEWS: Brag about this.
3623
6be7b56e
PA
36242013-08-22 Pedro Alves <palves@redhat.com>
3625
3626 PR gdb/15871
3627 * corefile.c (target_xfer_memory_error): New function.
3628 (memory_error): Defer EIO to target_memory_error.
3629 (read_memory): Use target_xfer_partial, and handle finer-grained
3630 target xfer errors.
3631 * target.c (target_xfer_error_to_string): New function.
3632 (memory_xfer_partial_1): If memory is known to be
3633 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3634 (target_xfer_partial): Make extern.
3635 * target.h (enum target_xfer_error): New enum.
3636 (target_xfer_error_to_string): Declare function.
3637 (target_xfer_partial): Declare function.
3638 (struct target_ops) <xfer_partial>: Adjust describing comment.
3639
bcbec14e
AM
36402013-08-22 Alan Modra <amodra@gmail.com>
3641
3642 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3643 * configure.tgt: Likewise as targets.
3644
fc474241
DE
36452013-08-20 Doug Evans <dje@google.com>
3646
3647 * buildsym.c (subfile_stack): Move here from buildsym.h.
3648 (pending_macros): Ditto.
3649 (get_macro_table): New function.
3650 (buildsym_init): Initialize subfile_stack.
3651 * coffread.c (type_vector,type_vector_length): Moved here from
3652 buildsym.h.
3653 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3654 (coff_symtab_read): Use it.
3655 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3656 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3657 with call to get_macro_table.
3658 * stabsread.c (type_vector,type_vector_length): Moved here from
3659 buildsym.h.
3660 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3661 * buildsym.h (get_macro_table): Declare.
3662
bec71544
TT
36632013-08-20 Tom Tromey <tromey@redhat.com>
3664
3665 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3666 Update.
3667 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3668
0002ad5f
DE
36692013-08-20 Doug Evans <dje@google.com>
3670
3671 * blockframe.c: Remove #include "psymtab.h".
3672 * cp-support.c: Ditto.
3673 * source.c: Ditto.
3674 * stack.c: Ditto.
3675
df302446
TT
36762013-08-20 Tom Tromey <tromey@redhat.com>
3677
3678 PR python/15816:
3679 * exceptions.h (return_mask): Now an enum.
3680 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3681 enum constants.
3682
df6d5441
TT
36832013-08-20 Tom Tromey <tromey@redhat.com>
3684
3685 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3686 get_objfile_arch.
3687 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3688 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3689 * jit.c (jit_object_close_impl): Update.
3690 * jv-lang.c (get_dynamics_objfile): Update.
3691 * linespec.c (add_minsym): Use get_dynamics_objfile.
3692 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3693 (allocate_objfile): Don't initialize 'gdbarch' field.
3694 (get_objfile_arch): Update.
3695 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3696 moved from...
3697 (struct objfile) <gdbarch>: ... here. Remove.
3698 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3699 get_objfile_arch.
3700 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3701
f5aee5ee
AM
37022013-08-20 Alan Modra <amodra@gmail.com>
3703
3704 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3705 for IBM long double nan and inf.
3706 (floatformat_is_negative, floatformat_classify,
3707 floatformat_mantissa): Similarly.
3708 (floatformat_ieee_single, floatformat_ieee_double,
3709 floatformat_ieee_quad, floatformat_arm_ext,
3710 floatformat_ia64_spill): Delete unused vars.
3711 (_initialize_doublest): Delete unused function.
3712 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3713 little-endian variants of floatformat_ibm_long_double.
3714
33b60d58 37152013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3716
33b60d58
LM
3717 * Makefile.in (SFILES): Remove common/target-common.c and
3718 add target/waitstatus.c.
3719 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3720 target/resume.h, target/wait.h and target/waitstatus.h.
3721 (COMMON_OBS): Remove target-common.o and add
3722 waitstatus.o.
3723 (target-common.o): Remove.
3724 (waitstatus.o): New target object file.
3725 * common/target-common.c: Move contents to
3726 target/waitstatus.c and remove.
3727 * common/target-common.h: Move contents to other files and
3728 remove.
3729 (enum resume_kind: Move to target/resume.h.
3730 (TARGET_WNOHANG): Move to target/wait.h.
3731 (enum target_waitkind): Move to target/waitstatus.h.
3732 (struct target_waitstatus): Likewise.
3733 * target.h: Do not include target-common.h and
3734 include target/resume.h, target/wait.h and
3735 target/waitstatus.h.
3736 * target/resume.h: New file.
3737 * target/wait.h: New file.
3738 * target/waitstatus.h: New file.
3739 * target/waitstatus.c: New file.
3740
12696c10
PA
37412013-08-19 Pedro Alves <palves@redhat.com>
3742
3743 * linux-nat.c (linux_test_for_tracefork)
3744 (linux_test_for_tracesysgood, linux_child_follow_fork)
3745 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3746 (linux_nat_wait_1): Extend comment.
3747 (linux_async_pipe): Add comment.
3748
ba89f962
KB
37492013-08-15 Kevin Buettner <kevinb@redhat.com>
3750
3751 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3752 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3753 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3754 Update to account for fact that PC is now a pseudo-register.
3755 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3756 cases for RL78_PC_REGNUM.
3757
35ab155d
MB
37582013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3759
3760 PR cli/15841
3761 * top.c (quit_force): Skip writing history file
3762 if input is not from terminal.
3763
0d031856
TT
37642013-08-14 Tom Tromey <tromey@redhat.com>
3765
3766 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3767 resultthreadlist>: New fields.
3768 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3769 (remote_get_threadlist, remote_threadlist_iterator): Use
3770 new fields. Remove static variables.
3771
ee154bee
TT
37722013-08-14 Tom Tromey <tromey@redhat.com>
3773
3774 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3775 remote_watch_data_address>: New fields.
3776 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3777 (process_stop_reply, remote_wait_as)
3778 (remote_check_watch_resources, remote_stopped_data_address): Update.
3779
88b496c3
TT
37802013-08-14 Tom Tromey <tromey@redhat.com>
3781
3782 * remote.c (struct remote_state) <async_client_callback,
3783 async_client_context>: New fields.
3784 (async_client_callback, async_client_context): Remove.
3785 (remote_async_serial_handler, remote_async): Update.
3786
2f65bcb7
TT
37872013-08-14 Tom Tromey <tromey@redhat.com>
3788
3789 * remote.c (sizeof_pkt): Remove.
3790 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3791
b80fafe3
TT
37922013-08-14 Tom Tromey <tromey@redhat.com>
3793
3794 * remote.c (struct remote_state) <use_threadinfo_query,
3795 use_threadextra_query>: New fields.
3796 (remote_threads_info, remote_threads_extra_info)
3797 (remote_open_1): Update.
3798
8e88304f
TT
37992013-08-14 Tom Tromey <tromey@redhat.com>
3800
3801 * remote.c (struct remote_state) <finished_object,
3802 finished_annex, finished_offset>: New fields.
3803 (remote_read_qxfer): Use remote_state fields; remove static
3804 variables.
3805
280ceea3
TT
38062013-08-14 Tom Tromey <tromey@redhat.com>
3807
3808 * remote.c (struct remote_state) <last_sent_step>:
3809 New field.
3810 (last_sent_step): Remove.
3811 (remote_resume, remote_wait_as): Update.
3812
b73be471
TT
38132013-08-14 Tom Tromey <tromey@redhat.com>
3814
3815 * remote.c (struct remote_state) <last_sent_signal>:
3816 New field.
3817 (last_sent_signal): Remove.
3818 (new_remote_state, remote_resume, remote_wait_as): Update.
3819
5e4a05c4
TT
38202013-08-14 Tom Tromey <tromey@redhat.com>
3821
3822 * remote.c (struct remote_state) <last_program_signals_packet>:
3823 New field.
3824 (last_program_signals_packet): Remove.
3825 (remote_program_signals, remote_open_1): Update.
3826
747dc59d
TT
38272013-08-14 Tom Tromey <tromey@redhat.com>
3828
3829 * remote.c (struct remote_state) <last_pass_packet>:
3830 New field.
3831 (last_pass_packet): Remove.
3832 (remote_pass_signals, remote_open_1): Update.
3833
262e1174
TT
38342013-08-14 Tom Tromey <tromey@redhat.com>
3835
3836 * remote.c (struct remote_state) <remote_traceframe_number>:
3837 New field.
3838 (remote_traceframe_number): Remove.
3839 (new_remote_state, remote_open_1, set_remote_traceframe)
3840 (remote_trace_find): Update.
3841
47f8a51d
TT
38422013-08-14 Tom Tromey <tromey@redhat.com>
3843
3844 * remote.c (struct remote_state) <general_thread, continue_thread>:
3845 New fields.
3846 (general_thread, continue_thread): Remove.
3847 (record_currthread, set_thread, set_general_process)
3848 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3849 (extended_remote_mourn_1): Update.
3850
5d93a237
TT
38512013-08-14 Tom Tromey <tromey@redhat.com>
3852
3853 * remote.c (struct remote_state) <remote_desc>: New field.
3854 (remote_desc): Remove.
3855 (remote_threads_info, remote_threads_extra_info, remote_close)
3856 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3857 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3858 (remote_hostio_send_command, remote_file_put, remote_file_get)
3859 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3860 (remote_async, remote_new_objfile, set_range_stepping): Update.
3861
cf792862
TT
38622013-08-14 Tom Tromey <tromey@redhat.com>
3863
3864 * remote.c (remote_state): Now a pointer.
3865 (get_remote_state_raw): Update.
3866 (new_remote_state): New function.
3867 (_initialize_remote): Use new_remote_state.
3868
dc473cfb
TT
38692013-08-14 Tom Tromey <tromey@redhat.com>
3870
3871 * remote.c (remote_protocol_features): Now const.
3872
85ec6ce7
TT
38732013-08-14 Tom Tromey <tromey@redhat.com>
3874
3875 * remote.c (crc32_table, crc32): Remove.
3876 (remote_verify_memory): Use xcrc32.
3877
73033f12
SDJ
38782013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3879
3880 * value.h (create_internalvar_type_lazy): Adjust prototype
3881 declaration.
3882
5c30d39a
AB
38832013-08-13 Andrew Burgess <aburgess@broadcom.com>
3884
3885 * common/format.c (parse_format_string): Don't allow '#' flag for
3886 pointer arguments in format string.
3887
1a66331e
PM
38882013-08-13 Pierre Muller <muller@sourceware.org>
3889
fde605f3 3890 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3891 if rl_get_screen_size did not return useful values.
3892
b4013987
AA
38932013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3894
3895 PR breakpoints/15117
3896 * linespec.c (linespec_parse_basic): Check for convenience
3897 variable or history value while parsing.
3898
959b6a66
SDJ
38992013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3900
3901 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3902 AVR.
3903 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3904 different signals between the generic Linux kernel implementation
3905 and AVR's.
3906 (avr_linux_gdb_signal_from_target): Delete.
3907 (avr_linux_gdb_signal_to_target): Delete.
3908 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3909
24a55014
DE
39102013-08-09 Doug Evans <dje@google.com>
3911
3912 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3913 entries.
3914
eb14d406
SDJ
39152013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3916
3917 * linux-tdep.c: Define enum with generic signal numbers.
3918 (linux_gdb_signal_from_target): New function.
3919 (linux_gdb_signal_to_target): Likewise.
3920 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3921 methods to the functions above.
3922 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3923 (linux_gdb_signal_to_target): Likewise.
3924 * alpha-linux-tdep.c: Define new enum with signals different
3925 from generic Linux kernel.
3926 (alpha_linux_gdb_signal_from_target): New function.
3927 (alpha_linux_gdb_signal_to_target): Likewise.
3928 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3929 with the functions mentioned above.
3930 * avr-tdep.c: Define enum with differences between Linux kernel
3931 and AVR signals.
3932 (avr_linux_gdb_signal_from_target): New function.
3933 (avr_linux_gdb_signal_to_target): Likewise.
3934 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3935 the functions mentioned above.
3936 * sparc-linux-tdep.c: Define enum with differences between SPARC
3937 and generic Linux kernel signal numbers.
3938 (sparc32_linux_gdb_signal_from_target): New function.
3939 (sparc32_linux_gdb_signal_to_target): Likewise.
3940 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3941 to the functions defined above.
3942 * xtensa-linux-tdep.c: Define enum with differences between
3943 Xtensa and Linux kernel generic signals.
3944 (xtensa_linux_gdb_signal_from_target): New function.
3945 (xtensa_linux_gdb_signal_to_target): Likewise.
3946 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3947 to the functions defined above.
3948 * mips-linux-tdep.c: Define enum with differences between
3949 signals in MIPS and Linux kernel generic ones.
3950 (mips_gdb_signal_to_target): New function.
3951 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3952 only different signals from the Linux kernel generic.
3953 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3954 the functions defined above.
3955 * mips-linux-tdep.h (enum mips_signals): Remove.
3956
156d08c8
PA
39572013-08-09 Pedro Alves <palves@redhat.com>
3958
3959 * avr-tdep.c (XMALLOC): Delete macro.
3960 * cli/cli-dump.c (XMALLOC): Delete macro.
3961
db229724
PA
39622013-08-09 Pedro Alves <palves@redhat.com>
3963
3964 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3965 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3966 (fopen_with_cleanup, add_dump_command): Make static.
3967 * cli/cli-dump.h: Delete file.
3968 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3969 cli/cli-dump.h.
3970
3f12a589
PA
39712013-08-09 Pedro Alves <palves@redhat.com>
3972
3973 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3974 error message.
3975
c718be47
PA
39762013-08-09 Pedro Alves <palves@redhat.com>
3977
156d08c8 3978 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3979 error message.
3980
1e351ed1
PA
39812013-08-09 Pedro Alves <palves@redhat.com>
3982
3983 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3984 (gcore_command): Use tilde_expand here, and when showing the
3985 filename to the user, show the expanded version.
3986
1ed8d800
YQ
39872013-08-09 Yao Qi <yao@codesourcery.com>
3988
3989 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3990 'entryval' is set.
3991
47ecca85
PA
39922013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3993
3994 * gcore.c (create_gcore_bfd): Use tilde_expand.
3995
82a0a75f
YQ
39962013-08-08 Yao Qi <yao@codesourcery.com>
3997
3998 * frame.h (read_frame_local): Declare.
3999 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4000 read_frame_local.
4001 * stack.c (read_frame_local): New.
4002
5c4aa40b
YQ
40032013-08-08 Yao Qi <yao@codesourcery.com>
4004
4005 * mi/mi-cmd-stack.c: Update comments to function
4006 list_args_or_locals.
4007
b93601f3
TT
40082013-08-07 Tom Tromey <tromey@redhat.com>
4009
4010 PR symtab/15028:
4011 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4012 (process_psymtab_comp_unit_reader): Use it.
4013 (process_psymtab_comp_unit): Update. Add "pretend_language"
4014 argument.
4015 (dwarf2_build_psymtabs_hard): Update.
4016 (scan_partial_symbols): Pass CU's language to
4017 process_psymtab_comp_unit.
4018
fa760f46
TT
40192013-08-07 Tom Tromey <tromey@redhat.com>
4020
4021 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4022 (dwarf2_gdb_index_functions): Update.
4023 * psymtab.c (find_symbol_file_from_partial): Remove.
4024 (psym_functions): Update.
4025 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4026 Remove.
4027
bf6d8a91
TT
40282013-08-07 Tom Tromey <tromey@redhat.com>
4029
4030 * symfile.c (set_initial_language): Look up "main" symbol
4031 and use its language.
4032 * symtab.c (find_main_filename): Remove.
4033 * symtab.h (find_main_filename): Remove.
4034
f9125b6c
TT
40352013-08-07 Tom Tromey <tromey@redhat.com>
4036
4037 * dwarf2read.c (recursively_compute_inclusions): Add
4038 "immediate_parent" argument. Set symtab's "user" field
4039 if not set.
4040 (compute_symtab_includes): Update.
4041
fdbb204b
TT
40422013-08-07 Tom Tromey <tromey@redhat.com>
4043
4044 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4045 when adding label symbols.
4046
49de1690
UW
40472013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4048 Ulrich Weigand <uweigand@de.ibm.com>
4049
4050 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4051 * configure.host (powerpc64-*-aix*): Likewise.
4052
b08ee99f
UW
40532013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4054 Ulrich Weigand <uweigand@de.ibm.com>
4055
4056 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4057 is defined.
4058 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4059 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4060 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4061 * configure.ac: Check for ptrace64.
4062 * configure, config.in: Regenerate.
4063
fecf803e
UW
40642013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4065 Ulrich Weigand <uweigand@de.ibm.com>
4066
4067 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4068 Call ptrace64 instead of ptrace if defined.
4069 Add macro addr_ptr to take care of ptrace address argument.
4070 (pdc_read_regs): Likewise.
4071 (pdc_write_regs): Likewise.
4072 (aix_thread_resume): Likewise.
4073 (fetch_regs_kernel_thread): Likewise.
4074 (store_regs_kernel_thread): Likewise.
4075
3bb5e4a8
AB
40762013-08-07 Anton Blanchard <anton@samba.org>
4077
4078 * MAINTAINERS: Add myself to Write After Approval.
4079
12070676
TT
40802013-08-05 Tom Tromey <tromey@redhat.com>
4081
4082 * aix-thread.c (_initialize_aix_thread): Use
4083 complete_target_initialization.
4084 * bsd-uthread.c (_initialize_bsd_uthread): Use
4085 complete_target_initialization.
4086 * dec-thread.c (_initialize_dec_thread): Use
4087 complete_target_initialization.
4088 * ravenscar-thread.c (_initialize_ravenscar): Use
4089 complete_target_initialization.
4090 * sol-thread.c (_initialize_sol_thread): Use
4091 complete_target_initialization.
4092 * spu-multiarch.c (_initialize_spu_multiarch): Use
4093 complete_target_initialization.
4094
7c7b6655
TT
40952013-08-05 Tom Tromey <tromey@redhat.com>
4096
4097 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4098 * ada-lang.c (ada_lookup_simple_minsym): Return
4099 bound_minimal_symbol.
4100 * ada-lang.h (ada_lookup_simple_minsym): Update.
4101 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4102 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4103 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4104 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4105 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4106 * minsyms.c (msymbol_objfile): Remove.
4107 (lookup_minimal_symbol_internal): New function, from
4108 lookup_minimal_symbol.
4109 (lookup_minimal_symbol): Rewrite using
4110 lookup_minimal_symbol_internal.
4111 (lookup_bound_minimal_symbol): New function.
4112 * minsyms.h (msymbol_objfile): Remove.
4113 (lookup_bound_minimal_symbol): Declare.
4114 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4115 * parse.c (write_exp_msymbol): Change parameter to a
4116 bound_minimal_symbol.
4117 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4118 * parser-defs.h (write_exp_msymbol): Update.
4119 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4120 * symfile.c (simple_read_overlay_table): Use
4121 lookup_bound_minimal_symbol.
4122 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4123 (search_symbols): Likewise.
4124 (print_msymbol_info): Take a bound_minimal_symbol argument.
4125 (symtab_symbol_info, rbreak_command): Update.
4126 * symtab.h (struct symbol_search) <msymbol>: Change type
4127 to bound_minimal_symbol.
4128 * valops.c (find_function_in_inferior): Use
4129 lookup_bound_minimal_symbol.
4130 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4131
934b9bac
JK
41322013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4133
4134 Code cleanup.
4135 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4136 to ...
4137 (async_cleanup_sigint_signal_handler): ... this.
4138 (initialize_sigint_signal_handler): Remove declaration.
4139 (handle_remote_sigint): Rename the declaration to ...
4140 (async_handle_remote_sigint): ... this.
4141 (handle_remote_sigint_twice): Rename the declaration to ...
4142 (async_handle_remote_sigint_twice): ... this.
4143 (async_remote_interrupt, async_remote_interrupt_twice)
4144 (remote_interrupt): Remove the declarations.
4145 (remote_interrupt_twice): Rename the declaration ...
4146 (sync_remote_interrupt_twice): ... this.
4147 (sigint_remote_twice_token): Rename the variable to ...
4148 (async_sigint_remote_twice_token): ... this.
4149 (sigint_remote_token): Rename the variable to ...
4150 (async_sigint_remote_token): ... this.
4151 (initialize_sigint_signal_handler): Rename the function to ...
4152 (async_initialize_sigint_signal_handler): ... this. Update the name
4153 inside.
4154 (handle_remote_sigint): Rename the function to ...
4155 (async_handle_remote_sigint): ... this. Update the names inside.
4156 (handle_remote_sigint_twice): Rename the function to ...
4157 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4158 (cleanup_sigint_signal_handler): Rename the function to ...
4159 (async_cleanup_sigint_signal_handler): ... this.
4160 (remote_interrupt): Rename the function to ...
4161 (sync_remote_interrupt): this. Update the names inside.
4162 (remote_interrupt_twice): Rename the function to ...
4163 (sync_remote_interrupt_twice): this. Update the names inside.
4164 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4165 (_initialize_remote): Update the names inside.
4166
3a1115a0
TT
41672013-08-02 Tom Tromey <tromey@redhat.com>
4168
4169 PR symtab/15719:
4170 * breakpoint.c (update_watchpoint, watchpoint_check)
4171 (watch_command_1): Update.
4172 * eval.c (fetch_subexp_value): Add "preserve_errors"
4173 parameter.
4174 * ppc-linux-nat.c (check_condition): Update.
4175 * value.h (fetch_subexp_value): Update.
4176
58b19776
AB
41772013-08-02 Andrew Burgess <aburgess@broadcom.com>
4178
4179 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4180 add_file_handler.
4181
ec94af83
DE
41822013-08-01 Doug Evans <dje@google.com>
4183
7ee85ab1
DE
4184 PR symtab/15691
4185 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4186 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4187 Add assert of sig_entry->dwo_unit == NULL.
4188 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4189 had already been read.
4190 (read_signatured_type): Set per_cu.tu_read.
4191
b846d303
DE
4192 PR symtab/15695
4193 * valops.c (value_struct_elt): Add missing call to check_typedef.
4194 (value_find_oload_method_list): Ditto.
4195
b52109bc
DE
4196 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4197 effectively, struct symbol_search **.
4198 (make_cleanup_free_search_symbols): Change arg to struct
4199 symbol_search **. All callers updated.
4200 (compare_search_syms): Compare symtab file name and block as well.
4201 (search_symbols_equal): New function.
4202 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4203 New args new_head, new_tail. Result is now void. Remove dups after
4204 sorting the symbols.
4205 (search_symbols): Sort all found symbols once, after all have been
4206 found, and remove duplicates. Simplify cleanup tracking of result.
4207 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4208
ec94af83
DE
4209 Further workarounds for binutils/15021.
4210 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4211 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4212 Watch for duplicate symtabs coming from type units.
4213 (compute_symtab_includes): Update call to
4214 recursively_compute_inclusions. Build vector of included symtabs
4215 instead of per_cus.
4216 * symtab.h (symtab_ptr): New typedef.
4217 (DEF_VEC_P (symtab_ptr)): New VEC type.
4218 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4219 instead.
4220
b2ae85cf
AB
42212013-08-01 Andrew Burgess <aburgess@broadcom.com>
4222
4223 * cli/cli-script.c (script_from_file): Remove use of
4224 error_pre_print.
4225 * main.c (captured_main): Remove use of error_pre_print and
4226 quit_pre_print.
4227 * utils.c (error_pre_print, quit_pre_print): Remove.
4228 * utils.h (error_pre_print, quit_pre_print): Likewise.
4229
645eab03
YQ
42302013-08-01 Yao Qi <yao@codesourcery.com>
4231
4232 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4233 with mi_getopt.
4234 (mi_cmd_stack_list_variables): Likewise.
4235
16f92dd4
AB
42362013-07-31 Andrew Burgess <aburgess@broadcom.com>
4237
4238 * exceptions.c (deprecated_throw_reason): Remove.
4239 * exceptions.h (deprecated_throw_reason): Remove.
4240
13f78033
AB
42412013-07-31 Andrew Burgess <aburgess@broadcom.com>
4242
4243 * remote-mips.c (mips_error): Replace use of
4244 deprecated_throw_reason with throw_verror. Use the error message
4245 passed to mips_error as the error message for throw_verror.
4246
039e3c22
AB
42472013-07-31 Andrew Burgess <aburgess@broadcom.com>
4248
4249 * monitor.c (monitor_interrupt_query): Replace use of
4250 deprecated_throw_reason with quit.
4251 * nto-procfs.c (interrupt_query): Likewise.
4252 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4253 * remote-mips.c (mips_kill): Likewise.
4254 * remote.c (interrupt_query): Likewise.
4255
8150913b
AB
42562013-07-31 Andrew Burgess <aburgess@broadcom.com>
4257
4258 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4259 with call to fatal.
4260
de74e63a
YQ
42612013-07-31 Pedro Alves <pedro@codesourcery.com>
4262 Yao Qi <yao@codesourcery.com>
4263
4264 * tracepoint.c (trace_dump_command): Select the current frame.
4265
247f5c4f
DE
42662013-07-30 Doug Evans <dje@google.com>
4267
4268 * dwarf2read.c (process_queue): Add type signature to debug output.
4269
11b4b7cc
AB
42702013-07-30 Andrew Burgess <aburgess@broadcom.com>
4271
4272 * value.c (value_fetch_lazy): Mark optimized out values as such
4273 rather than raising an error.
4274
b0c54aa5
AB
42752013-07-30 Andrew Burgess <aburgess@broadcom.com>
4276
4277 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4278 before checking which bits of the parent, not the child, value are
4279 valid.
4280
97c85fc6
MB
42812013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4282
4283 PR gdb/15715
4284 * top.c: Include "filenames.h".
4285 (set_history_filename): New function.
4286 (init_main): Install it as set hook of the "set history filename"
4287 command.
4288
ff39bb5e
SA
42892013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4290
4291 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4292 attribute parameter.
4293 (dwarf2_const_value_data): Constify struct attribute parameter.
4294 (dwarf2_const_value): Constify struct attribute parameter.
4295 (dwarf2_const_value_attr): Constify struct attribute parameter.
4296 (lookup_die_type): Constify struct attribute parameter.
4297 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4298 (follow_die_ref_or_sig): Constify struct attribute parameter.
4299 (follow_die_ref): Constify struct attribute parameter.
4300 (follow_die_sig): Constify struct attribute parameter.
4301 (get_DW_AT_signature_type): Constify struct attribute parameter.
4302 (get_type_unit_group): Constify struct attribute parameter.
4303 (fill_in_loclist_baton): Constify struct attribute parameter.
4304 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4305 (type_unit_group): Constify struct attribute parameter.
4306
6e5a29e1
SA
43072013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4308
4309 * dwarf2read.c (attr_form_is_block): Make argument const.
4310 (attr_form_is_section_offset): Make argument const.
4311 (attr_form_is_constant): Make argument const.
4312 (attr_form_is_ref): Make argument const.
4313
7771576e
SA
43142013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4315
4316 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4317 All uses updated.
4318 (attr_form_is_ref): Moved below attr_form_is_constant.
4319
a94e8645
DE
43202013-07-29 Doug Evans <dje@google.com>
4321
bb5291d0
DE
4322 * main.c (captured_command_loop): Tweak comment.
4323
b5419e49
DE
4324 * target.c (target_async_permitted_1): Fix comment.
4325
b2d23133
DE
4326 * symtab.c (iterate_over_some_symtabs): Add comment.
4327
a94e8645
DE
4328 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4329
7a60ad40
YQ
43302013-07-27 Yao Qi <yao@codesourcery.com>
4331
4332 * NEWS: Mention that GDBserver now supports hardware
4333 watchpoints on the MIPS GNU/Linux target.
4334
aaee2056
YQ
43352013-07-27 Yao Qi <yao@codesourcery.com>
4336
4337 * Makefile.in (HFILES_NO_SRCDIR): Add
4338 common/mips-linux-watch.h.
4339 (mips-linux-watch.o): New rule.
4340 * common/mips-linux-watch.c: New.
4341 * common/mips-linux-watch.h: New.
4342 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4343 * mips-linux-nat.c: Include mips-linux-watch.h.
4344 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4345 to common/mips-linux-watch.h.
4346 (MAX_DEBUG_REGISTER): Likewise.
4347 (enum pt_watch_style): Likewise.
4348 (struct mips32_watch_regs): Likewise.
4349 (struct mips64_watch_regs): Likewise.
4350 (struct pt_watch_regs): Likewise.
4351 (struct mips_watchpoint): Likewise.
4352 (mips_linux_watch_get_irw_mask): Move to
4353 common/mips-linux-watch.c.
4354 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4355 (mips_linux_watch_get_watchlo): Likewise.
4356 (mips_linux_watch_set_watchlo): Likewise.
4357 (mips_linux_watch_get_watchhi): Likewise.
4358 (mips_linux_watch_set_watchhi): Likewise.
4359 (mips_linux_read_watch_registers): Likewise.
4360 (mips_linux_watch_type_to_irw): Likewise.
4361 (mips_linux_stopped_data_address, fill_mask): Likewise.
4362 (mips_linux_watch_try_one_watch): Likewise.
4363 (mips_linux_watch_populate_regs): Likewise.
4364
b3436450
YQ
43652013-07-27 Yao Qi <yao@codesourcery.com>
4366
4367 * mips-linux-nat.c (get_irw_mask): Rename to ...
4368 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4369 'set' to 'n'. Update function comment. All callers changed.
4370 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4371 function comment. All callers changed.
4372 (get_num_valid): Rename to ...
4373 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4374 'set' to 'n'. Update function comment. All callers changed.
4375 (get_watchlo): Rename to ...
4376 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4377 'set' to 'n'. Update function comment. All callers changed.
4378 (set_watchlo): Rename to ...
4379 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4380 'set' to 'n'. Update function comment. All callers changed.
4381 (get_watchhi): Rename to ...
4382 (mips_linux_watch_get_watchhi): ... this. Update function
4383 comment. All callers changed.
4384 (set_watchhi): Rename to ...
4385 (mips_linux_watch_set_watchhi): ... this. Update function
4386 comment. All callers changed.
4387 (mips_linux_read_watch_registers): Update function comment.
4388 Add new parameters 'lwpid', 'watch_readback', and
4389 'watch_readback_valid'. Update.
4390 (type_to_irw): Rename to ...
4391 (mips_linux_watch_type_to_irw): ... this. Update function
4392 comment. All callers changed.
4393 (fill_mask): Update function comment.
4394 (try_one_watch): Rename to ...
4395 (mips_linux_watch_try_one_watch): ... this. Change the type
4396 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4397 (populate_regs_from_watches): Rename to ...
4398 (mips_linux_watch_populate_regs): ... this. Add parameter
4399 'current_watches'. All callers changed.
4400
9be14b81
YQ
44012013-07-27 Yao Qi <yao@codesourcery.com>
4402
4403 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4404 the code.
4405 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4406 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4407 (struct pt_watch_regs): Likewise.
4408 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4409 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4410 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4411 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4412 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4413
de6f69ad
YQ
44142013-07-27 Yao Qi <yao@codesourcery.com>
4415
4416 * breakpoint.h: Include break-common.h.
4417 (enum target_hw_bp_type): Move to ...
4418 * common/break-common.h: ... here. New.
4419
6f64ef53
PA
44202013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4421
4422 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4423 process group regardless of having tty on stdin.
4424
6107e809
DE
44252013-07-25 Doug Evans <dje@google.com>
4426
4427 * linux-fork.h (detach_fork): Delete.
4428
7fdc1521
TT
44292013-07-25 Tom Tromey <tromey@redhat.com>
4430
4431 PR remote/15256, PR remote/15266:
4432 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4433 * monitor.c (monitor_detach): Use unpush_target.
4434 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4435 * remote-mips.c (mips_detach): Use unpush_target. Don't
4436 call mips_close.
4437 * remote-sim.c (gdbsim_detach): Use unpush_target.
4438 * target.c (pop_target): Remove.
4439 (pop_all_targets_above): Don't call target_close.
4440 (target_close): Assert that the target is unpushed.
4441 * target.h (pop_target): Don't declare.
4442 * tracepoint.c (tfile_open): Use unpush_target.
4443
c22a2b88
TT
44442013-07-25 Tom Tromey <tromey@redhat.com>
4445
4446 * linux-thread-db.c (init_thread_db_ops): Call
4447 complete_target_initialization.
4448 (_initialize_thread_db): Don't call add_target.
4449 * target.c (complete_target_initialization): New function.
4450 (add_target_with_completer): Call it.
4451 * target.h (complete_target_initialization): Declare.
4452
cbb6aada
MK
44532013-07-25 Mark Kettenis <kettenis@gnu.org>
4454
4455 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4456 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4457 (HPPANBSD_SIZEOF_GREGS): New define.
4458 (hppaobsd_supply_gregset): Handle additional registers.
4459 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4460 we provide more registers now.
4461 (hppabsd_supply_gregset): Supply additional registers.
4462 (hppabsd_collect_gregset): Collect additional registers.
4463
17767988
MK
44642013-07-25 Mark Kettenis <kettenis@gnu.org>
4465
4466 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4467 (hppabsd_dwarf2_frame_init_reg): New function.
4468 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4469
fdc8aae8
AB
44702013-07-25 Andrew Burgess <aburgess@broadcom.com>
4471
4472 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4473 'z' format code. Remove error for optimized out values, standard
4474 code will handle these fine.
4475
6fbe845e
AB
44762013-07-25 Andrew Burgess <aburgess@broadcom.com>
4477
4478 * NEWS: Mention new 'z' formatter.
4479 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4480 (_initialize_printcmd): Mention 'z' formatter in help text of the
4481 'x' command.
4482
3373342d
MR
44832013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4484
4485 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4486 formatting.
4487
25f9533e
SDJ
44882013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4489
4490 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4491 interface can evaluate arguments. Fallback to the old mode if it
4492 cannot.
4493 (create_exception_master_breakpoint): Likewise.
4494 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4495 (struct sym_probe_fns elf_probe_fns): Export function above to the
4496 probe interface.
4497 * probe.c (can_evaluate_probe_arguments): New function.
4498 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4499 function pointer.
4500 (can_evaluate_probe_arguments): New function prototype.
4501 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4502 probe interface can evaluate arguments. Fallback to the old mode
4503 if it cannot.
4504 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4505 interface can evaluate arguments. Warning the user if it cannot.
4506 (stap_can_evaluate_probe_arguments): New function.
4507 (struct probe_ops stap_probe_ops): Export function above to the
4508 probe interface.
4509 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4510 New function pointer.
4511
3360c0bf
LM
45122013-07-24 Luis Machado <lgustavo@codesourcery.com>
4513
4514 * Makefile.in (SFILES): Add common/target-common.c.
4515 Add common/target-common.h to headers.
4516 (COMMON_OBS): Add target-common.o.
4517 (target-common.o): New target.
4518 * linux-nat.h (resume_kind): Move to common/target-common.h.
4519 * target.c (target_waitstatus_to_string): Move to
4520 common/target-common.c.
4521 * target.h: Include target-common.h.
4522 (target_waitkind): Move to common/target-common.h.
4523 (target_waitstatus): Likewise.
4524 (TARGET_WNOHANG): Likewise.
4525 * common/target-common.c: New file.
4526 * common/target-common.h: New file.
4527
6656a72d
DE
45282013-07-24 Doug Evans <dje@google.com>
4529
4530 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4531 a warning.
4532
6df81a63
YQ
45332013-07-23 Yao Qi <yao@codesourcery.com>
4534
4535 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4536 parameter 'gdbarch'.
4537 (i386_stack_tramp_frame_sniffer): Caller update.
4538 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4539 parameter 'gdbarch' and 'target'.
4540 (i386_linux_core_read_description): Caller update.
4541 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4542 Likewise.
4543 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4544 declaration.
4545
365156ad
TT
45462013-07-23 Tom Tromey <tromey@redhat.com>
4547
4548 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4549 2013-07-22.
4550
046ac79f
JK
45512013-07-22 Doug Evans <dje@google.com>
4552
4553 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4554 * exec.c (exec_close): Update call to remove_target_sections.
4555 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4556 * solib.c (update_solib_list): Ditto.
4557 (reload_shared_libraries_1): Ditto.
4558 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4559 * target.h (struct target_section): Rename key to owner.
4560 All uses updated.
046ac79f 4561
29b2cc46
TT
45622013-07-22 Tom Tromey <tromey@redhat.com>
4563
4564 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4565
d1160018
TT
45662013-07-22 Tom Tromey <tromey@redhat.com>
4567
4568 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4569 Simplify cleanup handling.
4570
2f324bf6
TT
45712013-07-22 Tom Tromey <tromey@redhat.com>
4572
4573 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4574 on all return paths.
4575
e23b9d6e
UW
45762013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4577
4578 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4579 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4580 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4581
1cf55f60
PM
45822013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4583
4584 * top.c (print_gdb_version): Add help, apropos description and
4585 url to online documentation.
4586
fa876972
HZ
45872013-07-19 Hui Zhu <hui@codesourcery.com>
4588
4589 PR gdb/15692
4590 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4591
1527aea8
YQ
45922013-07-19 Yao Qi <yao@codesourcery.com>
4593
4594 * target.c (update_current_target): Change the default action
4595 of 'to_traceframe_info' from tcomplain to return_zero.
4596 * target.h (struct target_ops) <to_traceframe_info>: Add more
4597 comments.
4598 * valops.c (read_value_memory): Call
4599 traceframe_available_memory unconditionally.
4600
886f230e
YQ
46012013-07-18 Yao Qi <yao@codesourcery.com>
4602
4603 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4604 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4605 symbol without prefix. If found, set its type to
4606 'mst_solib_trampoline'.
4607
16419bae
DE
46082013-07-17 Doug Evans <dje@google.com>
4609
e7045703
DE
4610 * NEWS: Mention "set print raw frame-arguments".
4611 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4612 * stack.c (print_raw_frame_arguments): New static global.
4613 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4614 (_initialize_stack): New command "set/show print raw frame-arguments".
4615 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4616 (set_print_raw, show_print_raw): New functions.
4617 (_initialize_valprint): New prefix command "set/show print raw".
4618 * valprint.h (value_print_options): Improve comments.
4619
453e48a5
DE
4620 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4621 of all *list variables.
4622
16419bae
DE
4623 * gdbcmd.h (togglelist): Delete.
4624 * cli/cli-cmds.c (togglelist): Delete.
4625 (init_cmd_lists): Update.
4626 * cli/cli-cmds.h (togglelist): Delete.
4627
626f2d1c
TT
46282013-07-17 Tom Tromey <tromey@redhat.com>
4629
4630 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4631 dwarf2_per_objfile.
4632
57e6060e
DE
46332013-07-16 Doug Evans <dje@google.com>
4634
4635 * nto-tdep.c (nto_relocate_section_addresses): Update,
4636 target_section.bfd deleted.
4637 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4638 * s390-tdep.c (s390_load): Ditto.
4639 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4640
5ea5559b
AB
46412013-07-16 Andrew Burgess <aburgess@broadcom.com>
4642
4643 * common/format.c (parse_format_string): Add checks for NULL
4644 character before calling strchr.
4645
2b2848e2
DE
46462013-07-16 Doug Evans <dje@google.com>
4647
2c571006
DE
4648 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4649 temp_pathname argument.
4650 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4651 when opening the file fails.
4652
2b2848e2
DE
4653 * target.h (struct target_section): Delete member bfd.
4654 All users updated to use the_bfd_section->owner instead.
4655 * exec.c (add_to_section_table): Assert bfd is expected value.
4656 Remove initialization of target_section.bfd.
4657 (remove_target_sections): Update.
4658 (section_table_available_memory): Update.
4659 (section_table_xfer_memory_partial): Update.
4660 (print_section_info): Update.
4661 (exec_set_section_address): Update.
4662 * record-full.c (record_full_core_xfer_partial): Update.
4663 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4664 * solib-target.c (solib_target_relocate_section_addresses): Update.
4665 * symfile.c (build_section_addr_info_from_section_table): Update.
4666 * target.c (memory_xfer_live_readonly_partial): Update.
4667 (memory_xfer_partial_1): Update.
4668
926bf92d
UW
46692013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4670
4671 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4672 now available for embedded (BookE) and server (BookS) processors,
4673 correct mentions of 'booke' and adjust comments accordingly in order to
4674 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4675 (have_ptrace_booke_interface): Rename function and variable
4676 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4677 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4678 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4679 'hwdebug_point_cmp'. Update all uses.
4680 (booke_find_thread_points_by_tid): Rename function
4681 'booke_find_thread_points_by_tid' to
4682 'hwdebug_find_thread_points_by_tid'. Update all uses.
4683 (booke_insert_point): Rename function 'booke_insert_point' to
4684 'hwdebug_insert_point'. Update all uses.
4685 (booke_remove_point): Rename function 'booke_remove_point' to
4686 'hwdebug_remove_point'. Update all uses.
4687
d929bc19
MR
46882013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4689
4690 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4691 numbers with enum values.
4692
054e8d9e
AA
46932013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4694
4695 PR threads/13217
4696 * thread.c (thread_apply_all_command): Check for valid threads
4697 and thread count.
4698 (thread_array_cleanup): New struct.
4699 (set_thread_refcount): New function.
4700
cf006359
AB
47012013-07-11 Andrew Burgess <aburgess@broadcom.com>
4702
4703 * infcmd.c (default_print_one_register_info): Reuse function
4704 print_hex_chars.
4705
94e36acc
TT
47062013-07-10 Tom Tromey <tromey@redhat.com>
4707
4708 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4709 (ada-exp.o): New target.
4710
915dd369
SDJ
47112013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4712
4713 * mt-tdep.c (mt_registers_info): Call
4714 get_no_prettyformat_print_options instead of
4715 get_raw_print_options (regression by last patch from Doug
4716 Evans).
4717
eca07816
JB
47182013-07-09 Pedro Alves <palves@redhat.com>
4719
4720 Checked in by Joel Brobecker <brobecker@adacore.com>.
4721 * ada-lang.c (coerce_unspec_val_to_type): Use
4722 value_optimized_out_const.
4723 * value.c (value_optimized_out_const): New function.
4724 * value.h (value_optimized_out_const): New declaration.
4725
2a998fc0
DE
47262013-07-09 Doug Evans <dje@google.com>
4727
4728 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4729 Enum values rename as well. All uses updated.
4730 * valprint.h (value_print_options): Rename member pretty to
4731 pretty format. Rename member prettyprint_arrays to
4732 prettyformat_arrays. Rename member prettyprint_structs to
4733 prettyformat_structs. All uses updated.
4734 (get_no_prettyformat_print_options): Renamed from
4735 get_raw_print_options.
4736 * valprint.c (get_no_prettyformat_print_options): Renamed from
4737 get_raw_print_options. All callers updated.
4738 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4739 All callers updated.
4740 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4741 All callers updated.
4742 (_initialize_valprint): Improve help text for "set print pretty" and
4743 "set print arrays".
4744
466c1fca
AB
47452013-07-09 Andrew Burgess <aburgess@broadcom.com>
4746
4747 * value.c (value_bits_valid): Revert previous change, and change
4748 by Pedro on 2013-07-04, due to regressions in
4749 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4750
ad0f0303
AB
47512013-07-08 Andrew Burgess <aburgess@broadcom.com>
4752 Pedro Alves <palves@redhat.com>
4753
4754 * value.c (value_bits_valid): If the value is not lval_computed
4755 or has no check validity handler then the answer is the
4756 optimized_out flag, otherwise defer to the handler.
4757
b187bec1
EZ
47582013-07-06 Eli Zaretskii <eliz@gnu.org>
4759
48d1d6f5
EZ
4760 * top.c (print_gdb_configuration): Explain in output of
4761 --configuration what does "relocatable" mean.
4762
b187bec1
EZ
4763 * main.c (print_gdb_help): Regroup options in the --help text.
4764 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4765 the relevant discussions.
4766
52d361e1
YQ
47672013-07-06 Yao Qi <yao@codesourcery.com>
4768
4769 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4770 Remove parameter 'lsal'.
4771 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4772 to inner block. Caller update.
4773 (base_breakpoint_create_breakpoints_sal): Update.
4774 (bkpt_create_breakpoints_sal): Likewise.
4775 (tracepoint_create_breakpoints_sal): Likewise.
4776 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4777 element 0 of vector 'canonical->sals'.
4778
e1ec1b42
LM
47792013-07-05 Luis Machado <lgustavo@codesourcery.com>
4780
4781 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4782 register number instead of the pseudo register one.
4783 (rs6000_dwarf2_reg_to_regnum): Likewise.
4784
7195e6f0
PA
47852013-07-04 Pedro Alves <palves@redhat.com>
4786
4787 * findvar.c (value_of_register): Use allocate_optimized_out_value
4788 if the register has been optimized out, instead of
4789 set_value_optimized_out.
4790 * frame-unwind.c (frame_unwind_got_optimized): Use
4791 allocate_optimized_out_value.
4792
58722cac
PA
47932013-07-04 Pedro Alves <palves@redhat.com>
4794
4795 * value.c (value_bits_valid): If the value is not lval_computed,
4796 or doesn't have a check_validity hook, assume the value is entirely
4797 valid.
4798
691a26f5
AB
47992013-07-04 Andrew Burgess <aburgess@broadcom.com>
4800
4801 * stack.c (read_frame_arg): No longer fetch lazy values.
4802 * value.c (value_optimized_out): If the value is not already
4803 marked optimized out, and is lazy then fetch it.
4804 (value_primitive_field): Move optimized out check to later in the
4805 function, after we have loaded any lazy values.
4806 (value_fetch_lazy): Use optimized out flag directly rather than
4807 calling optimized_out method.
4808
a58e2656
AB
48092013-07-04 Andrew Burgess <aburgess@broadcom.com>
4810
4811 * valops.c: Don't include "user-regs.h".
4812 (value_fetch_lazy): Moved to value.c.
4813 * value.c: Include "user-regs.h".
4814 (value_fetch_lazy): Moved from valops.c.
4815
bd885420
YQ
48162013-07-04 Yao Qi <yao@codesourcery.com>
4817
4818 Revert:
4819 2013-06-27 Yao Qi <yao@codesourcery.com>
4820
4821 * common/create-version.sh: Update comments. Handle the case
4822 that TARGET_ALIAS is empty.
4823
17ef446e
PA
48242013-07-03 Pedro Alves <palves@redhat.com>
4825
4826 * Makefile.in (config.status): Depend on development.sh.
4827 (aclocal_m4_deps): Add libmcheck.m4.
4828 * acinclude.m4: Include libmcheck.m4.
4829 * configure.ac: Source development.sh instead of setting
4830 'development' here. --enable-libmcheck/--disable-libmcheck code
4831 factored out to GDB_AC_LIBMCHECK. Run it.
4832 * development.sh: New file.
4833 * libmcheck.m4: New file.
4834 * configure: Regenerate.
4835
ac6dd50f
TT
48362013-07-02 Tom Tromey <tromey@redhat.com>
4837
4838 * contrib/ari/update-web-ari.sh: Update for version.in change.
4839
bd1df410
TT
48402013-07-02 Tom Tromey <tromey@redhat.com>
4841
4842 * common/ptid.h: Comment fixes.
4843
4db1a1dc
TT
48442013-07-01 Tom Tromey <tromey@redhat.com>
4845
4846 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4847 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4848 (dwarf2_read_index, create_all_comp_units): Update.
4849
dd9aa048
TT
48502013-07-01 Tom Tromey <tromey@redhat.com>
4851
4852 * configure.ac (build_warnings): Add -Wold-style-definition.
4853 * configure: Rebuild.
4854 * machoread.c (_initialize_machoread): Use "(void)".
4855 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4856 use "(void)".
4857
44d100c3
TT
48582013-07-01 Tom Tromey <tromey@redhat.com>
4859
4860 * configure.ac (build_warnings): Add -Wold-style-declaration.
4861 * configure: Rebuild.
4862 * dsrec.c (make_srec): Use "static const", not "const static".
4863 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4864 not "const static".
4865 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4866 Use "static const", not "const static".
4867 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4868 not "const static".
4869 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4870 not "const static".
4871 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4872 not "const static".
4873 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4874 not "const static".
4875 (v850_dbtrap_breakpoint_from_pc): Likewise.
4876 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4877 not "const static".
4878
2945b807
TT
48792013-07-01 Tom Tromey <tromey@redhat.com>
4880
4881 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4882 * configure: Rebuild.
4883
d8d2a3ee
PA
48842013-07-01 Pedro Alves <palves@redhat.com>
4885
4886 * defs.h: Include "pathmax.h".
4887 * utils.c: Don't include sys/param.h.
4888 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4889 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4890 instead of MAXPATHLEN.
4891 * solib-sunos.c: Don't include sys/param.h.
4892 * xcoffread.c: Don't include sys/param.h.
4893 * bsd-kvm.c: Don't include sys/param.h.
4894 * darwin-nat.c: Don't include sys/param.h.
4895 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4896 * darwin-nat-info.c: Don't include sys/param.h.
4897 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4898 MAXPATHLEN.
4899 * i386obsd-nat.c: Don't include sys/param.h.
4900 * inf-child.c: Don't include sys/param.h.
4901 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4902 * linux-fork.c: Don't include sys/param.h.
4903 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4904 * linux-nat.c: Don't include sys/param.h.
4905 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4906 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4907 * m68klinux-nat.c: Don't include sys/param.h.
4908 * nbsd-nat.c: Don't include sys/param.h.
4909 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4910 * ppc-linux-nat.c: Don't include sys/param.h.
4911 * rs6000-nat.c: Don't include sys/param.h.
4912 * spu-linux-nat.c. Don't include sys/param.h.
4913 * windows-nat.c: Don't include sys/param.h.
4914 * xtensa-linux-nat.c: Don't include sys/param.h.
4915 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4916
38ec2207
PA
49172013-07-01 Pedro Alves <palves@redhat.com>
4918
4919 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4920 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4921 * gnulib/aclocal.m4: Regenerate.
4922 * gnulib/config.in: Regenerate.
4923 * gnulib/configure: Regenerate.
4924 * gnulib/import/pathmax.h: New file.
4925 * gnulib/import/Makefile.am: Regenerate.
4926 * gnulib/import/Makefile.in: Regenerate.
4927 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4928 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4929 * gnulib/import/m4/pathmax.m4: New file.
4930
e655c1a2
PA
49312013-07-01 Pedro Alves <palves@redhat.com>
4932
4933 * configure.ac (GDBINIT): Define, depending on host.
4934 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4935 * top.c (PATH_MAX): Delete fallback definition.
4936 (GDBINIT_FILENAME): Delete.
4937 (gdbinit): Reimplement as const char array set to the GDBINIT
4938 string constant.
4939 * top.h (gdbinit): Make const.
4940 * configure, config.in: Regenerate.
4941
50dd9793
PA
49422013-07-01 Pedro Alves <palves@redhat.com>
4943
4944 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4945 * cli/cli-cmds.h (source_script): Likewise.
4946 * exceptions.c (catch_command_errors_const): New function.
4947 * exceptions.h (catch_command_errors_const): Declare.
4948 * main.c (get_init_files): Make parameters const, and adjust.
4949 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4950 'local_gdbinit' locals const. Adjust to use
4951 catch_command_errors_const.
4952 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4953 'local_gdbinit' locals const.
4954
bc7dea8d
PA
49552013-07-01 Pedro Alves <palves@redhat.com>
4956
4957 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4958 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4959 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4960 <unistd.h>.
4961
8839a007
PA
49622013-07-01 Pedro Alves <palves@redhat.com>
4963
4964 Import the "unistd" gnulib module.
4965 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4966 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4967 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4968 import/m4/unistd_h.m4.
4969 * gnulib/aclocal.m4: Renenerate.
4970 * gnulib/config.in: Renenerate.
4971 * gnulib/configure: Renenerate.
4972 * gnulib/import/Makefile.am: Renenerate.
4973 * gnulib/import/Makefile.in: Renenerate.
4974 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4975 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4976 * gnulib/import/m4/off_t.m4: New file.
4977 * gnulib/import/m4/ssize_t.m4: New file.
4978 * gnulib/import/m4/sys_types_h.m4: New file.
4979 * gnulib/import/m4/unistd_h.m4: New file.
4980 * gnulib/import/sys_types.in.h: New file.
4981 * gnulib/import/unistd.c: New file.
4982 * gnulib/import/unistd.in.h: New file.
4983
8c0da261
PA
49842013-07-01 Pedro Alves <palves@redhat.com>
4985
4986 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4987 defined instead of checking HAVE_UNISTD_H.
4988
3574124b
PA
49892013-07-01 Pedro Alves <palves@redhat.com>
4990
4991 Reimport gnulib from scratch.
4992 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4993 import/m4/onceonly.m4.
4994 * gnulib/aclocal.m4: Renegerate.
4995 * gnulib/config.in: Renegerate.
4996 * gnulib/configure: Renegerate.
4997 * gnulib/import/Makefile.in: Renegerate.
4998 * gnulib/import/extra/update-copyright: Renegerate.
4999 * gnulib/import/m4/onceonly.m4: Delete.
5000
702dc4fd
PA
50012013-07-01 Pedro Alves <palves@redhat.com>
5002
5003 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5004
47e1ce27
JK
50052013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5006
5007 Code cleanup.
5008 * remote.c (async_remote_interrupt_twice): Make it static.
5009 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5010
e82839d4
SDJ
50112013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5012
5013 * ia64-linux-tdep.c: Include <ctype.h>.
5014 (ia64_linux_stap_is_single_operand): New function.
5015 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5016
d6c2da54
TT
50172013-06-28 Tom Tromey <tromey@redhat.com>
5018
5019 * Makefile.in (version.c): Use version.in, not
5020 common/version.in.
5021 * common/create-version.sh: Likewise.
5022 * common/version.in: Move...
5023 * version.in: ...here.
5024
74da6f00
PA
50252013-06-28 Pedro Alves <palves@redhat.com>
5026
5027 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5028 here.
5029 * utils.h (pagination_enabled): Declare.
5030
d32dc48e
PA
50312013-06-28 Pedro Alves <palves@redhat.com>
5032
5033 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5034 Move higher up in file.
5035
0edd9e3b
TT
50362013-06-28 Tom Tromey <tromey@redhat.com>
5037
5038 * tracepoint.c (deprecated_readline_begin_hook)
5039 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5040 declare.
5041
4eb59108
PA
50422013-06-28 Pedro Alves <palves@redhat.com>
5043
5044 PR tui/14880
5045 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5046 checking if they're available.
5047 * value.c (value_available_contents_eq): Change comment.
5048 * value.h (value_available_contents_eq): Expand comment.
5049
97b17156
TT
50502013-06-27 Tom Tromey <tromey@redhat.com>
5051
5052 * target.c (find_run_target): Remove.
5053 * target.h (find_run_target): Remove.
5054
6a3bfc5c
TT
50552013-06-27 Tom Tromey <tromey@redhat.com>
5056
5057 * corelow.c (core_gdbarch): Now static.
5058
c9ef825d
TT
50592013-06-27 Tom Tromey <tromey@redhat.com>
5060
5061 * target.c (target_struct_index): Remove.
5062
e5823f1c
PA
50632013-06-27 Pedro Alves <palves@redhat.com>
5064
5065 * infrun.c: Remove comment describing the 'stepping over runtime
5066 loader dynamic symbol resolution code' mechanism; moved to
5067 gdbint.texinfo.
5068
97f8dd09
PA
50692013-06-27 Pedro Alves <palves@redhat.com>
5070
5071 * exceptions.c (catch_command_errors): Remove spurious space.
5072 * exceptions.h (catch_command_errors): Second parameter is "arg",
5073 not "command".
5074
02b1871e
YQ
50752013-06-27 Yao Qi <yao@codesourcery.com>
5076
5077 * common/create-version.sh: Update comments. Handle the case
5078 that TARGET_ALIAS is empty.
5079
bb1b1cf1
PA
50802013-06-26 Pedro Alves <palves@redhat.com>
5081
5082 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5083 comment.
5084
7b624e71
PA
50852013-06-26 Pedro Alves <palves@redhat.com>
5086
5087 * infrun.c: Update comments on stepping over runtime loader
5088 dynamic symbol resolution code.
5089
74e5a346
SDJ
50902013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5091
5092 * ax-gdb.h (union exp_element): Forward declare.
5093 * parser-defs.h: Include expression.h.
5094
a2fb2cee
MR
50952013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5096
5097 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5098
cdba14e0
DK
50992013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5100
5101 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5102
f30aa5af
DK
51032013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5104
5105 Fix trace-status to output proper start-time and stop-time.
5106 * tracepoint.c (trace_status_command): Fix type of printf arg to
5107 prevent improper type conversion.
5108 (trace_status_mi): Likewise.
5109
1aee363c
MR
51102013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5111
5112 * mips-tdep.c (mips_next_pc): Fix a typo.
5113
3356937a
MR
51142013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5115
5116 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5117
dc673c81
YQ
51182013-06-26 Pedro Alves <pedro@codesourcery.com>
5119 Yao Qi <yao@codesourcery.com>
5120
5121 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5122 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5123 * mi/mi-main.c (print_variable_or_computed): New function.
5124 (mi_cmd_trace_frame_collected): New function.
5125 * tracepoint.c (find_trace_state_variable_by_number): New.
5126 (struct traceframe_info): Move to tracepoint.h
5127 (struct collection_list): Likewise.
5128 (do_collect_symbol): Include locals and arguments in the
5129 collected variables list.
5130 (clear_collection_list): Clear wholly collected variables list
5131 and computed variables list.
5132 (append_exp): New function.
5133 (encode_actions_1): Include variables in the wholly
5134 collected variables list. Include memory ranges and
5135 full-fledged expressions in the computed expressions list.
5136 (encode_actions): Move some code to ...
5137 Return the cleanup chain.
5138 (encode_actions_rsp): ... here. New function.
5139 (get_traceframe_location, get_traceframe_info): Remove static.
5140 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5141 (struct collection_list): Moved from tracepoint.c. Add two
5142 new fields 'wholly_collected' and 'computed'.
5143 (find_trace_state_variable_by_number): Declare.
5144 (encode_actions): Adjust declaration.
5145 (encode_actions_rsp): Declare.
5146 (get_traceframe_info, get_traceframe_location): Declare.
5147
5148 * NEWS: Mention new MI command -trace-frame-collected.
5149
28a93511
YQ
51502013-06-26 Pedro Alves <pedro@codesourcery.com>
5151 Yao Qi <yao@codesourcery.com>
5152
5153 * ctf.c (ctf_traceframe_info): Push trace state variables
5154 present in the trace data into the traceframe info object.
5155 * breakpoint.c (DEF_VEC_I): Remove.
5156 * common/filestuff.c (DEF_VEC_I): Likewise.
5157 * dwarf2loc.c (DEF_VEC_I): Likewise.
5158 * mi/mi-main.c (DEF_VEC_I): Likewise.
5159 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5160 * features/traceframe-info.dtd: Add tvar element and its
5161 attributes.
5162 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5163 (build_traceframe_info): Push trace state variables present in
5164 the trace data into the traceframe info object.
5165 (traceframe_info_start_tvar): New function.
5166 (tvar_attributes): New.
5167 (traceframe_info_children): Add "tvar" element.
5168 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5169
5170 * NEWS: Mention the change in GDB and GDBserver.
5171
ddacd3c8
YQ
51722013-06-26 Pedro Alves <pedro@codesourcery.com>
5173 Yao Qi <yao@codesourcery.com>
5174
5175 * tracepoint.c (trace_dump_command): Move code to ...
5176 (get_traceframe_location): ... here. New.
5177
05796b35
YQ
51782013-06-26 Pedro Alves <pedro@codesourcery.com>
5179 Yao Qi <yao@codesourcery.com>
5180
5181 * tracepoint.c (trace_dump_command): GDB emits an error
5182 instead of a warning when a traceframe is not selected.
5183
cbfa3b61
YQ
51842013-06-26 Pedro Alves <pedro@codesourcery.com>
5185 Yao Qi <yao@codesourcery.com>
5186
5187 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5188 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5189 in collection_list.
5190 (do_clear_collection_list, init_collection_list): New.
5191 (encode_actions): Add local variables 'tracepoint_list' and
5192 'stepping_list'. Call init_collection_list and make cleanup
5193 which calls do_clear_collection_list. Don't call
5194 clear_collection_list.
5195 (_initialize_tracepoint): Delete references to
5196 'tracepoint_list' and 'stepping_list'.
5197
6e2048d3
TT
51982013-06-25 Tom Tromey <tromey@redhat.com>
5199
5200 * common/create-version.sh (date): Use "$", not "$$" in sed
5201 expression.
5202
42059f0e
KB
52032013-06-25 Kevin Buettner <kevinb@redhat.com>
5204
5205 * NEWS (New targets): Add entry for TI MSP430.
5206
a0743c90
YQ
52072013-06-25 Yao Qi <yao@codesourcery.com>
5208
5209 * remote.c (remote_start_remote): Move code to upload tsv
5210 earlier.
5211
9d6e6e84
HZ
52122013-06-25 Yao Qi <yao@codesourcery.com>
5213 Hui Zhu <hui@codesourcery.com>
5214 Pedro Alves <palves@redhat.com>
5215
5216 PR breakpoints/15075
5217 PR breakpoints/15434
5218 * breakpoint.c (bpstat_stop_status): Call
5219 b->ops->after_condition_true.
5220 (update_dprintf_command_list): Don't append "continue" command
5221 to the command list of dprintf breakpoint.
5222 (base_breakpoint_after_condition_true): New function.
5223 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5224 (dprintf_after_condition_true): New function.
5225 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5226 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5227
586cf749
KB
52282013-06-24 Kevin Buettner <kevinb@redhat.com>
5229
5230 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5231 (ALLDEPFILES): Add msp430-tdep.c.
5232 * configure.tgt (msp430*-*-elf): New target.
5233 * msp430-tdep.c: New file.
5234
1bbce132
MR
52352013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5236
5237 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5238 microMIPS synthetic symbols.
5239
3e5d3a5a
MR
52402013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5241
5242 * objfiles.h (pc_in_section): New prototype.
5243 (in_plt_section): Remove name argument, replace prototype with
5244 static inline function.
5245 * mips-tdep.h: Include "objfiles.h".
5246 (in_mips_stubs_section): New function.
5247 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5248 in_solib_call_trampoline member.
5249 (hppa_in_solib_call_trampoline): Remove name argument.
5250 * objfiles.c (pc_in_section): New function.
5251 (in_plt_section): Remove function.
5252 * mips-linux-tdep.c: Include "objfiles.h".
5253 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5254 name argument. Return 1 rather than the low 16-bit halfword of
5255 any instruction examined.
5256 (mips_linux_in_dynsym_resolve_code): Update
5257 mips_linux_in_dynsym_stub call accordingly.
5258 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5259 rather than an equivalent hand-coded sequence.
5260 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5261 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5262 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5263 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5264 in_opd_section.
5265 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5266 on call to tdep->in_solib_call_trampoline.
5267 (hppa_in_solib_call_trampoline): Remove name argument, update
5268 according to in_plt_section change.
5269 (hppa_skip_trampoline_code): Update according to in_plt_section
5270 change.
5271 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5272 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5273 Likewise.
5274 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5275 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5276 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5277 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5278 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5279 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5280 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5281 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5282 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5283 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5284 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5285 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5286 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5287
b9b26a16
JB
52882013-06-24 Joel Brobecker <brobecker@adacore.com>
5289
5290 * common/create-version.sh: Fix expansion of $host_alias
5291 and $target_alias in generation of HOST_NAME and TARGET_NAME
5292 (resp.).
5293
01208463
TT
52942013-06-24 Tom Tromey <tromey@redhat.com>
5295
5296 * common/create-version.sh: New file.
5297 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5298 create-version.sh.
5299 (HFILES_NO_SRCDIR): Use common/version.h.
5300 * version.in: Move to ...
5301 * common/version.in: ... here. Replace date with "DATE".
5302 * version.h: Move to ...
5303 * common/version.h: ... here.
5304
bb6b9a5e
JB
53052013-06-21 Joel Brobecker <brobecker@adacore.com>
5306
5307 * gdb/gnulib/Makefile.in: Update date in copyright header.
5308 * gdb/gnulib/configure.ac: Ditto.
5309 * gdb/gnulib/update-gnulib.sh: Ditto.
5310
c3b18ee7
JB
53112013-06-21 Joel Brobecker <brobecker@adacore.com>
5312
5313 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5314 "gdb/gnulib/import".
5315
85d3b769
WN
53162013-06-21 Will Newton <will.newton@linaro.org>
5317
5318 * doublest.c (ldfrexp): Remove function.
5319 (convert_doublest_to_floatformat): Call frexpl instead of
5320 ldfrexp.
5321
88b48903
WN
53222013-06-21 Will Newton <will.newton@linaro.org>
5323
5324 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5325 * gnulib/aclocal.m4: Regenerate.
5326 * gnulib/config.in: Regenerate.
5327 * gnulib/configure: Regenerate.
5328 * gnulib/import/Makefile.am: Update.
5329 * gnulib/import/Makefile.in: Update.
5330 * gnulib/import/m4/gnulib-cache.m4: Update.
5331 * gnulib/import/m4/gnulib-comp.m4: Update.
5332 * gnulib/import/float+.h: Import.
5333 * gnulib/import/float.c: Import.
5334 * gnulib/import/float.in.h: Import.
5335 * gnulib/import/fpucw.h: Import.
5336 * gnulib/import/frexp.c: Import.
5337 * gnulib/import/frexpl.c: Import.
5338 * gnulib/import/isnan.c: Import.
5339 * gnulib/import/isnand-nolibm.h: Import.
5340 * gnulib/import/isnand.c: Import.
5341 * gnulib/import/isnanl-nolibm.h: Import.
5342 * gnulib/import/isnanl.c: Import.
5343 * gnulib/import/itold.c: Import.
5344 * gnulib/import/m4/exponentd.m4: Import.
5345 * gnulib/import/m4/exponentl.m4: Import.
5346 * gnulib/import/m4/float_h.m4: Import.
5347 * gnulib/import/m4/fpieee.m4: Import.
5348 * gnulib/import/m4/frexp.m4: Import.
5349 * gnulib/import/m4/frexpl.m4: Import.
5350 * gnulib/import/m4/isnand.m4: Import.
5351 * gnulib/import/m4/isnanl.m4: Import.
5352 * gnulib/import/m4/math_h.m4: Import.
5353 * gnulib/import/math.c: Import.
5354 * gnulib/import/math.in.h: Import.
5355
4353c9e6
JK
53562013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5357
5358 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5359 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5360 signature_INTEL_edx comparisons.
5361
e3e06db3
DE
53622013-06-20 Doug Evans <dje@google.com>
5363
6ac97d4c
DE
5364 symtab/15652
5365 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5366 All callers updated.
5367 (open_dwp_file): If we can't find the dwp file, search the basename
5368 in debug-file-directory.
5369
93417882
DE
5370 * dwarf2read.c (struct dwp_file): Fix comment.
5371 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5372
e3e06db3
DE
5373 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5374 better.
5375
0878d0fa
YQ
53762013-06-20 Yao Qi <yao@codesourcery.com>
5377
5378 * breakpoint.c (create_breakpoint): Fix code indentation.
5379
023fa29b
YQ
53802013-06-20 Yao Qi <yao@codesourcery.com>
5381
5382 * breakpoint.c (create_breakpoints_sal_default): Remove
5383 parameter 'lsal'. Update declaration.
5384 (bkpt_create_breakpoints_sal): Caller update.
5385 (tracepoint_create_breakpoints_sal): Likewise.
5386
c898adb7
YQ
53872013-06-20 Pedro Alves <pedro@codesourcery.com>
5388 Yao Qi <yao@codesourcery.com>
5389
5390 * NEWS: Mention the new option '--skip-unavailable' of command
5391 -data-list-register-values.
5392 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5393 --skip-unavailable option. Adjust to use output_register.
5394 (output_register): Add new 'skip_unavailable' parameter.
5395 Handle it.
5396
4d157a3d
MF
53972013-06-19 Mike Frysinger <vapier@gentoo.org>
5398
5399 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5400 common/i386-gcc-cpuid.h.
5401 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5402 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5403 Copy the latest version from upstream gcc.
5404 * common/linux-btrace.c: Include i386-cpuid.h.
5405 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5406 call to i386_cpuid.
5407 (cpu_supports_btrace): Likewise.
5408 * go32-nat.c: Include i386-cpuid.h.
5409 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5410
1ce4db08
DE
54112013-06-19 Doug Evans <dje@google.com>
5412
5413 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5414 (get_section_index): Ditto.
5415
0e4777df
TT
54162013-06-19 Tom Tromey <tromey@redhat.com>
5417
5418 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5419 "dprintf" help.
5420
3190f0c6
DE
54212013-06-18 Doug Evans <dje@google.com>
5422
5423 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5424 before using it.
5425 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5426 Move test of cu_index closer to use. Print complaint if cu_index
5427 is bad.
5428
8b89a20a
JB
54292013-06-18 Joel Brobecker <brobecker@adacore.com>
5430
5431 * machoread.c (oso_vector): Delete this global.
5432 (macho_register_oso): Add new parameter "oso_vector_ptr".
5433 Use it instead of the "oso_vector" global.
5434 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5435 (macho_symfile_read): Use a local oso_vector, to be free'ed
5436 at the end of this function, in place of the old "oso_vector"
5437 global. Update various function calls accordingly. Use one
5438 single cleanup chain for the entire function.
5439
59b0c7c1
JB
54402013-06-18 Joel Brobecker <brobecker@adacore.com>
5441
937c708c 5442 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5443 DWARF2_PER_OBJFILE by uses of DATA instead.
5444
427cd150
TT
54452013-06-18 Tom Tromey <tromey@redhat.com>
5446
5447 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5448 argument.
5449 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5450 Special case signals other than GDB_SIGNAL_TRAP.
5451 (explains_signal_watchpoint): New function.
5452 (base_breakpoint_explains_signal): Add 'sig' argument.
5453 (initialize_breakpoint_ops): Set 'explains_signal' method for
5454 watchpoints.
5455 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5456 signal argument.
5457 (bpstat_explains_signal): Likewise.
5458 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5459
2d57700b
TT
54602013-06-18 Tom Tromey <tromey@redhat.com>
5461
5462 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5463
ac475191
TT
54642013-06-18 Tom Tromey <tromey@redhat.com>
5465
5466 * python/python.c (finish_python_initialization): Decref
5467 'pythondir' on failure path as well.
5468
5bd1ef56
TT
54692013-06-18 Tom Tromey <tromey@redhat.com>
5470
5471 PR symtab/15391:
5472 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5473 after taking bits_to_skip into account. Sign extend byte_offset.
5474 * utils.h (gdb_sign_extend): Declare.
5475 * utils.c (gdb_sign_extend): New function.
5476
92fac807
JK
54772013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5478
5479 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5480
2d503272
PM
54812013-06-17 Pierre Muller <muller@sourceware.org>
5482
5483 * corelow.c (core_open): Print GDB signal name instead of target
5484 signal number.
5485
6916fd98
MF
54862013-06-17 Mike Frysinger <vapier@gentoo.org>
5487
5488 * .gitignore: Add /gcore.
5489
9c02c129
DE
54902013-06-13 Doug Evans <dje@google.com>
5491
5492 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5493 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5494
d0548fa2
PM
54952013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5496
5497 * stack.c (backtrace_command_1): Fix indentation.
5498
22128028
JB
54992013-06-11 Joel Brobecker <brobecker@adacore.com>
5500
5501 * window-nat.c (thread_rec): Add missing empty line after
5502 local variable declaration.
5503
2ed3e009
JB
55042013-06-11 Joel Brobecker <brobecker@adacore.com>
5505
5506 * windows-nat.c (thread_rec): Revert format used to print
5507 error code returned by SuspendThread from %d back to %u.
5508
0c3d84be
JB
55092013-06-11 Joel Brobecker <brobecker@adacore.com>
5510
5511 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5512 ID in debug trace.
5513 (get_windows_debug_event): Likewise, for all debug traces.
5514
80e88e1a
JB
55152013-06-11 Joel Brobecker <brobecker@adacore.com>
5516
5517 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5518 warning message.
5519
1edebdbf
YQ
55202013-06-08 Pedro Alves <pedro@codesourcery.com>
5521 Yao Qi <yao@codesourcery.com>
5522
5523 * mi/mi-main.c (get_register): Remove declaration.
5524 (output_register): Declare.
5525 (mi_cmd_data_list_register_values): Remove local variable
5526 'tuple_cleanup'. Move some code into output_register.
5527 (get_register): Renamed to ...
5528 (output_register): ... this. Output the register's
5529 "number" ui_out tuple here.
5530
47d48711
PA
55312013-06-07 Pedro Alves <palves@redhat.com>
5532
5533 * darwin-nat.c: Fix formating in copyright header.
5534 * darwin-nat.h: Likewise.
5535 * gnu-nat.c: Likewise.
5536 * machoread.c: Likewise.
5537
3aee8918
PA
55382013-06-07 Pedro Alves <palves@redhat.com>
5539
5f2b57b5 5540 PR server/14823
3aee8918
PA
5541 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5542 static. Output a global target description pointer.
5543 (init_registers_${name}): Adjust to initialize a
5544 target description structure.
5545
fe8400b4
WN
55462013-06-07 Will Newton <will.newton@linaro.org>
5547
5548 * printcmd.c (build_address_symbolic): Call
5549 gdbarch_addr_bits_remove for text minimal symbols.
5550
20df6206
WN
55512013-06-07 Will Newton <will.newton@linaro.org>
5552
5553 * MAINTAINERS: Add myself to Write After Approval.
5554
aef525cb
YQ
55552013-06-07 Yao Qi <yao@codesourcery.com>
5556
5557 * tracepoint.c (start_tracing): Move code to ...
5558 (trace_reset_local_state): ... here. New.
5559 (disconnect_tracing): Don't call set_current_traceframe,
5560 set_tracepoint_num, and set_traceframe_context. Call
5561 trace_reset_local_state instead.
5562 (tfile_close): Call trace_reset_local_state.
5563 * ctf.c (ctf_close): Likewise.
5564 * remote.c (remote_close): Likewise.
5565 * tracepoint.h (trace_reset_local_state): Declare.
5566
d2415c6c
DE
55672013-06-06 Doug Evans <dje@google.com>
5568
5569 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5570 and fix header docs.
5571
69fc87c2
DE
55722013-06-05 Doug Evans <dje@google.com>
5573 Keith Seitz <keiths@redhat.com>
5574
5575 PR 15519
5576 * cp-namespace.c (find_symbol_in_baseclass): Call
5577 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5578 Check result of call to lookup_symbol_static.
5579 Call lookup_static_symbol_aux unconditionally.
5580 Call check_typedef on base types before accessing them.
5581 (cp_lookup_nested_symbol): Fix comment.
5582
a513d1e8
LM
55832013-06-05 Luis Machado <lgustavo@codesourcery.com>
5584
5585 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5586 minimal symbols pointing to function descriptors.
5587
351a6f02
TT
55882013-06-05 Tom Tromey <tromey@redhat.com>
5589
5590 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5591
5e1b953b 55922013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5593 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5594
5595 * remote.c (remote_wait_as): Restore signal handler before returning
5596 when GDB gets a notification.
5597
f9e14852
GB
55982013-06-04 Gary Benson <gbenson@redhat.com>
5599
8445cbf1 5600 PR 2328
f9e14852
GB
5601 * breakpoint.h (handle_solib_event): Moved function declaration
5602 to solib.h.
5603 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5604 (bpstat_stop_status): Pass new argument to handle_solib_event.
5605 * solib.h (update_solib_breakpoints): New function declaration.
5606 (handle_solib_event): Moved function declaration from
5607 breakpoint.h.
5608 * solib.c (update_solib_breakpoints): New function.
5609 (handle_solib_event): Moved function from breakpoint.c.
5610 Updated to call solib_ops->handle_event if not NULL.
5611 * solist.h (target_so_ops): New fields "update_breakpoints" and
5612 "handle_event".
5613 * infrun.c (set_stop_on_solib_events): New function.
5614 (_initialize_infrun): Use the above for "set
5615 stop-on-solib-events".
5616 (handle_inferior_event): Pass new argument to handle_solib_event.
5617 * solib-svr4.c (probe.h): New include.
5618 (svr4_free_library_list): New forward declaration.
5619 (probe_action): New enum.
5620 (probe_info): New struct.
5621 (probe_info): New static variable.
5622 (NUM_PROBES): New definition.
5623 (svr4_info): New fields "using_xfer", "probes_table" and
5624 "solib_list".
5625 (free_probes_table): New function.
5626 (free_solib_list): New function.
5627 (svr4_pspace_data_cleanup): Free probes table and solib list.
5628 (svr4_copy_library_list): New function.
5629 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5630 (svr4_read_so_list): New parameter "prev_lm".
5631 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5632 (svr4_current_sos): New function.
5633 (probe_and_action): New struct.
5634 (hash_probe_and_action): New function.
5635 (equal_probe_and_action): Likewise.
5636 (register_solib_event_probe): Likewise.
5637 (solib_event_probe_at): Likewise.
5638 (solib_event_probe_action): Likewise.
5639 (solist_update_full): Likewise.
5640 (solist_update_incremental): Likewise.
5641 (disable_probes_interface_cleanup): Likewise.
5642 (svr4_handle_solib_event): Likewise.
5643 (svr4_update_solib_event_breakpoint): Likewise.
5644 (svr4_update_solib_event_breakpoints): Likewise.
5645 (svr4_create_solib_event_breakpoints): Likewise.
5646 (enable_break): Free probes table before creating breakpoints.
5647 Use svr4_create_solib_event_breakpoints to create breakpoints.
5648 (svr4_solib_create_inferior_hook): Free the solib list.
5649 (_initialize_svr4_solib): Initialise
5650 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5651
ced63ec0
GB
56522013-06-04 Gary Benson <gbenson@redhat.com>
5653
5654 * target.h (target_ops): New field
5655 "to_augmented_libraries_svr4_read".
5656 (target_augmented_libraries_svr4_read): New macro.
5657 * target.c (update_current_target): Handle
5658 to_augmented_libraries_svr4_read.
5659 * remote.c (remote_state): New field
5660 "augmented_libraries_svr4_read".
5661 (remote_augmented_libraries_svr4_read_feature): New function.
5662 (remote_protocol_features): Add entry for
5663 "augmented-libraries-svr4-read".
5664 (remote_augmented_libraries_svr4_read): New function.
5665 (init_remote_ops): Initialize
5666 remote_ops.to_augmented_libraries_svr4_read.
5667
7f91dbec
GB
56682013-06-04 Gary Benson <gbenson@redhat.com>
5669
5670 * NEWS: Update.
5671
607ece04
GB
56722013-06-04 Gary Benson <gbenson@redhat.com>
5673
5674 * objfiles.h (inhibit_section_map_updates): New function
5675 declaration.
5676 (resume_section_map_updates): Likewise.
5677 (resume_section_map_updates_cleanup): Likewise.
5678 * objfiles.c (objfile_pspace_info): Removed field
5679 "objfiles_changed_p". New fields "new_objfiles_available",
5680 "section_map_dirty" and "inhibit_updates".
5681 (allocate_objfile): Set new_objfiles_available.
5682 (free_objfile): Set section_map_dirty.
5683 (objfile_relocate1): Likewise.
5684 (in_plt_section): Likewise.
5685 (find_pc_section): Update the conditions under which the
5686 section map will be updated.
5687 (inhibit_section_map_updates): New function.
5688 (resume_section_map_updates): Likewise.
5689 (resume_section_map_updates_cleanup): Likewise.
5690
9ee6a5ac
GB
56912013-06-04 Gary Benson <gbenson@redhat.com>
5692
5693 * probe.h (get_probe_argument_count): New declaration.
5694 (evaluate_probe_argument): Likewise.
5695 * probe.c (get_probe_argument_count): New function.
5696 (evaluate_probe_argument): Likewise.
5697 (probe_safe_evaluate_at_pc): Use the above new functions.
5698
845d4708
AM
56992013-06-04 Alan Modra <amodra@gmail.com>
5700
5701 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5702 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5703 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5704 target mem reads on optional insns.
5705 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5706 ppc_insns_match_pattern calls.
5707 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5708 Add match for power7 thread safety insns, and new order of
5709 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5710 invocation in comment, and update rest of comment.
5711 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5712 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5713 (ppc64_standard_linkage2_target): Update insn offsets.
5714 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5715 stubs first. Update calls.
5716
404e278f
YQ
57172013-06-04 Yao Qi <yao@codesourcery.com>
5718
5719 * solib.c (solib_find): Don't need dir separator if path has
5720 drive spec.
5721
f6aea118
JB
57222013-06-03 Joel Brobecker <brobecker@adacore.com>
5723
5724 Revert (indirectly causes a SIGSEGV):
5725 * machoread.c (macho_symfile_read): Assign first cleanup to
5726 'back_to'.
5727
87967e27
YQ
57282013-06-03 Yao Qi <yao@codesourcery.com>
5729
5730 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5731 mi-parse.c. Make them static.
5732 (mi_all_values): Likewise.
5733 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5734 mi_parse_print_values. Make it external.
5735 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5736 Remove the declarations.
5737 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5738 * mi/mi-parse.h (mi_parse_print_values): Declare.
5739 * mi/mi-cmd-stack.c: Include mi-parse.h.
5740 (parse_print_values): Remove
5741 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5742 of parse_print_values.
5743 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5744
3ca73e0c
YQ
57452013-05-31 Pedro Alves <pedro@codesourcery.com>
5746 Yao Qi <yao@codesourcery.com>
5747
5748 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5749 (encode_actions): Move code to ...
5750 (all_tracepoint_actions_and_cleanup): ... here. New.
5751 (trace_dump_command): Likewise.
5752
4e993a19
TT
57532013-05-30 Tom Tromey <tromey@redhat.com>
5754
5755 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5756
e3b76b4f
TT
57572013-05-30 Tom Tromey <tromey@redhat.com>
5758
5759 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5760 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5761 'old_chain' argument. Add 'parser_result' argument.
5762 (gdb_xml_create_parser_and_cleanup): Remove old version.
5763 (gdb_xml_parse_quick): Update.
5764 (xml_process_xincludes): Update.
5765 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5766 declare.
5767
db26349c
TT
57682013-05-30 Tom Tromey <tromey@redhat.com>
5769
5770 * probe.c (collect_probes): Check arguments for NULL before
5771 calling compile_rx_or_error.
5772 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5773 Remove NULL return.
5774
77f9e713
TT
57752013-05-30 Tom Tromey <tromey@redhat.com>
5776
5777 * infrun.c (adjust_pc_after_break): Introduce an outer null
5778 cleanup.
5779
45475de7
TT
57802013-05-30 Tom Tromey <tromey@redhat.com>
5781
5782 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5783
ac5007fd
TT
57842013-05-30 Tom Tromey <tromey@redhat.com>
5785
5786 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5787 for 'old_chain'. Do not check 'head' before processing
5788 cleanups.
5789
cd82eddc
TT
57902013-05-30 Tom Tromey <tromey@redhat.com>
5791
5792 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5793 "cleanup_tuple".
5794
57cee33a
TT
57952013-05-30 Tom Tromey <tromey@redhat.com>
5796
5797 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5798 inner scope. Unconditionally call do_cleanups.
5799
795d915c
TT
58002013-05-30 Tom Tromey <tromey@redhat.com>
5801
5802 * source.c (find_and_open_source): Call do_cleanups.
5803
1fc3cf4a
TT
58042013-05-30 Tom Tromey <tromey@redhat.com>
5805
5806 * linux-thread-db.c (thread_db_load_search): Unconditionally
5807 call do_cleanups.
5808
e35ac9bf
TT
58092013-05-30 Tom Tromey <tromey@redhat.com>
5810
5811 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5812 for 'cleanup'; instead use a later one.
5813
f3300387
TT
58142013-05-30 Tom Tromey <tromey@redhat.com>
5815
5816 * python/py-breakpoint.c (bppy_get_commands): Use
5817 explicit, unconditional return.
5818 * python/py-frame.c (frapy_read_var): Likewise.
5819 * python/python.c (gdbpy_decode_line): Likewise.
5820
c27e16e3
TT
58212013-05-30 Tom Tromey <tromey@redhat.com>
5822
5823 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5824 do_cleanups on all return paths.
5825
5ae85e44
TT
58262013-05-30 Tom Tromey <tromey@redhat.com>
5827
5828 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5829
73b8d9da
TT
58302013-05-30 Tom Tromey <tromey@redhat.com>
5831
5832 * stabsread.c (read_struct_type): Call do_cleanups along
5833 all return paths.
5834
7d266584
MR
58352013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5836
5837 * mips-linux-tdep.c: Adjust formatting throughout.
5838
0f900f54
TT
58392013-05-30 Tom Tromey <tromey@redhat.com>
5840
5841 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5842 along all return paths.
5843
a991ac28
TT
58442013-05-30 Tom Tromey <tromey@redhat.com>
5845
5846 * symfile.c (find_separate_debug_file): Call do_cleanups
5847 along all return paths.
5848
1abaf042
TT
58492013-05-30 Tom Tromey <tromey@redhat.com>
5850
5851 * symtab.c (search_symbols): Introduce a null cleanup for
5852 'retval_chain'.
5853
edefe1da
TT
58542013-05-30 Tom Tromey <tromey@redhat.com>
5855
5856 * python/py-value.c (valpy_binop): Call do_cleanups before
5857 exiting loop.
5858
54f72dcc
TT
58592013-05-30 Tom Tromey <tromey@redhat.com>
5860
5861 * python/py-prettyprint.c (print_children): Remove extra
5862 do_cleanups call.
5863
af1c6971
TT
58642013-05-30 Tom Tromey <tromey@redhat.com>
5865
5866 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5867 all return paths.
5868
b862ce75
TT
58692013-05-30 Tom Tromey <tromey@redhat.com>
5870
5871 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5872 along all return paths.
5873
e12fefc8
TT
58742013-05-30 Tom Tromey <tromey@redhat.com>
5875
5876 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5877 call do_cleanups.
5878
4867f990
TT
58792013-05-30 Tom Tromey <tromey@redhat.com>
5880
5881 * varobj.c (c_value_of_root): Call do_cleanups along all
5882 return paths.
5883
4fd2d6af
TT
58842013-05-30 Tom Tromey <tromey@redhat.com>
5885
5886 * tracepoint.c (trace_dump_command): Unconditionally call
5887 do_cleanups.
5888
752eb8b4
TT
58892013-05-30 Tom Tromey <tromey@redhat.com>
5890
5891 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5892 do_cleanups earlier.
5893
e42d0aa5
TT
58942013-05-30 Tom Tromey <tromey@redhat.com>
5895
5896 * machoread.c (macho_symfile_read): Assign first cleanup to
5897 'back_to'.
5898
4bbc010a
TT
58992013-05-30 Tom Tromey <tromey@redhat.com>
5900
5901 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5902
b9635925
TT
59032013-05-30 Tom Tromey <tromey@redhat.com>
5904
5905 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5906
25f43500
TT
59072013-05-30 Tom Tromey <tromey@redhat.com>
5908
5909 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5910 call discard_cleanups.
5911 (inf_ptrace_attach): Likewise.
5912
d6a2e54a
TT
59132013-05-30 Tom Tromey <tromey@redhat.com>
5914
5915 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5916 return paths.
5917 (mips_initialize): Likewise.
5918 (common_open): Call do_cleanups.
5919
48be7c1b
TT
59202013-05-30 Tom Tromey <tromey@redhat.com>
5921
5922 * utils.c (internal_vproblem): Call do_cleanups.
5923
e61727ab
TT
59242013-05-30 Tom Tromey <tromey@redhat.com>
5925
5926 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5927
b81b921f
TT
59282013-05-30 Tom Tromey <tromey@redhat.com>
5929
5930 * cli/cli-script.c (setup_user_args): Don't return after error.
5931
fe48dfb1
TT
59322013-05-30 Tom Tromey <tromey@redhat.com>
5933
5934 * somread.c (som_symtab_read): Call do_cleanups.
5935
27833de7
TT
59362013-05-30 Tom Tromey <tromey@redhat.com>
5937
5938 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5939
5b3fca71
TT
59402013-05-30 Tom Tromey <tromey@redhat.com>
5941
5942 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5943 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5944 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5945 * source.c (show_substitute_path_command): Call do_cleanups.
5946 (unset_substitute_path_command, set_substitute_path_command):
5947 Likewise.
5948 * symfile.c (load_command): Call do_cleanups.
5949
af83e3f8
TT
59502013-05-30 Tom Tromey <tromey@redhat.com>
5951
5952 * contrib/cleanup_check.py: New file.
5953 * contrib/gcc-with-excheck: Add option parsing.
5954
564eac42
JB
59552013-05-30 Joel Brobecker <brobecker@adacore.com>
5956
5957 * windows-nat.c (windows_delete_thread): Add missing space
5958 in cast expression.
5959
47902076
HAQ
59602013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5961
5962 * inferior.c (top level): Include tilde.h.
5963 (add_inferior_command): Call tilde_expand on the value of 'exec'
5964 argument.
5965
23da373a
YQ
59662013-05-30 Pedro Alves <pedro@codesourcery.com>
5967 Yao Qi <yao@codesourcery.com>
5968
5969 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5970 Caller update.
5971 (encode_actions): Likewise.
5972 * remote.c (remote_download_tracepoint): Caller update.
5973 * tracepoint.h (encode_actions): Update declaration.
5974
a6e6f791
PA
59752013-05-30 Pedro Alves <palves@redhat.com>
5976
5977 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5978 pointer.
5979
36d25514
YQ
59802013-05-30 Yao Qi <yao@codesourcery.com>
5981
5982 * remote.c (remote_check_symbols): Remove unused parameter
5983 'objfile'.
5984 Declaration update.
5985 (remote_start_remote, remote_new_objfile): Caller update.
5986
62a813cc
YQ
59872013-05-30 Yao Qi <yao@codesourcery.com>
5988
5989 * mi/mi-cmds.c (mi_cmds): Define MI command
5990 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5991 DEF_MI_CMD_CLI.
5992
28439a30
PA
59932013-05-29 Pedro Alves <palves@redhat.com>
5994
5995 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5996 (remote_insert_watchpoint, remote_remove_watchpoint)
5997 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5998 (remote_verify_memory, compare_sections_command)
5999 (remote_search_memory): Set the general process/thread on the
6000 remote side.
6001
6ac1c082
PA
60022013-05-29 Pedro Alves <palves@redhat.com>
6003
6004 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6005 (_initialize_aarch64_tdep): Don't call
6006 initialize_tdesc_aarch64_without_fpu.
6007 * features/Makefile (WHICH): Remove reference to
6008 aarch64-without-fpu.
6009 * features/aarch64-without-fpu.c: Delete file.
6010 * regformats/aarch64-without-fpu.dat: Delete file.
6011
a73e3634
YQ
60122013-05-28 Yao Qi <yao@codesourcery.com>
6013
6014 * tracepoint.c (stringify_collection_list): Remove parameter
6015 'string'.
6016 (encode_actions): Caller update. Remove local variables.
6017
c0ea94eb
YQ
60182013-05-24 Yao Qi <yao@codesourcery.com>
6019
6020 * tracepoint.c (TFILE_PID): Remove.
6021 (tfile_open): Don't add thread and inferior.
6022 (tfile_close): Don't set 'inferior_ptid'. Don't call
6023 exit_inferior_silent.
6024 (tfile_thread_alive): Remove.
6025 (init_tfile_ops): Don't set field 'to_thread_alive' of
6026 tfile_ops.
6027
20d7f211
DE
60282013-05-23 Doug Evans <dje@google.com>
6029
6030 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6031
8658d16d
PA
60322013-05-23 Pedro Alves <palves@redhat.com>
6033
6034 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6035 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6036 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6037 Only define if HAVE_SOCKETS is defined.
6038 * configure.ac: Check for sys/socket.h.
6039 * config.in, configure: Regenerate.
6040
21aa081e
PA
60412013-05-23 Pedro Alves <palves@redhat.com>
6042
6043 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6044 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6045 printing uint32_t variables.
6046
c2d6af84
PA
60472013-05-23 Pedro Alves <palves@redhat.com>
6048
6049 * NEWS: Mention GDBserver range stepping support.
6050
c1e36e3e
PA
60512013-05-23 Yao Qi <yao@codesourcery.com>
6052 Pedro Alves <palves@redhat.com>
6053
6054 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6055 field.
6056 * infcmd.c (step_once, until_next_command): Enable range stepping.
6057 * infrun.c (displaced_step_prepare): Disable range stepping.
6058 (resume): Disable range stepping if stepping over a breakpoint or
6059 we have software watchpoints. If range stepping is enabled,
6060 assert the thread is in the stepping range.
6061 (clear_proceed_status_thread): Clear may_range_step.
6062 (handle_inferior_event): Disable range stepping as soon as we know
6063 the thread that hit the event. Re-enable it whenever we're going
6064 to step with a step range.
6065 * remote.c (struct vCont_action_support) <r>: New field.
6066 (use_range_stepping): New global.
6067 (remote_vcont_probe): Handle 'r' action.
6068 (append_resumption): Append an 'r' action if the thread may range
6069 step.
6070 (show_range_stepping): New function.
6071 (set_range_stepping): New function.
6072 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6073 'set range-stepping' and 'show range-stepping' commands.
6074 * NEWS: Mention range stepping, the new vCont;r action, and the
6075 new "set/show range-stepping" commands.
6076
d458bd84
PA
60772013-05-23 Yao Qi <yao@codesourcery.com>
6078 Pedro Alves <palves@redhat.com>
6079
6080 * remote.c (struct vCont_action_support): New struct.
6081 (struct remote_state) <support_vCont_t>: Remove field.
6082 <vCont_actions_support>: New field.
6083 (remote_vcont_probe, remote_stop_ns): Update.
6084
ce4c476a
PA
60852013-05-23 Yao Qi <yao@codesourcery.com>
6086 Pedro Alves <palves@redhat.com>
6087
6088 * gdbthread.h (pc_in_thread_step_range): New declaration.
6089 * thread.c (pc_in_thread_step_range): New function.
6090 * infrun.c (handle_inferior_event): Use it.
6091
ce70887a
JB
60922013-05-23 Joel Brobecker <brobecker@adacore.com>
6093
6094 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6095 of sprintf.
6096
55b87a52
KS
60972013-05-22 Keith Seitz <keiths@redhat.com>
6098
6099 * ada-lang.c (is_known_support_routine): Add explicit free of
6100 'func_name' from find_frame_funname.
6101 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6102 for func_name from find_frame_funname.
6103 * python/py-frame.c (frapy_name): Add explicit free of
6104 'name' from find_frame_funname.
6105 * stack.c (find_frame_funname): Add comment explaining that
6106 funcp must be freed by the caller.
6107 Return copy of symbol names instead of pointers.
6108 (print_frame): Add a cleanup for 'funname' from
6109 find_frame_funname.
6110 * stack.h (find_frame_funname): Remove "const" from
6111 'funname' parameter.
6112
5f2e6b00
TT
61132013-05-22 Tom Tromey <tromey@redhat.com>
6114
6115 PR c++/15401:
6116 * c-valprint.c (c_value_print): Use value_addr for
6117 references. Convert back to reference type with value_ref.
6118
d85c4847
EZ
61192013-05-22 Eli Zaretskii <eliz@gnu.org>
6120
6121 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6122 unloaded DLL, it will be done by handle_solib_event. See
6123 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6124 details.
6125
54eb231c
PM
61262013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6127
6128 * ui-out.c: Create typedef ui_out_level_p and define vector
6129 operations for that type.
6130 (struct ui_out): Use a vector instead of an array.
6131 (current_level): Return level from a vector.
6132 (push_level): Create a level in a vector.
6133 (pop_level): Delete a level in a vector.
6134 (ui_out_new): Create initial level zero level, and store in a
6135 vector.
6136 (ui_out_destroy): Add vector cleanup.
6137
ac90359c
PA
61382013-05-22 Pedro Alves <palves@redhat.com>
6139
6140 * python/python-internal.h (gdb_Py_DECREF): Tag with
6141 "ARI: editCase function".
6142
6dcc1893
PP
61432013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6144
6145 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6146
c8c735b9
PA
61472013-05-21 Pedro Alves <palves@redhat.com>
6148
6149 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6150 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6151 * python/py-utils.c (py_decref): Don't check for NULL before
6152 calling Py_DECREF.
6153
1915daeb
PA
61542013-05-21 Pedro Alves <palves@redhat.com>
6155
6156 * python/py-utils.c (py_decref): Remove extra braces.
6157 (gdb_pymodule_addobject): Remove extra braces.
6158 * python-internal.h (gdb_Py_DECREF): New static inline function.
6159 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6160
bd9673a4
PW
61612013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6162
6163 * breakpoints.c (detach_breakpoints): Do not
6164 detach breakpoints locations with loc_type bp_loc_other.
6165
ff6009d0
JK
61662013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6167
6168 Workaround Python 2.6.
6169 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6170 a block.
6171
3641da11
JK
61722013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6173
6174 Code cleanup: constification.
6175 * solib.c (solib_ops): Make return type and ops variable type const.
6176 (set_solib_ops): Make the new_ops parameter and ops variable const.
6177 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6178 (solib_add, solib_keep_data_in_core, clear_solib)
6179 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6180 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6181 const.
6182 * solib.h (set_solib_ops): Make the new_ops parameter const.
6183
776af39e
JB
61842013-05-21 Joel Brobecker <brobecker@adacore.com>
6185
6186 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6187 variable.
6188 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6189 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6190 (SYSTEM_GDBINIT_FILES): New variables.
6191 (all): Add stamp-system-gdbinit.
6192 (stamp-system-gdbinit): New rule.
6193 (clean-system-gdbinit, install-system-gdbinit)
6194 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6195 (install-only): Add dependency on install-system-gdbinit.
6196 (uninstall): Add dependency on uninstall-system-gdbinit.
6197 (clean): Add dependency on clean-system-gdbinit.
6198 * system-gdbinit/elinos.py: New file.
6199 * system-gdbinit/wrs-linux.py: New file.
6200
1509e573
JB
62012013-05-21 Joel Brobecker <brobecker@adacore.com>
6202
6203 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6204
c5867ab6
HZ
62052013-05-21 Hui Zhu <hui@codesourcery.com>
6206
6207 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6208 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6209 * mi/mi-cmd-break.c (ctype.h): New include.
6210 (gdb_obstack.h): New include.
6211 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6212 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6213 (mi_cmd_dprintf_insert): New.
6214 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6215 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6216
7d38e38f
TT
62172013-05-20 Tom Tromey <tromey@redhat.com>
6218
6219 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6220
97b77b39
TT
62212013-05-20 Tom Tromey <tromey@redhat.com>
6222
6223 * python/py-value.c (valpy_get_dynamic_type): Simplify
6224 dynamic_type assignment. Use Py_XINCREF.
6225
53e66479
TT
62262013-05-20 Tom Tromey <tromey@redhat.com>
6227
6228 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6229
dcf87832
TT
62302013-05-20 Tom Tromey <tromey@redhat.com>
6231
6232 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6233 (gdbpy_selected_frame): Move object-construction code
6234 out of TRY_CATCH.
6235
aa36459a
TT
62362013-05-20 Tom Tromey <tromey@redhat.com>
6237
6238 * python/py-arch.c (gdbpy_initialize_arch): Use
6239 gdb_pymodule_addobject.
6240 * python/py-block.c (gdbpy_initialize_blocks): Use
6241 gdb_pymodule_addobject.
6242 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6243 gdb_pymodule_addobject.
6244 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6245 gdb_pymodule_addobject.
6246 * python/py-event.c (gdbpy_initialize_event_generic): Use
6247 gdb_pymodule_addobject.
6248 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6249 gdb_pymodule_addobject.
6250 * python/py-evts.c (add_new_registry): Use
6251 gdb_pymodule_addobject.
6252 (gdbpy_initialize_py_events): Likewise.
6253 * python/py-finishbreakpoint.c
6254 (gdbpy_initialize_finishbreakpoints): Use
6255 gdb_pymodule_addobject.
6256 * python/py-frame.c (gdbpy_initialize_frames): Use
6257 gdb_pymodule_addobject.
6258 * python/py-function.c (gdbpy_initialize_functions): Use
6259 gdb_pymodule_addobject.
6260 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6261 gdb_pymodule_addobject.
6262 * python/py-infthread.c (gdbpy_initialize_thread): Use
6263 gdb_pymodule_addobject.
6264 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6265 gdb_pymodule_addobject.
6266 * python/py-param.c (gdbpy_initialize_parameters): Use
6267 gdb_pymodule_addobject.
6268 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6269 gdb_pymodule_addobject.
6270 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6271 gdb_pymodule_addobject.
6272 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6273 gdb_pymodule_addobject.
6274 * python/py-type.c (gdbpy_initialize_types): Use
6275 gdb_pymodule_addobject.
6276 * python/py-utils.c (gdb_pymodule_addobject): New function.
6277 * python/py-value.c (gdbpy_initialize_values): Use
6278 gdb_pymodule_addobject.
6279 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6280 * python/python.c (_initialize_python): Use
6281 gdb_pymodule_addobject.
6282
3d4a3c3e
TT
62832013-05-20 Tom Tromey <tromey@redhat.com>
6284
6285 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6286 * python/py-param.c (get_set_value, get_show_value): Use
6287 explicit decrefs.
6288 * python/python.c (start_type_printers, apply_type_printers):
6289 Use explicit decrefs.
6290
72ff8829
TT
62912013-05-20 Tom Tromey <tromey@redhat.com>
6292
6293 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6294 incref the module.
6295
02146ba5
TT
62962013-05-20 Tom Tromey <tromey@redhat.com>
6297
6298 * python/python.c (gdbpy_run_events): Decref the result
6299 of PyObject_CallObject.
6300
33ee792f
TT
63012013-05-20 Tom Tromey <tromey@redhat.com>
6302
6303 * python/py-symtab.c (set_sal): Use
6304 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6305 (symtab_and_line_to_sal_object): Update.
6306
fcb49fc8
TT
63072013-05-20 Tom Tromey <tromey@redhat.com>
6308
6309 * python/py-param.c (compute_enum_values): Decref 'item'.
6310
0646da15
TT
63112013-05-20 Tom Tromey <tromey@redhat.com>
6312
6313 * mi/mi-main.c: Include python-internal.h.
6314 (mi_cmd_list_features): Check gdb_python_initialized.
6315 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6316 (python_inferior_exit, python_new_objfile, add_thread_object)
6317 (delete_thread_object, py_free_inferior): Check
6318 gdb_python_initialized.
6319 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6320 gdb_python_initialized.
6321 * python/py-type.c (save_objfile_types): Check
6322 gdb_python_initialized.
6323 * python/python-internal.h (gdb_python_initialized): Declare.
6324 * python/python.c (ensure_python_env): Throw exception if
6325 Python not initialized.
6326 (before_prompt_hook, source_python_script_for_objfile)
6327 (start_type_printers, apply_type_printers,
6328 free_type_printers): Check gdb_python_initialized.
6329 * varobj.c (varobj_get_display_hint)
6330 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6331 (install_new_value_visualizer, varobj_set_visualizer)
6332 (value_get_print_value): Check gdb_python_initialized.
6333
999633ed
TT
63342013-05-20 Tom Tromey <tromey@redhat.com>
6335
6336 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6337 Check errors.
6338 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6339 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6340 Check errors.
6341 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6342 Check errors.
6343 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6344 Check errors.
6345 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6346 Check errors.
6347 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6348 init function to return 'int'.
6349 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6350 Return 'int'. Check errors.
6351 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6352 Check errors.
6353 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6354 Return 'int'. Check errors.
6355 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6356 Check errors.
6357 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6358 Check errors.
6359 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6360 Check errors.
6361 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6362 Check errors.
6363 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6364 Check errors.
6365 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6366 Check errors.
6367 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6368 Check errors.
6369 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6370 Check errors.
6371 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6372 Check errors.
6373 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6374 Check errors.
6375 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6376 Check errors.
6377 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6378 Check errors.
6379 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6380 Check errors.
6381 * python/python-internal.h (gdbpy_initialize_auto_load,
6382 gdbpy_initialize_values, gdbpy_initialize_frames,
6383 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6384 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6385 gdbpy_initialize_blocks, gdbpy_initialize_types,
6386 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6387 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6388 gdbpy_initialize_finishbreakpoints,
6389 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6390 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6391 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6392 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6393 gdbpy_initialize_signal_event,
6394 gdbpy_initialize_breakpoint_event,
6395 gdbpy_initialize_continue_event,
6396 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6397 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6398 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6399 * python/python.c (gdb_python_initialized): New global.
6400 (gdbpy_initialize_events): Return 'int'. Check errors.
6401 (_initialize_python): Check errors. Set
6402 gdb_python_initialized.
6403
18868860
TT
64042013-05-20 Tom Tromey <tromey@redhat.com>
6405
6406 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6407 Decref the reslut of PyObject_CallMethod.
6408
9f4ff0c2
TT
64092013-05-20 Tom Tromey <tromey@redhat.com>
6410
6411 * python/py-event.c (gdbpy_initialize_event_generic): Return
6412 early if PyType_Ready fails.
6413
0d3a2e8a
TT
64142013-05-20 Tom Tromey <tromey@redhat.com>
6415
6416 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6417 as 'default' in the switch.
6418
b86af38a
TT
64192013-05-20 Tom Tromey <tromey@redhat.com>
6420
6421 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6422 get_addr_from_python calls out of TRY_CATCH.
6423 (infpy_write_memory, infpy_search_memory): Likewise.
6424 * python/py-utils.c (get_addr_from_python): Return negative
6425 value on error. Use TRY_CATCH.
6426 * python/python-internal.h (get_addr_from_python): Use
6427 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6428
c127ec58
TT
64292013-05-20 Tom Tromey <tromey@redhat.com>
6430
6431 * python/py-event.c (evpy_emit_event): Decref the
6432 result of PyObject_CallFunctionObjArgs.
6433
ba327838
TT
64342013-05-20 Tom Tromey <tromey@redhat.com>
6435
6436 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6437 Correctly decref.
6438
d8191432
TT
64392013-05-20 Tom Tromey <tromey@redhat.com>
6440
6441 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6442
5d153bd1
TT
64432013-05-20 Tom Tromey <tromey@redhat.com>
6444
6445 * python/py-event.h (gdbpy_initialize_event_generic): Use
6446 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6447 * python/py-evts.c (add_new_registry): Use
6448 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6449 * python/python-internal.h
6450 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6451
56cc411c
TT
64522013-05-20 Tom Tromey <tromey@redhat.com>
6453
6454 * python/py-arch.c (archpy_disassemble): Update.
6455 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6456 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6457 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6458 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6459 macro.
6460 (GDB_PY_HANDLE_EXCEPTION): Update.
6461 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6462
8919e174
TT
64632013-05-20 Tom Tromey <tromey@redhat.com>
6464
6465 * python/python-internal.h (events_object_type): Remove.
6466
9b08f225
TT
64672013-05-20 Tom Tromey <tromey@redhat.com>
6468
f5aee5ee
AM
6469 * python/py-event.h (evpy_emit_event): Use
6470 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6471 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6472 New macro.
9b08f225 6473
f04010ff
TT
64742013-05-20 Tom Tromey <tromey@redhat.com>
6475
6476 * py-evtregistry.c (create_event_object): Decref
6477 eventregistry_object if PyList_New fails.
6478
3919fd96
TT
64792013-05-20 Tom Tromey <tromey@redhat.com>
6480
6481 * py-cmd.c (gdbpy_string_to_argv): Check result of
6482 PyList_New.
6483
0430e8cb
TT
64842013-05-20 Tom Tromey <tromey@redhat.com>
6485
6486 * python/python.c (before_prompt_hook): Add cleanup to
6487 decref 'hook'.
6488
764123e4
TT
64892013-05-20 Tom Tromey <tromey@redhat.com>
6490
6491 * python/py-function.c (fnpy_init): Decref result of
6492 PyObject_GetAttrString.
6493
634c58be
TT
64942013-05-20 Tom Tromey <tromey@redhat.com>
6495
6496 * python/py-threadevent.c (get_event_thread): Use
6497 CPYCHECKER_RETURNS_BORROWED_REF.
6498 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6499 New define.
6500 (pspace_to_pspace_object, objfile_to_objfile_object)
6501 (find_thread_object): Use it.
6502
62eec1a5
TT
65032013-05-20 Tom Tromey <tromey@redhat.com>
6504
6505 * python/py-arch.c (arch_object_type): Use
6506 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6507 * python/py-block.c (block_syms_iterator_object_type):
6508 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6509 * python/py-bpevent.c (breakpoint_event_object_type):
6510 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6511 * python/py-cmd.c (cmdpy_object_type): Use
6512 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6513 * python/py-continueevent.c (continue_event_object_type):
6514 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6515 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6516 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6517 * python/py-events.h (thread_event_object_type):
6518 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6519 * python/py-evtregistry.c (eventregistry_object_type): Use
6520 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6521 * python/py-exitedevent.c (exited_event_object_type):
6522 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6523 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6524 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6525 * python/py-function.c (fnpy_object_type): Use
6526 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6527 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6528 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6529 * python/py-infthread.c (thread_object_type): Use
6530 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6531 * python/py-lazy-string.c (lazy_string_object_type):
6532 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6533 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6534 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6535 * python/py-objfile.c (objfile_object_type): Use
6536 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6537 * python/py-param.c (parmpy_object_type):
6538 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6539 * python/py-progspace.c (pspace_object_type):
6540 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6541 * python/py-signalevent.c (signal_event_object_type):
6542 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6543 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6544 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6545 * python/py-type.c (type_object_type, field_object_type)
6546 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6547 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6548 define.
6549 (value_object_type, block_object_type, symbol_object_type)
6550 (event_object_type, stop_event_object_type, breakpoint_object_type)
6551 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6552
81ea8796
AT
65532013-05-20 Andreas Tobler <andreas@fgznet.ch>
6554
6555 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6556 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6557
a2ce51a0
DE
65582013-05-20 Doug Evans <dje@google.com>
6559
6560 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6561 For Fission.
6562 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6563 reading_dwo_directly.
6564 (struct signatured_type): New member dwo_unit.
6565 (struct die_reader_specs): New member comp_dir.
6566 (create_signatured_type_table_from_index): Use malloc for
6567 all_type_units instead of objfile's obstack.
6568 (create_all_type_units): Ditto.
6569 (fill_in_sig_entry_from_dwo_entry): New function.
6570 (add_type_unit): New function.
6571 (lookup_dwo_signatured_type): New function.
6572 (lookup_dwp_signatured_type): New function.
6573 (lookup_signatured_type): New arg cu. All callers updated.
6574 (init_cu_die_reader): Initialize comp_dir.
6575 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6576 Change assert of matching type signatures to call error on mismatch.
6577 (lookup_dwo_unit): Add assert.
6578 (init_tu_and_read_dwo_dies): New function.
6579 (init_cutu_and_read_dies): Call it.
6580 (build_type_unit_groups): Handle case of no type unit groups created.
6581 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6582 (lookup_dwo_cutu): Tweak complaint.
6583 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6584 (dwarf2_per_objfile_free): Free all_type_units.
6585
a25cd31f
JB
65862013-05-20 Joel Brobecker <brobecker@adacore.com>
6587
6588 * windows-nat.c (handle_unload_dll): Add missing empty line.
6589
4d804846
JB
65902013-05-20 Joel Brobecker <brobecker@adacore.com>
6591
6592 * dwarf2read.c (prototyped_function_p): New function.
6593 (read_subroutine_type): Use it.
6594
1c432e72
JB
65952013-05-20 Joel Brobecker <brobecker@adacore.com>
6596
6597 * rs6000-aix-tdep.c: De-indent some example code provided
6598 as a comment.
6599
4feebbdd
EBM
66002013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6601
6602 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6603 region is ok for a hardware watchpoint using the new ptrace interface
6604 on Power servers.
6605
7d0c9981
DE
66062013-05-17 Doug Evans <dje@google.com>
6607
6608 * NEWS: Mention new maintenance commands check-symtabs, and
6609 expand-symtabs, and renamed check-psymtabs.
6610 * psymtab.c (maintenance_check_psymtabs): Renamed from
6611 maintenance_check_symtabs. Only process already-expanded symbol
6612 tables.
6613 (_initialize_psymtab): Update.
6614 * symmisc.c (maintenance_check_symtabs): New function.
6615 (maintenance_expand_name_matcher): New function
6616 (maintenance_expand_file_matcher): New function
6617 (maintenance_expand_symtabs): New function.
6618 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6619 commands.
6620
6cbc7c3d
TT
66212013-05-17 Tom Tromey <tromey@redhat.com>
6622
6623 * python/py-inferior.c (infpy_read_memory): Don't call
6624 PyErr_SetString if PyObject_New fails.
6625 * python/py-frame.c (frame_info_to_frame_object): Don't call
6626 PyErr_SetString if PyObject_New fails.
6627
a48b32c0
L
66282013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6629
6630 * acinclude.m4: Add check for dlopen in libdl.
6631 * configure.ac: Ditto.
6632 * configure: Regenerate.
6633
3de661e6
PM
66342013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6635
6636 * frame.c (frame_stash): Convert to htab.
6637 (frame_addr_hash): New function.
6638 (frame_addr_hash_eq): New function.
6639 (frame_stash_create): Convert function to create
6640 a hash table.
6641 (frame_stash_add): Convert function to add an entry to a hash
6642 table.
6643 (frame_stash_find): Convert function to search the hash table.
6644 (frame_stash_invalidate): Convert function to empty the hash
6645 table.
6646 (get_frame_id): Only add to stash if a frame_id is created.
6647 (_initialize_frame): Call frame_stash_create.
6648
bb4168a9 66492013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6650
6651 * configure.ac: Ensure MIG is available when building for GNU Hurd
6652 hosts.
6653 * configure: Regenerate.
6654
d1be3247
JB
66552013-05-16 Joel Brobecker <brobecker@adacore.com>
6656
6657 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6658
b8fea896
JB
66592013-05-16 Joel Brobecker <brobecker@adacore.com>
6660
6661 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6662 all cleanups are done before returning from this function.
6663
af880d85
JB
66642013-05-15 Joel Brobecker <brobecker@adacore.com>
6665
6666 * utils.h: #include "exceptions.h".
6667 (enum errors): Remove partial declaration.
6668
356a5233
JB
66692013-05-15 Joel Brobecker <brobecker@adacore.com>
6670
6671 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6672 * gdbarch.h, gdbarch.c: Regenerate.
6673 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6674 handling.
6675
6676 * rs6000-aix-tdep.h: New file.
6677 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6678 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6679 "xml-utils.h".
6680 (struct field_info, struct ld_info_desc): New types.
6681 (ld_info32_desc, ld_info64_desc): New static constants.
6682 (struct ld_info): New type.
6683 (rs6000_aix_extract_ld_info): New function.
6684 (rs6000_aix_shared_library_to_xml): Likewise.
6685 (rs6000_aix_ld_info_to_xml): Likewise.
6686 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6687 (rs6000_aix_init_osabi): Add call to
6688 set_gdbarch_core_xfer_shared_libraries_aix.
6689 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6690 Remove "xml-utils.h" include.
6691 (LdInfo): Delete typedef.
6692 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6693 Delete macros.
6694 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6695 Adjust code accordingly.
6696 (rs6000_core_ldinfo): Delete, folded into
6697 rs6000_aix_core_xfer_shared_libraries_aix.
6698 (rs6000_xfer_shared_library): Delete.
6699 (rs6000_xfer_shared_libraries): Reimplement.
6700
742ce053
MM
67012013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6702
6703 * record.c (record_goto_cmdlist): New.
6704 (cmd_record_goto): Split into this ...
6705 (cmd_record_goto_begin): ... this
6706 (cmd_record_goto_end): ... and this.
6707 (_initialize_record): Change "record goto" to prefix command.
6708 Add commands for "record goto begin" and "record goto end".
6709 Add an alias for "record goto start" to "record goto begin".
6710
e93ba630
JK
67112013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6712
6713 * linespec.c (convert_linespec_to_sals): New comment for
6714 SOURCE_FILENAME assignment.
6715
5821aace
JK
67162013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6717
6718 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6719 internal_warning.
6720
a1b8c4cc
TT
67212013-05-14 Tom Tromey <tromey@redhat.com>
6722
6723 * eval.c (parse_and_eval_long): Make 'exp' const.
6724 * value.h (parse_and_eval_long): Update.
6725
23b3a2c3
TT
67262013-05-14 Tom Tromey <tromey@redhat.com>
6727
6728 * ui-file.c (gdb_fopen): Make arguments const.
6729 * ui-file.h (gdb_fopen): Make arguments const.
6730
ca623f82
TT
67312013-05-14 Tom Tromey <tromey@redhat.com>
6732
6733 * remote.c (remote_set_trace_notes): Make arguments const.
6734 * target.c (update_current_target): Update cast.
6735 * target.h (to_set_trace_notes): Make arguments const.
6736
503ebb2c
TT
67372013-05-14 Tom Tromey <tromey@redhat.com>
6738
6739 * go32-nat.c (go32_terminal_info): Make 'args' const.
6740 * inferior.h (child_terminal_info): Update.
6741 * inflow.c (child_terminal_info): Make 'args' const.
6742 * target.c (default_terminal_info): Make 'args' const.
6743 (debug_to_terminal_save_ours): Likewise.
6744 * target.h (struct target_ops) <to_terminal_info>: Make argument
6745 const.
6746
85e1311a
TT
67472013-05-13 Tom Tromey <tromey@redhat.com>
6748
6749 * gcore.c (create_gcore_bfd): Make 'filename' const.
6750 * gcore.h (create_gcore_bfd): Make 'filename' const.
6751 * record-full.c (record_full_save): Make 'recfilename' const.
6752 * target.c (target_save_record): Make 'filename' const.
6753 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6754 const.
6755 (target_save_record): Likewise.
6756
d62bfeaf
TT
67572013-05-13 Tom Tromey <tromey@redhat.com>
6758
f5aee5ee 6759 PR gdb/15338:
d62bfeaf
TT
6760 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6761 ranges section has been read.
6762
ac1ca910
TT
67632013-05-13 Tom Tromey <tromey@redhat.com>
6764
6765 PR exp/15364:
6766 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6767 STRUCTOP_PTR>: Return a not_lval value for
6768 EVAL_AVOID_SIDE_EFFECTS.
6769 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6770 for EVAL_AVOID_SIDE_EFFECTS.
6771
36d1c68c
JB
67722013-05-13 Joel Brobecker <brobecker@adacore.com>
6773
6774 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6775 floating point registers to register type before storing
6776 value.
6777 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6778 Likewise.
6779
21ff4686
TT
67802013-05-10 Joel Brobecker <brobecker@adacore.com>
6781 Tom Tromey <tromey@redhat.com>
6782
6783 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6784 New functions.
6785 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6786 Declare.
6787 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6788 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6789 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6790 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6791
d3685d60
TT
67922013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6793 Tom Tromey <tromey@redhat.com>
6794
6795 PR build/15414:
6796 * configure: Rebuild.
6797 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6798 with -Wno-format.
6799
eb9fe518
PA
68002013-05-10 Pedro Alves <palves@redhat.com>
6801
6802 * remote.c (_initialize_remote): Fix spelling of
6803 qXfer:traceframe-info:read packet in packet config command.
6804
9779ab84
PA
68052013-05-10 David Taylor <dtaylor@emc.com>
6806
6807 PR remote/15455
6808
6809 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6810 "QTro" at start of packet.
6811
060cfbef
JB
68122013-05-10 Joel Brobecker <brobecker@adacore.com>
6813
6814 * solib-aix.c (solib_aix_relocate_section_addresses):
6815 For the .bss section action, apply the same offset as
6816 the .data section.
6817
ab1c4e88
JB
68182013-05-10 Joel Brobecker <brobecker@adacore.com>
6819
6820 * solib-aix.c (solib_aix_relocate_section_addresses):
6821 Remove FIXME comment.
6822
c1357578
JB
68232013-05-10 Joel Brobecker <brobecker@adacore.com>
6824
6825 PR tdep/15420:
6826 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6827 New functions, directly copied from sparc-sol-thread.c.
6828 * sparc-sol-thread.c: Delete.
6829 * configure.ac: Remove code handling sparc-solaris-thread.c.
6830 * configure: Regenerate.
6831
1e611234
PM
68322013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6833
6834 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6835 filter logic.
6836 (backtrace_command): Add "no-filters" option parsing.
6837 (_initialize_stack): Alter help to reflect "no-filters" option.
6838 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6839 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6840 (py-frame.o): Add target
6841 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6842 filter files.
6843 * python/python.h: Add new frame filter constants, and flag enum.
6844 (apply_frame_filter): Add definition.
6845 * python/python.c (apply_frame_filter): New non-Python
6846 enabled function.
6847 * python/py-utils.c (py_xdecref): New function.
6848 (make_cleanup_py_xdecref): Ditto.
6849 * python/py-objfile.c: Declare frame_filters dictionary.
6850 (objfpy_dealloc): Add frame_filters dealloc.
6851 (objfpy_new): Initialize frame_filters attribute.
6852 (objfile_to_objfile_object): Ditto.
6853 (objfpy_get_frame_filters): New function.
6854 (objfpy_set_frame_filters): New function.
6855 * python/py-progspace.c: Declare frame_filters dictionary.
6856 (pspy_dealloc): Add frame_filters dealloc.
6857 (pspy_new): Initialize frame_filters attribute.
6858 (pspacee_to_pspace_object): Ditto.
6859 (pspy_get_frame_filters): New function.
6860 (pspy_set_frame_filters): New function.
6861 * python/py-framefilter.c: New file.
6862 * python/lib/gdb/command/frame_filters.py: New file.
6863 * python/lib/gdb/frames.py: New file.
6864 * python/lib/gdb/__init__.py: Initialize global frame_filters
6865 dictionary
6866 * python/lib/gdb/FrameDecorator.py: New file.
6867 * python/lib/gdb/FrameIterator.py: New file.
6868 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6869 * mi/mi-cmds.h: Declare.
6870 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6871 --no-frame-filter logic, and Python frame filter logic.
6872 (stack_enable_frame_filters): New function.
6873 (parse_no_frame_option): Ditto.
6874 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6875 filter logic.
6876 (mi_cmd_stack_list_locals): Ditto.
6877 (mi_cmd_stack_list_args): Ditto.
6878 (mi_cmd_stack_list_variables): Ditto.
6879 * NEWS: Add frame filter note.
6880
2cb9c859
DE
68812013-05-09 Doug Evans <dje@google.com>
6882
6bf667bb
DE
6883 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6884 All callers updated.
6885 (syms_from_objfile): Ditto. Make static.
6886 (symbol_file_add_with_addrs): Renamed from
6887 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6888 num_offsets. All callers updated.
6889 * symfile.h (syms_from_objfile): Delete.
6890
2cb9c859
DE
6891 * symfile.c (decrement_reading_symtab): Add assert.
6892 (increment_reading_symtab): Ditto.
6893
40aea477
JB
68942013-05-09 Joel Brobecker <brobecker@adacore.com>
6895
6896 * source.c (forward_search_command): Replace call to getc
6897 by call to fgetc.
6898 (reverse_search_command): Likewise.
6899
680d1742
DE
69002013-05-08 Doug Evans <dje@google.com>
6901
6902 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6903 matching test.
6904
17e760ae
JB
69052013-05-08 Joel Brobecker <brobecker@adacore.com>
6906
6907 * sol-thread.c (info_cb): Factorize the code a little.
6908
c0f5f490
JB
69092013-05-08 Joel Brobecker <brobecker@adacore.com>
6910
6911 * sol-thread.c (info_cb): Rework the output of the "maintenance
6912 info sol-threads" command a bit.
6913
5d74e061
JB
69142013-05-08 Joel Brobecker <brobecker@adacore.com>
6915
6916 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6917 Replace ti.ti_startfunc by ti.ti_pc.
6918
814a3ff7
JB
69192013-05-08 Joel Brobecker <brobecker@adacore.com>
6920
6921 * solib-aix.c (solib_aix_free_library_list): New function
6922 for the case where HAVE_LIBEXPAT is not defined.
6923
58ce7251
SDJ
69242013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6925
6926 PR breakpoints/15413:
6927 * breakpoint.c (condition_completer): Simplify the code to
6928 disconsider multiple locations of breakpoints when completing the
6929 "condition" command.
6930
be8b1ea6
PM
69312013-05-07 Pierre Muller <muller@sourceware.org>
6932
6933 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6934 instead of <sys/wait.h>.
6935
1e52bda6
PM
69362013-05-07 Pierre Muller <muller@sourceware.org>
6937
6938 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6939 trailing new line from warning message.
6940
27fd0c6b
PM
69412013-05-07 Pierre Muller <muller@sourceware.org>
6942
6943 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6944 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6945
e228ac87
JB
69462013-05-07 Joel Brobecker <brobecker@adacore.com>
6947
6948 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6949 error message (ARI fix).
6950
69512013-05-07 Joel Brobecker <brobecker@adacore.com>
6952
6953 * features/library-list-aix.dtd: Replace library-list by
6954 library-list-aix.
6955 * rs6000-nat.c: Replace library-list by library-list-aix
6956 throughout.
6957 * solib-aix.c: Likewise.
6958
69592013-05-07 Joel Brobecker <brobecker@adacore.com>
6960
6961 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6962 Renames TARGET_OBJECT_AIX_LIBRARIES.
6963 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6964 TARGET_OBJECT_LIBRARIES_AIX throughout.
6965 * solib-aix.c: Likwise.
6966
26a4dda9
YQ
69672013-05-07 Yao Qi <yao@codesourcery.com>
6968
6969 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6970 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6971
3582629f
YQ
69722013-05-07 Yao Qi <yao@codesourcery.com>
6973
6974 * solib-dsbt.c (enable_break): Declare.
6975 (dsbt_current_sos): Remove call to enable_break2.
6976 (enable_break2): Rename to enable_break. Set solib breakpoint
6977 on '_dl_debug_state'.
6978 (enable_break): Remove.
6979
aacbb8a5
LM
69802013-05-07 Luis Machado <lgustavo@codesourcery.com>
6981
6982 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6983 debug state prior to replicating existing hardware watchpoints or
6984 breakpoints.
6985
0c013353
JK
69862013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6987
6988 * gcore.c (gcore_create_callback): Ignore sections with
6989 separate_debug_objfile_backlink != NULL.
6990
a1217d97
SL
69912013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6992 Andrew Jenner <andrew@codesourcery.com>
6993 Chung-Lin Tang <cltang@codesourcery.com>
6994 Julian Brown <julian@codesourcery.com>
6995
6996 Based on the nios2-elf port from Altera Corporation.
6997
6998 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6999 nios2-linux-tdep.o.
7000 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7001 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7002 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7003 * nios2-tdep.h: New.
7004 * nios2-tdep.c: New.
7005 * nios2-linux-tdep.c: New.
7006 * features/Makefile (WHICH): Add nios2-linux.
7007 (nios2-linux-expedite): Set.
7008 * features/nios2-cpu.xml: New.
7009 * features/nios2.xml: New.
7010 * features/nios2-linux.xml: New.
7011 * features/nios2.c: New (autogenerated).
7012 * features/nios2-linux.c: New (autogenerated).
7013 * regformats/nios2-linux.dat: New (autogenerated).
7014 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7015 and commands.
7016
0892cb63
DE
70172013-05-06 Doug Evans <dje@google.com>
7018
3b7bacac
DE
7019 * symfile.c: Whitespace cleanup.
7020
0892cb63
DE
7021 * solist.h (struct target_so_ops): New member clear_so.
7022 * solib-svr4.c (svr4_clear_so): New function.
7023 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7024 * solib.c (clear_so): Renamed from free_so_symbols.
7025 All callers updated. Call target clear_so if it exists.
7026
40501e00
TT
70272013-05-06 Tom Tromey <tromey@redhat.com>
7028
7029 * ada-lang.c (ada_value_primitive_packed_val): Don't
7030 call value_incref.
7031 * value.c (set_value_parent): Incref the new parent and decref
7032 the old parent.
7033 (value_copy, value_primitive_field): Use set_value_parent.
7034
b6807d98
TT
70352013-05-06 Tom Tromey <tromey@redhat.com>
7036
7037 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7038 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7039 if needed.
7040 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7041 * dwarf2read.c (write_constant_as_bytes)
7042 (dwarf2_fetch_constant_bytes): New functions.
7043
3aef2284
TT
70442013-05-06 Tom Tromey <tromey@redhat.com>
7045
7046 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7047 parameters.
7048 (dwarf2_const_value_attr): Update.
7049
66f65e2b
TT
70502013-05-06 Tom Tromey <tromey@redhat.com>
7051
7052 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7053 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7054 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7055 Remove declaration.
7056
7919a973
TT
70572013-05-06 Tom Tromey <tromey@redhat.com>
7058
7059 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7060 objfile's obstack.
7061
a7bfba49
DE
70622013-05-06 Doug Evans <dje@google.com>
7063
3189cb12
DE
7064 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7065 * stabsread.h (process_one_symbol): Update declaration.
7066 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7067 * elfread.c (elf_symfile_relocate_probe): Ditto.
7068 * psymtab.c (relocate_psymtabs): Ditto.
7069 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7070 (objfile_relocate): Ditto.
7071 * objfiles.h (objfile_relocate): Update declaration.
7072 * symfile.c (relative_addr_info_to_section_offsets): Constify
7073 addrs parameter.
7074 (default_symfile_offsets): Ditto.
7075 (syms_from_objfile_1): Constify offsets parameter.
7076 (syms_from_objfile): Ditto.
7077 (symbol_file_add_with_addrs_or_offsets): Ditto.
7078 (symfile_map_offsets_to_segments): Constify data parameter.
7079 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7080 delta parameters of member relocate.
7081 (struct sym_probe_fns): Constify new_offsets,
7082 delta parameters of member sym_relocate_probe.
7083 (struct sym_fns): Constify section_addr_info parameter of member
7084 sym_offsets.
7085 (relative_addr_info_to_section_offsets): Update declaration.
7086 (default_symfile_offsets): Ditto.
7087 (syms_from_objfile): Ditto.
7088 (symfile_map_offsets_to_segments): Ditto.
7089
a7bfba49
DE
7090 * symfile.c (syms_from_objfile_1): Use correct section count when
7091 objfile->sf == NULL.
7092
5f8e0b8f
MF
70932013-05-06 Mike Frysinger <vapier@gentoo.org>
7094
7095 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7096
ea52d893
DE
70972013-05-06 Doug Evans <dje@google.com>
7098
7099 * psympriv.h (struct partial_symtab): Augment comment for member
7100 section_offsets.
7101
4d1eb6b4
JB
71022013-05-06 Joel Brobecker <brobecker@adacore.com>
7103
7104 Reimplement shared library support on ppc-aix...
7105 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7106 * features/library-list-aix.dtd: New file.
7107 * solib-aix.h, solib-aix.c: New file.
7108 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7109 (rs6000_find_toc_address_hook): Delete.
7110 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7111 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7112 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7113 "xml-utils.h".
7114 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7115 (vmap_symtab, fixup_breakpoints): Delete.
7116 (rs6000_xfer_shared_libraries): New function.
7117 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7118 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7119 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7120 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7121 (rs6000_xfer_shared_library): New function.
7122 (find_toc_address): Delete.
7123 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7124 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7125 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7126 before creating minimal symbol. Adjust function description
7127 accordingly.
7128 (scan_xcoff_symtab): Replace call to
7129 prim_record_minimal_symbol_and_info by call to
7130 record_minimal_symbol.
7131 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7132 around default_symfile_offsets.
7133 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7134 powerpc-aix targets.
7135 * config/rs6000/nm-rs6000.h: Delete.
7136 * config/powerpc/aix.mh (NAT_FILE): Delete.
7137 (NATDEPFILES): Remove xcoffsolib.o.
7138 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7139 (ALL_TARGET_OBS): Add solib-aix.o.
7140 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7141 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7142 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7143 * xcoffsolib.h, xcoffsolib.c: Delete.
7144
7145 * solib.c (reload_shared_libraries): Remove reference to
7146 SOLIB_CREATE_INFERIOR_HOOK.
7147 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7148 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7149 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7150 comment.
7151 * corelow.c (deprecated_core_resize_section_table): Delete.
7152 * exec.c: Remove include of xcoffsolib.h".
7153 (map_vmap, vmap): Delete.
7154 (exec_close_1): Remove references to vmap.
7155 (exec_file_attach): Remove vmap handling code, and reference
7156 to DEPRECATED_IBM6000_TARGET.
7157 (bfdsec_to_vmap): Delete.
7158 (exec_files_info): Remove block of code handling VMAP.
7159 * infcmd.c (post_create_inferior): Remove reference to
7160 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7161 * infrun.c (follow_exec): Remove reference to
7162 SOLIB_CREATE_INFERIOR_HOOK.
7163 * stack.c (print_frame): Remove reference to PC_SOLIB.
7164 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7165 (dsbt_relocate_main_executable): Likewise.
7166 * solib-frv.c (frv_current_sos): Likewise.
7167
0c4f667c
JB
71682013-05-06 Joel Brobecker <brobecker@adacore.com>
7169
7170 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7171 to target_write_memory and target_read_memory.
7172
726ce67c
JB
71732013-05-06 Joel Brobecker <brobecker@adacore.com>
7174
7175 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7176 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7177
c8c9911f
JB
71782013-05-06 Joel Brobecker <brobecker@adacore.com>
7179
7180 * darwin-nat.c: Replace all "%x" instances in format strings
7181 into "0x%x" throughout.
7182
fda184b6
JB
71832013-05-06 Joel Brobecker <brobecker@adacore.com>
7184
7185 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7186 gdb_assert by call to MACH_CHECK_ERROR.
7187 (darwin_attach_pid): Raise an error rather than a failed
7188 assertion when various system calls failed. Report a warning
7189 instead of raising a failed assertion when PREV_NOT is not NULL
7190 after call to mach_port_request_notification.
7191 (darwin_ptrace_me): Raise an error rather than a failed
7192 assertion when read returns nonzero.
7193
d1d69afb
JB
71942013-05-06 Joel Brobecker <brobecker@adacore.com>
7195
7196 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7197
dc90b24d
JK
71982013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7199
7200 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7201
faab9922
JK
72022013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7203
7204 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7205 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7206 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7207 a stale cleanup. Fix double free of NAME.
7208
e0ea48a0
EZ
72092013-05-04 Eli Zaretskii <eliz@gnu.org>
7210
7211 * windows-nat.c (windows_delete_thread): Accept an additional
7212 argument, the thread's exit code, and announce thread death when
7213 print_thread_events is non-zero and we are deleting a thread that
7214 is not the main thread.
7215 (get_windows_debug_event): Pass thread exit code to
7216 windows_delete_thread.
7217
83b2706a
KB
72182013-05-03 Kevin Buettner <kevinb@redhat.com>
7219
7220 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7221 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7222 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7223 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7224 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7225 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7226 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7227 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7228 (gdbarch_tdep): New struct.
7229 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7230 E_NUM_REGS.
7231 (v850e3v5_register_name): New function.
7232 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7233 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7234 code handling the struct return conventions for the RH850 ABI.
7235 Update all callers.
7236 (v850_eight_byte_align_p): New function.
7237 (v850_push_call_dummy): Push structs by value, not by reference
7238 for the RH850 ABI. Add support for eight byte alignment.
7239 (v850_dbtrap_breakpoint_from_pc): New function.
7240 (v850_gdbarch_init): Add ABI detection code. Register
7241 v850e3v5_register_name for the v850e3v5 architecture. Set the
7242 number of registers for v850e3v5. Register
7243 v850_dbtrap_breakpoint_from_pc as appropriate.
7244 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7245
d445b2f6
DE
72462013-05-03 Doug Evans <dje@google.com>
7247
7248 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7249 of bfd_count_sections.
7250 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7251 * symfile.c (default_symfile_offsets): Ditto.
7252 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7253 one entry, not bfd_count_sections entries.
7254
b3ce41ea
KB
72552013-05-03 Kevin Buettner <kevinb@redhat.com>
7256
7257 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7258 `save' and `restore' register groups. Don't include SPL
7259 or SPH in these groups.
7260 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7261 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7262 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7263 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7264 dwarf2_append_unwinders().
7265
96f7d3f1
PW
72662013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7267
7268 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7269 ignore SIGINT and SIGTRAP in case these internal signals are
7270 caught explicitely.
7271
b9dd1947
JB
72722013-05-01 Joel Brobecker <brobecker@adacore.com>
7273
7274 * darwin-nat.c (darwin_read_write_inferior): Change types
7275 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7276 of copy_count to "mach_msg_type_number_t".
7277 (darwin_read_dyld_info): Change type of parameter
7278 rdaddr to "gdb_byte *".
7279
4ca18a63
JB
72802013-05-01 Joel Brobecker <brobecker@adacore.com>
7281
7282 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7283 of &info->load_map from "char *" to "gdb_byte *".
7284
2b692d32
JB
72852013-05-01 Joel Brobecker <brobecker@adacore.com>
7286
7287 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7288 from "char *" to "gdb_byte *".
7289 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7290
a98c29a0
DE
72912013-04-30 Doug Evans <dje@google.com>
7292
6a506a2d
DE
7293 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7294 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7295 DWO stub. If DWO isn't found, just use stub.
7296 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7297
a98c29a0
DE
7298 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7299 calling init_cutu_and_read_dies.
7300
f92b06da
WT
73012013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7302
7303 * target-descriptions.c (maint_print_c_tdesc_cmd):
7304 Add case to parse structures as register types and
7305 bitfields.
7306
95eebdcc
WT
73072013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7308
7309 * MAINTAINERS (Write After Approval): Add myself to the list.
7310
019c1128
JB
73112013-04-30 Joel Brobecker <brobecker@adacore.com>
7312
7313 * sol-thread.c (rw_common): Change type of parameter "buf"
7314 to "gdb_byte *".
7315 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7316 rw_common to "gdb_byte *" instead of "char *".
7317
5812197c
JB
73182013-04-30 Joel Brobecker <brobecker@adacore.com>
7319
7320 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7321 of local variable msym to const struct bound_minimal_symbol.
7322 Adjust use accordingly.
7323 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7324
ecccb813
TS
73252013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7326
7327 * i386gnu-nat.c (CREG_OFFSET): New macro.
7328 (creg_offset): New array.
7329 (CREG_ADDR): Use creg_offset instead of reg_offset.
7330
f1d02dd4 73312013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7332
7333 * mep-tdep.c (mep_write_pc): Delete.
7334 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7335 Add call to set_gdbarch_pc_regnum.
7336
f1d02dd4 73372013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7338
7339 * common/filestuff.c: Replace #include <dirent.h> by
7340 #include "gdb_dirent.h".
7341
f1d02dd4 73422013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7343
7344 * common/filestuff.c: Replace #include <sys/stat.h> by
7345 #include "gdb_stat.h".
7346
b385a60d
PM
73472013-04-29 Pierre Muller <muller@sourceware.org>
7348
7349 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7350 editCase function rule.
7351 (get_DW_AT_signature_type): Likewise.
7352
d27b54ad
JB
73532013-04-29 Joel Brobecker <brobecker@adacore.com>
7354
7355 * m32r-tdep.c (m32r_write_pc): Delete.
7356 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7357 Add call to set_gdbarch_pc_regnum.
7358
47d21dc5
PM
73592013-04-29 Pierre Muller <muller@sourceware.org>
7360
7361 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7362
9056882e
JB
73632013-04-29 Joel Brobecker <brobecker@adacore.com>
7364
7365 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7366
7ee4732a
YQ
73672013-04-28 Yao Qi <yao@codesourcery.com>
7368
7369 * solib-dsbt.c (fetch_loadmap): Re-indent.
7370 (displacement_from_map, enable_break2): Likewise.
7371 (dsbt_relocate_section_addresses): Likewise.
7372
2260af53 73732013-04-26 Joel Brobecker <brobecker@adacore.com>
7374
7375 GDB 7.6 released.
7376
ff546935
TT
73772013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7378
7379 PR corefiles/14983:
7380 * dwarf2read.c (process_full_comp_unit): Always create a static
7381 block.
7382
40fb6c5e
HZ
73832013-04-25 Hui Zhu <hui@codesourcery.com>
7384
7385 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7386 to loc->cmd_bytecode.
7387
74e04d1c
DE
73882013-04-24 Doug Evans <dje@google.com>
7389
7390 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7391
3cf62c1d
KS
73922013-04-22 Keith Seitz <keiths@redhat.com>
7393
7394 * tracepoint.c (trace_save): Call the writer's start method.
7395
bf9e4d0c
MB
73962013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7397
7398 PR gdb/10462
7399 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7400 before argument.
7401
5d71132c
TT
74022013-04-23 Tom Tromey <tromey@redhat.com>
7403
7404 * common/filestuff.c: Check USE_WIN32API before including
7405 sys/socket.h.
7406 (HAVE_F_GETFD): New define.
7407 (mark_cloexec): Check HAVE_F_GETFD.
7408 (gdb_open_cloexec): Change 'mode' to unsigned long.
7409 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7410 (gdb_pipe_cloexec): Check HAVE_PIPE.
7411 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7412 long.
7413
a11cfd87
HZ
74142013-04-23 Hui Zhu <hui@codesourcery.com>
7415
7416 PR gdb/15293
a11cfd87
HZ
7417 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7418
2d9442cc
HZ
74192013-04-23 Hui Zhu <hui@codesourcery.com>
7420
7421 PR gdb/15165
2d9442cc
HZ
7422 * breakpoint.c (dprintf_print_recreate): New.
7423 (save_breakpoints): Let it not save dprintf commands.
7424 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7425
614c279d
TT
74262013-04-22 Tom Tromey <tromey@redhat.com>
7427
7428 PR gdb/7912:
7429 * Makefile.in (SFILES): Add filestuff.c
7430 (COMMON_OBS): Add filestuff.o.
7431 (filestuff.o): New target.
7432 * auto-load.c (auto_load_objfile_script_1): Use
7433 gdb_fopen_cloexec.
7434 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7435 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7436 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7437 * common/agent.c (gdb_connect_sync_socket): Use
7438 gdb_socket_cloexec.
7439 * common/filestuff.c: New file.
7440 * common/filestuff.h: New file.
7441 * common/linux-osdata.c (linux_common_core_of_thread)
7442 (command_from_pid, commandline_from_pid, print_source_lines)
7443 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7444 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7445 gdb_fopen_cloexec.
7446 * common/linux-procfs.c (linux_proc_get_int)
7447 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7448 * config.in, configure: Rebuild.
7449 * configure.ac: Don't check for sys/socket.h. Check for
7450 fdwalk, pipe2.
7451 * corelow.c (core_open): Use gdb_open_cloexec.
7452 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7453 * fork-child.c (fork_inferior): Call close_most_fds.
7454 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7455 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7456 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7457 Use gdb_fopen_cloexec.
7458 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7459 gdb_open_cloexec.
7460 (linux_async_pipe): Use gdb_pipe_cloexec.
7461 * remote-fileio.c (remote_fileio_func_open): Use
7462 gdb_open_cloexec.
7463 * remote.c (remote_file_put, remote_file_get): Use
7464 gdb_fopen_cloexec.
7465 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7466 close_most_fds.
7467 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7468 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7469 * solib.c (solib_find): Use gdb_open_cloexec.
7470 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7471 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7472 (tfile_open): Use gdb_open_cloexec.
7473 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7474 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7475 * xml-support.c (xml_fetch_content_from_file): Use
7476 gdb_fopen_cloexec.
7477 * main.c (captured_main): Call notice_open_fds.
7478
5fda2332
EBM
74792013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7480
7481 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7482 'char *' to 'gdb_byte *'.
7483 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7484 'gdb_byte'.
7485
eb6c553b
YQ
74862013-04-22 Yao Qi <yao@codesourcery.com>
7487
7488 * infrun.c: Fix typo in comment.
7489
9991b207
SDJ
74902013-04-22 Andrew Haley <aph@redhat.com>
7491
7492 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7493 instead of "long".
7494
8b4833e3
YQ
74952013-04-20 Yao Qi <yao@codesourcery.com>
7496
7497 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7498 'char *' to 'gdb_byte *'. Cast the return value of
7499 'bt_ctf_get_char_array' to 'gdb_byte *'.
7500
bd3f3b55
PA
75012013-04-19 Pedro Alves <palves@redhat.com>
7502
7503 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7504 -Wpointer-sign.
7505 * configure: Regenerate.
7506
c49e7f76
PA
75072013-04-19 Pedro Alves <palves@redhat.com>
7508
7509 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7510 'void *'.
7511
12ff8552
PA
75122013-04-19 Pedro Alves <palves@redhat.com>
7513
7514 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7515 Change type of 'myaddr' parameter to gdb_byte pointer.
7516 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7517 to 'long long' pointer instead of to 'unsigned long long'.
7518 (monitor_write_memory_block, monitor_read_memory_single)
7519 (monitor_read_memory): Change type of 'myaddr' parameter to
7520 gdb_byte pointer.
7521
9c37696b
PA
75222013-04-19 Pedro Alves <palves@redhat.com>
7523
7524 * record.c (validate_history_size): Make parameter 'setting'
7525 unsigned.
7526
a398505b
PA
75272013-04-19 Pedro Alves <palves@redhat.com>
7528
7529 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7530 to 'gdb_byte *'.
7531
9f8afa72
PA
75322013-04-19 Pedro Alves <palves@redhat.com>
7533
7534 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7535 local to int.
7536
c714b426
PA
75372013-04-19 Pedro Alves <palves@redhat.com>
7538
7539 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7540 * ada-tasks.c (read_fat_string_value): Likewise.
7541
507a579c
PA
75422013-04-19 Pedro Alves <palves@redhat.com>
7543
7544 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7545 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7546 'offset', and adjust.
7547
f9d83a0b
PA
75482013-04-19 Pedro Alves <palves@redhat.com>
7549
7550 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7551 (read_index_from_section): Add cast to 'char *'.
7552
745eb4fd
PA
75532013-04-19 Pedro Alves <palves@redhat.com>
7554
7555 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7556
db5be46f
PA
75572013-04-19 Pedro Alves <palves@redhat.com>
7558
7559 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7560
0f928d68
PA
75612013-04-19 Pedro Alves <palves@redhat.com>
7562
7563 * record-full.c (record_full_get_bookmark): Change local 'ret'
7564 type to char * and add cast to gdb_byte *.
7565 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7566 string.
7567 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7568
89f6d837
PA
75692013-04-19 Pedro Alves <palves@redhat.com>
7570
7571 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7572 * python/py-prettyprint.c (print_string_repr): Change type of
7573 'output' local to char *. Add cast to gdb_byte * in
7574 LA_PRINT_STRING call.
7575 (print_children): Change type of 'output' local to char *.
7576 * python/py-value.c (valpy_string): Add cast to const char * in
7577 PyUnicode_Decode call.
7578
ce6ec7d8
PA
75792013-04-19 Pedro Alves <palves@redhat.com>
7580
7581 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7582 and change its type to 'const char *'. Adjust.
7583 (mips_send_packet): Add cast to 'char *', and remove cast to
7584 'unsigned char *'.
7585 (mips_receive_packet): Remove cast to 'unsigned char *'.
7586 (mips_load_srec): Use bfd_byte.
7587 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7588 (pmon_checkset): Make 'value' parameter unsigned.
7589
fda0389f
PA
75902013-04-19 Pedro Alves <palves@redhat.com>
7591
7592 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7593
bc20a4af
PA
75942013-04-19 Pedro Alves <palves@redhat.com>
7595
7596 * remote.c (remote_write_bytes_aux, compare_sections_command)
7597 (remote_read_qxfer)
7598 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7599 (remote_hostio_readlink, remote_bfd_iovec_pread)
7600 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7601 binary buffer, and char when buffer is used as string.
7602 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7603 (trace_save, tfile_open, traceframe_walk_blocks)
7604 (tfile_fetch_registers): Likewise.
7605
c628b528
PA
76062013-04-19 Pedro Alves <palves@redhat.com>
7607
7608 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7609 buffer and size_t size. Adjust.
7610 * ser-base.h (ser_base_write): Adjust.
7611 * ser-go32.c (cnts): Change type to size_t.
7612 (dos_write): Change prototype -- take 'void *'
7613 buffer and size_t size. Adjust.
7614 (dos_info): Print elements of 'cnts' as unsigned long.
7615 * serial.c (serial_write): Likewise.
7616 * serial.h (serial_write): Adjust.
7617 (struct serial_ops) <write>: Change prototype -- take 'void *'
7618 buffer and size_t size. Adjust.
7619
51a5cd90
PA
76202013-04-19 Pedro Alves <palves@redhat.com>
7621
7622 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7623 gdb_byte *.
7624 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7625
a9933661
PA
76262013-04-19 Pedro Alves <palves@redhat.com>
7627
7628 * alpha-tdep.c (alpha_extract_return_value): Use
7629 regcache_cooked_read_unsigned to read 'v0'.
7630
19afdd07
PA
76312013-04-19 Pedro Alves <palves@redhat.com>
7632
7633 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7634 parameters 'at', 'as' and 'offset' to uint32_t.
7635
96b32e50
PA
76362013-04-19 Pedro Alves <palves@redhat.com>
7637
7638 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7639 'is64' to signed 'int'.
7640
eb1bd1fb
PA
76412013-04-19 Pedro Alves <palves@redhat.com>
7642
7643 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7644 parameter to int *.
7645
463920bf
PA
76462013-04-19 Pedro Alves <palves@redhat.com>
7647
7648 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7649 'insnbuf' buffer type to unsigned int[].
7650
70242eb1
PA
76512013-04-19 Pedro Alves <palves@redhat.com>
7652
7653 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7654
9d1dd0e2
PA
76552013-04-19 Pedro Alves <palves@redhat.com>
7656
7657 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7658 unsigned long *.
7659
44096aee
PA
76602013-04-19 Pedro Alves <palves@redhat.com>
7661
7662 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7663 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7664 UINT_MAX.
7665 * mips-tdep.c (heuristic_fence_post): Change type to int.
7666 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7667
e4286e57
PA
76682013-04-19 Pedro Alves <palves@redhat.com>
7669
7670 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7671 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7672 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7673
001f13d8
PA
76742013-04-19 Pedro Alves <palves@redhat.com>
7675
7676 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7677 it to get a string view of the byte buffer.
7678 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7679 type to gdb_byte *. Adjust.
7680 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7681 Change local to char *.
7682 * solib-darwin.c (find_program_interpreter): Change return type to
7683 char *. Adjust.
7684 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7685 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7686 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7687 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7688 * solib-svr4.c (find_program_interpreter): Change return type to
7689 char *. Adjust.
7690 (enable_break): Change local 'interp_name' to char *.
7691 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7692 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7693 (spu_pseudo_register_write_spu): Use char for string buffer.
7694 Adjust.
7695 (info_spu_event_command, info_spu_signal_command): Add casts to
7696 'char *'.
7697
948f8e3d
PA
76982013-04-19 Pedro Alves <palves@redhat.com>
7699
7700 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7701 gdb_byte[].
7702 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7703 * ada-lang.c (ada_value_assign): Use gdb_byte.
7704 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7705 (alphanbsd_sigtramp_offset): Use gdb_byte.
7706 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7707 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7708 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7709 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7710 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7711 * arm-tdep.c (arm_stub_unwind_sniffer)
7712 (arm_displaced_init_closure): Use gdb_byte.
7713 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7714 (arm_default_thumb_le_breakpoint)
7715 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7716 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7717 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7718 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7719 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7720 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7721 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7722 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7723 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7724 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7725 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7726 (cris_store_return_value, cris_extract_return_value): Use
7727 gdb_byte.
7728 (constraint): Change type of parameter to char * from signed
7729 char*. Use gdb_byte.
7730 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7731 of local buffer to gdb_byte *.
7732 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7733 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7734 (add_address_entry): Change type of local buffer to gdb_byte[].
7735 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7736 (frv_push_dummy_call): Use gdb_byte.
7737 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7738 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7739 (hppa_hpux_supply_save_state): Use gdb_byte.
7740 * hppa-tdep.c (hppa32_push_dummy_call)
7741 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7742 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7743 (slotN_contents, replace_slotN_contents): Change type of parameter
7744 to gdb_byte *.
7745 (fetch_instruction, ia64_pseudo_register_write)
7746 (ia64_register_to_value, ia64_value_to_register)
7747 (ia64_extract_return_value, ia64_store_return_value)
7748 (ia64_push_dummy_call): Use gdb_byte.
7749 * m32c-tdep.c (m32c_return_value): Remove cast.
7750 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7751 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7752 gdb_byte.
7753 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7754 * mn10300-tdep.c (mn10300_store_return_value)
7755 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7756 gdb_byte.
7757 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7758 (moxie_process_record): Remove casts.
7759 * ppc-ravenscar-thread.c (supply_register_at_address)
7760 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7761 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7762 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7763 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7764 * remote.c (compare_sections_command): Use gdb_byte.
7765 * score-tdep.c (score7_free_memblock): Change type of parameter to
7766 gdb_byte *.
7767 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7768 gdb_byte *. Use gdb_byte.
7769 (sh_push_dummy_call_fpu): Use gdb_byte.
7770 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7771 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7772 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7773 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7774 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7775 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7776 (sh64_store_return_value, sh64_register_convert_to_virtual):
7777 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7778 (sh64_pseudo_register_write): Use gdb_byte.
7779 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7780 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7781 buffer.
7782 (irix_current_sos): Use gdb_byte.
7783 * solib-som.c (som_current_sos): Use gdb_byte.
7784 * sparc-ravenscar-thread.c (supply_register_at_address)
7785 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7786 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7787 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7788 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7789 'gdb_byte *'.
7790 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7791 'gdb_byte *'.
7792 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7793 * xstormy16-tdep.c (xstormy16_extract_return_value)
7794 (xstormy16_store_return_value): Change parameter type to
7795 'gdb_byte *'. Adjust.
7796 (xstormy16_push_dummy_call): Use gdb_byte.
7797 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7798 (call0_analyze_prologue, execute_code): Use gdb_byte.
7799
433730c9
PA
78002013-04-19 Vladimir Kargov <kargov@gmail.com>
7801 Pedro Alves <palves@redhat.com>
7802
7803 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7804 value contents.
7805
ac9ec31b
DE
78062013-04-17 Doug Evans <dje@google.com>
7807
7808 * dwarf2read.c (struct signatured_type): New member type.
7809 (struct attribute): Replace member signatured_type with signature.
7810 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7811 (read_call_site_scope): Call follow_die_ref instead of
7812 follow_die_ref_or_sig.
7813 (read_structure_type): Rewrite handling of signatured types.
7814 (read_enumeration_type): Ditto.
7815 (read_attribute_value): Update.
7816 (build_error_marker_type): New function.
7817 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7818 Don't call error for bad types, just build an error marker type.
7819 (dump_die_shallow): Update.
7820 (follow_die_sig_1): Renamed from follow_die_sig.
7821 Don't call error for bad types, instead return NULL.
7822 (follow_die_sig): New function.
7823 (get_signatured_type, get_DW_AT_signature_type): New functions.
7824
e546e8bb
YZ
78252013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7826
7827 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7828 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7829 function.
e546e8bb 7830
ab116149
YQ
78312013-04-17 Yao Qi <yao@codesourcery.com>
7832
7833 * top.c (print_gdb_configuration): Print configure-time
7834 parameter on using libbabeltrace or not.
7835
488a42b8
PA
78362013-04-16 Pedro Alves <palves@redhat.com>
7837
7838 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7839
f5fb825b
PA
78402013-04-16 Pedro Alves <palves@redhat.com>
7841
85d494ea 7842 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7843 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7844
e1154999
PA
78452013-04-16 Pedro Alves <palves@redhat.com>
7846
7847 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7848 * common/glibc_thread_db.h: ... this new file ...
7849 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7850
e3b50a7f
PA
78512013-04-16 Will Newton <will.newton@gmail.com>
7852 Pedro Alves <palves@redhat.com>
7853
7854 PR build/11881
7855
7856 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7857 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7858 HAVE_THREAD_DB_H.
7859
1c2e4450
PA
78602013-04-16 Pedro Alves <palves@redhat.com>
7861 Eli Zaretskii <eliz@gnu.org>
7862
7863 * NEWS: Mention "set foo unlimited".
7864
4031ecc5
DE
78652013-04-15 Doug Evans <dje@google.com>
7866
19c3d4c9
DE
7867 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7868 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7869 (create_dwo_cu_reader): Renamed from
7870 create_dwo_debug_info_hash_table_reader.
7871 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7872 Remove support for multiple CUs in a DWO file.
7873 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7874
4031ecc5
DE
7875 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7876 instead of phex.
7877 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7878 (create_dwo_in_dwp): Ditto.
7879
b340913d
TT
78802013-04-15 Tom Tromey <tromey@redhat.com>
7881
7882 * NEWS: Move recent entries into "since 7.6" section.
7883
cc16e6c9
TT
78842013-04-15 Tom Tromey <tromey@redhat.com>
7885
7886 PR c++/13588:
7887 * NEWS: Update.
7888 * break-catch-throw.c (struct exception_catchpoint)
7889 <exception_rx, pattern>: New fields.
7890 (fetch_probe_arguments, dtor_exception_catchpoint)
7891 (check_status_exception_catchpoint)
7892 (print_one_detail_exception_catchpoint): New functions.
7893 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7894 Compile regular expression if needed.
7895 (extract_exception_regexp): New function.
7896 (catch_exception_command_1): Use extract_exception_regexp.
7897 (compute_exception): Use fetch_probe_arguments.
7898 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7899 and check_status fields.
7900 * cp-abi.c (cplus_typename_from_type_info): New function.
7901 * cp-abi.h (cplus_typename_from_type_info): Declare.
7902 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7903 * gdb_regex.h (compile_rx_or_error): Declare.
7904 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7905 comment.
7906 (init_gnuv3_ops): Set get_type_from_type_info field.
7907 * probe.c (compile_rx_or_error): Move...
7908 * utils.c (compile_rx_or_error): ... here.
7909
72f1fe8a
TT
79102013-04-15 Tom Tromey <tromey@redhat.com>
7911
7912 PR c++/15176:
7913 * NEWS: Update.
7914 * break-catch-throw.c (compute_exception): New function.
7915 (exception_funcs): New global.
7916 (_initialize_break_catch_throw): Create $_exception.
7917 * cp-abi.c (cplus_type_from_type_info): New function.
7918 * cp-abi.h (cplus_type_from_type_info): Declare.
7919 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7920 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7921 (gnuv3_get_type_from_type_info): New functions.
7922 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7923
fc4746a2
TT
79242013-04-15 Tom Tromey <tromey@redhat.com>
7925
7926 * break-catch-throw.c (struct exception_names): New.
7927 (exception_functions): Change type.
7928 (re_set_exception_catchpoint): Look for SDT probes.
7929
15a73f56
TT
79302013-04-15 Tom Tromey <tromey@redhat.com>
7931
7932 PR c++/10119:
7933 * break-catch-throw.c (exception_functions): New global.
7934 (gnu_v3_exception_catchpoint_ops): Move earlier.
7935 (struct exception_catchpoint): New.
7936 (classify_exception_breakpoint): Rewrite.
7937 (re_set_exception_catchpoint): New function.
7938 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7939 Allocate a struct exception_catchpoint.
7940 (catch_exception_command_1): Update.
7941 (initialize_throw_catchpoint_ops): Set 're_set' method.
7942
916703c0
TT
79432013-04-15 Tom Tromey <tromey@redhat.com>
7944
7945 * Makefile.in (SFILES): Add break-catch-throw.c
7946 (COMMON_OBS): Add break-catch-throw.o.
7947 * break-catch-throw.c: New file.
7948 * breakpoint.c: Move exception-catching code to new file.
7949 (ep_parse_optional_if_clause): No longer static.
7950 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7951
6e72ca20
TT
79522013-04-15 Tom Tromey <tromey@redhat.com>
7953
7954 PR c++/9065:
7955 * NEWS: Update.
7956 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7957 * c-exp.y (TYPEID): New token.
7958 (exp): Add new TYPEID productions.
7959 (ident_tokens): Add "typeid".
7960 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7961 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7962 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7963 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7964 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7965 case.
7966 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7967 (build_std_type_info_type, gnuv3_get_typeid_type)
7968 (gnuv3_get_typeid): New functions.
7969 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7970 new fields on ABI object.
7971 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7972 * std-operator.def (OP_TYPEID): New.
7973
715c6909
TT
79742013-04-15 Tom Tromey <tromey@redhat.com>
7975
7976 * elfread.c (elf_symtab_read): Install versioned symbol under
7977 unversioned name as well.
7978
8de20a37
TT
79792013-04-15 Tom Tromey <tromey@redhat.com>
7980
7981 PR c++/11990:
7982 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7983 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7984 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7985 (gdb_demangle): New function.
7986 * cp-support.h (gdb_demangle): Declare.
7987 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7988 (dwarf2_name): Use gdb_demangle.
7989 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7990 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7991 suffixes from name.
7992 (gnuv3_print_method_ptr): Use gdb_demangle.
7993 * jv-lang.c (java_demangle): Use gdb_demangle.
7994 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7995 * language.c (unk_lang_demangle): Use gdb_demangle.
7996 * symtab.c (symbol_find_demangled_name)
7997 (demangle_for_lookup): Use gdb_demangle.
7998
591f19e8
TT
79992013-04-15 Tom Tromey <tromey@redhat.com>
8000
8001 PR c++/12824:
8002 * NEWS: Update.
8003 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8004 New constant.
8005 (classify_exception_breakpoint): New function.
8006 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8007 (print_mention_exception_catchpoint)
8008 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8009 (catch_exception_command_1): Handle "rethrow" catchpoint.
8010 (catch_rethrow_command): New function.
8011 (_initialize_breakpoint): Add "catch rethrow" command.
8012
4d40cad2
PM
80132013-04-15 Pierre Muller <muller@sourceware.org>
8014
8015 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8016 set_gdbarch_write_pc as deprecated anymore.
8017
30bcb456
JB
80182013-04-15 Joel Brobecker <brobecker@adacore.com>
8019
8020 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8021 declarations.
8022
da9160e4
YQ
80232013-04-13 Yao Qi <yao@codesourcery.com>
8024
8025 * ctf.c (_initialize_ctf): Include "completer.h".
8026 Call add_target_with_completer instead of add_target.
8027
39ed5604
JK
80282013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8029
8030 Fix GDB regression related to PR binutils/14813.
8031 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8032 * minidebug.c (lzma_close): Add return value comment.
8033 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8034 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8035 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8036
80372013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8038
8039 * config.in: Regenerate.
8040
d521ce57
TT
80412013-04-12 Tom Tromey <tromey@redhat.com>
8042
8043 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8044 const.
8045 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8046 (struct die_reader_specs) <buffer>: Likewise.
8047 (die_reader_func_ftype): Make 'info_ptr' const.
8048 (struct line_header) <include_dirs, statement_program_start,
8049 statement_program_end>: Now const.
8050 (struct file_entry) <name>: Likewise.
8051 (struct partial_die_info) <sibling>: Likewise.
8052 (struct dwarf_block) <data>: Likewise.
8053 (dwarf2_read_section): Remove cast.
8054 (dwarf2_get_section_info): Make 'bufp' const.
8055 (read_index_from_section): Constify.
8056 (dw2_get_file_names_reader): Make 'info_ptr' const.
8057 (dw2_get_primary_filename_reader): Likewise.
8058 (read_comp_unit_head): Make 'info_ptr' and return type const.
8059 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8060 Likewise.
8061 (read_abbrev_offset): Constify.
8062 (dwarf2_create_include_psymtab): Make 'name' const.
8063 (create_debug_types_hash_table): Update.
8064 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8065 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8066 Constify.
8067 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8068 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8069 (read_comp_units_from_section): Constify.
8070 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8071 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8072 const.
8073 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8074 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8075 (create_dwp_hash_table, dwarf2_ranges_read)
8076 (dwarf2_record_block_ranges): Constify.
8077 (read_die_and_children, read_die_and_siblings_1)
8078 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8079 const.
8080 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8081 (abbrev_table_read_table): Constify.
8082 (load_partial_dies): Make 'info_ptr' const.
8083 (read_partial_die, read_attribute_value, read_attribute): Make
8084 'info_ptr' and return type const.
8085 (read_address, read_initial_length)
8086 (read_checked_initial_length_and_offset, read_offset)
8087 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8088 const.
8089 (read_direct_string): Make 'buf' and return type const.
8090 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8091 (read_indirect_string): Make return type const.
8092 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8093 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8094 'info_ptr' const.
8095 (read_str_index): Make return type const.
8096 (add_include_dir): Make 'include_dir' const.
8097 (add_file_name): Make 'name' const.
8098 (dwarf_decode_line_header): Constify.
8099 (psymtab_include_file_name): Make return type const.
8100 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8101 (dwarf2_start_subfile): Make 'filename' const.
8102 (dwarf2_const_value_attr): Make 'bytes' const.
8103 (read_signatured_type_reader): Make 'info_ptr' const.
8104 (decode_locdesc): Constify.
8105 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8106 const.
8107 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8108 'mac_end', and return type const.
8109 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8110 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8111 type const.
8112 (per_cu_header_read_in): Constify.
8113 * symfile.h (dwarf2_get_section_info): Update.
8114
d47a1bc1
TT
81152013-04-12 Tom Tromey <tromey@redhat.com>
8116
8117 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8118
6eaaf48b
EZ
81192013-04-12 Eli Zaretskii <eliz@gnu.org>
8120
fc4c25bf 8121 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8122 * top.c (print_gdb_configuration): New function, displays the
8123 details about GDB configure-time parameters.
8124 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8125 * cli/cli-cmds.c (show_configuration): New function.
8126 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8127 * main.c (captured_main) <print_configuration>: New static var.
8128 <long_options>: Use it.
8129 If --configuration was given, call print_gdb_configuration.
8130
b292c783
JK
81312013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8132 Pedro Alves <palves@redhat.com>
8133
8134 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8135 (generated_files): Add gcore.
8136 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8137 HAVE_NATIVE_GCORE_HOST.
8138 (gcore): New.
8139 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8140 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8141 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8142 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8143 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8144 Add HAVE_NATIVE_GCORE_HOST.
8145 * configure: Regenerate.
8146 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8147 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8148 AC_CONFIG_FILES for gcore.
8149 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8150 gdb_have_gcore.
8151 * gdb_gcore.sh: Rename to ...
8152 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8153 and GCORE_TRANSFORM_NAME substitutions.
8154
c96b3c4f
JK
8155 Fix parsing tabs in ${gdb_target_obs}.
8156 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8157
d6cb50a2
JK
81582013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8159
8160 * remote.c (unpush_and_perror): Add output message final dot.
8161
cf2cb5ec
YQ
81622013-04-11 Yao Qi <yao@codesourcery.com>
8163
8164 * tracepoint.c (tfile_interp_line): Fit parameters line and
8165 utpp in one line.
8166
07293be4
JB
81672013-04-10 Joel Brobecker <brobecker@adacore.com>
8168
8169 * solib.c (solib_map_sections): Remove code overwriting
8170 SO->SO_NAME with the bfd's filename.
8171
f81d1120
PA
81722013-04-10 Pedro Alves <palves@redhat.com>
8173
8174 * cli/cli-decode.c (integer_unlimited_completer): New function.
8175 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8176 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8177 completer.
8178 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8179 (is_unlimited_literal): New function.
8180 (do_set_command): Handle literal "unlimited" arguments.
8181 * frame.c (_initialize_frame) <set backtrace limit>: Document
8182 "unlimited".
8183 * printcmd.c (_initialize_printcmd) <set print
8184 max-symbolic-offset>: Add help text.
8185 * record-full.c (_initialize_record_full) <set record full
8186 insn-number-max>: Likewise.
8187 * record.c (_initialize_record) <set record
8188 instruction-history-size, set record function-call-history-size>:
8189 Add help text.
8190 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8191 help text.
8192 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8193 Likewise.
8194 * source.c (_initialize_source) <set listsize>: Add help text.
8195 * utils.c (initialize_utils) <set height, set width>: Likewise.
8196 <set pagination>: Mention "set height unlimited".
8197 * valprint.c (_initialize_valprint) <set print elements, set print
8198 repeats>: Document "unlimited".
8199
2f9d54cf
PA
82002013-04-10 Pedro Alves <palves@redhat.com>
8201
8202 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8203 instead of disconnect_tracing.
8204 * infcmd.c (detach_command, disconnect_command): Call
8205 query_if_trace_running. Adjust.
8206 * top.c: Include "tracepoint.h".
8207 (quit_target): Delete. Contents moved ...
8208 (quit_force): ... here. Wrap each stage of teardown in
8209 TRY_CATCH. Call disconnect_tracing before detaching.
8210
393fd4c3
YQ
82112013-04-10 Hui Zhu <hui@codesourcery.com>
8212 Yao Qi <yao@codesourcery.com>
8213
8214 * configure.ac: Check libbabeltrace is installed.
8215 * config.in: Regenerate.
8216 * configure: Regenerate.
8217 * Makefile.in (LIBBABELTRACE): New.
8218 (CLIBS): Add LIBBABELTRACE.
8219 * ctf.c: Include "exec.h".
8220 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8221 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8222 (ctf_save_metadata_header): Define new type aliases in
8223 metadata.
8224 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8225 in metadata. Start a new faked packet for trace status.
8226 (ctf_write_status): Write trace status to CTF.
8227 (ctf_write_uploaded_tsv): Write TSV to CTF.
8228 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8229 (ctf_write_definition_end): End the faked packet.
8230
8231 (ctx, ctf_iter, trace_dirname): New.
8232 (start_pos): New variable.
8233 (ctf_destroy, ctf_open_dir, ctf_open): New.
8234 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8235 macros.
8236 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8237 (ctf_fetch_registers, ctf_xfer_partial): New.
8238 (ctf_get_trace_state_variable_value): New.
8239 (ctf_get_tpnum_from_frame_event): New.
8240 (ctf_get_traceframe_address): New.
8241 (ctf_trace_find, ctf_has_stack): New.
8242 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8243 (ctf_get_trace_status, ctf_read_status): New.
8244 (_initialize_ctf): New.
8245 * tracepoint.c (get_tracepoint_number): New
8246 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8247 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8248 * tracepoint.h: ... here.
8249 (get_tracepoint_number): Declare it.
8250 (get_uploaded_tsv): Declare it.
8251
8252 * NEWS: Mention new configure option.
8253
5c2b4418
HZ
82542013-04-10 Pedro Alves <palves@redhat.com>
8255 Hui Zhu <hui@codesourcery.com>
8256
8257 * breakpoint.c (dprintf_re_set): New.
8258 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8259 to dprintf_re_set.
8260
a5c66735
JB
82612013-04-09 Joel Brobecker <brobecker@adacore.com>
8262
8263 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8264 Remove solib-svr4.o from the list.
8265
9e77999c
JB
82662013-04-09 Joel Brobecker <brobecker@adacore.com>
8267
8268 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8269 Use gdb_assert_not_reached instead of invalid boolean expression.
8270
1927e618
PA
82712013-04-09 Pedro Alves <palves@redhat.com>
8272
8273 * remote.c (unpush_and_perror): New function.
8274 (readchar, remote_serial_write): Use it.
8275
10782d74
MM
82762013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8277
8278 * NEWS: Mention new btrace RSP packets.
8279
4c8429ef
TT
82802013-04-08 Tom Tromey <tromey@redhat.com>
8281
8282 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8283 long.
8284
8625fc1b
TT
82852013-04-08 Tom Tromey <tromey@redhat.com>
8286
8287 * maint.c (print_bfd_section_info): Print the section index.
8288 * symmisc.c (dump_msymbols): Print the section index.
8289
e27d198c
TT
82902013-04-08 Tom Tromey <tromey@redhat.com>
8291
8292 PR symtab/8424:
8293 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8294 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8295 * breakpoint.c (resolve_sal_pc): Update.
8296 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8297 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8298 (minsym_lookup_iterator_cb): Use it.
8299 (default_read_var_value): Update.
8300 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8301 Update.
8302 * infcmd.c (jump_command): Update.
8303 * linespec.c (minsym_found): Update.
8304 * maint.c (maintenance_translate_address): Update.
8305 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8306 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8307 * parse.c (write_exp_msymbol): Update.
8308 * printcmd.c (address_info): Update.
8309 * psymtab.c (find_pc_sect_psymbol): Update.
8310 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8311 SYMBOL_OBJ_SECTION.
8312 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8313 Don't initialize SYMBOL_OBJ_SECTION.
8314 * spu-tdep.c (spu_catch_start): Update.
8315 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8316 * symmisc.c (dump_msymbols, print_symbol): Update.
8317 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8318 how fallback section is computed.
8319 (fixup_symbol_section): Update.
8320 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8321 Update.
8322 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8323 Initialize SYMBOL_SECTION.
8324 * symtab.h (struct general_symbol_info) <section>: Update comment.
8325 <obj_section>: Remove.
8326 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8327 (SYMBOL_OBJFILE): New macro.
8328
e6dc44a8
TT
83292013-04-08 Tom Tromey <tromey@redhat.com>
8330
8331 * coffread.c (record_minimal_symbol): Update.
8332 * dbxread.c (record_minimal_symbol): Update.
8333 * elfread.c (record_minimal_symbol): Update.
8334 * machoread.c (macho_symtab_add_minsym): Update.
8335 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8336 Update.
8337 * minsyms.c (prim_record_minimal_symbol): Update.
8338 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8339 argument.
8340 (prim_record_minimal_symbol_and_info): Likewise.
8341 * minsyms.h (prim_record_minimal_symbol_full)
8342 (prim_record_minimal_symbol_and_info): Update.
8343 * symtab.c (allocate_symbol, initialize_symbol)
8344 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8345 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8346 Update.
8347
36192a8d
TT
83482013-04-08 Tom Tromey <tromey@redhat.com>
8349
8350 PR symtab/8423:
8351 * solib-som.c (som_solib_section_offsets): Use BFD section
8352 indices. Set offsets for all sections.
8353 * somread.c (som_symtab_read): Compute BFD section for
8354 symbol. Use prim_record_minimal_symbol_and_info.
8355 (som_symfile_read): Fix comment.
8356 (struct find_section_offset_arg): New.
8357 (find_section_offset, set_section_index): New functions.
8358 (som_symfile_offsets): Use set_section_index to compute
8359 section indices.
8360
65cf3563
TT
83612013-04-08 Tom Tromey <tromey@redhat.com>
8362
8363 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8364 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8365 gdb_bfd_section_index.
8366 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8367 New functions.
8368 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8369 Declare.
8370 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8371 Update.
8372 * objfiles.c (add_to_objfile_sections_full): New function.
8373 (add_to_objfile_sections): Use it.
8374 (build_section_table): Rewrite.
8375 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8376 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8377 (struct objfile) <sections>: Update comment.
8378 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8379 is NULL.
8380 (ALL_OBJSECTIONS): Use it.
8381 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8382 * solib-frv.c (frv_relocate_main_executable): Update.
8383 * solib-target.c (solib_target_relocate_section_addresses):
8384 Use gdb_bfd_section_index.
8385 * symfile.c (build_section_addr_info_from_section_table):
8386 Use gdb_bfd_section_index.
8387 (build_section_addr_info_from_bfd, place_section): Likewise.
8388 * symtab.c (fixup_section): Update.
8389 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8390
7cbd4a93
TT
83912013-04-08 Tom Tromey <tromey@redhat.com>
8392
8393 * minsyms.h (struct bound_minimal_symbol): New.
8394 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8395 Remove objfile argument.
8396 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8397 Return bound_minimal_symbol.
8398 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8399 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8400 Return bound_minimal_symbol.
8401 (in_gnu_ifunc_stub): Update.
8402 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8403 Remove 'objfile_p' argument.
8404 (lookup_solib_trampoline_symbol_by_pc): Update.
8405 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8406 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8407 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8408 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8409 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8410 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8411 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8412 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8413 stack.c, symtab.c, tui/tui-disasm.c: Update.
8414
f85f34ed
TT
84152013-04-08 Tom Tromey <tromey@redhat.com>
8416
8417 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8418 Use symbol's obstack, not an objfile.
8419 * coffread.c (process_coff_symbol): Update.
8420 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8421 * jv-lang.c (add_class_symbol): Update.
8422 * mdebugread.c (new_symbol): Update.
8423 * minsyms.c (prim_record_minimal_symbol_full)
8424 (terminate_minimal_symbol_table): Update.
8425 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8426 * stabsread.c (define_symbol, read_enum_type): Update.
8427 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8428 Handle Ada specially.
8429 (symbol_set_language): Add 'obstack' argument.
8430 (symbol_set_names): Update.
8431 (symbol_natural_name, symbol_demangled_name): Always use
8432 ada_decode_symbol.
8433 * symtab.h (struct general_symbol_info)
8434 <language_specific::obstack>: New field.
8435 <ada_mangled>: New field.
8436 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8437 (symbol_set_language): Update.
8438
ccde22c0
TT
84392013-04-08 Tom Tromey <tromey@redhat.com>
8440
8441 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8442 Take an obstack, not an objfile.
8443 (symbol_set_names): Update.
8444 * symtab.h (symbol_set_demangled_name): Update.
8445
e623cf5d
TT
84462013-04-08 Tom Tromey <tromey@redhat.com>
8447
8448 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8449 allocate_symbol.
8450 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8451 (read_func_scope): Call allocate_template_symbol.
8452 (new_symbol_full): Call allocate_symbol.
8453 * jit.c (finalize_symtab): Call allocate_symbol.
8454 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8455 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8456 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8457 (common_block_end): Call allocate_symbol.
8458 * symtab.c (allocate_symbol, initialize_symbol)
8459 (allocate_template_symbol): New functions.
8460 * symtab.c (allocate_symbol, initialize_symbol)
8461 (allocate_template_symbol): Declare.
8462 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8463
f6de8ec2
PA
84642013-04-08 Pedro Alves <palves@redhat.com>
8465 Keith Seitz <keiths@redhat.com>
8466
8467 * breakpoint.c (create_breakpoint): Rename
8468 "parse_condition_and_thread" parameter to "parse_arg". Update
8469 describing comment. If !PARSE_ARG, then error out if ARG is not
8470 the empty string after extracting the location.
8471 * breakpoint.h (create_breakpoint): Rename
8472 "parse_condition_and_thread" parameter to "parse_arg".
8473
f65ce5fb
AR
84742013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8475
8476 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8477
cc5925ad
YQ
84782013-04-07 Yao Qi <yao@codesourcery.com>
8479
8480 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8481 and 'addr2' to CORE_ADDR.
8482 * target.c (update_current_target): Update.
8483 * target.h (struct target_ops) <to_trace_find>: Change parameter
8484 type to CORE_ADDR.
8485 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8486 'addr2' to CORE_ADDR.
8487 (tfile_trace_find): Likewise.
8488 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8489 Change local variable 'addr' to type CORE_ADDR.
8490 * tracepoint.h (tfind_1): Update declaration.
8491
d9ac0664
EZ
84922013-04-06 Eli Zaretskii <eliz@gnu.org>
8493
8494 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8495 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8496 Include main.h.
8497
8498 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8499 here...
8500 * main.h (windows_get_absolute_argv0): ...to here.
8501
02142a6c
DE
85022013-04-05 Doug Evans <dje@google.com>
8503
8504 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8505 (read_cutu_die_from_dwo): Add comments.
8506 (read_structure_type): Update comment.
8507 (read_enumeration_type, read_namespace_type): Update comment.
8508 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8509
43662968
JK
85102013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8511
8512 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8513 * Makefile.in (gdb.z): Remove.
8514 (install-only): Remove $(man1dir) and gdb.1 installation.
8515 * gdb.1: Remove.
8516
9ead1b84
JK
85172013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8518
8519 Fix compatibility with Linux kernel 3.8.3.
8520 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8521 to more inner block. Remove parsing of NUMBER from outer block.
8522 Parse NUMBER only if KEYWORD has been identified.
8523
d1794952
JK
85242013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8525
8526 Fix variable name shadowing.
8527 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8528 filename to mapsfilename and update its uses.
8529
9025569e
EZ
85302013-04-05 Eli Zaretskii <eliz@gnu.org>
8531
8532 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8533 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8534 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8535 details of the problem.
8536
c9a6ce02
PA
85372013-04-04 Pedro Alves <palves@redhat.com>
8538 Hui Zhu <hui@codesourcery.com>
8539
8540 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8541 tracepoint, reset its STEP_COUNT and call validate_actionline.
8542
5ff888ce
DE
85432013-04-03 Doug Evans <dje@google.com>
8544
bf6af496
DE
8545 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8546 read_die_and_siblings.
8547 (read_die_and_siblings): New function.
8548 (read_cutu_die_from_dwo): Dump die if requested.
8549 (read_die_and_children): Call read_full_die_1 and
8550 read_die_and_siblings_1.
8551 (read_full_die): Dump die if requested.
8552
8553 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8554
0ac5b59e
DE
8555 * dwarf2read.c (struct dwo_file): New member comp_dir.
8556 Rename member name to dwo_name. All uses updated.
8557 (hash_dwo_file): Include comp_dir in computation.
8558 (eq_dwo_file): Ditto.
8559 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8560 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8561
5ff888ce
DE
8562 * psymtab.c (read_psymtabs_with_fullname): Don't call
8563 psymtab_to_fullname if the basenames are different.
8564
ec83d211
JK
85652013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8566
8567 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8568 New entry about "fullname" presence.
8569
4f4352f7
PA
85702013-04-03 Pedro Alves <palves@redhat.com>
8571
8572 * NEWS: Mention x86_64/Cygwin as new native configuration.
8573
3d1d5ea3
DE
85742013-04-02 Doug Evans <dje@google.com>
8575
8576 * dwarf2read.c (read_structure_type): Fix typo in comment.
8577
be9a8770
PA
85782013-04-02 Pedro Alves <palves@redhat.com>
8579
8580 * NEWS: Mention "set/show debug aarch64", "set/show debug
8581 coff-pe-read" and "set/show debug mach-o".
8582
a46c1e42
PA
85832013-04-02 Pedro Alves <palves@redhat.com>
8584
8585 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8586
3ad18b19
EZ
85872013-04-02 Eli Zaretskii <eliz@gnu.org>
8588
8589 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8590 gdb_string.h is now in common/.
8591
e9f1758d
PA
85922013-04-02 Pedro Alves <palves@redhat.com>
8593
8594 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8595 under "New options".
8596
049dc89b
JK
85972013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8598
8599 Revert this patch:
8600 PR gdb/15275
8601 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8602
c33e31fd
PA
86032013-04-02 Pedro Alves <palves@redhat.com>
8604
8605 PR gdb/15275
8606
8607 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8608 (remote_serial_write): New function.
8609 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8610
ea5f3910
JW
86112013-04-01 Jiong Wang <jiwang@tilera.com>
8612
8613 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8614 "New targets" sections.
ea5f3910 8615
5c6fa7ab
DE
86162013-04-01 Doug Evans <dje@google.com>
8617
c0f78cd4
DE
8618 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8619 (process_enumeration_scope): Simplify.
8620
0186c6a7
DE
8621 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8622 type_unit_group ...
8623 (struct signatured_type): ... to here.
8624 (sig_type_ptr): New typedef.
8625 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8626 out of union 't'. All uses updated.
8627 (dw2_get_file_names_reader): Assert not called for a type unit.
8628 (dw2_get_file_names): Assert not called for a type unit or type
8629 unit group.
8630 (build_type_psymtabs_reader): Assert called for a type unit.
8631 (build_type_psymtab_dependencies): Assert called for a type unit group.
8632
5c6fa7ab
DE
8633 * dwarf2read.c (free_dwo_file): Add comment.
8634 (dwarf2_per_objfile_free): Unref dwp bfd.
8635
b3c0ad67 86362013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8637
8638 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8639 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8640 (read_pe_exported_syms): Remove unused 'exportix'.
8641 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8642 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8643 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8644
e2df1547
AR
86452013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8646
8647 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8648 (print_it_watchpoint): Remove unused 'bl'.
8649 (say_where): Remove unused 'uiout'.
8650 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8651 (bkpt_breakpoint_hit): Remove unused 'b'.
8652 (internal_bkpt_print_it): Remove unused 'uiout'.
8653 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8654
d81e75c0
TD
86552013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8656
8657 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8658 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8659
5a8b3f62
DE
86602013-03-29 Doug Evans <dje@google.com>
8661
ab5088bf
DE
8662 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8663 Delete arg is_dwp. All callers updated.
8664 (open_dwp_file): New function.
8665 (open_and_init_dwp_file): Call it.
8666 (get_dwp_file): New function.
8667 (lookup_dwo_cutu): Call it.
8668
a8ad1e57
DE
8669 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8670 unnecessary, cleanup.
8671
6296d8c1
DE
8672 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8673
b0c7bfa9
DE
8674 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8675 (lookup_dwo_unit): New function.
8676 (init_cutu_and_read_dies): Move DWO handling to new functions.
8677
c88ee1f0
DE
8678 * dwarf2read.c (struct signatured_type): Tweak comment.
8679 (struct dwo_unit): Tweak comment.
8680 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8681 (create_dwo_debug_info_hash_table): Tweak comment.
8682 (dwarf2_per_cu_offset_and_type): Tweak comment.
8683
5a8b3f62
DE
8684 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8685 missing .debug_types section.
8686
9852c492
YQ
86872013-03-29 Yao Qi <yao@codesourcery.com>
8688
8689 * corelow.c: Include "completer.h".
8690 (_initialize_corelow): Call add_target_with_completer with
8691 argument 'filename_completer'.
8692 * tracepoint.c: Likewise.
8693 * exec.c (_initialize_exec): Likewise.
8694 * target.c (add_target): Rename to ...
8695 (add_target_with_completer): ... this. Call set_cmd_completer
8696 if parameter completer is not NULL.
8697 (add_target): New.
8698 * target.h: Include "command.h".
8699 (add_target_with_completer): Declare it.
8700
af312be7
JB
87012013-03-28 Joel Brobecker <brobecker@adacore.com>
8702
8703 * coffread.c (is_import_fixup_symbol): New function.
8704 (record_minimal_symbol): Use is_import_fixup_symbol to
8705 detect import fixup symbols, and discard them.
8706
8a0459fd
DE
87072013-03-28 Doug Evans <dje@google.com>
8708
0349ea22
DE
8709 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8710 types hash table until we know we need it.
8711
f652bce2
DE
8712 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8713 index numbers.
8714
e4a48d9d
DE
8715 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8716 All callers updated.
8717 (dw2_print_stats): Print #read CUs too.
8718 (dump_die_shallow): Print signatured types better.
8719
8a0459fd
DE
8720 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8721 info_or_types_section to section. All uses updated.
8722 (struct dwo_unit): Ditto.
8723
bd3eecc3
PA
87242013-03-28 Pedro Alves <palves@redhat.com>
8725
8726 * NEWS (New options): New section.
8727 (New options): Mention set/show remote trace-status-packet.
8728 * remote.c (PACKET_qTStatus): New enumeration value.
8729 (remote_get_trace_status): Skip sending qTStatus if the packet is
8730 disabled. Use packet_ok.
8731 (_initialize_remote): Register a configuration command for
8732 qTStatus packet.
8733
41245087
DE
87342013-03-28 Doug Evans <dje@google.com>
8735
7edbb660
DE
8736 * symfile.c (find_separate_debug_file): Add comment.
8737 (terminate_after_last_dir_separator): Tweak comment.
8738
0018ea6f
DE
8739 * dwarf2read.c (create_partial_symtab): Add forward decl.
8740 (create_partial_symtab): Move to be closer to other psymtab functions.
8741 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8742
ca69b9e6
DE
8743 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8744 (compute_symtab_includes): Remove unnecessary forward declaration.
8745 (die_needs_namespace): Add comment marking group of functions for
8746 dwarf2 name computation.
8747
a9375afe
DE
8748 * typeprint.c (_initialize_typeprint): Improve type help text.
8749
41245087
DE
8750 * python/python.c (finish_python_initialization): Provide suggestion
8751 for how to tell gdb to find its python files.
8752
7f7cc265
PA
87532013-03-28 Pedro Alves <palves@redhat.com>
8754
8755 PR gdb/15294
8756
8757 * source.c (_initialize_source): Change back "set listsize" to an
8758 integer command.
8759
ec21308c
JK
87602013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8761
8762 PR gdb/15275
8763 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8764
840a9a1f
PA
87652013-03-27 Pedro Alves <palves@redhat.com>
8766
8767 * top.c (history_size): Rename to ...
8768 (history_size_setshow_var): ... this. Add comment.
8769 (show_commands): Use readline's 'history_length' instead of
8770 computing the history length by calling history_get in a loop.
8771 (set_history_size_command): Error out for sizes over INT_MAX.
8772 Restore previous history size on invalid size.
8773 (init_history): If HISTSIZE is negative, leave the history size as
8774 zero. Add comments.
8775 (init_main): Adjust.
8776
826ecc4d
PA
87772013-03-27 Pedro Alves <palves@redhat.com>
8778
8779 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8780 coff_pe_read" command to "set debug coff-pe-read".
8781
0ccfeeae
MM
87822013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8783
8784 * record.c (command_size_to_target_size): Fix size comparison.
8785 Change parameter type from pointer to integer to integer.
8786 Update all users.
8787
40653b35
PM
87882013-03-27 Pierre Muller <muller@sourceware.org>
8789
8790 * windows-nat.c (handle_output_debug_string): Avoid typecast
8791 from integer of different size warning.
8792
c62fa0e2
JB
87932013-03-26 Joel Brobecker <brobecker@adacore.com>
8794
8795 * windows-nat.c (handle_output_debug_string): Add empty line
8796 after local block variable definition.
8797
2c619be2
PA
87982013-03-26 Pedro Alves <palves@redhat.com>
8799
8800 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8801 (net_open): Make 'polls' local unsigned.
8802
1b493192
PA
88032013-03-26 Pedro Alves <palves@redhat.com>
8804
8805 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8806 a zuinteger command instead of uinteger.
8807
7ee70bf5
PA
88082013-03-26 Pedro Alves <palves@redhat.com>
8809
8810 * record-full.c (record_full_insn_num): Make it unsigned.
8811 (record_full_check_insn_num, record_full_message)
8812 (record_full_registers_change, record_full_xfer_partial): Remove
8813 record_full_insn_max_num check (it's always != 0).
8814 (record_full_info, record_full_restore): Use %u as format string.
8815 (): Use %u as format string.
8816 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8817 check (it's always != 0).
8818
dfd1f9bb
PA
88192013-03-26 Pedro Alves <palves@redhat.com>
8820
8821 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8822 and "set dcache size" commands zuinteger instead of uinteger.
8823
addb4faf
PA
88242013-03-26 Pedro Alves <palves@redhat.com>
8825
8826 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8827 command zuinteger instead of uinteger.
8828
b75bf488
PA
88292013-03-26 Pedro Alves <palves@redhat.com>
8830
8831 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8832 zuinteger instead of uinteger.
8833
42c634cb
PA
88342013-03-26 Pedro Alves <palves@redhat.com>
8835
8836 * record.c (record_insn_history_size_setshow_var)
8837 (record_call_history_size_setshow_var): New globals.
8838 (command_size_to_target_size): New function.
8839 (cmd_record_insn_history, cmd_record_call_history): Use
8840 command_size_to_target_size instead of cast.
8841 (validate_history_size, set_record_insn_history_size)
8842 (set_record_call_history_size): New functions.
8843 (_initialize_record): Install set_record_insn_history_size and
8844 set_record_call_history_size as "set" hooks of "set record
8845 instruction-history-size" and "set record
8846 function-call-history-size".
8847
1fb2e2b5
PA
88482013-03-26 Pedro Alves <palves@redhat.com>
8849
8850 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8851 use with history_max_entries use. Remove FIXME note.
8852
99c819ee
MM
88532013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8854
8855 * record-btrace.c (record_btrace_close): Call
8856 record_btrace_auto_disable.
8857
9f9e404c
JB
88582013-03-25 Joel Brobecker <brobecker@adacore.com>
8859
8860 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8861
ebcdfe33
DE
88622013-03-25 Doug Evans <dje@google.com>
8863
8864 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8865
24955f63
TT
88662013-03-25 Tom Tromey <tromey@redhat.com>
8867
8868 PR symtab/11462:
8869 * c-exp.y (exp): Add new productions for destructors after '.' and
8870 '->'.
8871 (write_destructor_name): New function.
8872
fce632b6
TT
88732013-03-25 Tom Tromey <tromey@redhat.com>
8874
8875 PR c++/9197:
8876 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8877 value_struct_elt, not lookup_struct_elt_type.
8878 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8879 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8880 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8881
a4341769
YQ
88822013-03-25 Yao Qi <yao@codesourcery.com>
8883
8884 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8885 instead of '_mkdir'.
8886
b5981e5a
EZ
88872013-03-23 Eli Zaretskii <eliz@gnu.org>
8888
8889 * windows-nat.c (windows_get_absolute_argv0): New function.
8890 * windows-nat.h: Add its prototype.
8891
8892 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8893 Use IS_DIR_SEPARATOR instead of looking for a character inside
8894 SLASH_STRING. Include filenames.h.
8895 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8896 relocate_gdb_directory works when passed gdb_program_name.
8897 Include windows-nat.h.
8898
598d3636
JK
88992013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8900
8901 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8902 * remote.c (trace_error): Remove the special handling of '2'.
8903 (readchar) <SERIAL_EOF>
8904 (readchar) <SERIAL_ERROR>
8905 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8906 (remote_get_trace_status): Call throw_exception if EX is
8907 TARGET_CLOSE_ERROR.
8908 * utils.c (perror_with_name): Rename to ...
8909 (throw_perror_with_name): ... here. New parameter errcode, describe it
8910 in the function comment.
8911 (perror_with_name): New function wrapper.
8912 * utils.h (enum errors): New stub declaration.
8913 (throw_perror_with_name): New declaration.
8914
82b821e9
PA
89152013-03-22 Pedro Alves <palves@redhat.com>
8916 Yao Qi <yao@codesourcery.com>
8917 Mark Kettenis <kettenis@gnu.org>
8918
8919 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8920 Don't let the user set the value to UINT_MAX directly.
8921 <var_integer>: Don't let the user set the value to INT_MAX
8922 directly.
8923
78a095c3
JK
89242013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8925
8926 * remote.c (remote_unpush_target): New function.
8927 (remote_open_1): Remove two pop_target calls, update one comment, add
8928 comment to target_preopen call. Replace pop_target call by
8929 remote_unpush_target call.
8930 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8931 pop_target calls by remote_unpush_target calls.
8932
3e74e146
PA
89332013-03-22 Pedro Alves <palves@redhat.com>
8934
8935 * linux-nat.c (linux_child_follow_fork): Don't call
8936 linux_enable_event_reporting.
8937 (linux_handle_extended_wait): Don't call
8938 linux_enable_event_reporting.
8939
a2213dca
PA
89402013-03-22 Pedro Alves <palves@redhat.com>
8941
8942 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8943 use it to rewrite the trampoline buffers with type gdb_byte[], and
8944 undefine the macro. Remove char* cast.
8945
bd712aed
DE
89462013-03-21 Doug Evans <dje@google.com>
8947
8948 New commands "mt set per-command {space,time,symtab} {on,off}".
8949 * NEWS: Add entry.
8950 * event-top.c: #include "maint.h".
8951 * main.c: #include "maint.h".
8952 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8953 timeval-utils.h, maint.h, cli/cli-setshow.h.
8954 (per_command_time, per_command_space): New static globals.
8955 (per_command_symtab): New static global.
8956 (per_command_setlist, per_command_showlist): New static globals.
8957 (struct cmd_stats): Move here from utils.c.
8958 (set_per_command_time): Renamed from set_display_time in utils.c
8959 and moved here. All callers updated.
8960 (set_per_command_space): Renamed from set_display_space in utils.c
8961 and moved here. All callers updated.
8962 (count_symtabs_and_blocks): New function.
8963 (report_command_stats): Moved here from utils.c. Add support for
8964 printing symtab stats. Only print data if enabled before command
8965 executed.
8966 (make_command_stats_cleanup): Ditto.
8967 (sert_per_command_cmd, show_per_command_cmd): New functions.
8968 (_initialize_maint_cmds): Add new commands
8969 mt set per-command {space,time,symtab} {on,off}.
8970 * maint.h: New file.
8971 * top.c: #include "maint.h".
8972 * utils.c (reset_prompt_for_continue_wait_time): New function.
8973 (get_prompt_for_continue_wait_time): New function.
8974 * utils.h (reset_prompt_for_continue_wait_time): Declare
8975 (get_prompt_for_continue_wait_time): Declare.
8976 (make_command_stats_cleanup): Moved to maint.h.
8977 (set_display_time, set_display_space): Moved to maint.h and renamed
8978 to set_per_command_time, set_per_command_space.
8979 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8980 parse_binary_operation and made non-static. Don't call error,
8981 just return an error marker. All callers updated.
8982 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8983
d76488d8
TT
89842013-03-21 Tom Tromey <tromey@redhat.com>
8985
8986 * symfile.c (alloc_section_addr_info): Update header. Don't set
8987 'num_sections' field.
8988 (build_section_addr_info_from_section_table): Set 'num_sections'.
8989 (build_section_addr_info_from_bfd): Likewise.
8990 (build_section_addr_info_from_objfile): Remove dead loop
8991 condition.
8992 (free_section_addr_info): Unconditionally call xfree.
8993 (relative_addr_info_to_section_offsets, addrs_section_sort)
8994 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8995 condition.
8996 (syms_from_objfile_1): Remove dead 'if' condition. Check
8997 'num_sections'.
8998 (add_symbol_file_command): Set 'num_sections'.
8999 * symfile-mem.c (symbol_file_add_from_memory): Set
9000 'num_sections'.
9001 * somread.c (som_symfile_offsets): Remove dead loop condition.
9002 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9003 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9004
a72e5169 90052013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9006
9007 * tracepoint.h (decode_agent_options): Add 'trace_string'
9008 argument.
9009 * tracepoint.c (decode_agent_options): Add 'trace_string'
9010 argument.
9011 (validate_actionline): Update.
9012 (collect_symbol): Add 'trace_string' argument.
9013 (struct add_local_symbols_data) <trace_string>: New field.
9014 (do_collect_symbol): Update.
9015 (add_local_symbols): Add 'trace_string' argument.
9016 (encode_actions_1): Update.
9017 (trace_dump_actions): Update.
9018 * dwarf2loc.c (access_memory): Update.
9019 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9020 * ax-general.c (new_agent_expr): Update.
9021 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9022 (gen_trace_for_return_address): Add argument.
9023 (trace_kludge, trace_string_kludge): Remove.
9024 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9025 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9026 (gen_trace_for_var): Add 'trace_string' argument.
9027 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9028 (gen_printf, agent_eval_command_one): Update.
9029
b2f83c08
TT
90302013-03-21 Tom Tromey <tromey@redhat.com>
9031
9032 PR exp/15109:
9033 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9034 Handle FILENAME token.
9035
9507860e
TT
90362013-03-21 Tom Tromey <tromey@redhat.com>
9037
9038 * c-exp.y (YYPRINT): Define.
9039 (c_print_token): New function.
9040
e403aa4b
TT
90412013-03-21 Tom Tromey <tromey@redhat.com>
9042
9043 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9044
af307d6a
YQ
90452013-03-21 Yao Qi <yao@codesourcery.com>
9046
9047 * ctf.c: Include "gdb_stat.h".
9048 [USE_WIN32API]: New macro 'mkdir'.
9049 (ctf_start): Use permission bits macros if they are defined.
9050
fb81d016
KS
90512013-03-20 Keith Seitz <keiths@redhat.com>
9052
9053 * breakpoint.h (struct breakpoint): Add comment to
9054 extra_string indicating that this member is mallod'd.
9055 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9056
ef0026f0
PA
90572013-03-20 Pedro Alves <palves@redhat.com>
9058
9059 PR gdb/15289
9060
9061 * cli/cli-setshow.c (do_set_command)
9062 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9063 the result of parsing the command argument. Throw error if the
9064 value is greater than UINT_MAX. Print the invalid value with
9065 plongest.
9066 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9067 result of parsing the command argument. Throw error if the value
9068 is greater than INT_MAX, not greater or equal. Also throw error
9069 if the value is less than INT_MIN. Print the invalid value with
9070 plongest.
9071 <var_zuinteger_unlimited>: Throw error if the value is greater
9072 than INT_MAX, not greater or equal.
9073 (do_show_command) <var_integer, var_zinteger,
9074 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9075
24d6c2a0
TT
90762013-03-20 Tom Tromey <tromey@redhat.com>
9077
9078 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9079 if possible.
9080 * dwarf2read.c (read_func_scope): Remove old FIXME.
9081 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9082 not LOC_COMPUTED.
9083 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9084 Unconditionally call via computed ops, if possible.
9085 * printcmd.c (address_info): Unconditionally call via computed ops,
9086 if possible.
9087 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9088 if possible.
9089 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9090 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9091 if possible.
9092
f1e6e072
TT
90932013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9094 Tom Tromey <tromey@redhat.com>
9095
9096 PR symtab/8421:
9097 * coffread.c (coff_register_index): New global.
9098 (process_coff_symbol, coff_read_enum_type): Set
9099 SYMBOL_ACLASS_INDEX.
9100 (_initialize_coffread): Initialize new global.
9101 * dwarf2loc.c (locexpr_find_frame_base_location)
9102 (dwarf2_block_frame_base_locexpr_funcs)
9103 (loclist_find_frame_base_location)
9104 (dwarf2_block_frame_base_loclist_funcs): New.
9105 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9106 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9107 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9108 (dwarf2_block_frame_base_loclist_funcs): New.
9109 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9110 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9111 globals.
9112 (read_func_scope): Update.
9113 (fixup_go_packaging, mark_common_block_symbol_computed)
9114 (var_decode_location, new_symbol_full, dwarf2_const_value):
9115 Set SYMBOL_ACLASS_INDEX.
9116 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9117 (_initialize_dwarf2_read): Initialize new globals.
9118 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9119 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9120 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9121 globals.
9122 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9123 (_initialize_mdebugread): Initialize new globals.
9124 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9125 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9126 (stab_register_index, stab_regparm_index): New globals.
9127 (define_symbol, read_enum_type, common_block_end): Set
9128 SYMBOL_ACLASS_INDEX.
9129 (_initialize_stabsread): Initialize new globals.
9130 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9131 globals.
9132 (MAX_SYMBOL_IMPLS): New define.
9133 (register_symbol_computed_impl, register_symbol_block_impl)
9134 (register_symbol_register_impl)
9135 (initialize_ordinary_address_classes): New functions.
9136 (_initialize_symtab): Call initialize_ordinary_address_classes.
9137 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9138 (struct symbol_impl): New.
9139 (SYMBOL_ACLASS_BITS): New define.
9140 (struct symbol) <aclass, ops>: Remove fields.
9141 <aclass_index>: New field.
9142 (symbol_impls): Declare.
9143 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9144 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9145 (register_symbol_computed_impl, register_symbol_block_impl)
9146 (register_symbol_register_impl): Declare.
9147 (struct symbol_computed_ops): Add location_has_loclist.
9148 (struct symbol_block_ops): New.
9149 (SYMBOL_BLOCK_OPS): New.
9150 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9151
dbccfd4c
TT
91522013-03-20 Tom Tromey <tromey@redhat.com>
9153
9154 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9155 (print_partial_symbols, recursively_search_psymtabs): Use
9156 PSYMBOL_CLASS.
9157
e3f1ad4f
PM
91582013-03-20 Pierre Muller <muller@sourceware.org>
9159
9160 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9161 addtion, subtraction, multiplication and division binary operator.
9162
460014f5
JK
91632013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9164
9165 Code cleanup.
9166 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9167 * bsd-kvm.c (bsd_kvm_close): Likewise.
9168 * bsd-uthread.c (bsd_uthread_close): Likewise.
9169 * corelow.c (core_close): Likewise.
9170 (core_close_cleanup): Remove parameter quitting from a caller.
9171 * event-top.c (async_disconnect): Likewise.
9172 * exec.c (exec_close_1): Remove parameter quitting.
9173 * go32-nat.c (go32_close): Likewise.
9174 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9175 parameter quitting from a caller.
9176 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9177 variable.
9178 (mips_linux_close): Remove parameter quitting. Remove parameter
9179 quitting from a caller.
9180 * monitor.c (monitor_close): Remove parameter quitting.
9181 * monitor.h (monitor_close): Likewise.
9182 * record-btrace.c (record_btrace_close): Likewise.
9183 * record-full.c (record_full_close): Likewise.
9184 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9185 it also from fprintf_unfiltered.
9186 * remote-mips.c (mips_close): Remove parameter quitting.
9187 (mips_detach): Remove parameter quitting from a caller.
9188 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9189 (gdbsim_close): Remove duplicate function comment. Remove parameter
9190 quitting and remove it also from printf_filtered.
9191 * remote.c (remote_close): Remove parameter quitting.
9192 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9193 * target.c (update_current_target): Remove parameter int from to_close
9194 de_fault.
9195 (push_target, unpush_target, pop_target): Remove parameter quitting from
9196 a caller.
9197 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9198 Remove parameter quitting from a caller.
9199 (target_preopen): Remove parameter quitting from a caller.
9200 (target_close): Remove parameter quitting. Remove parameter quitting
9201 from a caller two times. Remove parameter quitting also from
9202 fprintf_unfiltered.
9203 * target.h (struct target_ops): Remove parameter quitting and as int
9204 from fields to_xclose and to_close.
9205 (extern struct target_ops current_target):
9206 (target_close, pop_all_targets): Remove parameter quitting. Update the
9207 comment.
9208 (pop_all_targets_above): Remove parameter quitting.
9209 * top.c (quit_target): Remove parameter quitting from a caller.
9210 * tracepoint.c (tfile_close): Remove parameter quitting.
9211 * windows-nat.c (windows_close): Remove parameter quitting.
9212
35a7120b
CV
92132013-03-20 Corinna Vinschen <vinschen@redhat.com>
9214
9215 * windows-nat.c (handle_output_debug_string): Replace call
9216 to string_to_core_addr with call to strtoull.
9217
8249a5a9
YQ
92182013-03-20 Yao Qi <yao@codesourcery.com>
9219
9220 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9221 and write it to CTF metadata.
9222
2c15ef43
CV
92232013-03-19 Corinna Vinschen <vinschen@redhat.com>
9224
9225 * windows-nat.c (handle_output_debug_string): Change type of n to
9226 SIZE_T to avoid crash on 64 bit systems.
9227
1cdd3232
EZ
92282013-03-17 Eli Zaretskii <eliz@gnu.org>
9229
9230 * python/python-internal.h (HAVE_SNPRINTF)
9231 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9232 about redefinition of snprintf by pyerrors.h.
9233
3cb2ab1a
SE
92342013-03-15 Steve Ellcey <sellcey@mips.com>
9235
9236 * remote-sim.c (sim_command_completer): Make char arguments const.
9237
9ce98649
TT
92382013-03-15 Tom Tromey <tromey@redhat.com>
9239
9240 PR c++/15116:
9241 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9242
dccee2de
TT
92432013-03-14 Tom Tromey <tromey@redhat.com>
9244
9245 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9246 New fields.
9247 (get_file_crc): Move from symfile.c.
9248 (gdb_bfd_crc): New function.
9249 * gdb_bfd.h (gdb_bfd_crc): Declare.
9250 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9251 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9252 (separate_debug_file_exists): Use gdb_bfd_crc.
9253
cc0ea93c
TT
92542013-03-14 Tom Tromey <tromey@redhat.com>
9255
9256 * symfile.c (get_debug_link_info): Remove.
9257 (find_separate_debug_file_by_debuglink): Use
9258 bfd_get_debug_link_info.
9259
08c23b0d
TT
92602013-03-14 Tom Tromey <tromey@redhat.com>
9261
9262 * symtab.c (error_in_psymtab_expansion): New function.
9263 (lookup_symbol_aux_quick)
9264 (basic_lookup_transparent_type_quick): Remove "last resort"
9265 code. Use error_in_psymtab_expansion.
9266
288e77a7
JK
92672013-03-14 Doug Evans <dje@google.com>
9268 Jan Kratochvil <jan.kratochvil@redhat.com>
9269
9270 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9271 any successful compare_filenames_for_search or FILENAME_CMP.
9272 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9273 * symtab.c (iterate_over_some_symtabs): Likewise.
9274
8f1b8b82
JK
92752013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9276
9277 * source.c (print_source_lines_base): Make a local copy of
9278 symtab_to_fullname.
9279
23eb71e4
JK
92802013-03-14 Hui Zhu <hui_zhu@mentor.com>
9281 Jan Kratochvil <jan.kratochvil@redhat.com>
9282
9283 * source.c (print_source_lines_base): Suppress "file" for TUI.
9284
bb869963
SDJ
92852013-03-14 Keith Seitz <keiths@redhat.com>
9286 Alan Matsuoka <alanm@redhat.com>
9287
9288 PR c++/15203
9289 PR c++/15210
9290 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9291 TYPE_CODE_METHOD.
9292 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9293 symbols.
9294
d6682f9e
YQ
92952013-03-14 Yao Qi <yao@codesourcery.com>
9296
9297 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9298 status to tfile if trace is stopped by command 'tstop'.
9299
a22fa6e4
YQ
93002013-03-14 Yao Qi <yao@codesourcery.com>
9301
9302 * tracepoint.c (tfile_write_status): Write trace notes and user
9303 name into tfile if they are not NULL.
9304
d0353e76
YQ
93052013-03-14 Hui Zhu <hui@codesourcery.com>
9306 Yao Qi <yao@codesourcery.com>
9307
9308 * Makefile.in (REMOTE_OBS): Add ctf.o.
9309 (SFILES): Add ctf.c.
9310 (HFILES_NO_SRCDIR): Add ctf.h.
9311 * ctf.c, ctf.h: New files.
9312 * tracepoint.c: Include 'ctf.h'.
9313 (collect_pseudocommand): Remove static.
9314 (trace_save_command): Parse option "-ctf".
9315 Produce different trace file writers per option.
9316 Adjust output message.
9317 (trace_save_tfile, trace_save_ctf): New.
9318 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9319 * mi/mi-main.c: Include 'ctf.h'.
9320 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9321 trace_save_tfile or trace_save_ctf.
9322 * NEWS: Mention these changes.
9323
3f43bc09
YQ
93242013-03-14 Yao Qi <yao@codesourcery.com>
9325
9326 * tracepoint.c (trace_file_writer_xfree): New.
9327 (struct tfile_writer_data): New.
9328 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9329 (tfile_write_header, tfile_write_regblock_type): New.
9330 (tfile_write_status, tfile_write_uploaded_tsv): New.
9331 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9332 (tfile_write_raw_data, (tfile_end): New.
9333 (tfile_write_ops): New global variable.
9334 (TRACE_WRITE_R_BLOCK): New macro.
9335 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9336 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9337 (TRACE_WRITE_V_BLOCK): New macro.
9338 (trace_save): Add extra one parameter WRITER. Make it static.
9339 Use WRITER to writer trace.
9340 (tfile_trace_file_writer_new): New.
9341 (trace_save_command): Caller update.
9342 (trace_save_tfile): Write trace data in TFILE format.
9343 * tracepoint.h (struct trace_frame_write_ops): New.
9344 (struct trace_file_write_ops): New.
9345 (struct trace_file_writer): New.
9346 (trace_save): Remove its declaration.
9347 (trace_save_tfile): Declare it.
9348 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9349 instead of trace_save.
9350
58665b40
PA
93512013-03-13 Pedro Alves <palves@redhat.com>
9352
9353 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9354
10217050
PA
93552013-03-13 Pedro Alves <palves@redhat.com>
9356
9357 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9358 commented out code.
9359 * demangle.c (current_demangling_style_string): Make it const.
9360 (set_demangling_command): Assert the demangling style is known.
9361 Remove all handling of unknown styles. Set
9362 'current_demangling_style_string' to an element of the
9363 demangling_style_names array.
9364 (set_demangling_style): Delete.
9365 (_initialize_demangler): Set current_demangling_style_string to the
9366 element of the demangling_style_names array that corresponds to
9367 the default demangling style. Remove FIXME note. Don't call
9368 set_demangling_style.
9369 * gdb-demangle.h (set_demangling_style): Remove declaration.
9370
6f937416
PA
93712013-03-13 Pedro Alves <palves@redhat.com>
9372
9373 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9374 fields const.
9375 (ada_make_symbol_completion_list): Make "text0" parameter const.
9376 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9377 * breakpoint.c (condition_completer): Make "text" and "word"
9378 parameters const. Adjust.
9379 (check_tracepoint_command): Adjust to validate_actionline
9380 prototype change.
9381 (catch_syscall_completer): Make "text" and "word" parameters
9382 const.
9383 * cli/cli-cmds.c (show_user): Make "comname" local const.
9384 (valid_command_p): Make "command" parameter const.
9385 (alias_command): Make "alias_prefix" and "command_prefix" locals
9386 const.
9387 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9388 (add_alias_cmd): Make "name" and "oldname" parameters const.
9389 Adjust. No longer make copy of OLDNAME.
9390 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9391 (add_setshow_cmd_full, add_setshow_enum_cmd)
9392 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9393 (add_setshow_filename_cmd, add_setshow_string_cmd)
9394 (add_setshow_string_noescape_cmd)
9395 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9396 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9397 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9398 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9399 Make "name" parameter const.
9400 (help_cmd): Rename "command" parameter to "arg". New const local
9401 "command".
9402 (find_cmd): Make "command" parameter const.
9403 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9404 deprecated_cmd_warning prototype change.
9405 (undef_cmd_error): Make "cmdtype" parameter const.
9406 (lookup_cmd): Make "line" parameter const.
9407 (deprecated_cmd_warning): Change type of "text" parameter to
9408 pointer to const char, from pointer to pointer to char. Adjust.
9409 (lookup_cmd_composition): Make "text" parameter const.
9410 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9411 parameters const.
9412 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9413 const.
9414 * cli/cli-script.c (validate_comname): Make "tem" local const.
9415 (define_command): New const local "tem_c". Use it in calls to
9416 lookup_cmd.
9417 (document_command): Make "tem" and "comfull" locals const.
9418 (show_user_1): Make "prefix" and "name" parameters const.
9419 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9420 const.
9421 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9422 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9423 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9424 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9425 (complete_on_enum, add_setshow_enum_cmd)
9426 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9427 (add_setshow_filename_cmd, add_setshow_string_cmd)
9428 (add_setshow_string_noescape_cmd)
9429 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9430 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9431 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9432 Change prototypes, constifying strings.
9433 * completer.c (noop_completer, filename_completer): Make "text"
9434 and "prefix" parameters const.
9435 (location_completer, expression_completer)
9436 (complete_line_internal): Make "text" and "prefix" parameters
9437 const and adjust.
9438 (command_completer, signal_completer): Make "text" and "prefix"
9439 parameters const.
9440 * completer.h (noop_completer, filename_completer)
9441 (expression_completer, location_completer, command_completer)
9442 (signal_completer): Change prototypes.
9443 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9444 parameters const.
9445 * cp-abi.c (cp_abi_completer): Likewise.
9446 * expression.h (parse_expression_for_completion): Change
9447 prototype.
9448 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9449 parameters const.
9450 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9451 * infrun.c (handle_completer): Make "text" and "word" parameters
9452 const.
9453 * interps.c (interpreter_completer): Make "text" and "word"
9454 parameters const.
9455 * language.h (struct language_defn)
9456 <la_make_symbol_completion_list>: Make "text" and "word"
9457 parameters const.
9458 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9459 (parse_exp_in_context): Rename to ...
9460 (parse_exp_in_context_1): ... this.
9461 (parse_exp_in_context): Reimplement, with const hack from
9462 parse_exp_1.
9463 (parse_expression_for_completion): Make "string" parameter const.
9464 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9465 to pointer to const char. Adjust.
9466 (print_command_1): Make "exp" parameter const.
9467 (output_command): Rename to ...
9468 (output_command_const): ... this. Make "exp" parameter const.
9469 (output_command): Reimplement.
9470 (x_command): Adjust.
9471 (display_command): Rename "exp" parameter to "arg". New "exp"
9472 local, const version of "arg".
9473 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9474 "cmd_name" local const.
9475 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9476 call.
9477 (cmdpy_completer): Make "text" and "word" parameters const.
9478 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9479 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9480 const.
9481 * remote.c (_initialize_remote): Make "cmd_name" local const.
9482 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9483 parameters const. Adjust.
9484 (completion_list_add_fields): Make "sym_text", "text" and "word"
9485 parameters const.
9486 (struct add_name_data) <sym_text, text, word>: Make fields const.
9487 (default_make_symbol_completion_list_break_on): Make "text" and
9488 "word" parameters const. Adjust locals.
9489 (default_make_symbol_completion_list)
9490 (make_symbol_completion_list, make_symbol_completion_type)
9491 (make_symbol_completion_list_fn): Make "text" and "word"
9492 parameters const.
9493 (make_file_symbol_completion_list): Make "text", "word" and
9494 "srcfile" parameters const. Adjust locals.
9495 (add_filename_to_list): Make "text" and "word" parameters const.
9496 (struct add_partial_filename_data) <text, word>: Make fields
9497 const.
9498 (make_source_files_completion_list): Make "text" and "word"
9499 parameters const.
9500 * symtab.h (default_make_symbol_completion_list_break_on)
9501 (default_make_symbol_completion_list, make_symbol_completion_list)
9502 (make_symbol_completion_type enum type_code)
9503 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9504 (make_source_files_completion_list): Change prototype.
9505 * top.c (execute_command): Adjust to pass pointer to pointer to
9506 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9507 change.
9508 (set_verbose): Make "cmdname" local const.
9509 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9510 and adjust.
9511 (validate_actionline): Make "line" parameter a pointer to const
9512 char, and adjust.
9513 (encode_actions_1): Make "action_exp" local const, and adjust.
9514 (encode_actions): Adjust.
9515 (replace_comma): Delete.
9516 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9517 const, and adjust. Don't frob the action string while splitting
9518 it at commas. Instead, make a copy of each split substring in
9519 turn.
9520 (trace_dump_command): Adjust to validate_actionline prototype
9521 change.
9522 * tracepoint.h (decode_agent_options, decode_agent_options)
9523 (encode_actions, validate_actionline): Change prototypes.
9524 * valprint.h (output_command): Delete declaration.
9525 (output_command_const): Declare.
9526 * value.c (function_destroyer): Cast const away in xfree call.
9527
a0bcdaa7
PA
95282013-03-13 Pedro Alves <palves@redhat.com>
9529
9530 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9531 rather than casting 'const char * const *' to 'const char **'.
9532 * ada-lex.l (processInt): Make "trailer" local const. Remove
9533 'const char **' cast.
9534 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9535 locals, and use those as strtol output pointer, instead than doing
9536 invalid casts to from 'const char **' to 'char **'.
9537 (_initialize_demangle): Remove cast.
9538 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9539 locals, and use those as strtol output pointer, instead than doing
9540 invalid casts to from 'const char **' to 'char **'.
9541 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9542 casts.
9543 * stap-probe.c (stap_parse_register_operand)
9544 (stap_parse_single_operand): Likewise.
9545
8ddb1965
YQ
95462013-03-13 Yao Qi <yao@codesourcery.com>
9547
9548 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9549 the last matched 'V' blcok in trace frame.
9550
2d450646
JB
95512013-03-12 Joel Brobecker <brobecker@adacore.com>
9552
9553 * NEWS: Create a new section for the next release branch.
9554 Rename the section of the current branch, now that it has
9555 been cut.
9556
b4b79973 95572013-03-12 Joel Brobecker <brobecker@adacore.com>
9558
9559 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9560 * version.in: Bump version to 7.6.50.20130312-cvs.
9561
ee047554
KS
95622013-03-12 Keith Seitz <keiths@redhat.com>
9563
9564 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9565 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9566 Remove temporary copy of input string.
9567 (mi_execute_command_wrapper): Make "cmd" const.
9568 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9569 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9570 Use const strings.
9571 (mi_parse): Make "cmd" const.
9572 Use const strings.
9573 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9574
bbc13ae3
KS
95752013-03-12 Keith Seitz <keiths@redhat.com>
9576
9577 * ada-lang.c (ada_read_renaming_var_value): Pass const
9578 pointer to expression string to parse_exp_1.
9579 (create_excep_cond_exprs): Likewise.
9580 * ax-gdb.c (agent_eval_command_one): Likewise.
9581 (maint_agent_printf_command): Likewise.
9582 Constify much of the string handling/parsing.
9583 * breakpoint.c (set_breakpoint_condition): Pass const
9584 pointer to expression string to parse_exp_1.
9585 (update_watchpoint): Likewise.
9586 (parse_cmd_to_aexpr): Constify string handling.
9587 Pass const pointer to parse_exp_1.
9588 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9589 (find_condition_and_thread): Likewise.
9590 Make TOK const.
9591 (watch_command_1): Make "arg" const.
9592 Constify string handling.
9593 Copy the expression string instead of changing the input
9594 string.
9595 (update_breakpoint_location): Pass const pointer to
9596 parse_exp_1.
9597 * eval.c (parse_and_eval_address): Make "exp" const.
9598 (parse_to_comma_and_eval): Make "expp" const.
9599 (parse_and_eval): Make "exp" const.
9600 * expression.h (parse_expression): Make argument const.
9601 (parse_exp_1): Make first argument const.
9602 * findcmd.c (parse_find_args): Treat "args" as const.
9603 * linespec.c (parse_linespec): Pass const pointer to
9604 linespec_expression_to_pc.
9605 (linespec_expression_to_pc): Make "exp_ptr" const.
9606 * parse.c (parse_exp_1): Make "stringptr" const.
9607 Make a copy of the expression to pass to parse_exp_in_context until
9608 this whole interface can be constified.
9609 (parse_expression): Make "string" const.
9610 * printcmd.c (ui_printf): Treat "arg" as const.
9611 Handle const strings.
9612 * tracepoint.c (validate_actionline): Pass const pointer to
9613 all calls to parse_exp_1.
9614 (encode_actions_1): Likewise.
9615 * value.h (parse_to_comma_and_eval): Make argument const.
9616 (parse_and_eval_address): Likewise.
9617 (parse_and_eval): Likewise.
9618 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9619 (varobj_set_value): Likewise.
9620 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9621 constify string handling.
9622 Pass const pointers to parse_and_eval_address and
9623 parse_to_comman_and_eval.
9624 * cli/cli-utils.c (skip_to_space): Rename to ...
9625 (skip_to_space_const): ... this. Handle const strings.
9626 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9627 skip_to_space_const.
9628 (skip_to_space_const): Declare.
9629 * common/format.c (parse_format_string): Make "arg" const.
9630 Handle const strings.
9631 * common/format.h (parse_format_string): Make "arg" const.
9632 * gdbserver/ax.c (ax_printf): Make "format" const.
9633 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9634 of the expression string.
9635
f3cec7e6
HZ
96362013-03-12 Hui Zhu <hui@codesourcery.com>
9637
9638 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9639
9df7235c
HZ
96402013-03-12 Yao Qi <yao@codesourcery.com>
9641 Hui Zhu <hui@codesourcery.com>
9642
9643 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9644 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9645 DW_OP_deref_size.
9646
82d049ab
PH
96472013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9648
5f8e0b8f
MF
9649 * ada-lex.l (rules): Only recognize 'thread' as a
9650 delimiter when followed by numerals, as for c-exp.y.
9651 Use new rewind_to_char function to rewind the input for
9652 expression-delimiting tokens.
9653 (rewind_to_char): New function.
82d049ab 9654
8c1fb155
JK
96552013-03-11 Pedro Alves <palves@redhat.com>
9656 Jan Kratochvil <jan.kratochvil@redhat.com>
9657
9658 * configure: Regenerate.
9659 * configure.ac (check dynamic export flag): Link python test with
9660 $PYTHON_LIBS.
9661
cc81e1c6
DE
96622013-03-11 Doug Evans <dje@google.com>
9663 Keith Seitz <keiths@redhat.com>
9664
9665 * linespec.c (find_linespec_symbols): Call find_function_symbols
9666 first, and then call lookup_prefix_sym/find_method.
9667
39086a0e
PA
96682013-03-11 Pedro Alves <palves@redhat.com>
9669
9670 * charset.c (convert_between_encodings): Don't cast between
9671 different pointer to pointer types. Instead, make the 'inp' local
9672 be of the type iconv expects.
9673 (wchar_iterate): Don't cast between different pointer to pointer
9674 types. Instead, use new pointer local of the type iconv expects.
9675 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9676 Add new local of type char pointer, and use it to get a
9677 char/string view of the byte buffer, instead of casting between
9678 pointer to pointer types.
9679
90585175
HAQ
96802013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9681
9682 * remote.c (remote_set_trace_buffer_size): Move != operator
9683 to the start of next line to fix an ARI warning.
9684
59ea5688
MM
96852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9686
9687 * NEWS: Add record changes.
9688
946287b7
MM
96892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9690
9691 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9692 the instruction history disassembly.
9693 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9694 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9695
afedecd3
MM
96962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9697
9698 * Makefile.in (SFILES): Add record-btrace.c
9699 (COMMON_OBS): Add record-btrace.o
9700 * record-btrace.c: New.
9701 * objfiles.c: Include btrace.h.
9702 (free_objfile): call btrace_free_objfile.
9703
15984c13
MM
97042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9705
9706 * target.c (target_call_history, target_call_history_from,
9707 target_call_history_range): New.
9708 * target.h (target_ops) <to_call_history, to_call_history_from,
9709 to_call_history_range>: New fields.
9710 (target_call_history, target_call_history_from,
9711 target_call_history_range): New declaration.
9712 * record.c (get_call_history_modifiers, cmd_record_call_history,
9713 record_call_history_size): New.
9714 (_initialize_record): Add the "record function-call-history" command.
9715 Add "set/show record function-call-history-size" commands.
9716 * record.h (record_print_flag): New.
9717
67c86d06
MM
97182013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9719
9720 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9721 to_insn_history_range>: New fields.
9722 (target_insn_history): New.
9723 (target_insn_history_from): New.
9724 (target_insn_history_range): New.
9725 * target.c (target_insn_history): New.
9726 (target_insn_history_from): New.
9727 (target_insn_history_range): New.
9728 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9729 (record_insn_history_size): New.
9730 (get_insn_number): New.
9731 (get_context_size): New.
9732 (no_chunk): New.
9733 (get_insn_history_modifiers): New.
9734 (cmd_record_insn_history): New.
9735 (_initialize_record): Add "set/show record instruction-history-size"
9736 command. Add "record instruction-history" command.
9737
7c1687a9
MM
97382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9739
9740 * record.h (record_disconnect): New.
9741 (record_detach): New.
9742 (record_mourn_inferior): New.
9743 (record_kill): New.
9744 * record-full.c (record_disconnect, record_detach,
9745 record_mourn_inferior, record_kill): Move to...
9746 * record.c: ...here.
9747 (DEBUG): New.
9748 (record_stop): New.
9749 (record_unpush): New.
9750 (cmd_record_stop): Call record_stop. Replace unpush_target
9751 call with record_unpush call.
9752 (record_disconnect, record_detach): Assert that the target
9753 is of record stratum. Call record_unpush, record_stop, and
9754 DEBUG.
9755 (record_mourn_inferior, record_kill): Assert that the target
9756 is of record stratum. Call record_unpush and DEBUG.
9757
25ea693b
MM
97582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9759
9760 * record-full.h, record-full.c (record_memory_query): Rename
9761 to ...
9762 (record_full_memory_query): ...this. Update all users.
9763 (record_arch_list_add_reg): Rename to ...
9764 (record_full_arch_list_add_reg): ...this. Update all users.
9765 (record_arch_list_add_mem): Rename to ...
9766 (record_full_arch_list_add_mem): ...this. Update all users.
9767 (record_arch_list_add_end): Rename to ...
9768 (record_full_arch_list_add_end): ...this. Update all users.
9769 (record_gdb_operation_disable_set): Rename to ...
9770 (record_full_gdb_operation_disable_set): ...this.
9771 Update all users.
9772
88d1aa9d
MM
97732013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9774
9775 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9776 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9777 (RECORD_IS_REPLAY): Renamed to ...
9778 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9779 (RECORD_FILE_MAGIC): Renamed to ...
9780 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9781 (record_mem_entry): Renamed to ...
9782 (record_full_mem_entry): ... this. Updated all users.
9783 (record_reg_entry): Renamed to ...
9784 (record_full_reg_entry): ... this. Updated all users.
9785 (record_end_entry): Renamed to ...
9786 (record_full_end_entry): ... this. Updated all users.
9787 (record_type) <record_end, record_reg, record_mem>: Renamed
9788 to ...
9789 (record_full_type) <record_full_end, record_full_reg,
9790 record_full_mem>: ... this. Updated all users.
9791 (record_entry): Renamed to ...
9792 (record_full_entry): ... this. Updated all users.
9793 (record_core_buf_entry): Renamed to ...
9794 (record_full_core_buf_entry): ... this. Updated all users.
9795 (record_core_regbuf): Renamed to ...
9796 (record_full_core_regbuf): ... this. Updated all users.
9797 (record_core_start): Renamed to ...
9798 (record_full_core_start): ... this. Updated all users.
9799 (record_core_end): Renamed to ...
9800 (record_full_core_end): ... this. Updated all users.
9801 (record_core_buf_list): Renamed to ...
9802 (record_full_core_buf_list): ... this. Updated all users.
9803 (record_first): Renamed to ...
9804 (record_full_first): ... this. Updated all users.
9805 (record_list): Renamed to ...
9806 (record_full_list): ... this. Updated all users.
9807 (record_arch_list_head): Renamed to ...
9808 (record_full_arch_list_head): ... this. Updated all users.
9809 (record_arch_list_tail): Renamed to ...
9810 (record_full_arch_list_tail): ... this. Updated all users.
9811 (record_stop_at_limit): Renamed to ...
9812 (record_full_stop_at_limit): ... this. Updated all users.
9813 (record_insn_max_num): Renamed to ...
9814 (record_full_insn_max_num): ... this. Updated all users.
9815 (record_insn_num): Renamed to ...
9816 (record_full_insn_num): ... this. Updated all users.
9817 (record_insn_count): Renamed to ...
9818 (record_full_insn_count): ... this. Updated all users.
9819 (record_ops): Renamed to ...
9820 (record_full_ops): ... this. Updated all users.
9821 (record_core_ops): Renamed to ...
9822 (record_full_core_ops): ... this. Updated all users.
9823 (set_record_cmdlist): Renamed to ...
9824 (set_record_full_cmdlist): ... this. Updated all users.
9825 (show_record_cmdlist): Renamed to ...
9826 (show_record_full_cmdlist): ... this. Updated all users.
9827 (record_cmdlist): Renamed to ...
9828 (record_full_cmdlist): ... this. Updated all users.
9829 (record_beneath_to_resume_ops): Renamed to ...
9830 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9831 (record_beneath_to_resume): Renamed to ...
9832 (record_full_beneath_to_resume): ... this. Updated all users.
9833 (record_beneath_to_wait_ops): Renamed to ...
9834 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9835 (record_beneath_to_wait): Renamed to ...
9836 (record_full_beneath_to_wait): ... this. Updated all users.
9837 (record_beneath_to_store_registers_ops): Renamed to ...
9838 (record_full_beneath_to_store_registers_ops): ... this.
9839 Updated all users.
9840 (record_beneath_to_store_registers): Renamed to ...
9841 (record_full_beneath_to_store_registers): ... this.
9842 Updated all users.
9843 (record_beneath_to_xfer_partial_ops): Renamed to ...
9844 (record_full_beneath_to_xfer_partial_ops): ... this.
9845 Updated all users.
9846 (record_beneath_to_xfer_partial): Renamed to ...
9847 (record_full_beneath_to_xfer_partial): ... this.
9848 Updated all users.
9849 (record_beneath_to_insert_breakpoint): Renamed to ...
9850 (record_full_beneath_to_insert_breakpoint): ... this.
9851 Updated all users.
9852 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9853 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9854 Updated all users.
9855 (record_beneath_to_stopped_data_address): Renamed to ...
9856 (record_full_beneath_to_stopped_data_address): ... this.
9857 Updated all users.
9858 (record_beneath_to_async): Renamed to ...
9859 (record_full_beneath_to_async): ... this. Updated all users.
9860 (record_goto_insn): Renamed to ...
9861 (record_full_goto_insn): ... this. Updated all users.
9862 (record_save): Renamed to ...
9863 (record_full_save): ... this. Updated all users.
9864 (record_reg_alloc): Renamed to ...
9865 (record_full_reg_alloc): ... this. Updated all users.
9866 (record_reg_release): Renamed to ...
9867 (record_full_reg_release): ... this. Updated all users.
9868 (record_mem_alloc): Renamed to ...
9869 (record_full_mem_alloc): ... this. Updated all users.
9870 (record_mem_release): Renamed to ...
9871 (record_full_mem_release): ... this. Updated all users.
9872 (record_end_alloc): Renamed to ...
9873 (record_full_end_alloc): ... this. Updated all users.
9874 (record_end_release): Renamed to ...
9875 (record_full_end_release): ... this. Updated all users.
9876 (record_entry_release): Renamed to ...
9877 (record_full_entry_release): ... this. Updated all users.
9878 (record_list_release): Renamed to ...
9879 (record_full_list_release): ... this. Updated all users.
9880 (record_list_release_following): Renamed to ...
9881 (record_full_list_release_following): ... this.
9882 Updated all users.
9883 (record_list_release_first): Renamed to ...
9884 (record_full_list_release_first): ... this. Updated all users.
9885 (record_arch_list_add): Renamed to ...
9886 (record_full_arch_list_add): ... this. Updated all users.
9887 (record_get_loc): Renamed to ...
9888 (record_full_get_loc): ... this. Updated all users.
9889 (record_check_insn_num): Renamed to ...
9890 (record_full_check_insn_num): ... this. Updated all users.
9891 (record_arch_list_cleanups): Renamed to ...
9892 (record_full_arch_list_cleanups): ... this. Updated all users.
9893 (record_message): Renamed to ...
9894 (record_full_message): ... this. Updated all users.
9895 (record_message_wrapper): Renamed to ...
9896 (record_full_message_wrapper): ... this. Updated all users.
9897 (record_message_wrapper_safe): Renamed to ...
9898 (record_full_message_wrapper_safe): ... this. Updated all users.
9899 (record_gdb_operation_disable): Renamed to ...
9900 (record_full_gdb_operation_disable): ... this. Updated all users.
9901 (record_hw_watchpoint): Renamed to ...
9902 (record_full_hw_watchpoint): ... this. Updated all users.
9903 (record_exec_insn): Renamed to ...
9904 (record_full_exec_insn): ... this. Updated all users.
9905 (record_restore): Renamed to ...
9906 (record_full_restore): ... this. Updated all users.
9907 (record_async_inferior_event_token): Renamed to ...
9908 (record_full_async_inferior_event_token): ... this.
9909 Updated all users.
9910 (record_async_inferior_event_handler): Renamed to ...
9911 (record_full_async_inferior_event_handler): ... this.
9912 Updated all users.
9913 (record_core_open_1): Renamed to ...
9914 (record_full_core_open_1): ... this. Updated all users.
9915 (record_open_1): Renamed to ...
9916 (record_full_open_1): ... this. Updated all users.
9917 (record_open): Renamed to ...
9918 (record_full_open): ... this. Updated all users.
9919 (record_close): Renamed to ...
9920 (record_full_close): ... this. Updated all users.
9921 (record_resume_step): Renamed to ...
9922 (record_full_resume_step): ... this. Updated all users.
9923 (record_resumed): Renamed to ...
9924 (record_full_resumed): ... this. Updated all users.
9925 (record_execution_dir): Renamed to ...
9926 (record_full_execution_dir): ... this. Updated all users.
9927 (record_resume): Renamed to ...
9928 (record_full_resume): ... this. Updated all users.
9929 (record_get_sig): Renamed to ...
9930 (record_full_get_sig): ... this. Updated all users.
9931 (record_sig_handler): Renamed to ...
9932 (record_full_sig_handler): ... this. Updated all users.
9933 (record_wait_cleanups): Renamed to ...
9934 (record_full_wait_cleanups): ... this. Updated all users.
9935 (record_wait_1): Renamed to ...
9936 (record_full_wait_1): ... this. Updated all users.
9937 (record_wait): Renamed to ...
9938 (record_full_wait): ... this. Updated all users.
9939 (record_stopped_by_watchpoint): Renamed to ...
9940 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9941 (record_disconnect): Renamed to ...
9942 (record_full_disconnect): ... this. Updated all users.
9943 (record_detach): Renamed to ...
9944 (record_full_detach): ... this. Updated all users.
9945 (record_mourn_inferior): Renamed to ...
9946 (record_full_mourn_inferior): ... this. Updated all users.
9947 (record_kill): Renamed to ...
9948 (record_full_kill): ... this. Updated all users.
9949 (record_stopped_data_address): Renamed to ...
9950 (record_full_stopped_data_address): ... this. Updated all users.
9951 (record_registers_change): Renamed to ...
9952 (record_full_registers_change): ... this. Updated all users.
9953 (record_store_registers): Renamed to ...
9954 (record_full_store_registers): ... this. Updated all users.
9955 (record_xfer_partial): Renamed to ...
9956 (record_full_xfer_partial): ... this. Updated all users.
9957 (record_breakpoint): Renamed to ...
9958 (record_full_breakpoint): ... this. Updated all users.
9959 (record_breakpoint_p): Renamed to ...
9960 (record_full_breakpoint_p): ... this. Updated all users.
9961 (record_breakpoints): Renamed to ...
9962 (record_full_breakpoints): ... this. Updated all users.
9963 (record_sync_record_breakpoints): Renamed to ...
9964 (record_full_sync_record_breakpoints): ... this.
9965 Updated all users.
9966 (record_init_record_breakpoints): Renamed to ...
9967 (record_full_init_record_breakpoints): ... this.
9968 Updated all users.
9969 (record_insert_breakpoint): Renamed to ...
9970 (record_full_insert_breakpoint): ... this. Updated all users.
9971 (record_remove_breakpoint): Renamed to ...
9972 (record_full_remove_breakpoint): ... this. Updated all users.
9973 (record_can_execute_reverse): Renamed to ...
9974 (record_full_can_execute_reverse): ... this. Updated all users.
9975 (record_get_bookmark): Renamed to ...
9976 (record_full_get_bookmark): ... this. Updated all users.
9977 (record_goto_bookmark): Renamed to ...
9978 (record_full_goto_bookmark): ... this. Updated all users.
9979 (record_async): Renamed to ...
9980 (record_full_async): ... this. Updated all users.
9981 (record_can_async_p): Renamed to ...
9982 (record_full_can_async_p): ... this. Updated all users.
9983 (record_is_async_p): Renamed to ...
9984 (record_full_is_async_p): ... this. Updated all users.
9985 (record_execution_direction): Renamed to ...
9986 (record_full_execution_direction): ... this. Updated all users.
9987 (record_info): Renamed to ...
9988 (record_full_info): ... this. Updated all users.
9989 (record_delete): Renamed to ...
9990 (record_full_delete): ... this. Updated all users.
9991 (record_is_replaying): Renamed to ...
9992 (record_full_is_replaying): ... this. Updated all users.
9993 (record_goto_entry): Renamed to ...
9994 (record_full_goto_entry): ... this. Updated all users.
9995 (record_goto_begin): Renamed to ...
9996 (record_full_goto_begin): ... this. Updated all users.
9997 (record_goto_end): Renamed to ...
9998 (record_full_goto_end): ... this. Updated all users.
9999 (record_goto): Renamed to ...
10000 (record_full_goto): ... this. Updated all users.
10001 (init_record_ops): Renamed to ...
10002 (init_record_full_ops): ... this. Updated all users.
10003 (record_core_resume): Renamed to ...
10004 (record_full_core_resume): ... this. Updated all users.
10005 (record_core_kill): Renamed to ...
10006 (record_full_core_kill): ... this. Updated all users.
10007 (record_core_fetch_registers): Renamed to ...
10008 (record_full_core_fetch_registers): ... this. Updated all users.
10009 (record_core_prepare_to_store): Renamed to ...
10010 (record_full_core_prepare_to_store): ... this. Updated all users.
10011 (record_core_store_registers): Renamed to ...
10012 (record_full_core_store_registers): ... this. Updated all users.
10013 (record_core_xfer_partial): Renamed to ...
10014 (record_full_core_xfer_partial): ... this. Updated all users.
10015 (record_core_insert_breakpoint): Renamed to ...
10016 (record_full_core_insert_breakpoint): ... this. Updated all users.
10017 (record_core_remove_breakpoint): Renamed to ...
10018 (record_full_core_remove_breakpoint): ... this. Updated all users.
10019 (record_core_has_execution): Renamed to ...
10020 (record_full_core_has_execution): ... this. Updated all users.
10021 (init_record_core_ops): Renamed to ...
10022 (init_record_full_core_ops): ... this. Updated all users.
10023 (cmd_record_restore): Renamed to ...
10024 (cmd_record_full_restore): ... this. Updated all users.
10025 (record_save_cleanups): Renamed to ...
10026 (record_full_save_cleanups): ... this. Updated all users.
10027 (cmd_record_start): Renamed to ...
10028 (cmd_record_full_start): ... this. Updated all users.
10029 (set_record_insn_max_num): Renamed to ...
10030 (set_record_full_insn_max_num): ... this. Updated all users.
10031 (set_record_command): Renamed to ...
10032 (set_record_full_command): ... this. Updated all users.
10033 (show_record_command): Renamed to ...
10034 (show_record_full_command): ... this. Updated all users.
10035 (_initialize_record): Renamed to ...
10036 (_initialize_record_full): ... this. Updated all users.
10037
d02ed0bb
MM
100382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10039
10040 * record.h: Split into this and ...
10041 * record-full.h: ... this.
10042 * record.c: Split into this and ...
10043 * record-full.c: ... this.
10044 * target.h (target_ops): Add new fields to_info_record,
10045 to_save_record, to_delete_record, to_record_is_replaying,
10046 to_goto_record_begin, to_goto_record_end, to_goto_record.
10047 (target_info_record): New.
10048 (target_save_record): New.
10049 (target_supports_delete_record): New.
10050 (target_delete_record): New.
10051 (target_record_is_replaying): New.
10052 (target_goto_record_begin): New.
10053 (target_goto_record_end): New.
10054 (target_goto_record): New.
10055 * target.c (target_info_record): New.
10056 (target_save_record): New.
10057 (target_supports_delete_record): New.
10058 (target_delete_record): New.
10059 (target_record_is_replaying): New.
10060 (target_goto_record_begin): New.
10061 (target_goto_record_end): New.
10062 (target_goto_record): New.
10063 * record.h: Declare struct cmd_list_element.
10064 (record_cmdlist): New declaration.
10065 (set_record_cmdlist): New declaration.
10066 (show_record_cmdlist): New declaration.
10067 (info_record_cmdlist): New declaration.
10068 (cmd_record_goto): New declaration.
10069 * record.c: Remove unnecessary includes.
10070 Include inferior.h.
10071 (cmd_record_goto): Remove declaration.
10072 (record_cmdlist): Now extern. Initialize.
10073 (set_record_cmdlist): Now extern. Initialize.
10074 (show_record_cmdlist): Now extern. Initialize.
10075 (info_record_cmdlist): Now extern. Initialize.
10076 (find_record_target): New.
10077 (require_record_target): New.
10078 (cmd_record_start): Update.
10079 (cmd_record_delete): Remove target-specific code.
10080 Call target_delete_record.
10081 (cmd_record_stop): Unpush any record target.
10082 (set_record_insn_max_num): Move to record-full.c
10083 (set_record_command): Add comment.
10084 (show_record_command): Add comment.
10085 (info_record_command): Update comment.
10086 Remove target-specific code.
10087 Call the record target's to_info_record.
10088 (cmd_record_start): New.
10089 (cmd_record_goto): Now extern.
10090 Remove target-specific code.
10091 Call target_goto_begin, target_goto_end, or target_goto.
10092 (_initialize_record): Move record target ops initialization to
10093 record-full.c.
10094 Change "record" command help text.
10095 Move "record restore", "record set", and "record show" commands to
10096 record-full.c.
10097 * Makefile.in (SFILES): Add record-full.c.
10098 (HFILES_NO_SRCDIR): Add record-full.h.
10099 (COMMON_OBS): Add record-full.o.
10100 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10101 * arm-tdep.c: Include record-full.h.
10102 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10103 * i386-tdep.c: Include record-full.h.
10104 * infrun.c: Include record-full.h.
10105 * linux-record.c: Include record-full.h.
10106 * moxie-tdep.c: Include record-full.h.
10107 * record-full.c: Include record-full.h.
10108 Change module comment.
10109 (set_record_full_cmdlist): New.
10110 (show_record_full_cmdlist): New.
10111 (record_full_cmdlist): New.
10112 (record_goto_insn): New declaration.
10113 (record_save): New declaration.
10114 (record_check_insn_num): Change query string.
10115 (record_info): New.
10116 (record_delete): New.
10117 (record_is_replaying): New.
10118 (record_goto_entry): New.
10119 (record_goto_begin): New.
10120 (record_goto_end): New.
10121 (record_goto): New.
10122 (init_record_ops): Update.
10123 (init_record_core_ops): Update.
10124 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10125 (cmd_record_start): New.
10126 (set_record_insn_max_num): Moved from record.c
10127 (set_record_full_command): New.
10128 (show_record_full_command): New.
10129 (_initialize_record_full): New.
10130
b48d48eb
MM
101312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10132
10133 * target.h (add_deprecated_target_alias): New.
10134 * target.c (add_deprecated_target_alias): New.
10135
a950d57c
MM
101362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10137
10138 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10139 and signal.h.
10140 (linux_supports_btrace): Add kernel and
10141 cpuid check.
10142 (kernel_supports_btrace): New function.
10143 (cpu_supports_btrace): New function.
10144 (intel_supports_btrace): New function.
10145
9accd112
MM
101462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10147
10148 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10149 * remote.c: Include btrace.h.
10150 (struct btrace_target_info): New struct.
10151 (remote_supports_btrace): New function.
10152 (send_Qbtrace): New function.
10153 (remote_enable_btrace): New function.
10154 (remote_disable_btrace): New function.
10155 (remote_teardown_btrace): New function.
10156 (remote_read_btrace): New function.
10157 (init_remote_ops): Add btrace ops.
10158 (enum <unnamed>): Add btrace packets.
10159 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10160 (_initialize_remote): Add packet configuration for branch tracing.
10161
c12a2917
MM
101622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10163
10164 * features/btrace.dtd: New file.
10165 * Makefile.in (XMLFILES): Add btrace.dtd.
10166 * btrace.h (parse_xml_btrace): New declaration.
10167 * btrace.c: Include xml-support.h.
10168 (parse_xml_btrace): New function.
10169 (parse_xml_btrace_block): New function.
10170 (block_attributes): New struct.
10171 (btrace_attributes): New struct.
10172 (btrace_children): New struct.
10173 (btrace_elements): New struct.
10174
3e3aea48
MM
101752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10176
10177 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10178 (amd64_linux_enable_btrace): New.
10179 (amd64_linux_disable_btrace): New.
10180 (amd64_linux_teardown_btrace): New.
10181 (_initialize_amd64_linux_nat): Initialize btrace ops.
10182 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10183 (i386_linux_enable_btrace): New.
10184 (i386_linux_disable_btrace): New.
10185 (i386_linux_teardown_btrace): New.
10186 (_initialize_i386_linux_nat): Initialize btrace ops.
10187 * config/i386/linux.mh: Add linux-btrace.o.
10188 * config/i386/linux64.mh: Add linux-btrace.o.
10189
7c97f91e
MM
101902013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10191
10192 * common/linux_btrace.h: New file.
10193 * common/linux_btrace.c: New file.
10194 * Makefile.in (SFILES): Add btrace.c.
10195 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10196 (COMMON_OBS): Add btrace.o.
10197 (linux-btrace.o): New rule.
10198
1999790b 101992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10200
10201 * target.h: Include btrace.h.
10202 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10203 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10204 * target.c (target_supports_btrace): New function.
10205 (target_enable_btrace): New function.
10206 (target_disable_btrace): New function.
10207 (target_teardown_btrace): New function.
10208 (target_read_btrace): New function.
10209 * btrace.h: New file.
10210 * btrace.c: New file.
10211 * Makefile.in: Add btrace.c.
10212 * gdbthread.h: Include btrace.h.
10213 (struct thread_info): Add btrace field.
10214 * thread.c: Include btrace.h.
10215 (clear_thread_inferior_resources): Call target_teardown_btrace.
10216 * common/btrace-common.h: New file.
10217
61a31a67
JK
102182013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10219
10220 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10221 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10222 kill_status to outer block.
10223
05c56a9d
JK
102242013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10225
10226 Fix entry-values if the callee called a noreturn function.
10227 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10228 get_frame_address_in_block. Add new comment.
10229
9112db09
JK
102302013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10231
10232 Fix entry-values in C++ across CUs.
10233 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10234 lookup_minimal_symbol. Add a comment.
10235 * dwarf2read.c
10236 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10237 DW_AT_linkage_name.
10238
9b67fcec
YQ
102392013-03-08 Yao Qi <yao@codesourcery.com>
10240
10241 * tracepoint.c (_initialize_tracepoint): Indent the code.
10242
6221be90
PA
102432013-03-08 Pedro Alves <palves@redhat.com>
10244
10245 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10246 (parse_find_args, find_command): Change type of pattern buffer
10247 locals to 'gdb_byte *'.
10248
be9a119c 102492013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10250 Hafiz Abid Qadeer <abidh@codesourcery.com>
10251
10252 * NEWS: Mention set and show trace-buffer-size commands.
10253 Mention new packet.
10254 * target.h (struct target_ops): New method
10255 to_set_trace_buffer_size.
10256 (target_set_trace_buffer_size): New macro.
10257 * target.c (update_current_target): Set up new method.
10258 * tracepoint.c (trace_buffer_size): New global.
10259 (start_tracing): Send it to the target.
10260 (set_trace_buffer_size): New function.
10261 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10262 * remote.c (remote_set_trace_buffer_size): New function.
10263 (_initialize_remote): Use it.
10264 (QTBuffer:size) New remote command.
10265 (PACKET_QTBuffer_size): New enum.
10266 (remote_protocol_features): Add an entry for
10267 PACKET_QTBuffer_size.
10268
7da3ab79
TT
102692013-03-08 Tom Tromey <tromey@redhat.com>
10270
10271 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10272 variable.
10273
0c1f71e7
PA
102742013-03-07 Pedro Alves <palves@redhat.com>
10275
10276 * target.c (target_read_stralloc, target_fileio_read_alloc):
10277 *Cast pointer to 'gdb_byte *' in target call.
10278
c8af03a2
PA
102792013-03-07 Pedro Alves <palves@redhat.com>
10280
10281 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10282 call.
10283
529480d0
KS
102842013-03-07 Keith Seitz <keiths@redhat.com>
10285
10286 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10287 (trace_pass_command): Likewise.
10288 * cli/cli-cmds.c: Include cli/cli-utils.h.
10289 (source_command): Use skip-spaces.
10290 (disassemble_command): Likewise.
10291 * findcmd.c: Include cli/cli-utils.h.
10292 (parse_find_args): Use skip_spaces.
10293 * go32-nat.c: Include cli/cli-utils.h.
10294 (go32_sldt): Use skip_spaces.
10295 (go32_sgdt): Likewise.
10296 (go32_sidt): Likewise.
10297 (go32_pde): Likewise.
10298 (go32_pte): Likewise.
10299 (go32_pte_for_address): Likewise.
10300 * infcmd.c: Include cli/cli-utils.h.
10301 (registers_info): Use skip_spaces.
10302 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10303 (linux_info_proc): Likewise.
10304 * linux-thread-db.c: Include cli/cli-utils.h.
10305 (info_auto_load_libthread_db): Use skip_spaces_const.
10306 * m32r-rom.c: Include cli/cli-utils.h.
10307 (m32r_upload_command): Use skip_spaces.
10308 * maint.c: Include cli/cli-utils.h.
10309 (maintenance_translate_address): Use skip_spaces.
10310 * mi/mi-parse.c: Include cli/cli-utils.h.
10311 (mi_parse_argv): Use skip_spaces.
10312 (mi_parse): Likewise.
10313 * minsyms.c: Include cli/cli-utils.h.
10314 (msymbol_hash_iw): Use skip_spaces_const.
10315 * objc-lang.c: Include cli/cli-utils.h.
10316 (parse_selector): Use skip_spaces.
10317 (parse_method): Likewise.
10318 * python/python.c: Include cli/cli-utils.h.
10319 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10320 (python_command)[HAVE_PYTHON]: Likewise.
10321 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10322 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10323 (m32r_load): Use skip_spaces.
10324 * serial.c: Include cli/cli-utils.h.
10325 (serial_open): Use skip_spaces_const.
10326 * stack.c: Include cli/cli-utils.h.
10327 (parse_frame_specification_1): Use skip_spaces_const.
10328 * symfile.c: Include cli/cli-utils.h.
10329 (set_ext_lang_command): Use skip_spaces.
10330 * symtab.c: Include cli/cli-utils.h.
10331 (rbreak_command): Use skip_spaces.
10332 * thread.c (thread_name_command): Use skip_spaces.
10333 * tracepoint.c (validate_actionline): Use skip_spaces.
10334 (encode_actions_1): Likewise.
10335 (trace_find_range_command): Likewise.
10336 (trace_find_outside_command): Likewise.
10337 (trace_dump_actions): Likewise.
10338
ac91cd70
PA
103392013-03-07 Pedro Alves <palves@redhat.com>
10340
10341 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10342 * expprint.c (print_subexp_standard): Likewise.
10343 * utils.c (host_char_to_target): Likewise.
10344 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10345 * varobj.c (value_get_print_value): Change type of local to char*.
10346 Cast it gdb_byte * in call to language printer.
10347
2898e560
PA
103482013-03-07 Pedro Alves <palves@redhat.com>
10349
10350 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10351 gdb_byte *'.
10352 (make_wchar_iterator): Remove cast to char*.
10353 (wchar_iterate): Change type of local.
10354
a09b4448
PA
103552013-03-07 Pedro Alves <palves@redhat.com>
10356
10357 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10358 for 'regcache->register_status'.
10359
20ced3e4
PA
103602013-03-07 Pedro Alves <palves@redhat.com>
10361
c2d6a675 10362 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10363 int.
10364
fe106009
PA
103652013-03-07 Pedro Alves <palves@redhat.com>
10366
10367 * stap-probe.c (handle_stap_probe): Add cast to char*.
10368
8ac2c12b
PA
103692013-03-07 Pedro Alves <palves@redhat.com>
10370
10371 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10372 RECORD_MSGRCV>: Pass a signed variable to
10373 regcache_raw_read_signed, instead of an unsigned one.
10374
99f0a309
PA
103752013-03-07 Pedro Alves <palves@redhat.com>
10376
10377 * remote-notif.c (notif_debug): Change type to int.
10378 * remote-notif.h (notif_debug): Likewise.
10379
964b8317
PA
103802013-03-07 Pedro Alves <palves@redhat.com>
10381
10382 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10383
f0cc8ad4
PA
103842013-03-07 Pedro Alves <palves@redhat.com>
10385
10386 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10387 * remote.h (hex2bin, bin2hex): ... here.
10388 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10389
77dec115
EZ
103902013-03-07 Eli Zaretskii <eliz@gnu.org>
10391
10392 * utils.c (initialize_utils): Improve doc strings of "set/show
10393 width", "set/show height", and "set/show pagination".
10394
741d92cf
KS
103952013-03-06 Keith Seitz <keiths@redhat.com>
10396
10397 * ax-gdb.c (gen_printf): Make FORMAT const.
10398 * ax-gdb.h (gen_printf): Likewise.
10399 * ax-general.c (ax_string): Make STR const.
10400 * ax.h (ax_string): Likewise.
10401
7b6c814e
DE
104022013-03-06 Doug Evans <dje@google.com>
10403
10404 * elfread.c (elf_symfile_read): Move debugging printf to more
10405 logical location.
10406
634334ab
PA
104072013-03-06 Pedro Alves <palves@redhat.com>
10408
10409 * python/py-utils.c (target_string_to_unicode): Delete function.
10410 * python/python-internal.h (target_string_to_unicode): Delete
10411 declaration.
10412
e482a1a7
PM
104132013-03-06 Pierre Muller <muller@sourceware.org>
10414
10415 * linespec.c (get_current_search_block): ARI fix, use (void)
10416 for empty parameter list.
10417
4eeaa230
DE
104182013-03-05 Doug Evans <dje@google.com>
10419
10420 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10421 of old ada_lookup_symbol_list. In !full_search case, don't
10422 search superblocks.
10423 (ada_lookup_symbol_list): Delete arg full_search, all callers
10424 updated. Call ada_lookup_symbol_list_worker.
10425 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10426 * ada-lang.h (ada_lookup_symbol_list): Update.
10427 * language.h (language_defn): Update comment for
10428 la_iterate_over_symbols.
10429 * linespec.c (iterate_over_file_blocks): New function.
10430 (iterate_over_all_matching_symtabs): Call it.
10431 (lookup_prefix_sym): Ditto.
10432 (get_current_search_block): New function.
10433 (get_search_block): Delete.
10434 (find_label_symbols): Call get_current_search_block.
10435 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10436 * symtab.c (iterate_over_symbols): Don't search superblocks.
10437
b69b1fb1
YQ
104382013-03-05 Yao Qi <yao@codesourcery.com>
10439
10440 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10441 parameter VAR's type from "unsigned int" to "int".
10442 * command.h (var_zuinteger_unlimited): Update its comments.
10443 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10444
3c095f49
CV
104452013-03-05 Corinna Vinschen <vinschen@redhat.de>
10446
10447 * NEWS: Mention new target x86_64-*-cygwin*.
10448
b5b0b0af
CV
104492013-03-05 Corinna Vinschen <vinschen@redhat.de>
10450
10451 * configure.host: Add x86_64-*-cygwin* as host.
10452 * configure.tgt: Add x86_64-*-cygwin* as target.
10453 * config/i386/cygwin64.mh: New file.
10454
f6f99966
JK
104552013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10456
10457 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10458
33f448b1
JK
104592013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10460
10461 * linespec.c (struct linespec_canonical_name): New.
10462 (struct linespec_state): Change canonical_names type to it.
10463 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10464 xrealloc element size. Initialize the different CANONICAL fields.
10465 (canonical_to_fullform): New.
10466 (filter_results): Use it. Add variables canonical, fullform and
10467 cleanup.
10468 (struct decode_line_2_item, decode_line_2_compare_items): New.
10469 (decode_line_2): Remove variables iter and item_names, add variables
10470 items and items_count. Modify the code for these new variables.
10471
feb14725
CV
104722013-03-04 Corinna Vinschen <vinschen@redhat.com>
10473
10474 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10475 calling do_cleanup.
10476
e83b17ba
HZ
104772013-03-04 Luis Machado <lgustavo@codesourcery.com>
10478
10479 * tracepoint.c (build_traceframe_info): Add code for byte order.
10480
a2d13a0d
KB
104812013-03-02 Kevin Buettner <kevinb@redhat.com>
10482
8dddcae8
KB
10483 * v850-tdep.c: (v850e2_register_name): Revise system register
10484 names to match current V850E2M architecture specifications.
10485 Update register number enum comments too.
f5aee5ee 10486
d79e58d8
JW
104872013-03-01 Jiong Wang <jiwang@tilera.com>
10488 Pedro Alves <palves@redhat.com>
10489
10490 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10491 to END_ADDR.
10492 (tilegx_skip_prologue): Limit prologue analysis to section end.
10493
c4be5165
JK
104942013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10495
10496 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10497 use it.
10498
e362b510
PA
104992013-03-01 Pedro Alves <palves@redhat.com>
10500
10501 Use gdb_byte for bytes from the program being debugged.
10502
10503 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10504 Change type of local 'buf' to gdb_byte.
10505 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10506 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10507 * cris-tdep.c (cris_sigcontext_addr)
10508 (cris_sigtramp_frame_unwind_cache): Likewise.
10509 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10510 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10511 Likewise.
10512 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10513 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10514 (hppa32_hpux_search_dummy_call_sequence)
10515 (hppa_hpux_supply_save_state): Likewise.
10516 * hppa-linux-tdep.c (insns_match_pattern)
10517 (hppa_linux_find_global_pointer): Likewise.
10518 * hppa-tdep.c (hppa_in_function_epilogue_p)
10519 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10520 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10521 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10522 (i386fbsd_collect_uthread): Likewise.
10523 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10524 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10525 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10526 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10527 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10528 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10529 (ia64_libunwind_frame_prev_register)
10530 (ia64_libunwind_sigtramp_frame_this_id)
10531 (ia64_find_global_pointer_from_dynamic_section)
10532 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10533 (ia64_unwind_pc): Likewise.
10534 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10535 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10536 (m68hc11_extract_return_value): Likewise.
10537 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10538 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10539 (mep_get_insn, mep_push_dummy_call): Likewise.
10540 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10541 (mips_linux_in_dynsym_stub): Likewise.
10542 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10543 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10544 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10545 to gdb_byte.
10546 * remote-mips.c (mips_set_register): Likewise.
10547 * remote-sim.c (gdbsim_fetch_register): Likewise.
10548 * score-tdep.c (score7_fetch_inst): Change type of parameter
10549 'memblock' and local 'buf' to gdb_byte.
10550 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10551 Change type of local 'buf' to gdb_byte. Adjust.
10552 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10553 to gdb_byte**.
10554 (score7_analyze_prologue): Change type of 'memblock' and
10555 'memblock_ptr' locals to gdb_byte*.
10556 * sh64-tdep.c (sh64_extract_return_value)
10557 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10558 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10559 * solib-pa64.c (pa64_solib_create_inferior_hook)
10560 (pa64_open_symbol_file_object): Remove local 'buf'.
10561 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10562 (som_open_symbol_file_object): Likewise.
10563 * solib-spu.c (spu_current_sos): Likewise.
10564 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10565 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10566 (spu_store_registers): Likewise.
10567 * target.c (debug_print_register): Likewise.
10568 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10569 * xstormy16-tdep.c (xstormy16_store_return_value)
10570 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10571 (xstormy16_find_jmp_table_entry): Likewise.
10572
75cc61ca 105732013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10574
10575 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10576 (tilegx_gdbarch_init): Install it.
10577
ddb08e9c
TT
105782013-02-28 Tom Tromey <tromey@redhat.com>
10579
10580 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10581 PyLong_Check.
10582
62d7fb51
DE
105832013-02-28 Doug Evans <dje@google.com>
10584
10585 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10586 * python/python.c (gdbpy_find_pc_line): Ditto.
10587
c4a9e8b4
TT
105882013-02-28 Tom Tromey <tromey@redhat.com>
10589
10590 * contrib/excheck.py: New file.
10591 * contrib/exsummary.py: New file.
10592 * contrib/gcc-with-excheck: New file.
10593
7f6a5dde
TT
105942013-02-28 Tom Tromey <tromey@redhat.com>
10595
10596 * python/python.c (gdbpy_print_stack): Call begin_line and
10597 fprintf_filtered inside TRY_CATCH.
10598
9e974e55
TT
105992013-02-28 Tom Tromey <tromey@redhat.com>
10600
10601 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10602 inside TRY_CATCH.
10603
dd5fa3e7
TT
106042013-02-28 Tom Tromey <tromey@redhat.com>
10605
10606 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10607 frame_object_to_frame_info inside TRY_CATCH.
10608
86a3263f
TT
106092013-02-28 Tom Tromey <tromey@redhat.com>
10610
10611 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10612 TRY_CATCH.
10613
81b52a3a
TT
106142013-02-28 Tom Tromey <tromey@redhat.com>
10615
10616 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10617
d50a0ce2
CV
106182013-02-27 Corinna Vinschen <vinschen@redhat.com>
10619
10620 * windows-nat.c: Throughout, fix format strings and casts of
10621 printf-like functions to avoid type related warnings on all
10622 platforms.
10623 (handle_output_debug_string): Fetch context information address
10624 from debug string using string_to_core_addr.
10625
e1f58301
JW
106262013-02-27 Jiong Wang <jiwang@tilera.com>
10627
10628 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10629 * regformats/reg-tilegx32.dat: New.
10630
4fcd89fc
JW
106312013-02-27 Jiong Wang <jiwang@tilera.com>
10632
10633 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10634
748d24e6
JW
106352013-02-27 Jiong Wang <jiwang@tilera.com>
10636
10637 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10638
6c8e944d
YQ
106392013-02-27 Yao Qi <yao@codesourcery.com>
10640 Pedro Alves <palves@redhat.com>
10641
10642 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10643 pc/tp/range/outside, look for the next trace frame instead of
10644 always starting from frame 0.
6c8e944d 10645
acd7db30
AG
106462013-02-26 Anthony Green <green@moxielogic.com>
10647
10648 * configure.tgt: Add support for moxie-*-rtems* target.
10649
025e6dce
PA
106502013-02-25 Pedro Alves <palves@redhat.com>
10651
10652 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10653 warning text.
10654
ca9c94ef
MR
106552013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10656
10657 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10658 if $fp is used as the virtual frame pointer.
10659
24c274a1
AM
106602013-02-23 Alan Modra <amodra@gmail.com>
10661
10662 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10663 symbol size.
10664 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10665 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10666 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10667 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10668
bfada189
JK
106692013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10670
10671 Code cleanup.
10672 * elfread.c (build_id_bfd_get): Make the return type const.
10673 (build_id_verify): Make the check parameter const.
10674 (build_id_to_debug_filename): Make the build_id parameter and variable
10675 data const.
10676 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10677
c0355132
AM
106782013-02-21 Alan Modra <amodra@gmail.com>
10679
10680 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10681
9f44fbc0
SCR
106822013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10683
10684 Add a new method 'disassemble' to gdb.Architecture class.
10685 * python/py-arch.c (archpy_disassmble): Implementation of the
10686 new method gdb.Architecture.disassemble.
10687 (arch_object_methods): Add entry for the new method.
10688
b74ea3eb
JW
106892013-02-20 Jiong Wang <jiwang@tilera.com>
10690
10691 * MAINTAINERS (Write After Approval): Add myself to the list.
10692
61a672f1
PA
106932013-02-19 Pedro Alves <palves@redhat.com>
10694
10695 Garbage collect 'struct monitor_ops'::load_routine.
10696
10697 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10698 * monitor.c (monitor_load): No longer call
10699 current_monitor->load_routine.
10700 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10701 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10702 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10703
40e397df
PA
107042013-02-19 Pedro Alves <palves@redhat.com>
10705
10706 PR gdb/15161
10707
10708 Harmonize with generic_load.
10709
10710 * monitor.c: Include "readline/readline.h".
10711 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10712 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10713 long/strtol for the 'load_offset' local. Error out if no argument
10714 is given or if too many arguments are given. Tilde expand the
10715 passed in file name.
10716
f698ca8e
KT
107172013-02-19 Kai Tietz <ktietz@redhat.com>
10718
10719 PR gdb/15161
10720 * symfile.c (load_section_data): Change type of load_offset
10721 to CORE_ADDR.
10722 (generic_load): User strtoulst instead of strtoul for conversion
10723 of load_offset.
10724
3361b059
WL
107252013-02-19 Jiong Wang <jiwang@tilera.com>
10726
10727 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10728 for return address, "lr" register, saved on stack.
10729 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10730 after we invoke tilegx_analyze_prologue.
10731
3e9d5130
WL
107322013-02-19 Jiong Wang <jiwang@tilera.com>
10733
bb1bcd86
WL
10734 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10735
3361b059 107362013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10737
b74ea3eb 10738 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10739
4aaf2503
WL
107402013-02-19 Jiong Wang <jiwang@tilera.com>
10741
b74ea3eb 10742 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10743 (tilegx_write_pc): New function.
10744 (tilegx_cannot_reference_register): Return zero if REGNO
10745 is TILEGX_FAULTNUM_REGNUM.
10746 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10747 (tilegx_register_name): Add handling of "faultnum" register.
10748 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10749 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10750 handling of TILEGX_FAULTNUM_REGNUM.
10751 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10752
bc23a956
WL
107532013-02-19 Jiong Wang <jiwang@tilera.com>
10754
10755 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10756 should be aligned to 64bit.
bc23a956 10757
42f45f1a
KT
107582013-02-19 Kai Tietz <ktietz@redhat.com>
10759
10760 * windows-nat.c (windows_xfer_memory): Fix debug-output
10761 for LLP64.
10762
6ce4c112
LL
107632013-02-19 Lei Liu <lei.liu2@windriver.com>
10764
10765 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10766 Don't check DSP register number if HAVE_DSP is not set.
10767
30e8ee25
AM
107682013-02-19 Alan Modra <amodra@gmail.com>
10769
10770 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10771 throughout file instead.
10772 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10773 Don't xmalloc return value.
10774 (build_id_verify): Similarly. Don't xfree.
10775 (build_id_to_debug_filename): Update.
10776 (find_separate_debug_file_by_buildid): Update, don't xfree.
10777
4c9ad8c2
TT
107782013-02-18 Tom Tromey <tromey@redhat.com>
10779
10780 PR gdb/15102:
10781 * dwarf2read.c (read_subrange_type): Use result of
10782 'check_typedef'.
10783
983dc440
YQ
107842013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10785
10786 * frame.c: Remove one extra white space after #include
10787 directive.
10788
7fb2b84a
JK
107892013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10790
10791 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10792
edceb2a9
JK
107932013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10794
10795 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10796 and dir commands into an if block.
10797
e81b7af8
TT
107982013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10799
10800 * python/py-breakpoint (struct pybp_code): Use int instead of
10801 enum type_code.
10802
f5911ea1
HAQ
108032013-02-15 Pedro Alves <pedro@codesourcery.com>
10804 Hafiz Abid Qadeer <abidh@codesourcery.com>
10805
10806 * NEWS: Mention new field "trace-file".
10807 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10808 (tfile_open): Record the trace file's filename in the trace
10809 status.
10810 (tfile_files_info): Mention the name of the trace file.
10811 Check the "filename" field explicitely.
10812 (trace_status_command): Explicitely check "filename" field.
10813 (trace_find_command): Ditto.
10814 (trace_find_pc_command): Ditto.
10815 (trace_find_tracepoint_command): Ditto.
10816 (trace_find_line_command): Ditto.
10817 (trace_find_range_command): Ditto.
10818 (trace_find_outside_command): Ditto.
10819 * tracepoint.h (struct trace_status) <from_file>: Rename it
10820 to "filename" and make it hold the trace file's filename
10821 instead of a boolean.
10822 * remote.c (remote_get_trace_status): Initialize "filename"
10823 field with NULL instead of 0.
10824
796cb314
YQ
108252013-02-15 Yao Qi <yao@codesourcery.com>
10826
10827 * remote.c: Fix a typo.
10828
42e79b1d
PM
108292013-02-14 Pierre Muller <muller@sourceware.org>
10830
10831 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10832
baea0dae
PA
108332013-02-14 Pedro Alves <palves@redhat.com>
10834
10835 * utils.c (savestring): Don't #undef it. Move function to
10836 common/common-utils.c.
10837 * common/common-utils.c: Include gdb_string.h.
10838 (savestring): Move here from utils.c.
10839 * common/common-utils.h (savestring): Declare.
10840
57c3b6ed
PA
108412013-02-14 Pedro Alves <palves@redhat.com>
10842
10843 * utils.c (savestring): Rename parameter 'size' to 'len'.
10844
d6c44983
YZ
108452013-02-14 Pedro Alves <palves@redhat.com>
10846 Yufeng Zhang <yufeng.zhang@arm.com>
10847
10848 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10849 (aarch64_inferior_data, struct aarch64_inferior_data):
10850 Delete.
10851 (struct aarch64_process_info): New.
10852 (aarch64_process_list): New global.
10853 (aarch64_find_process_pid, aarch64_add_process)
10854 (aarch64_process_info_get): New functions.
10855 (aarch64_inferior_data_get): Delete.
10856 (aarch64_process_info_get): New function.
10857 (aarch64_forget_process): New function.
10858 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10859 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10860 aarch64_get_debug_reg_state.
10861 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10862 instead of linux_nat_iterate_watchpoint_lwps.
10863 (aarch64_linux_new_fork): New function.
10864 (aarch64_linux_child_post_startup_inferior): Use
10865 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10866 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10867 (aarch64_linux_remove_hw_breakpoint)
10868 (aarch64_handle_aligned_watchpoint)
10869 (aarch64_handle_unaligned_watchpoint)
10870 (aarch64_linux_insert_watchpoint)
10871 (aarch64_linux_remove_watchpoint)
10872 (aarch64_linux_stopped_data_address): Adjust to pass the current
10873 process id to aarch64_debug_reg_state.
10874 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10875 linux_nat_new_fork hook, and aarch64_forget_process as
10876 linux_nat_forget_process hook; remove the call to
10877 register_inferior_data_with_cleanup.
10878
4819b3f8
PA
108792013-02-14 Pedro Alves <palves@redhat.com>
10880
10881 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10882 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10883 lval_memory.
10884
1773c82c
HAQ
108852013-02-14 Pedro Alves <pedro@codesourcery.com>
10886 Hafiz Abid Qadeer <abidh@codesourcery.com>
10887
10888 * tracepoint.h (validate_trace_state_variable_name): Declare.
10889 * tracepoint.c (validate_trace_state_variable_name): New.
10890 (trace_variable_command): Parse the trace state variable's name
10891 without using parse_expression. Do several validations.
10892 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10893 trace state variable's name with parse_expression. Validate it.
10894
53778a97
YQ
108952013-02-14 Yao Qi <yao@codesourcery.com>
10896
10897 * infcmd.c (breakpoint_proceeded): Remove it.
10898
7b3ae3a6
YQ
108992013-02-14 Yao Qi <yao@codesourcery.com>
10900
10901 * tracepoint.c (end_actions_pseudocommand): Make it static.
10902 (while_stepping_pseudocommand): Likewise.
10903 * tracepoint.h (end_actions_pseudocommand): Remove the
10904 declaration.
10905 (while_stepping_pseudocommand): Likewise.
10906
64580925
YQ
109072013-02-14 Yao Qi <yao@codesourcery.com>
10908
10909 * cli/cli-decode.c (help_cmd): Remove the declaration of
10910 "cmdlist".
10911 (help_all): Likewise.
10912
26cb8b7c
PA
109132013-02-13 Pedro Alves <palves@redhat.com>
10914
10915 * amd64-linux-nat.c (update_debug_registers_callback):
10916 Update comment.
10917 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10918 iterate_over_lwps.
10919 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10920 i386_debug_reg_state.
10921 (amd64_linux_new_fork): New function.
10922 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10923 linux_nat_new_fork hook, and i386_forget_process as
10924 linux_nat_forget_process hook.
10925 * i386-linux-nat.c (update_debug_registers_callback):
10926 Update comment.
a8256ea1 10927 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10928 iterate_over_lwps.
10929 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10930 i386_debug_reg_state.
10931 (i386_linux_new_fork): New function.
10932 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10933 linux_nat_new_fork hook, and i386_forget_process as
10934 linux_nat_forget_process hook.
10935 * i386-nat.c (i386_init_dregs): Delete.
10936 (i386_inferior_data, struct i386_inferior_data):
10937 Delete.
10938 (struct i386_process_info): New.
10939 (i386_process_list): New global.
10940 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10941 New functions.
10942 (i386_inferior_data_get): Delete.
10943 (i386_process_info_get): New function.
10944 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10945 (i386_forget_process): New function.
10946 (i386_cleanup_dregs): Rewrite.
10947 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10948 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10949 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10950 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10951 to i386_debug_reg_state.
10952 (i386_use_watchpoints): Don't register inferior data.
10953 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10954 adjust comment.
10955 (i386_forget_process): Declare.
10956 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10957 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10958 New static globals.
10959 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10960 (add_initial_lwp): New, factored out from ...
10961 (add_lwp): ... this. Don't check the number of lwps before
10962 calling linux_nat_new_thread.
10963 (linux_nat_iterate_watchpoint_lwps): Delete.
10964 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10965 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10966 forks and vforks.
10967 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10968 initial lwp.
10969 (linux_nat_kill, linux_nat_mourn_inferior): Call
10970 linux_nat_forget_process.
10971 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10972 (linux_nat_forget_process): New functions.
10973 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10974 type.
10975 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10976 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10977 types.
10978 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10979 (linux_nat_forget_process): New declarations.
10980
10981 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10982 (amd64fbsd_mourn_inferior): New function.
10983 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10984 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10985
5befea72
MS
109862013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10987
55015247
YQ
10988 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10989 Adding _().
5befea72 10990
1d3ffd6b
MS
109912013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10992
10993 * aarch64-linux-nat.c (debug_reg_change_callback)
10994 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10995 %s and phex().
10996
6eb04473
MS
109972013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10998
10999 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11000 with LONGEST.
11001
a016fc87
HAQ
110022013-02-13 Pedro Alves <palves@redhat.com>
11003 Hafiz Abid Qadeer <abidh@codesourcery.com>
11004
11005 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11006
e234dfaf
TT
110072013-02-12 Tom Tromey <tromey@redhat.com>
11008
11009 PR symtab/11464:
11010 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11011 NAME return.
11012 (classify_inner_name): Remove 'first_name' argument, add
11013 'context'. Remove unused variable.
11014 (yylex): Explicitly maintain the context type. Exit loop earlier
11015 if NAME result is seen.
11016
0b1afbb3
PA
110172013-02-12 Pedro Alves <palves@redhat.com>
11018
11019 * amd64-darwin-tdep.c: Add (C) after Copyright.
11020 * cli/cli-cmds.h: Ditto.
11021 * cli/cli-decode.c: Ditto.
11022 * cli/cli-decode.h: Ditto.
11023 * cli/cli-dump.c: Ditto.
11024 * cli/cli-dump.h: Ditto.
11025 * cli/cli-interp.c: Ditto.
11026 * cli/cli-logging.c: Ditto.
11027 * cli/cli-script.c: Ditto.
11028 * cli/cli-script.h: Ditto.
11029 * cli/cli-setshow.c: Ditto.
11030 * cli/cli-setshow.h: Ditto.
11031 * cli/cli-utils.c: Ditto.
11032 * cli/cli-utils.h: Ditto.
11033 * config/alpha/nm-osf3.h: Ditto.
11034 * config/djgpp/djconfig.sh: Ditto.
11035 * config/i386/nm-fbsd.h: Ditto.
11036 * config/i386/nm-i386gnu.h: Ditto.
11037 * config/nm-linux.h: Ditto.
11038 * config/nm-nto.h: Ditto.
11039 * config/rs6000/nm-rs6000.h: Ditto.
11040 * config/sparc/nm-sol2.h: Ditto.
11041 * darwin-nat-info.c: Ditto.
11042 * dfp.c: Ditto.
11043 * dfp.h: Ditto.
11044 * gdb-demangle.h: Ditto.
11045 * i386-darwin-nat.c: Ditto.
11046 * i386-darwin-tdep.c: Ditto.
11047 * linux-fork.h: Ditto.
11048 * m32c-tdep.c: Ditto.
11049 * microblaze-linux-tdep.c: Ditto.
11050 * microblaze-rom.c: Ditto.
11051 * microblaze-tdep.c: Ditto.
11052 * microblaze-tdep.h: Ditto.
11053 * mips-linux-tdep.h: Ditto.
11054 * ppc-ravenscar-thread.c: Ditto.
11055 * ppc-ravenscar-thread.h: Ditto.
11056 * prologue-value.c: Ditto.
11057 * prologue-value.h: Ditto.
11058 * ravenscar-thread.c: Ditto.
11059 * ravenscar-thread.h: Ditto.
11060 * sparc-ravenscar-thread.c: Ditto.
11061 * sparc-ravenscar-thread.h: Ditto.
11062 * tilegx-linux-tdep.c: Ditto.
11063 * unwind_stop_reasons.def: Ditto.
11064 * windows-nat.h: Ditto.
11065 * xtensa-linux-tdep.c: Ditto.
11066 * xtensa-xtregs.c: Ditto.
11067 * regformats/regdat.sh: Ditto.
11068 * regformats/regdef.h: Ditto.
11069
6c01dd94
PA
110702013-02-12 Pedro Alves <palves@redhat.com>
11071
11072 * break-catch-sig.c: Update copyright years.
11073
b65a2bd9
SCR
110742013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11075
11076 Add support for a destructor for ui_out data and use it to
11077 provide a ui_out destructor.
11078 * ui-out.h: Declare the new ui_out destructor.
11079 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11080 * ui-out.c (default_data_destroy): Add a default data destructor
11081 which does nothing.
11082 (default_ui_out_impl): Set the new data_destroy field to
11083 default_data_destroy
11084 (uo_data_destroy): Local function which invokes the data
11085 destructor if present.
11086 (clear_table): Local function which clears the table data of a
11087 ui_out object.
11088 (ui_out_destroy): Public function which frees a ui_out object.
11089 (ui_out_table_end): Use the new clear_table function.
11090 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11091 NULL.
11092 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11093 to NULL.
11094
c2792f5a
DE
110952013-02-11 Doug Evans <dje@google.com>
11096
11097 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11098 (printf_decfloat): New function. Broken out from ui_printf.
11099 Remove unnecessary code to shift the entire format string down.
11100 (printf_pointer): New function.
11101 (ui_printf): Code to print C strings, wide C strings, decfloats,
11102 and pointers moved to separate functions.
11103
d9e98382
SDJ
111042013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11105
11106 * valops.c (value_assign): Handling bitfield offset in
11107 `lval_internalvar_component' case.
11108
4ff3ce77
DE
111092013-02-08 Doug Evans <dje@google.com>
11110
11111 * common/format.c (parse_format_string): Fix whitespace.
11112
901900c4
MGD
111132013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11114
11115 * stack.c (return_command): Work around uninitialized variable
11116 warning.
11117
b5dbc8d4
YZ
111182013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11119
11120 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11121 number of the registers from 36 to 34.
11122
51d66578
MS
111232013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11124
11125 * NEWS: Mention new AArch64 native and target support.
11126
176b1c95
MS
111272013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11128
11129 * MAINTAINERS (Write After Approval): Add myself.
11130
9d19df75
MS
111312013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11132 Marcus Shawcroft <marcus.shawcroft@arm.com>
11133 Nigel Stephens <nigel.stephens@arm.com>
11134 Yufeng Zhang <yufeng.zhang@arm.com>
11135
11136 * aarch64-linux-nat.c: New file.
11137 * config/aarch64/linux.mh: New file.
11138 * configure.host: Add AArch64.
11139 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11140
7e1e0340
DE
111412013-02-07 Doug Evans <dje@google.com>
11142
11143 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11144 disassemble command.
11145
45e25a36
MS
111462013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11147
11148 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11149 set_gdbarch_fetch_tls_load_module_address.
11150
bbfdfe1c
DM
111512013-02-06 David S. Miller <davem@davemloft.net>
11152
11153 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11154 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11155 * value.c (struct_return_convention): New function.
11156 (using_struct_return): Implement in terms of struct_return_convention.
11157 * value.h (struct_return_convention): Declare.
11158 * stack.c (return_command): Allow successful overriding of the return
11159 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11160
bc9abe4a
TT
111612013-02-06 Tom Tromey <tromey@redhat.com>
11162
11163 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11164 outside of TRY_CATCH.
11165
134a2066
YQ
111662013-02-06 Yao Qi <yao@codesourcery.com>
11167
11168 * mi/mi-interp.c: Include "tracepoint.h".
11169 (mi_tsv_modified): Declare.
11170 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11171 (mi_interpreter_init): Call observer_attach_tsv_modified.
11172 (mi_tsv_modified): New.
11173 (mi_tsv_created, mi_tsv_deleted): Update.
11174 * tracepoint.c (trace_variable_command): Call
11175 observer_notify_tsv_modified if the initial value of tsv is
11176 changed.
11177 (delete_trace_state_variable): Call
11178 observer_notify_tsv_deleted earlier.
11179 (trace_variable_command): Caller update.
11180 (create_tsv_from_upload): Likewise.
11181 * observer.sh: Declare "struct trace_state_variable".
11182
11183 * NEWS: Mention the new MI notification "=tsv-modified".
11184
59be2b6a
DE
111852013-02-05 Doug Evans <dje@google.com>
11186
11187 * completer.c (location_completer): Fix typo in comment.
11188
d30113d4
JK
111892013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11190
11191 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11192 ADDRESS sorted.
11193
14ac654f
MS
111942013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11195
11196 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11197 Refactor if statement to avoid trailing || operator.
11198
543bf33d
AT
111992013-02-05 Andreas Tobler <andreast@fgznet.ch>
11200
11201 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11202
dc18f110
AT
112032013-02-04 Andreas Tobler <andreast@fgznet.ch>
11204
11205 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11206 * configure.host: Add powerpc*-*-freebsd* target.
11207 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11208 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11209 * config/powerpc/fbsd.mh: New file.
11210
b3ac9c77
SDJ
112112013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11212 Denys Vlasenko <dvlasenk@redhat.com>
11213 Pedro Alves <palves@redhat.com>
11214
11215 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11216 (struct elf_internal_linux_prpsinfo): Forward declare.
11217 * gdbarch.h, gdbarch.c: Regenerate.
11218 * linux-tdep.c: Include `cli/cli-utils.h'.
11219 (linux_fill_prpsinfo): New function.
11220 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11221 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11222 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11223 depending on gdbarch pointer bitness.
11224 * ppc-linux-tdep.c: Include elf-bfd.h.
11225 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11226 on 32-bit.
11227
176eb98c
MS
112282013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11229 Marcus Shawcroft <marcus.shawcroft@arm.com>
11230 Nigel Stephens <nigel.stephens@arm.com>
11231 Yufeng Zhang <yufeng.zhang@arm.com>
11232
11233 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11234
cf0dbd6f
MS
112352013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11236 Marcus Shawcroft <marcus.shawcroft@arm.com>
11237 Nigel Stephens <nigel.stephens@arm.com>
11238 Yufeng Zhang <yufeng.zhang@arm.com>
11239
11240 * aarch64-newlib-tdep.c: New file.
11241 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11242 aarch64*-*-elf.
11243 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11244 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11245 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11246 * osabi.c (gdb_osabi_names): Add "Newlib".
11247
1ae3db19
MS
112482013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11249 Marcus Shawcroft <marcus.shawcroft@arm.com>
11250 Nigel Stephens <nigel.stephens@arm.com>
11251 Yufeng Zhang <yufeng.zhang@arm.com>
11252
11253 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11254 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11255 * aarch64-linux-tdep.c: New file.
11256 * aarch64-linux-tdep.h: New file.
11257 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11258 * configure.tgt: Add aarch64-none-linux-gnu.
11259
07b287a0
MS
112602013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11261 Marcus Shawcroft <marcus.shawcroft@arm.com>
11262 Nigel Stephens <nigel.stephens@arm.com>
11263 Yufeng Zhang <yufeng.zhang@arm.com>
11264
11265 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11266 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11267 (ALLDEPFILES): Add aarch64-tdep.c.
11268 * aarch64-tdep.c: New file.
11269 * aarch64-tdep.h: New file.
11270 * configure.tgt: Add AArch64.
11271 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11272 (aarch64-expedite): New definition.
11273 * features/aarch64-core.xml: New file.
11274 * features/aarch64-fpu.xml: New file.
11275 * features/aarch64-without-fpu.c: New file (generated).
11276 * features/aarch64-without-fpu.xml: New file.
11277 * features/aarch64.c: New file (generated).
11278 * features/aarch64.xml: New file.
11279 * regformats/aarch64-without-fpu.dat: New file (generated).
11280 * regformats/aarch64.dat: New file (generated).
11281
0f1b18ab
JK
112822013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11283
11284 * contrib/expect-read1.c: New file.
11285 * contrib/expect-read1.sh: New file.
11286
233d95b5
JK
112872013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11288
11289 * dwarf2read.c (file_file_name): New function with code from
11290 file_full_name.
11291 (file_full_name): Move most of the code to file_file_name.
11292 (macro_start_file): Rename variable full_name to file_name and use
11293 file_file_name for it. Add comp_dir parameter to new_macro_table.
11294 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11295 macro_source_file->filename access by macro_source_fullname call.
11296 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11297 caller.
11298 * macrotab.c (struct macro_table): New field comp_dir.
11299 (macro_include): New variables link_fullname and source_fullname.
11300 Replace any macro_source_file->filename access by macro_source_fullname
11301 call.
11302 (macro_lookup_inclusion): Remove the partial filenames checking code.
11303 (check_for_redefinition): New variables source_fullname and
11304 found_key_fullname. Replace any macro_source_file->filename access by
11305 macro_source_fullname call.
11306 (macro_undef): New variables source_fullname and key_fullname. Replace
11307 any macro_source_file->filename access by macro_source_fullname call.
11308 (macro_lookup_definition): New variables retval and source_fullname.
11309 Replace any macro_source_file->filename access by macro_source_fullname
11310 call.
11311 (foreach_macro): New variable key_fullname. Replace any
11312 macro_source_file->filename access by macro_source_fullname call.
11313 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11314 macro_source_file->filename access by macro_source_fullname call.
11315 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11316 (macro_source_fullname): New function.
11317 * macrotab.h (struct macro_source_file): Extent the filename field
11318 comment.
11319 (new_macro_table): New parameter comp_dir, add a comment for it.
11320 (macro_source_fullname): new declaration.
11321
da235a7c
JK
113222013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11323
11324 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11325 this_real_name to outer block. Use it also for
11326 compare_filenames_for_search.
11327 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11328 with dw2_get_real_path for file_matcher, considering also
11329 BASENAMES_MAY_DIFFER.
11330 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11331
fbd9ab74
JK
113322013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11333
11334 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11335 to the file_matcher parameter. Pass 0 to it.
11336 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11337 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11338 NULL psymtab_to_fullname result.
11339 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11340 an expected filename instead.
11341 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11342 file_matcher parameter. Call also psymtab_to_fullname, after newly
11343 considering BASENAMES_MAY_DIFFER.
11344 * source.c (rewrite_source_path): Remove static.
11345 * source.h (rewrite_source_path): New declaration.
11346 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11347 the expand_symtabs_matching field. Comment it.
11348 * symtab.c (file_matches): New function comment. Add parameter
11349 basenames, implement it.
11350 (search_symbols_file_matches): Add basenames parameter. Update the
11351 file_matches caller.
11352 (search_symbols): Match FILES also against symtab_to_fullname.
11353 Optimize it for BASENAMES_MAY_DIFFER.
11354
56d397a3
JK
113552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11356
11357 * source.c (print_source_lines_base): Print for TUI also "fullname".
11358 * tui/tui-data.c (init_content_element): Change tui_locator_element
11359 field to full_name.
11360 * tui/tui-data.h (struct tui_locator_element): Likewise.
11361 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11362 tui_update_locator_filename calls to tui_update_locator_fullname.
11363 Replace symtab->filename refererence by symtab_to_fullname call.
11364 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11365 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11366 field to full_name. Replace symtab->filename refererence by
11367 symtab_to_fullname call.
11368 (tui_show_symtab_source): Rename parameter to fullname. Change
11369 tui_locator_element field to full_name.
11370 * tui/tui-stack.c: Include source.h.
11371 (tui_set_locator_filename): Rename the declaration to ...
11372 (tui_set_locator_fullname): ... here. Rename its parameter to
11373 fullname, updates its comment.
11374 (tui_set_locator_info): Rename its parameter to fullname.
11375 (tui_set_locator_filename): Rename the definition to ...
11376 (tui_set_locator_fullname): ... here. Rename its parameter to
11377 fullname, updates its comment. Change tui_locator_element field to
11378 full_name.
11379 (tui_set_locator_info): Rename its parameter to fullname.
11380 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11381 (tui_update_locator_filename): Rename to ...
11382 (tui_update_locator_fullname): ... here. Rename callee to
11383 tui_set_locator_fullname.
11384 (tui_show_frame_info): Replace symtab->filename refererence by
11385 symtab_to_fullname call.
11386 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11387 (tui_update_locator_fullname): ... here.
11388 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11389 tui_update_locator_fullname. Replace symtab->filename refererence by
11390 symtab_to_fullname call.
11391 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11392 Rename the callee to tui_update_locator_fullname.
11393 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11394
05cba821
JK
113952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11396
11397 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11398 by symtab_to_filename_for_display calls.
11399 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11400 (clear_command): New variable sal_fullname, initialize it. Replace
11401 compare_filenames_for_search by filename_cmp with sal_fullname.
11402 (say_where, update_static_tracepoint): Replace symtab->filename
11403 refererences by symtab_to_filename_for_display calls.
11404 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11405 Likewise.
11406 * dwarf2read.c: Include source.h.
11407 (fixup_go_packaging): Replace symtab->filename refererences by
11408 symtab_to_filename_for_display calls.
11409 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11410 Replace symtab->filename refererences by symtab_to_filename_for_display
11411 calls.
11412 (create_sals_line_offset, convert_linespec_to_sals): New variable
11413 fullname, initialize it, replace symtab->filename reference by the
11414 variable.
11415 * linux-fork.c: Include source.h.
11416 (info_checkpoints_command): Replace symtab->filename refererences by
11417 symtab_to_filename_for_display calls.
11418 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11419 by symtab_to_filename_for_display calls.
11420 * mdebugread.c: Include source.h.
11421 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11422 symtab_to_filename_for_display calls.
11423 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11424 (mi_cmd_file_list_exec_source_files): Likewise.
11425 * printcmd.c: Include source.h.
11426 (build_address_symbolic): Replace symtab->filename refererences by
11427 symtab_to_filename_for_display calls.
11428 * psymtab.c (partial_map_symtabs_matching_filename)
11429 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11430 with psymtab_to_fullname.
11431 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11432 by symtab_to_filename_for_display calls.
11433 (stpy_get_filename): New variable filename, initialize it, use instead
11434 of symtab->filename refererences.
11435 (salpy_str): Make variable filename const char *. Replace
11436 symtab->filename refererences by symtab_to_filename_for_display calls.
11437 * skip.c: Include source.h and filenames.h.
11438 (skip_file_command): Remove const from the symtab variable. Replace
11439 symtab->filename refererences by symtab_to_fullname call.
11440 (function_name_is_marked_for_skip): New variables searched_for_fullname
11441 and fullname. Use them to search also with symtab's fullname.
11442 * source.c (find_source_lines): Replace symtab->filename refererences
11443 by symtab_to_filename_for_display calls.
11444 (print_source_lines_base): New variable filename, use it instead of
11445 symtab->filename. Replace symtab->filename refererences by
11446 symtab_to_filename_for_display calls.
11447 (line_info, forward_search_command): Replace symtab->filename
11448 refererences by symtab_to_filename_for_display calls.
11449 (reverse_search_command): Replace symtab->filename refererences by
11450 symtab_to_filename_for_display calls. New variable filename for it.
11451 * stack.c (frame_info): Likewise.
11452 * symmisc.c: Include source.h.
11453 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11454 (maintenance_info_symtabs): Replace symtab->filename refererences by
11455 symtab_to_filename_for_display calls.
11456 * symtab.c (iterate_over_some_symtabs): Call
11457 compare_filenames_for_search also with symtab_to_fullname.
11458 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11459 symtab->filename refererences by symtab_to_filename_for_display calls.
11460 (find_line_symtab): Replace symtab->filename refererences by
11461 symtab_to_filename_for_display calls.
11462 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11463 (print_symbol_info): Make the last parameter const char *. New
11464 variable s_filename. Use it in the function.
11465 (symtab_symbol_info): Make the last_filename variable const char *.
11466 Replace symtab->filename refererences by symtab_to_filename_for_display
11467 calls.
11468 (rbreak_command): New variable fullname. Use it. Replace
11469 symtab->filename refererence by symtab_to_filename_for_display call.
11470 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11471 (print_one_static_tracepoint_marker): Replace symtab->filename
11472 refererences by symtab_to_filename_for_display calls.
11473 * tui/tui-source.c (tui_set_source_content): New variables filename and
11474 s_filename. Replace symtab->filename refererences by this variable.
11475 Replace other symtab->filename refererences by
11476 symtab_to_filename_for_display calls.
11477
1b56eb55
JK
114782013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11479 Jan Kratochvil <jan.kratochvil@redhat.com>
11480
11481 Add a new variable that controls a way in which filenames are
11482 displayed.
11483 * NEWS (set filename-display): New entry.
11484 * source.c (filename_display_basename, filename_display_relative)
11485 (filename_display_absolute, filename_display_kind_names)
11486 (filename_display_string, show_filename_display_string)
11487 (symtab_to_filename_for_display): New.
11488 (_initialize_source): Added initialization of 'filename-display'
11489 variable.
11490 * source.h (symtab_to_filename_for_display): Added declaration.
11491 * stack.c (print_frame): Added new variable and calling of a new
11492 function and condition with this variable. Changed third argument of
11493 calling of a function.
11494
aa079c93
JK
114952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11496
11497 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11498 Rename field reference filename to fullname.
11499 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11500 fullname. New comment for it.
11501 * tui/tui-source.c (tui_set_source_content): Rename field reference
11502 filename to fullname. Initialize field by symtab_to_fullname now.
11503 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11504 reference filename to fullname. Use symtab_to_fullname during
11505 comparison.
11506
652a8996
JK
115072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11508
11509 Code cleanup.
11510 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11511 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11512 filename to fullname. Rename variable this_name to this_fullname.
11513 Lowercase FILENAME_CMP call.
11514 (dw2_find_symbol_file): New comment for the returned string.
11515 (dwarf2_gdb_index_functions): Rename the function to
11516 dw2_expand_symtabs_with_fullname.
11517 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11518 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11519 fullname.
11520 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11521 * symfile.h (struct quick_symbol_functions): Rename field
11522 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11523 parameter filename to fullname. Document returned string meaning for
11524 find_symbol_file.
11525 * symtab.c (find_line_symtab): Rename the called function to
11526 expand_symtabs_with_fullname.
11527
af529f8f
JK
115282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11529
11530 Code cleanup.
11531 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11532 call of filename_cmp with compare_filenames_for_search.
11533 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11534 is_abs, unify the call of FILENAME_CMP with
11535 compare_filenames_for_search. New gdb_asserts for real_path and name.
11536 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11537 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11538 * symfile.h (struct quick_symbol_functions): Extend the comment for
11539 map_symtabs_matching_filename.
11540 * symtab.c (compare_filenames_for_search): Remove the function comment
11541 relative path requirement. Handle absolute filenames, with a comment.
11542 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11543 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11544 real_path and name. Unify the call of compare_filenames_for_search
11545 with FILENAME_CMP.
11546 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11547
2f202fde
JK
115482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11549
11550 Code cleanup.
11551 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11552 source_file references by symtab field references. Remove variables
11553 sal and fullname.
11554 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11555 (clear_command, say_where): Replace bp_location field source_file
11556 references by symtab field references.
11557 (bp_location_dtor): Remove the source_file reference.
11558 (update_static_tracepoint): Replace bp_location field source_file
11559 references by symtab field references.
11560 (breakpoint_free_objfile): New function.
11561 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11562 Replace the field source_file by field symtab, extend its comment.
11563 (breakpoint_free_objfile): New declaration.
11564 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11565 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11566 field source_file references by symtab field references.
11567
f5b95b50
JK
115682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11569
11570 Replace xfullpath calls by gdb_realpath calls.
11571 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11572 function comment.
11573 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11574 Remove it from the iterate_over_some_symtabs call.
11575 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11576 Remove it from the dw2_map_expand_apply calls, remove a block handling
11577 it.
11578 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11579 Remove it from the iterate_over_some_symtabs call.
11580 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11581 Remove it from the partial_map_expand_apply calls, remove a block
11582 handling it. Drop gdb_realpath call and cleanups from the real_path
11583 handling.
11584 * source.c (openp): Drop the comment part about xfullpath. Replace
11585 xfullpath calls by gdb_realpath calls.
11586 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11587 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11588 from method map_symtabs_matching_filename and its comment.
11589 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11590 gdb_realpath call.
11591 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11592 remove it also from the function comment, remove a block handling it.
11593 Drop gdb_realpath call and cleanups from the real_path handling.
11594 (iterate_over_symtabs): Drop variable full_path and its use.
11595 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11596 * utils.c (xfullpath): Remove.
11597 * utils.h (xfullpath): Remove.
11598
d78489bf
AT
115992013-02-01 Andreas Tobler <andreast@fgznet.ch>
11600
11601 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11602 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11603 (ALLDEPFILES): Add ppc64-tdep.c.
11604 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11605 ppc64-tdep.o to gdb_target_obs.
11606 * ppc64-tdep.h: New file.
11607 * ppc64-tdep.c: New file.
11608 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11609 ppc-linux-tdep.c to here.
11610 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11611 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11612 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11613 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11614 from ppc-linux-tdep.c to here.
11615 (ppc64_convert_from_func_ptr_addr): Rename from
11616 ppc64_linux_convert_from_func_ptr_addr to
11617 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11618 here.
11619 * rs6000-tdep.c:
11620 (read_insn): Move from ppc-linux-tdep.c to here.
11621 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11622 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11623 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11624 Removed above functions.
11625 (ppc_linux_init_abi): Adjust.
11626
8db60374
AR
116272013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11628
11629 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11630
f2e5f4ce
AR
116312013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11632
11633 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11634
c1f7d745
PA
116352013-02-01 Pedro Alves <palves@redhat.com>
11636
11637 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11638 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11639
8a92335b
JK
116402013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11641
11642 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11643 files with no separate debug info.
11644 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11645 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11646 only for files with no separate debug info.
11647
8eacb197
TT
116482013-01-31 Tom Tromey <tromey@redhat.com>
11649
11650 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11651 change type.
11652 (struct jit_program_space_data): Rename from jit_inferior_data.
11653 Update comments.
11654 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11655 Change return type. Attach data to program space.
11656 (jit_program_space_data_cleanup): Rename from
11657 jit_inferior_data_cleanup; change argument type.
11658 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11659 change type.
11660 (jit_register_code): Update.
11661 (jit_update_inferior_cache): Remove.
11662 (jit_breakpoint_deleted): Get jit data from the location's program
11663 space.
11664 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11665 'ps_data', change type.
11666 (jit_inferior_init, jit_breakpoint_re_set_internal)
11667 (jit_event_handler): Update.
11668 (free_objfile_data): Get data from objfile's program space.
11669 (_initialize_jit): Update.
11670
f25c0135
TT
116712013-01-31 Tom Tromey <tromey@redhat.com>
11672
11673 PR gdb/13987:
11674 * jit.c (struct jit_inferior_data) <cached_code_address,
11675 jit_breakpoint>: New fields.
11676 (jit_breakpoint_re_set_internal): Fix logging. Only create
11677 breakpoint if cached address has changed.
11678 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11679 functions.
11680 (_initialize_jit): Register breakpoint deleted observer.
11681
974a734b
AR
116822013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11683
11684 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11685 (save_infcall_suspend_state): Ifdef out unused inf.
11686 (restore_infcall_suspend_state): Ifdef out unused inf.
11687 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11688 (jit_frame_sniffer): Remove unused inf_data.
11689
df54f8eb
AR
116902013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11691
11692 * c-exp.y (classify_inner_name): Remove unused type.
11693 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11694 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11695 need_escape.
11696 (c_get_string): Remove unused kind.
11697 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11698
5799c0b9
AR
116992013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11700
11701 * charset.c (intermediate_encoding): Remove unused i.
11702 * completer.c (signal_completer): Remove unused i.
11703 * continuations.c (discard_my_continuations_1): Remove unused
11704 continuation_ptr.
11705 * corelow.c (core_close): Remove unuseD name.
11706 (get_core_siginfo): Remove unused pid.
11707 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11708 i, cps.
11709 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11710 (loclist_describe_location): Remove unused first.
11711 * event-top.c (command_line_handler): Remove unused got_eof.
11712 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11713 (resize_section_table): Remove unused old_value.
11714 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11715 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11716 * i386-tdep.c (i386_process_record): Remove unused rex.
11717 * infcmd.c (get_return_value): Remove unused uiout.
11718 * jv-lang.c (type_from_class): Remove unused is_array.
11719 * jv-valprint.c (java_val_print): Remove unused i.
11720 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11721 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11722 * m2-typeprint.c (m2_print_type): Remove unused code.
11723 * macroexp.c (get_character_constant): Remove unused body_start.
11724 (macro_stringify): Remove unused result.
11725 * objc-lang.c (find_methods): Remove unused gdbarch.
11726 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11727 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11728 * stack.c (print_frame_args): Remove unused summary.
11729 * thread.c (thread_apply_command): Remove unused p.
11730 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11731 * valops.c (search_struct_method): Remove unused skip.
11732 * valprint.c (generic_val_print): Remove unused byte_order.
11733 * varobj.c (varobj_update): Remove unused changed.
11734 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11735 (alias_command): Remove unused c.
11736 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11737 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11738 format.
11739 (mi_cmd_data_write_memory): Remove unused word_format.
11740 (mi_cmd_data_write_memory_bytes): Remove unused r.
11741 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11742 p_start, p_end.
11743 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11744 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11745 line_width.
11746
c656bca5
AR
117472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11748
11749 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11750 * symtab.c (iterate_over_symtabs): Remove unused s.
11751 (find_pc_sect_symtab): Remove unused pspAce.
11752 (find_pc_sect_line): Remove unused alt_symtab.
11753 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11754 (completion_list_add_name): Remove unused newsize.
11755
7078baeb
TT
117562013-01-31 Tom Tromey <tromey@redhat.com>
11757
11758 PR c++/14998:
11759 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11760 TYPE_CODE_FUNC.
11761
c2e8b827
AR
117622013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11763
11764 * target.c (target_read_string): Remove unused origlen.
11765
0e43993a
AR
117662013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11767
11768 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11769 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11770 * ax-general.c (ax_print): Remove unused is_float.
11771 * blockframe.c (block_innermost_frame): Remove unused start, end.
11772 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11773
765a97ab
AR
117742013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11775
11776 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11777 (svr4_read_so_list): Remove unused lmo.
11778 * solib-target.c (solib_target_relocate_section_addresses): Remove
11779 unused flags.
11780
a99dad3d
TT
117812013-01-30 Tom Tromey <tromey@redhat.com>
11782
11783 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11784
3bff1ecd
TT
117852013-01-30 Tom Tromey <tromey@redhat.com>
11786
11787 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11788 * utils.c (gnu_debuglink_crc32): Remove.
11789 * utils.h (gnu_debuglink_crc32): Don't declare.
11790
7d455152
TT
117912013-01-30 Tom Tromey <tromey@redhat.com>
11792
11793 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11794 (read_structure_type, read_enumeration_type): Remove cast.
11795
abee88f2
TT
117962013-01-30 Tom Tromey <tromey@redhat.com>
11797
11798 * dwarf2read.c (read_namespace_type): Remove cast.
11799 (read_typedef): Likewise.
11800
8d9878a4
TT
118012013-01-29 Tom Tromey <tromey@redhat.com>
11802
11803 * dwarf2read.c (free_dwo_file): Remove assert.
11804
a543d2a9
TT
118052013-01-29 Tom Tromey <tromey@redhat.com>
11806
11807 * value.c (deprecated_set_value_modifiable): Remove.
11808 * value.h (deprecated_set_value_modifiable): Remove.
11809
bed911e5
DE
118102013-01-28 Doug Evans <dje@google.com>
11811
11812 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11813 to addresses from dwo files.
11814
28c64fc2
SCR
118152013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11816
11817 * valops.c (find_overload_match): Remove unused argument 'lax'.
11818 * value.h: Remove unused argument 'lax' from the declaration of
11819 find_overload_match.
11820 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11821 to find_overload_match.
11822 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11823 argument to find_overload_match.
11824
4d4ec4e5
TT
118252013-01-25 Tom Tromey <tromey@redhat.com>
11826
11827 * dwarf2read.c (processing_has_namespace_info): Remove.
11828 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11829 (process_die, read_func_scope, dwarf2_start_symtab)
11830 (new_symbol_full): Update.
11831
195a3f6c
TT
118322013-01-25 Tom Tromey <tromey@redhat.com>
11833
11834 * cp-namespace.c (cp_set_block_scope): Remove.
11835 * cp-support.h (cp_set_block_scope): Remove.
11836 * dbxread.c: Include block.h.
11837 (cp_set_block_scope): New function.
11838 (process_one_symbol): Update.
11839 * dwarf2read.c (read_func_scope): Use block_set_scope.
11840
8ba0730a
PA
118412013-01-25 Pedro Alves <palves@redhat.com>
11842
11843 * remote.c (add_current_inferior_and_thread): Tweak comment.
11844
12aaed36
TT
118452013-01-25 Tom Tromey <tromey@redhat.com>
11846
11847 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11848 (cp_add_using_directive): Add 'copy_names' argument.
11849 * cp-support.h (cp_add_using_directive): Update.
11850 (struct using_direct) <import_src, import_dest, alias,
11851 declaration>: Now const.
11852 * dwarf2read.c (read_import_statement): Use obconcat.
11853 Don't copy names passed to cp_add_using_directive.
11854
7fc75ca7
TT
118552013-01-25 Tom Tromey <tromey@redhat.com>
11856
11857 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11858
3405876a
PA
118592013-01-25 Pedro Alves <palves@redhat.com>
11860
11861 * remote.c (stop_reply_extract_thread): New.
11862 (add_current_inferior_and_thread): New parameter 'wait_status'.
11863 Handle it.
11864 (remote_start_remote): Pass wait status to
11865 add_current_inferior_and_thread.
11866 (extended_remote_run): Update comment.
11867 (extended_remote_create_inferior_1): Pass wait status to
11868 add_current_inferior_and_thread.
11869
8954db33
AB
118702013-01-25 Andrew Burgess <aburgess@broadcom.com>
11871 Ulrich Weigand <uweigand@de.ibm.com>
11872
11873 * valarith.c (value_vector_widen): New function for replicating a
11874 scalar into a vector.
11875 (value_binop): Use value_vector_widen to widen scalar to vector
11876 rather than casting, this better matches gcc C behaviour.
11877 * valops.c (value_casst): Update logic for casting between vector
11878 types, and for casting from scalar to vector, try to match gcc C
11879 behaviour.
11880 * value.h (value_vector_widen): Declare.
11881 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11882 function, handle special case for casting scalar to vector.
11883 (opencl_relop): Use opencl_value_cast.
11884 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11885 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11886 in order to use opencl_value_cast.
11887
843b20dc
YQ
118882013-01-25 Yao Qi <yao@codesourcery.com>
11889
11890 * event-loop.c: Include "queue.h".
11891 (gdb_event_p): New typedef.
11892 (DECLARE_QUEUE_P): Use.
11893 (DEFINE_QUEUE_P): Use.
11894 (async_queue_event): Remove.
11895 (gdb_event_xfree): New.
11896 (initialize_event_loop): New.
11897 (process_event): Use QUEUE macros.
11898 (event_queue): Remove.
11899 (gdb_wait_for_event): Caller update.
11900 (check_async_event_handlers): Likewise.
11901 (poll_timers): Likewise.
11902 * event-loop.h (initialize_event_loop): Declare.
11903 * event-loop.c (gdb_event_xfree): New.
11904 * top.c (gdb_init): Call initialize_event_loop.
11905
20ad8856
YQ
119062013-01-25 Yao Qi <yao@codesourcery.com>
11907
11908 * event-loop.c (async_queue_event): Remove one parameter
11909 'position'. Remove code handling 'position' == TAIL.
11910 (gdb_wait_for_event): Caller update.
11911 (check_async_event_handlers): Caller update.
11912 (poll_timers): Caller update.
11913 * event-loop.h (enum queue_position): Remove.
11914
3bbbe775
MK
119152013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11916
11917 * MAINTAINERS: Update my email.
11918
a87d9ac4
YQ
119192013-01-25 Yao Qi <yao@codesourcery.com>
11920
11921 * main.c (print_gdb_help): Remove "--epoch" from the help
11922 message.
11923
2077afdd
TD
119242013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11925
11926 * symtab.c (skip_prologue_using_sal): Consider a file
11927 change the same as an increased line number
11928
63da4037
TD
119292013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11930
30e8ee25 11931 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11932
45e6c716
TT
119332013-01-24 Tom Tromey <tromey@redhat.com>
11934
11935 * ada-lang.h (ada_decode_symbol): Make return type const.
11936 * ada-lang.c (ada_decode_symbol): Likewise.
11937
b1ae631a
DE
119382013-01-23 Doug Evans <dje@google.com>
11939
11940 * linespec.c (find_linespec_symbols): Make static.
11941
55a78401
SDJ
119422013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11943
11944 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11945 type on float conversion for complex type.
11946
bea883fd
SCR
119472013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11948
11949 Add a new class gdb.Architecture which exposes GDB's
11950 internal representation of architecture via GDB Python API.
11951 * Makefile.in: Add entries corresponding to the new file
11952 python/py-arch.c.
11953 * NEWS (Python Scripting): Add entries for the new class
11954 gdb.Architecture and the new method gdb.Frame.architecture.
11955 * python/py-arch.c: Implement gdb.Architecture class.
11956 * python/py-frame.c (frapy_arch): Implement the method
11957 gdb.Frame.architecture().
11958 (frame_object_methods): Add 'architecture' to the method table.
11959 * python/python-internal.h: Add declarations of new utility
11960 functions.
11961 * python/python.c (_initialize_python): Initialize
11962 gdb.Architecture class.
11963
796a7ff8
DE
119642013-01-23 Doug Evans <dje@google.com>
11965
11966 Work around binutils/15021.
11967 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11968 type_unit_group out of union s. All uses updated.
11969 (read_index_from_section): Watch for index version 8.
11970 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11971 an imported symtab.
11972 (write_psymtabs_to_index): Increment version number to 8.
11973
0928e93d
PA
119742013-01-22 Pedro Alves <palves@redhat.com>
11975
11976 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11977 user-visible.
11978
9c97429f
PA
119792013-01-22 Pedro Alves <palves@redhat.com>
11980
11981 * annotate.c (annotate_breakpoints_changed): Rename to ...
11982 (annotate_breakpoints_invalid): ... this. Make static.
11983 (breakpoint_changed): Adjust.
11984 (_initialize_annotate): Always install the observers. Install a
11985 "breakpoint_created" observer.
11986 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11987 * breakpoint.c (set_breakpoint_condition)
11988 (breakpoint_set_commands, do_map_commands_command)
11989 (init_raw_breakpoint, clear_command, set_ignore_count)
11990 (enable_breakpoint_disp): No longer call
11991 annotate_breakpoints_changed.
11992
bd00c694
PA
119932013-01-22 Pedro Alves <palves@redhat.com>
11994
11995 * annotate.c: Include "inferior.h".
11996 (frames_invalid_emitted)
11997 (breakpoints_invalid_emitted): New globals.
11998 (async_background_execution_p): New function.
11999 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12000 emitting the annotation if it has already been emitted.
12001 (annotate_display_prompt): New function.
12002 * annotate.h (annotate_display_prompt): New declaration.
12003 * event-top.c: Include annotate.h.
12004 (display_gdb_prompt): Call annotate_display_prompt.
12005
187d10dd
PA
120062013-01-22 Pedro Alves <palves@redhat.com>
12007
12008 * annotate.c (ignore_count_changed): Delete.
12009 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12010 (annotate_ignore_count_change): Delete.
12011 (annotate_stopped): Don't emit a delayed breakpoints-changed
12012 annotation.
12013 * annotate.h (annotate_ignore_count_change): Delete.
12014 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12015 annotate_ignore_count_change.
12016
d84cf7eb
TT
120172013-01-22 Tom Tromey <tromey@redhat.com>
12018
12019 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12020 require_rvalue for a register location.
12021
8f1d5693
MK
120222013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12023
12024 * breakpoint.c (print_one_breakpoint_location): Add MI
12025 field 'thread-groups' when printing a breakpoint.
12026 (output_thread_groups): New function.
12027
aa6199c6
SCR
120282013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12029
12030 * python/lib/gdb/commands/explore.py
12031 (CompoundExplorer.explore_expr): Correct the name of a method
12032 being invoked.
12033 (ExploreTypeCommand.invoke): Add a missing 'return'.
12034
d2afef13
TT
120352013-01-21 Tom Tromey <tromey@redhat.com>
12036
12037 * gdb_obstack.h (obconcat): Move declaration here, from...
12038 * symfile.h (obconcat): ... here.
12039 * gdb_obstack.c: New file.
12040 (obconcat): Move from...
12041 * symfile.c (obconcat): ... here.
12042 * Makefile.in (SFILES): Add gdb_obstack.c.
12043 (COMMON_OBS): Add gdb_obstack.o.
12044
10f0c4bb
TT
120452013-01-21 Tom Tromey <tromey@redhat.com>
12046
12047 * symfile.h (obsavestring): Don't declare.
12048 * symfile.c (obsavestring): Remove.
12049 * ada-exp.y: Use obstack_copy0, not obsavestring.
12050 * ada-lang.c: Use obstack_copy0, not obsavestring.
12051 * coffread.c: Use obstack_copy0, not obsavestring.
12052 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12053 * dbxread.c: Use obstack_copy0, not obsavestring.
12054 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12055 * jit.c: Use obstack_copy0, not obsavestring.
12056 * mdebugread.c: Use obstack_copy0, not obsavestring.
12057 * psymtab.c: Use obstack_copy0, not obsavestring.
12058 * stabsread.c: Use obstack_copy0, not obsavestring.
12059 * xcoffread.c: Use obstack_copy0, not obsavestring.
12060
86f62fd7
TT
120612013-01-21 Tom Tromey <tromey@redhat.com>
12062
12063 * dwarf2read.c (fixup_go_packaging): Save package name
12064 on objfile obstack.
12065 * gdbtypes.c (init_type): Don't copy name.
12066
15d034d0
TT
120672013-01-21 Tom Tromey <tromey@redhat.com>
12068
12069 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12070 const.
12071 (struct attribute) <u.str>: Now const.
12072 (struct fnfieldlist) <name>: Now const.
12073 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12074 (partial_die_parent_scope): Make return type const.
12075 (partial_die_full_name, add_partial_symbol): Update.
12076 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12077 'name' const.
12078 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12079 (read_file_scope, read_func_scope, dwarf2_add_field)
12080 (dwarf2_add_member_fn, read_structure_type)
12081 (process_enumeration_scope, read_array_type, read_module_type)
12082 (read_base_type, read_subrange_type): Update.
12083 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12084 (new_symbol_full, guess_full_die_structure_name): Update.
12085 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12086 (dwarf2_name): Return const type.
12087 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12088 const.
12089
748e18ae
TT
120902013-01-21 Tom Tromey <tromey@redhat.com>
12091
12092 * gdbtypes.c (init_type): Make 'name' const.
12093 * gdbtypes.h (init_type): Update.
12094
46212e0b
TT
120952013-01-21 Tom Tromey <tromey@redhat.com>
12096
12097 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12098 (start_symtab): Make 'name' and 'dirname' const. Use
12099 set_last_source_file.
12100 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12101 (last_source_file): Define. Now static.
12102 (set_last_source_file, get_last_source_file): New functions.
12103 * buildsym.h (last_source_file): Don't declare.
12104 (start_symtab): Update.
12105 (set_last_source_file, get_last_source_file): Declare.
12106 * coffread.c (complete_symtab): Use set_last_source_file.
12107 (coff_end_symtab): Likewise.
12108 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12109 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12110 set_last_source_file.
12111 (process_one_symbol): Use get_last_source_file.
12112 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12113 (psymtab_to_symtab_1): Use get_last_source_file.
12114 * xcoffread.c (process_linenos): Use get_last_source_file.
12115 (complete_symtab): Use set_last_source_file.
12116 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12117 (scan_xcoff_symtab): Use set_last_source_file.
12118
9d2ceabe
TT
121192013-01-21 Tom Tromey <tromey@redhat.com>
12120
12121 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12122 (symbol_set_names): Remove casts. Handle field const-ness.
12123
cfc594ee
TT
121242013-01-21 Tom Tromey <tromey@redhat.com>
12125
12126 * dwarf2read.c (new_symbol_full): Remove cast.
12127 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12128 * symtab.h (symbol_set_demangled_name): Update.
12129
5484b13a
TT
121302013-01-21 Tom Tromey <tromey@redhat.com>
12131
12132 * main.c (captured_main): Call bfd_init.
12133
1605ef26
TT
121342013-01-21 Tom Tromey <tromey@redhat.com>
12135
12136 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12137 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12138 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12139 * NEWS: Update.
12140
3b74cdc3
JK
121412013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12142
12143 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12144
5a352474
JK
121452013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12146
12147 Fix gdb.fortran/common-block.exp crash in PIE mode.
12148 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12149 LOC_COMMON_BLOCK.
12150 * f-valprint.c (info_common_command_for_block): Expect
12151 LOC_COMMON_BLOCK in gdb_assert.
12152 * symtab.h (struct general_symbol_info): Update comment for the
12153 common_block member.
12154 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12155 (enum address_class): New member LOC_COMMON_BLOCK.
12156
c60797fd
DB
121572013-01-18 David Blaikie <dblaikie@gmail.com>
12158
12159 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12160
46f35228
TT
121612013-01-18 Tom Tromey <tromey@redhat.com>
12162
12163 PR c++/14999:
12164 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12165 Call require_rvalue.
12166
257e7a09
YQ
121672013-01-18 Yao Qi <yao@codesourcery.com>
12168
12169 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12170 (dbx_read_symtab): New declaration.
12171 (dbx_psymtab_to_symtab): Delete.
12172 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12173 Rename parameter PST to SELF. Exchanged two parameters.
12174 (start_psymtab): Caller update.
12175 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12176 (dwarf2_read_symtab): New declaration.
12177 (dwarf2_psymtab_to_symtab): Delete.
12178 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12179 Rename parameter PST to SELF. Exchanged two parameters.
12180 (create_partial_symtab): Caller update.
12181 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12182 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12183 Rename parameter PST to SELF. Exchanged two parameters.
12184 (parse_partial_symbols, new_psymtab): Caller update.
12185 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12186 two parameters.
12187 * psymtab.c (psymtab_to_symtab): Caller update.
12188 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12189 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12190 Rename parameter PST to SELF. Exchanged two parameters.
12191 (xcoff_start_psymtab): Caller update.
12192
0de5618e
YQ
121932013-01-18 Yao Qi <yao@codesourcery.com>
12194
12195 * infrun.c (proceed): Rename local variable 'oneproc' to
12196 'force_step'.
12197
5c04624b
DE
121982013-01-17 Doug Evans <dje@google.com>
12199
848e3e78
DE
12200 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12201 (dw2_build_type_unit_groups): Delete. All uses updated.
12202
5c04624b
DE
12203 * symtab.h (struct symbol_search): Add comment.
12204
d84fca2c
JK
122052013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12206
12207 * symtab.c (compare_filenames_for_search): New comment for
12208 HAS_DRIVE_SPEC.
12209
6108433d
TT
122102013-01-17 Tom Tromey <tromey@redhat.com>
12211
12212 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12213
c89ffd86
JK
122142013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12215
12216 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12217 initialize it by existing make_cleanup. Call new do_cleanups.
12218
db2b2972
TT
122192013-01-17 Tom Tromey <tromey@redhat.com>
12220
12221 * cp-abi.c (cp_abi_completer): New function.
12222 (_initialize_cp_abi): Set completer for "set cp-abi".
12223
be7d37a2
TT
122242013-01-17 Tom Tromey <tromey@redhat.com>
12225
12226 * mem-break.c: Remove obsolete comment.
12227 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12228
c9fb1240
SD
122292012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12230
12231 * jit.c (jit_reader_load_command): Interpret the jit reader name
12232 as an absolute path if it begins with a forward slash.
12233
db334a01
SD
122342012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12235
12236 PR gdb/14550
12237
12238 * jit.c (finalize_symtab): Ensure that only the global block has a
12239 NULL superblock.
12240
7d928dac
PA
122412013-01-17 Pedro Alves <palves@redhat.com>
12242
12243 * acinclude.m4: Include ../config/plugins.m4,
12244 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12245 * Makefile.in (aclocal_m4_deps): Update.
12246 * aclocal.m4: Renegerate.
12247
fb8cf7c5
DE
122482013-01-16 Doug Evans <dje@google.com>
12249
12250 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12251
ab04a2af
TT
122522013-01-16 Pedro Alves <palves@redhat.com>
12253 Tom Tromey <tromey@redhat.com>
12254
12255 PR cli/7221:
12256 * NEWS: Add "catch signal".
12257 * breakpoint.c (base_breakpoint_ops): No longer static.
12258 (bpstat_explains_signal): New function.
12259 (init_catchpoint): No longer static.
12260 (base_breakpoint_explains_signal): New function.
12261 (base_breakpoint_ops): Initialize new field.
12262 * breakpoint.h (enum bpstat_signal_value): New.
12263 (struct breakpoint_ops) <explains_signal>: New field.
12264 (bpstat_explains_signal): Remove macro, declare as function.
12265 (base_breakpoint_ops, init_catchpoint): Declare.
12266 * break-catch-sig.c: New file.
12267 * inferior.h (signal_catch_update): Declare.
12268 * infrun.c (signal_catch): New global.
12269 (handle_syscall_event): Update for change to
12270 bpstat_explains_signal.
12271 (handle_inferior_event): Likewise. Always handle random signals
12272 via bpstats.
12273 (signal_cache_update): Check signal_catch.
12274 (signal_catch_update): New function.
12275 (_initialize_infrun): Initialize signal_catch.
12276 * Makefile.in (SFILES): Add break-catch-sig.c.
12277 (COMMON_OBS): Add break-catch-sig.o.
12278
8ac3646f
TT
122792013-01-16 Tom Tromey <tromey@redhat.com>
12280
12281 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12282 (print_one_catch_solib, print_one_catch_syscall)
12283 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12284 "catch-type".
12285
5a18e302
YQ
122862013-01-16 Yao Qi <yao@codesourcery.com>
12287
12288 * printcmd.c (current_display_number): Make it static.
12289
3f01d0d0
YQ
122902013-01-16 Yao Qi <yao@codesourcery.com>
12291
12292 * infcmd.c (step_once): Don't check '!single_inst' as it was
12293 checked before.
12294
1ed59174
JK
122952013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12296
12297 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12298
44478ab3
TT
122992013-01-14 Tom Tromey <tromey@redhat.com>
12300
12301 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12302 set command.
12303 * command.h (add_setshow_string_noescape_cmd): Update.
12304 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12305 (complete_set_gnutarget): New function.
12306 (_initialize_core): Set the "set gnutarget" completer.
12307
06d66ee9
TT
123082013-01-14 Tom Tromey <tromey@redhat.com>
12309
12310 PR symtab/14442:
12311 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12312 (c_type_print_modifier): Likewise.
12313 * dwarf2read.c (read_tag_restrict_type): New function.
12314 (read_type_die_1): Handle DW_TAG_restrict_type.
12315 * gdbtypes.c (make_restrict_type): New function.
12316 (recursive_dump_type): Handle TYPE_RESTRICT.
12317 * gdbtypes.h (enum type_flag_values): Renumber.
12318 (enum type_instance_flag_value): Add
12319 TYPE_INSTANCE_FLAG_RESTRICT.
12320 (TYPE_RESTRICT): New macro.
12321 (make_restrict_type): Declare.
12322
c9bf0622
TT
123232013-01-14 Tom Tromey <tromey@redhat.com>
12324
12325 PR symtab/14931:
12326 * psymtab.c (struct psymtab_state): New.
12327 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12328 functions.
12329 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12330 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12331
44d594fd
PA
123322013-01-14 Richard Sharman <richard_sharman@mitel.com>
12333 Pedro Alves <palves@redhat.com>
12334
12335 PR remote/14786
12336
12337 * remote.c (remote_threads_info): Make a copy of the reply from
12338 qfThreadInfo and use that instead of rs->buf.
12339
442e4d9c
YQ
123402013-01-14 Yao Qi <yao@codesourcery.com>
12341
12342 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12343 (dbx_psymtab_to_symtab): Likewise.
12344 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12345 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12346 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12347
5b12a61c
JK
123482013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12349
12350 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12351 make_cleanup_restore_current_language. Call set_language. Move
12352 OLD_CHAIN and INNER_CHAIN cleanups.
12353 * utils.c (do_restore_current_language)
12354 (make_cleanup_restore_current_language): New functions.
12355 * utils.h (make_cleanup_restore_current_language): New declaration.
12356
f0a4b570
JK
123572013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12358
12359 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12360 non-existing files.
12361
57b3c00c
JK
12362 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12363 non-existing files if FILENAME is already absolute.
12364
daefa854
JK
123652013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12366
12367 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12368 fputs_filtered. Append trailing newline.
12369
ca9c6ee2
YQ
123702013-01-11 Yao Qi <yao@codesourcery.com>
12371 Stan Shebs <stan@codesourcery.com>
12372
12373 * psymtab.c (init_psymbol_list): Clarify the comment.
12374
f28045c2
YQ
123752013-01-11 Yao Qi <yao@codesourcery.com>
12376
12377 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12378 (update_dprintf_command_list): Assert that 'printf_line' is
12379 non-null. Remove condition check.
12380
da5132d3
JK
123812013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12382
12383 Code cleanup.
12384 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12385 type const char *.
12386 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12387 const char *.
12388 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12389
843e694d
AG
123902013-01-09 Anthony Green <green@moxielogic.com>
12391
12392 * cp-abi.c (cplus_print_vtable): Don't return value from void
12393 function.
12394 * ada-lang.c (re_set_catch_assert): Ditto.
12395
da51c347
DE
123962013-01-09 Doug Evans <dje@google.com>
12397
12398 * symfile.h (quick_symbol_functions): Delete member
12399 pre_expand_symtabs_matching. All uses removed.
12400 * dwarf2read.c (dw2_lookup_symbol): Implement.
12401 (dw2_do_expand_symtabs_matching): Delete.
12402 (dw2_pre_expand_symtabs_matching): Delete.
12403 (struct dw2_symtab_iterator): New type.
12404 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12405 (dw2_expand_symtabs_for_function): Rewrite.
12406 (dwarf2_gdb_index_functions): Update.
12407 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12408 (psym_functions): Update.
12409
b2259038
TT
124102013-01-09 Tom Tromey <tromey@redhat.com>
12411
12412 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12413 * configure: Rebuild.
12414 * configure.ac: Add somread.o to the build if BFD has SOM
12415 support.
12416 * somread.c: Include som/aout.h, not syms.h.
12417 (som_symtab_read): Use som_external_symbol_dictionary_record.
12418 Unpack records manually.
12419 (_initialize_somread): Declare.
12420
bdad4180
MF
124212012-01-08 Mike Frysinger <vapier@gentoo.org>
12422
12423 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12424 Cast return_address to 64bits.
12425
03cdf680
HZ
124262013-01-08 Hui Zhu <hui_zhu@mentor.com>
12427
12428 * printcmd.c: Remove define of function output_command.
12429 * tracepoint.c: Remove extern of function output_command.
12430 * valprint.h: (output_command): New extern.
12431
8a808554
TT
124322013-01-07 Tom Tromey <tromey@redhat.com>
12433
12434 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12435 Remove.
12436 (objc_language_defn): Use c_printchar, c_printstr,
12437 c_emit_char.
12438
e93a8774
TT
124392013-01-07 Tom Tromey <tromey@redhat.com>
12440
12441 PR cli/7719:
12442 * NEWS: Update.
12443 * ada-valprint.c (printstr, print_field_values): Remove
12444 "inspect_it" code.
12445 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12446 code.
12447 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12448 code.
12449 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12450 * main.c (captured_main): Remove "epoch" argument.
12451 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12452 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12453 * p-valprint.c (pascal_object_print_value_fields): Remove
12454 "inspect_it" code.
12455 * printcmd.c (print_command_1): Remove 'inspect' argument.
12456 (print_command, call_command): Update.
12457 (inspect_command): Remove.
12458 (_initialize_printcmd): Make "inspect" an alias for "print".
12459 * top.c (epoch_interface): Remove.
12460 * top.h (epoch_interface): Remove.
12461 * valprint.c (user_print_options): Update.
12462 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12463 * valprint.h (struct value_print_options) <inspect_it>: Remove
12464 field.
12465
124662013-01-04 Tom Tromey <tromey@redhat.com>
12467
12468 * valprint.h (read_string): Add 'extern'.
12469
b967eb24
JB
124702013-01-07 Joel Brobecker <brobecker@adacore.com>
12471
12472 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12473 used to decide whether to define darwin_read_dyld_info or not.
12474
78a8b30e
PM
124752013-01-03 Pierre Muller <muller@sourceware.org>
12476
12477 * main.c (relocate_gdb_directory): Avoid calling stat function
12478 if DIR is empty.
12479
50da2f25
YQ
124802013-01-03 Yao Qi <yao@codesourcery.com>
12481
12482 * psymtab.c (fixup_psymbol_section): Update declaration.
12483 (fixup_psymbol_section): Remove code returning value.
12484
e7e8980f
YQ
124852013-01-03 Yao Qi <yao@codesourcery.com>
12486
12487 * symtab.h: Remove some out of date comments.
12488 (enum exception_event_kind): Move it ...
12489 * breakpoint.c: ... here.
12490
569283d4
MF
124912013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12492
9f9d9a96 12493 PR gdb/14405
569283d4
MF
12494 * darwin-nat.c (darwin_read_dyld_info): Only build if
12495 TASK_DYLD_INFO_COUNT is defined.
12496 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12497 TASK_DYLD_INFO_COUNT is defined.
12498
2e36fbea
TT
124992013-01-02 Tom Tromey <tromey@redhat.com>
12500
12501 * symfile.h (struct ecoff_debug_hack): Remove.
12502 * objfiles.c: Don't include mdebugread.h.
12503
4f05add4
TT
125042013-01-02 Tom Tromey <tromey@redhat.com>
12505
12506 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12507 * configure.ac: Check for Mach-O support in BFD. Update
12508 CONFIG_OBS.
12509 * configure: Rebuild.
12510
def63ff0
TT
125112013-01-02 Tom Tromey <tromey@redhat.com>
12512
12513 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12514 * configure.ac: Use GDB_AC_CHECK_BFD.
12515 * configure: Rebuild.
12516
60c5dd93
MK
125172013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12518
12519 * MAINTAINERS: Update my email.
12520
6e58437e
JB
125212013-01-01 Joel Brobecker <brobecker@adacore.com>
12522
12523 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12524
627fe805
JB
125252013-01-01 Joel Brobecker <brobecker@adacore.com>
12526
12527 * rs6000-nat.c (bss_data_overlap): New function.
12528 (vmap_symtab): Use it to adjust the .bss section's offset.
12529
28e7fd62
JB
125302013-01-01 Joel Brobecker <brobecker@adacore.com>
12531
12532 Update year range in copyright notice of all files.
12533
e93a8774 125342013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12535
12536 * top.c (print_gdb_version): Update copyright year.
12537
72b20e9c 12538For older changes see ChangeLog-2012.
c906108c
SS
12539\f
12540Local Variables:
12541mode: change-log
12542left-margin: 8
12543fill-column: 74
12544version-control: never
57da7796 12545coding: utf-8
c906108c 12546End:
This page took 2.151272 seconds and 4 git commands to generate.