daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f380848e
SA
12013-11-22 Sterling Augustine <saugustine@google.com>
2
38e1f2a7 3 PR gdb/16196:
f380848e
SA
4 * valprint.c (read_string): Set new variable fetchlen based on
5 fetchlimit and size. Use it in call to partial_memory_read.
6 Update comment.
7
da2b2fdf
TT
82013-11-22 Tom Tromey <tromey@redhat.com>
9
10 PR backtrace/16155:
11 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
12 the return address column is unspecified.
13
6eeee81c
TT
142013-11-22 Tom Tromey <tromey@redhat.com>
15 Pedro Alves <palves@redhat.com>
16
17 PR backtrace/16155
18 * value.c (value_fetch_lazy): Internal error if
19 get_frame_register_value returns the same register.
20
194cca41
PA
212013-11-22 Pedro Alves <palves@redhat.com>
22 Tom Tromey <tromey@redhat.com>
23
24 * frame.c (frame_stash_add): Now returns whether a frame with the
25 same ID was already known.
26 (compute_frame_id): New function, factored out from get_frame_id.
27 (get_frame_id): No longer lazilly compute the frame id here.
28 (get_prev_frame_if_no_cycle): New function. Detects wider stack
29 cycles.
30 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
31 and checking for stack cycles here.
32
33f8fe58
PA
332013-11-22 Pedro Alves <palves@redhat.com>
34
35 PR 16155
36 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
37 this frame and the new previous frame, not between this frame and
38 the next frame.
39
1ec56e88
PA
402013-11-22 Pedro Alves <palves@redhat.com>
41
42 PR 16155
43 * dwarf2-frame.c (struct dwarf2_frame_cache)
44 <checked_tailcall_bottom, entry_cfa_sp_offset,
45 entry_cfa_sp_offset_p>: New fields.
46 (dwarf2_frame_cache): Adjust to use the new cache fields instead
47 of locals. Don't call dwarf2_tailcall_sniffer_first here.
48 (dwarf2_frame_prev_register): Call it here, but only once.
49
ca092b61
DE
502013-11-21 Doug Evans <xdje42@gmail.com>
51
52 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
53 (type_equality_entry): Move here from python/py-type.c.
54 (type_equality_entry_d): Ditto.
55 (compare_maybe_null_strings, check_types_equal): Ditto.
56 (check_types_worklist, types_deeply_equal): Ditto.
57 * gdbtypes.h (types_deeply_equal): Declare.
58 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
59 (typy_richcompare): Update.
60
7c245c24
JB
612013-11-20 Joel Brobecker <brobecker@adacore.com>
62
63 * python/py-value.c (is_intlike): Delete.
64 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
65 by use of is_integral_type.
66 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
67 by use of is_integral_type and check for TYPE_CODE_PTR.
68
8986e351
TT
692013-11-20 Tom Tromey <tromey@redhat.com>
70
71 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
72 strerror module.
73 * gnulib/aclocal.m4: Update.
74 * gnulib/config.in: Update.
75 * gnulib/configure: Update.
76 * gnulib/import/Makefile.am: Update.
77 * gnulib/import/Makefile.in: Update.
78 * gnulib/import/errno.in.h: Remove.
79 * gnulib/import/intprops.h: Remove.
80 * gnulib/import/m4/errno_h.m4: Remove.
81 * gnulib/import/m4/gnulib-cache.m4: Update.
82 * gnulib/import/m4/gnulib-comp.m4: Update.
83 * gnulib/import/m4/strerror.m4: Remove.
84 * gnulib/import/m4/sys_socket_h.m4: Remove.
85 * gnulib/import/strerror-override.c: Remove.
86 * gnulib/import/strerror-override.h: Remove.
87 * gnulib/import/strerror.c: Remove.
88 * gnulib/update-gnulib.sh: Update.
89
6b1141e3
YQ
902013-11-20 Yao Qi <yao@codesourcery.com>
91
92 * target-dcache.c (target_dcache_get_or_init): Call
93 set_address_space_data if 'dcache' is NULL.
94
60650f2e
WT
952013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
96
97 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
98
09748966
WT
992013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
100
101 * python/lib/gdb/command/bound_register.py: New file.
102 * gdb/data-directory/Makefile.in: copy bond_register.py to the right path to
103 be initialized at gdb startup.
104
e43e105e
WT
1052013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
106
107 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
108 Add MPX registers.
109 (amd64_linux_read_description): Add initialization for MPX and
110 AVX independently.
111 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
112 (amd64_linux_gregset_reg_offset): Add MPX registers.
113 (amd64_linux_core_read_description): Add initialization for MPX
114 registers.
115 (_initialize_amd64_linux_tdep): Initialize MPX targets.
116 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
117 register on the list.
118 (tdesc_amd64_mpx_linux) Add new target for MPX.
119 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
120 (amd64_mpx_names): MPX register names.
121 (amd64_init_abi): Add MPX register while initializing the ABI.
122 (_initialize_amd64_tdep): Initialize MPX targets.
123 * amd64-tdep.h (amd64_regnum): Add MPX registers.
124 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
125
1dbcd68c
WT
1262013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
127
128 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
129 registers on the range of registers to be read from
130 xsave buffer.
131 (i386_linux_read_description): Add case for MPX.
132 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
133 (i386_linux_gregset_reg_offset): Add MPX registers.
134 (i386_linux_core_read_description): Initialize also MPX.
135 (_initialize_i386_linux_tdep): Add mpx initialization.
136 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
137 mpx_register_names.
138 (i386_regnum): Add MPX registers.
139 (I386_MPX_NUM_REGS): New macro.
140 (i386_bnd_regnum_p): New function.
141 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
142 number of registers to be the number of BNDSTATUS.
143 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
144 * i386-tdep.c: Include features/i386/i386-mpx.c.
145 (i386_mpx_names): Add MPX register names array.
146 (i386_bnd_names): Add bnd pseudo register names array.
147 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
148 registers.
149 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
150 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
151 registers.
152 (i386_bnd_type): New function.
153 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
154 register types.
155 (i386_pseudo_register_read_into_value): Add bnd case.
156 (i386_pseudo_register_write): Add bnd pseudo registers.
157 (i386_register_reggroup_p): Add MPX register to the group all.
158 (i386_validate_tdesc_p): Add MPX to the target description
159 validation.
160 (i386_pseudo_register_name): Add bnd pseudo registers.
161 (i386_gdbarch_init): Add MPX for architecture initialization.
162 (_initia_initialize_i386_tdep): Add mpx initialization.
163 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
164 XSAVE buffer.
165 (XSAVE_MPX_ADDR): New macro.
166 (i387_supply_xsave): Add MPX case.
167 (i387_collect_xsave): Add MPX case.
168 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
169 (I387_BNDCFGU_REGNUM): New macro.
170 (I387_NUM_MPX_REGS): New macro.
171 (I387_NUM_BND_REGS): New macro.
172 (I387_NUM_MPX_CTRL_REGS): New macro.
173 (I387_MPXEND_REGNUM): New macro.
174 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
175 (I386_XSTATE_BNDCFG): Likewise.
176 (I386_XSTATE_MPX_MASK): Likewise.
177 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
178 (I386_XSTATE_BNDREGS_SIZE): New macro.
179 (I386_XSTATE_BNDCFG_SIZE): Likewise.
180 (I386_XSTATE_SIZE): Adapt for MPX.
181 (I386_XSTATE_MAX_SIZE): Likewise.
182
ccc42043
WT
1832013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
184
185 * features/i386/Makefile: Adapts for using MPX registers.
186 * features/i386/32bit-mpx.xml: New file.
187 * features/i386/64bit-mpx.xml: Likewise.
188 * features/i386/amd64-mpx-linux.c: Likewise.
189 * features/i386/amd64-mpx-linux.xml: Likewise.
190 * features/i386/amd64-mpx.c: Likewise.
191 * features/i386/amd64-mpx.xml: Likewise.
192 * features/i386/i386-mpx-linux.c: Likewise.
193 * features/i386/i386-mpx-linux.xml: Likewise.
194 * features/i386/i386-mpx.c: Likewise.
195 * features/i386/i386-mpx.xml: Likewise.
196 * regformats/i386/amd64-mpx-linux.dat: New file.
197 * regformats/i386/amd64-mpx.dat: Likewise.
198 * regformats/i386/i386-mpx-linux.dat: Likewise.
199 * regformats/i386/i386-mpx.dat: Likewise.
200
57803a3c
WT
2012013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
202
203 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
204 Modified logic of creating a bitfield to be in sync with
205 tdesc_gdb_type.
206
2b59118e
WN
2072013-11-20 Will Newton <will.newton@linaro.org>
208
209 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
210 error message.
211
b26dfc9a
YQ
2122013-11-20 Yao Qi <yao@codesourcery.com>
213
214 * progspace.h (struct address_space_data): Declare.
215 * target-dcache.c: Include "progspace.h".
216 (target_dache): Remove.
217 (target_dcache_aspace_key): New.
218 (target_dcache_cleanup): New function.
219 (target_dcache_init_p): Get data through
220 target_dcache_aspace_key.
221 (target_dcache_invalidate): Likewise.
222 (target_dcache_get): Likewise.
223 (target_dcache_get_or_init): Likewise.
224 (_initialize_target_dcache): Initialize
225 target_dcache_aspace_key.
226
3a8356ff
YQ
2272013-11-20 Yao Qi <yao@codesourcery.com>
228
229 * progspace.c (struct address_space): Update comments.
230 <REGISTRY_FIELDS>: New fields.
231 DEFINE_REGISTRY for address_space.
232 (new_address_space): Call address_space_alloc_data.
233 (free_address_space): Call address_space_free_data.
234 * progspace.h: Use DECLARE_REGISTRY.
235
68c765e2
YQ
2362013-11-20 Yao Qi <yao@codesourcery.com>
237
238 * Makefile.in (SFILES):Add target-dcache.c.
239 (HFILES_NO_SRCDIR): Add target-dcache.h.
240 (COMMON_OBS): Add target-dcache.o.
241 * dcache.c: Remove inclusion to "target.h". Include
242 "target-dcache.h".
243 * memattr.c: Include "target-dcache.h".
244 * top.c: Likewise.
245 * tracepoint.c: Likewise.
246 * target.c: (stack_cache_enabled_p_1): Move to
247 target-dcache.c.
248 (stack_cache_enabled_p): Likewise.
249 (set_stack_cache_enabled_p): Likewise.
250 (show_stack_cache_enabled_p): Likewise.
251 (target_dcache, target_dcache_init_p): Likewise.
252 (target_dcache_invalidate): Likewise.
253 (target_dcache_get, target_dcache_get_or_init): Likewise.
254 (memory_xfer_partial_1): Call function stack_cache_enabled.
255 (initialize_target): Move code to target-dcache.c.
256 * target.h (target_dcache_invalidate): Move to
257 target-dcache.h.
258 (target_dcache_get): Likewise.
259 * target-dcache.c: New.
260 * target-dcache.h: New.
261
f2de9785
YQ
2622013-11-20 Yao Qi <yao@codesourcery.com>
263
264 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
265 it is initialized.
266
2a2f9fe4
YQ
2672013-11-20 Yao Qi <yao@codesourcery.com>
268
269 * dcache.c (last_cache): Remove.
270 (dcache_free, dcache_init): Update.
271 (dcache_update):
272 (dcache_print_line): Add parameter 'dcache'. Replace
273 'target_dcache' with 'dcache'.
274 (dcache_info): Move code to dcache_info_1. Call
275 'dcache_info_1'.
276 (dcache_info_1): New function.
277 (set_dcache_size): Call target_dcache_invalidate.
278 (set_dcache_line_size): Call target_dcache_invalidate.
279 * target.c (target_dcache_init_p): New function.
280 (target_dcache_invalidate): Check target_dcache_init_p first.
281 (target_dcache_get, target_dcache_get_or_init): New function.
282 (memory_xfer_partial_1): Adjust.
283 (initialize_target): Don't initialize 'target_dcache'.
284 * target.h (struct dcache_struct): Declare.
285 (target_dcache_get): Declare.
286
8ab91b96
YQ
2872013-11-19 Yao Qi <yao@codesourcery.com>
288
289 * varobj.c (varobj_get_type): Fix typo.
290
df7752b0
JB
2912013-11-19 Joel Brobecker <brobecker@adacore.com>
292
293 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
294
4a0a886a
JB
2952013-11-19 Joel Brobecker <brobecker@adacore.com>
296
297 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
298 "stat.h".
299
53ce3c39
TT
3002013-11-18 Tom Tromey <tromey@redhat.com>
301
302 * common/gdb_stat.h: Remove.
303 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
304 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
305 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
306 * corefile.c: Use sys/stat.h, not gdb_stat.h.
307 * ctf.c: Use sys/stat.h, not gdb_stat.h.
308 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
309 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
310 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
311 * exec.c: Use sys/stat.h, not gdb_stat.h.
312 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
313 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
314 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
315 * jit.c: Use sys/stat.h, not gdb_stat.h.
316 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
317 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
318 * main.c: Use sys/stat.h, not gdb_stat.h.
319 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
320 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
321 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
322 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
323 * procfs.c: Use sys/stat.h, not gdb_stat.h.
324 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
325 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
326 * remote.c: Use sys/stat.h, not gdb_stat.h.
327 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
328 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
329 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
330 * source.c: Use sys/stat.h, not gdb_stat.h.
331 * symfile.c: Use sys/stat.h, not gdb_stat.h.
332 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
333 * symtab.c: Use sys/stat.h, not gdb_stat.h.
334 * top.c: Use sys/stat.h, not gdb_stat.h.
335 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
336
09607c9e
TT
3372013-11-18 Tom Tromey <tromey@redhat.com>
338
339 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
340 sys_stat.
341 * gnulib/aclocal.m4: Update.
342 * gnulib/config.in: Update.
343 * gnulib/configure: Update.
344 * gnulib/import/Makefile.am: Update.
345 * gnulib/import/Makefile.in: Update.
346 * gnulib/import/m4/gnulib-cache.m4: Update.
347 * gnulib/import/m4/gnulib-comp.m4: Update.
348 * gnulib/import/m4/sys_stat_h.m4: New.
349 * gnulib/import/m4/time_h.m4: New.
350 * gnulib/import/sys_stat.in.h: New.
351 * gnulib/import/time.in.h: New.
352
4ff70b84
TT
3532013-11-18 Tom Tromey <tromey@redhat.com>
354
355 * configure: Rebuild.
356 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
357
3447c057
TT
3582013-11-18 Tom Tromey <tromey@redhat.com>
359
360 * configure: Rebuild.
361 * configure.ac: Don't check for unistd.h.
362
0080a2f6
TT
3632013-11-18 Tom Tromey <tromey@redhat.com>
364
365 * configure: Rebuild.
366 * configure.ac: Don't check for stdlib.h
367 * defs.h: Include stdlib.h unconditionally.
368
161d1bec
TT
3692013-11-18 Tom Tromey <tromey@redhat.com>
370
371 * config.in: Rebuild.
372 * configure: Rebuild.
373 * configure.ac: Don't check for stddef.h.
374 * defs.h: Unconditionally include stddef.h. Remove duplicate
375 inclusion.
376
2978b111
TT
3772013-11-18 Tom Tromey <tromey@redhat.com>
378
379 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
380 * common/gdb_dirent.h: Remove.
381 * common/filestuff.c: Use dirent.h.
382 * common/linux-osdata.c: Use dirent.h.
383 (NAMELEN): Define.
384 * config.in: Rebuild.
385 * configure: Rebuild.
386 * configure.ac: Don't use AC_HEADER_DIRENT.
387 * linux-fork.c: Use dirent.h
388 * linux-nat.c: Use dirent.h.
389 * nto-procfs.c: Use dirent.h.
390 * procfs.c: Use dirent.h.
391
e26b6bb0
TT
3922013-11-18 Tom Tromey <tromey@redhat.com>
393
394 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
395 * gnulib/aclocal.m4: Update.
396 * gnulib/config.in: Update.
397 * gnulib/configure: Update.
398 * gnulib/import/Makefile.am: Update.
399 * gnulib/import/Makefile.in: Update.
400 * gnulib/import/dirent.in.h: New.
401 * gnulib/import/m4/dirent_h.m4: New.
402 * gnulib/import/m4/gnulib-cache.m4: Update.
403 * gnulib/import/m4/gnulib-comp.m4: Update.
404
a3d08894
TT
4052013-11-18 Tom Tromey <tromey@redhat.com>
406
407 * configure: Rebuild.
408 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
409 strings.h.
410
0e9f083f
TT
4112013-11-18 Tom Tromey <tromey@redhat.com>
412
413 * common/gdb_string.h: Remove.
414 * aarch64-tdep.c: Use string.h, not gdb_string.h.
415 * ada-exp.y: Use string.h, not gdb_string.h.
416 * ada-lang.c: Use string.h, not gdb_string.h.
417 * ada-lex.l: Use string.h, not gdb_string.h.
418 * ada-typeprint.c: Use string.h, not gdb_string.h.
419 * ada-valprint.c: Use string.h, not gdb_string.h.
420 * aix-thread.c: Use string.h, not gdb_string.h.
421 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
422 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
423 * alpha-nat.c: Use string.h, not gdb_string.h.
424 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
425 * alpha-tdep.c: Use string.h, not gdb_string.h.
426 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
427 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
428 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
429 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
430 * amd64-nat.c: Use string.h, not gdb_string.h.
431 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
432 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
433 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
434 * arch-utils.c: Use string.h, not gdb_string.h.
435 * arm-linux-nat.c: Use string.h, not gdb_string.h.
436 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
437 * arm-tdep.c: Use string.h, not gdb_string.h.
438 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
439 * armbsd-tdep.c: Use string.h, not gdb_string.h.
440 * armnbsd-nat.c: Use string.h, not gdb_string.h.
441 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
442 * armobsd-tdep.c: Use string.h, not gdb_string.h.
443 * avr-tdep.c: Use string.h, not gdb_string.h.
444 * ax-gdb.c: Use string.h, not gdb_string.h.
445 * ax-general.c: Use string.h, not gdb_string.h.
446 * bcache.c: Use string.h, not gdb_string.h.
447 * bfin-tdep.c: Use string.h, not gdb_string.h.
448 * breakpoint.c: Use string.h, not gdb_string.h.
449 * build-id.c: Use string.h, not gdb_string.h.
450 * buildsym.c: Use string.h, not gdb_string.h.
451 * c-exp.y: Use string.h, not gdb_string.h.
452 * c-lang.c: Use string.h, not gdb_string.h.
453 * c-typeprint.c: Use string.h, not gdb_string.h.
454 * c-valprint.c: Use string.h, not gdb_string.h.
455 * charset.c: Use string.h, not gdb_string.h.
456 * cli-out.c: Use string.h, not gdb_string.h.
457 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
458 * cli/cli-decode.c: Use string.h, not gdb_string.h.
459 * cli/cli-dump.c: Use string.h, not gdb_string.h.
460 * cli/cli-interp.c: Use string.h, not gdb_string.h.
461 * cli/cli-logging.c: Use string.h, not gdb_string.h.
462 * cli/cli-script.c: Use string.h, not gdb_string.h.
463 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
464 * cli/cli-utils.c: Use string.h, not gdb_string.h.
465 * coffread.c: Use string.h, not gdb_string.h.
466 * common/common-utils.c: Use string.h, not gdb_string.h.
467 * common/filestuff.c: Use string.h, not gdb_string.h.
468 * common/linux-procfs.c: Use string.h, not gdb_string.h.
469 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
470 * common/signals.c: Use string.h, not gdb_string.h.
471 * common/vec.h: Use string.h, not gdb_string.h.
472 * core-regset.c: Use string.h, not gdb_string.h.
473 * corefile.c: Use string.h, not gdb_string.h.
474 * corelow.c: Use string.h, not gdb_string.h.
475 * cp-abi.c: Use string.h, not gdb_string.h.
476 * cp-support.c: Use string.h, not gdb_string.h.
477 * cp-valprint.c: Use string.h, not gdb_string.h.
478 * cris-tdep.c: Use string.h, not gdb_string.h.
479 * d-lang.c: Use string.h, not gdb_string.h.
480 * dbxread.c: Use string.h, not gdb_string.h.
481 * dcache.c: Use string.h, not gdb_string.h.
482 * demangle.c: Use string.h, not gdb_string.h.
483 * dicos-tdep.c: Use string.h, not gdb_string.h.
484 * disasm.c: Use string.h, not gdb_string.h.
485 * doublest.c: Use string.h, not gdb_string.h.
486 * dsrec.c: Use string.h, not gdb_string.h.
487 * dummy-frame.c: Use string.h, not gdb_string.h.
488 * dwarf2-frame.c: Use string.h, not gdb_string.h.
489 * dwarf2loc.c: Use string.h, not gdb_string.h.
490 * dwarf2read.c: Use string.h, not gdb_string.h.
491 * elfread.c: Use string.h, not gdb_string.h.
492 * environ.c: Use string.h, not gdb_string.h.
493 * eval.c: Use string.h, not gdb_string.h.
494 * event-loop.c: Use string.h, not gdb_string.h.
495 * exceptions.c: Use string.h, not gdb_string.h.
496 * exec.c: Use string.h, not gdb_string.h.
497 * expprint.c: Use string.h, not gdb_string.h.
498 * f-exp.y: Use string.h, not gdb_string.h.
499 * f-lang.c: Use string.h, not gdb_string.h.
500 * f-typeprint.c: Use string.h, not gdb_string.h.
501 * f-valprint.c: Use string.h, not gdb_string.h.
502 * fbsd-nat.c: Use string.h, not gdb_string.h.
503 * findcmd.c: Use string.h, not gdb_string.h.
504 * findvar.c: Use string.h, not gdb_string.h.
505 * fork-child.c: Use string.h, not gdb_string.h.
506 * frame.c: Use string.h, not gdb_string.h.
507 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
508 * frv-tdep.c: Use string.h, not gdb_string.h.
509 * gdb.c: Use string.h, not gdb_string.h.
510 * gdb_bfd.c: Use string.h, not gdb_string.h.
511 * gdbarch.c: Use string.h, not gdb_string.h.
512 * gdbtypes.c: Use string.h, not gdb_string.h.
513 * gnu-nat.c: Use string.h, not gdb_string.h.
514 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
515 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
516 * go-exp.y: Use string.h, not gdb_string.h.
517 * go-lang.c: Use string.h, not gdb_string.h.
518 * go32-nat.c: Use string.h, not gdb_string.h.
519 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
520 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
521 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
522 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
523 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
524 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
525 * i386-linux-nat.c: Use string.h, not gdb_string.h.
526 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
527 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
528 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
529 * i386-tdep.c: Use string.h, not gdb_string.h.
530 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
531 * i386gnu-nat.c: Use string.h, not gdb_string.h.
532 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
533 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
534 * i387-tdep.c: Use string.h, not gdb_string.h.
535 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
536 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
537 * inf-child.c: Use string.h, not gdb_string.h.
538 * inf-ptrace.c: Use string.h, not gdb_string.h.
539 * inf-ttrace.c: Use string.h, not gdb_string.h.
540 * infcall.c: Use string.h, not gdb_string.h.
541 * infcmd.c: Use string.h, not gdb_string.h.
542 * inflow.c: Use string.h, not gdb_string.h.
543 * infrun.c: Use string.h, not gdb_string.h.
544 * interps.c: Use string.h, not gdb_string.h.
545 * iq2000-tdep.c: Use string.h, not gdb_string.h.
546 * irix5-nat.c: Use string.h, not gdb_string.h.
547 * jv-exp.y: Use string.h, not gdb_string.h.
548 * jv-lang.c: Use string.h, not gdb_string.h.
549 * jv-typeprint.c: Use string.h, not gdb_string.h.
550 * jv-valprint.c: Use string.h, not gdb_string.h.
551 * language.c: Use string.h, not gdb_string.h.
552 * linux-fork.c: Use string.h, not gdb_string.h.
553 * linux-nat.c: Use string.h, not gdb_string.h.
554 * lm32-tdep.c: Use string.h, not gdb_string.h.
555 * m2-exp.y: Use string.h, not gdb_string.h.
556 * m2-typeprint.c: Use string.h, not gdb_string.h.
557 * m32c-tdep.c: Use string.h, not gdb_string.h.
558 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
559 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
560 * m32r-rom.c: Use string.h, not gdb_string.h.
561 * m32r-tdep.c: Use string.h, not gdb_string.h.
562 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
563 * m68k-tdep.c: Use string.h, not gdb_string.h.
564 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
565 * m68klinux-nat.c: Use string.h, not gdb_string.h.
566 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
567 * m88k-tdep.c: Use string.h, not gdb_string.h.
568 * macrocmd.c: Use string.h, not gdb_string.h.
569 * main.c: Use string.h, not gdb_string.h.
570 * mdebugread.c: Use string.h, not gdb_string.h.
571 * mem-break.c: Use string.h, not gdb_string.h.
572 * memattr.c: Use string.h, not gdb_string.h.
573 * memory-map.c: Use string.h, not gdb_string.h.
574 * mep-tdep.c: Use string.h, not gdb_string.h.
575 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
576 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
577 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
578 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
579 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
580 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
581 * mi/mi-console.c: Use string.h, not gdb_string.h.
582 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
583 * mi/mi-interp.c: Use string.h, not gdb_string.h.
584 * mi/mi-main.c: Use string.h, not gdb_string.h.
585 * mi/mi-parse.c: Use string.h, not gdb_string.h.
586 * microblaze-rom.c: Use string.h, not gdb_string.h.
587 * microblaze-tdep.c: Use string.h, not gdb_string.h.
588 * mingw-hdep.c: Use string.h, not gdb_string.h.
589 * minidebug.c: Use string.h, not gdb_string.h.
590 * minsyms.c: Use string.h, not gdb_string.h.
591 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
592 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
593 * mips-tdep.c: Use string.h, not gdb_string.h.
594 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
595 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
596 * mipsread.c: Use string.h, not gdb_string.h.
597 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
598 * mn10300-tdep.c: Use string.h, not gdb_string.h.
599 * monitor.c: Use string.h, not gdb_string.h.
600 * moxie-tdep.c: Use string.h, not gdb_string.h.
601 * mt-tdep.c: Use string.h, not gdb_string.h.
602 * nbsd-tdep.c: Use string.h, not gdb_string.h.
603 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
604 * nto-procfs.c: Use string.h, not gdb_string.h.
605 * nto-tdep.c: Use string.h, not gdb_string.h.
606 * objc-lang.c: Use string.h, not gdb_string.h.
607 * objfiles.c: Use string.h, not gdb_string.h.
608 * opencl-lang.c: Use string.h, not gdb_string.h.
609 * osabi.c: Use string.h, not gdb_string.h.
610 * osdata.c: Use string.h, not gdb_string.h.
611 * p-exp.y: Use string.h, not gdb_string.h.
612 * p-lang.c: Use string.h, not gdb_string.h.
613 * p-typeprint.c: Use string.h, not gdb_string.h.
614 * parse.c: Use string.h, not gdb_string.h.
615 * posix-hdep.c: Use string.h, not gdb_string.h.
616 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
617 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
618 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
619 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
620 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
621 * printcmd.c: Use string.h, not gdb_string.h.
622 * procfs.c: Use string.h, not gdb_string.h.
623 * prologue-value.c: Use string.h, not gdb_string.h.
624 * python/py-auto-load.c: Use string.h, not gdb_string.h.
625 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
626 * ravenscar-thread.c: Use string.h, not gdb_string.h.
627 * regcache.c: Use string.h, not gdb_string.h.
628 * registry.c: Use string.h, not gdb_string.h.
629 * remote-fileio.c: Use string.h, not gdb_string.h.
630 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
631 * remote-mips.c: Use string.h, not gdb_string.h.
632 * remote-sim.c: Use string.h, not gdb_string.h.
633 * remote.c: Use string.h, not gdb_string.h.
634 * reverse.c: Use string.h, not gdb_string.h.
635 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
636 * ser-base.c: Use string.h, not gdb_string.h.
637 * ser-go32.c: Use string.h, not gdb_string.h.
638 * ser-mingw.c: Use string.h, not gdb_string.h.
639 * ser-pipe.c: Use string.h, not gdb_string.h.
640 * ser-tcp.c: Use string.h, not gdb_string.h.
641 * ser-unix.c: Use string.h, not gdb_string.h.
642 * serial.c: Use string.h, not gdb_string.h.
643 * sh-tdep.c: Use string.h, not gdb_string.h.
644 * sh64-tdep.c: Use string.h, not gdb_string.h.
645 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
646 * skip.c: Use string.h, not gdb_string.h.
647 * sol-thread.c: Use string.h, not gdb_string.h.
648 * solib-dsbt.c: Use string.h, not gdb_string.h.
649 * solib-frv.c: Use string.h, not gdb_string.h.
650 * solib-osf.c: Use string.h, not gdb_string.h.
651 * solib-spu.c: Use string.h, not gdb_string.h.
652 * solib-target.c: Use string.h, not gdb_string.h.
653 * solib.c: Use string.h, not gdb_string.h.
654 * somread.c: Use string.h, not gdb_string.h.
655 * source.c: Use string.h, not gdb_string.h.
656 * sparc-nat.c: Use string.h, not gdb_string.h.
657 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
658 * sparc-tdep.c: Use string.h, not gdb_string.h.
659 * sparc64-tdep.c: Use string.h, not gdb_string.h.
660 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
661 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
662 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
663 * spu-linux-nat.c: Use string.h, not gdb_string.h.
664 * spu-multiarch.c: Use string.h, not gdb_string.h.
665 * spu-tdep.c: Use string.h, not gdb_string.h.
666 * stabsread.c: Use string.h, not gdb_string.h.
667 * stack.c: Use string.h, not gdb_string.h.
668 * std-regs.c: Use string.h, not gdb_string.h.
669 * symfile.c: Use string.h, not gdb_string.h.
670 * symmisc.c: Use string.h, not gdb_string.h.
671 * symtab.c: Use string.h, not gdb_string.h.
672 * target.c: Use string.h, not gdb_string.h.
673 * thread.c: Use string.h, not gdb_string.h.
674 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
675 * tilegx-tdep.c: Use string.h, not gdb_string.h.
676 * top.c: Use string.h, not gdb_string.h.
677 * tracepoint.c: Use string.h, not gdb_string.h.
678 * tui/tui-command.c: Use string.h, not gdb_string.h.
679 * tui/tui-data.c: Use string.h, not gdb_string.h.
680 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
681 * tui/tui-file.c: Use string.h, not gdb_string.h.
682 * tui/tui-layout.c: Use string.h, not gdb_string.h.
683 * tui/tui-out.c: Use string.h, not gdb_string.h.
684 * tui/tui-regs.c: Use string.h, not gdb_string.h.
685 * tui/tui-source.c: Use string.h, not gdb_string.h.
686 * tui/tui-stack.c: Use string.h, not gdb_string.h.
687 * tui/tui-win.c: Use string.h, not gdb_string.h.
688 * tui/tui-windata.c: Use string.h, not gdb_string.h.
689 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
690 * typeprint.c: Use string.h, not gdb_string.h.
691 * ui-file.c: Use string.h, not gdb_string.h.
692 * ui-out.c: Use string.h, not gdb_string.h.
693 * user-regs.c: Use string.h, not gdb_string.h.
694 * utils.c: Use string.h, not gdb_string.h.
695 * v850-tdep.c: Use string.h, not gdb_string.h.
696 * valarith.c: Use string.h, not gdb_string.h.
697 * valops.c: Use string.h, not gdb_string.h.
698 * valprint.c: Use string.h, not gdb_string.h.
699 * value.c: Use string.h, not gdb_string.h.
700 * varobj.c: Use string.h, not gdb_string.h.
701 * vax-tdep.c: Use string.h, not gdb_string.h.
702 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
703 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
704 * windows-nat.c: Use string.h, not gdb_string.h.
705 * xcoffread.c: Use string.h, not gdb_string.h.
706 * xml-support.c: Use string.h, not gdb_string.h.
707 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
708 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
709
63ce7108
TT
7102013-11-18 Tom Tromey <tromey@redhat.com>
711
712 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
713 and strstr.
714 * gnulib/aclocal.m4: Update.
715 * gnulib/config.in: Update.
716 * gnulib/configure: Update.
717 * gnulib/import/Makefile.am: Update.
718 * gnulib/import/Makefile.in: Update.
719 * gnulib/import/errno.in.h: New.
720 * gnulib/import/intprops.h: New.
721 * gnulib/import/m4/errno_h.m4: New.
722 * gnulib/import/m4/gnulib-cache.m4: Update.
723 * gnulib/import/m4/gnulib-comp.m4: Update.
724 * gnulib/import/m4/strerror.m4: New.
725 * gnulib/import/m4/strstr.m4: New.
726 * gnulib/import/m4/sys_socket_h.m4: New.
727 * gnulib/import/strerror-override.c: New.
728 * gnulib/import/strerror-override.h: New.
729 * gnulib/import/strerror.c: New.
730 * gnulib/import/strstr.c: New.
731
a7c11ee1
TT
7322013-11-18 Tom Tromey <tromey@redhat.com>
733
734 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
735 multiple lines.
736
d0b5971a
JM
7372013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
738
739 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
740 * sparc-tdep.h: And its prototype.
741
742 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
743 function.
744 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
745
4b4589ad
PA
7462013-11-18 Pedro Alves <palves@redhat.com>
747
748 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
749 use unpack_pointer.
750
422ad5c2
JB
7512013-11-18 Joel Brobecker <brobecker@adacore.com>
752
753 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
754 to -list-features output.
755
b1370418
JB
7562013-11-17 Joel Brobecker <brobecker@adacore.com>
757
758 * dwarf2expr.h (struct dwarf_expr_context_funcs)
759 <read_addr_from_reg>: Renames "read_reg".
760 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
761 Adjust comment.
762 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
763 Use read_addr_from_reg in place of read_reg.
764 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
765 in place of read_reg.
766 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
767 dwarf_expr_read_reg.
768 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
769 with dwarf_expr_read_addr_from_reg.
770 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
771 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
772 needs_frame_read_addr_from_reg.
773
6ea71545
JK
7742013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
775
776 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
777
19a1b230
AA
7782013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
779
780 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
781 NULL.
782
805e1f19
TT
7832013-11-15 Tom Tromey <tromey@redhat.com>
784
785 PR c++/16117:
786 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
787 (classify_name): Likewise. Prefer a field of "this" over a
788 filename.
789 (classify_inner_name, yylex): Update.
790
0acf8b65
JB
7912013-11-15 Joel Brobecker <brobecker@adacore.com>
792
793 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
794 Extend the documentation a bit.
795 <get_reg_value>: New field.
796 * dwarf2loc.c (dwarf_expr_get_reg_value)
797 (needs_frame_get_reg_value): New functions.
798 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
799 callback.
800 * dwarf2-frame.c (get_reg_value): New function.
801 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
802 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
803 Use new callback to compute result_val.
804
ef1bc9e7
AM
8052013-11-15 Alan Modra <amodra@gmail.com>
806
807 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
808 (ppc64_desc_entry_point): ..this. Update comments here and at
809 call points.
810 (ppc64_standard_linkage1, ppc64_standard_linkage2,
811 ppc64_standard_linkage3): Update comments.
812 (ppc64_standard_linkage4, ppc64_standard_linkage5,
813 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
814 patterns.
815 (ppc64_standard_linkage4_target): New function.
816 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
817 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
818 nop match. Fix comment wrap.
819
36fa8042
PA
8202013-11-14 Pedro Alves <palves@redhat.com>
821
822 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
823 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
824
4f5d7f63
PA
8252013-11-14 Pedro Alves <palves@redhat.com>
826
827 * infrun.c (struct execution_control_state)
828 <stepped_after_stopped_by_watchpoint>: New field.
829 (get_inferior_stop_soon): New function.
830 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
831 moved to struct execution_control_state -- adjust. Use
832 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
833 new function.
834 (handle_signal_stop): New function, factored out from
835 handle_inferior_event.
836
47591c29
PA
8372013-11-14 Pedro Alves <palves@redhat.com>
838
839 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
840 return a boolean.
841 * breakpoint.c (bpstat_explains_signal): Adjust to return a
842 boolean.
843 (explains_signal_watchpoint, base_breakpoint_explains_signal):
844 Adjust to return a boolean.
845 * breakpoint.h (enum bpstat_signal_value): Delete.
846 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
847 (bpstat_explains_signal): Likewise.
848 * infrun.c (handle_inferior_event) <random signal checks>:
849 bpstat_explains_signal now returns a boolean - adjust. No longer
850 consider hiding signals.
851
bac7d97b
PA
8522013-11-14 Pedro Alves <palves@redhat.com>
853
854 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
855 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
856 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
857 BPSTAT_SIGNAL_HIDE.
858 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
859 instead of BPSTAT_SIGNAL_HIDE.
860 * infrun.c (handle_inferior_event): Rework random signal checks.
861
ce12b012
PA
8622013-11-14 Pedro Alves <palves@redhat.com>
863
864 * infrun.c (struct execution_control_state): Remove
865 'random_signal' field.
866 (handle_syscall_event): Use bpstat_causes_stop instead of
867 bpstat_explains_signal. Don't set ecs->random_signal.
868 (handle_inferior_event): New 'random_signal' local.
869 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
870 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
871 bpstat_explains_signal. Don't set ecs->random_signal.
872 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
873 ecs->random_signal.
874
05ba8510
PA
8752013-11-14 Pedro Alves <palves@redhat.com>
876
877 * infrun.c (handle_inferior_event): Move comment from the
878 function's body to the function's description, adjusted.
879
5c09a2c5
PA
8802013-11-14 Pedro Alves <palves@redhat.com>
881
882 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
883 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
884 Assert we never fall through out of the TARGET_WAITKIND_LOADED
885 case.
886
91822956
TT
8872013-11-14 Tom Tromey <tromey@redhat.com>
888
889 * python/py-linetable.c (ltpy_has_line)
890 (ltpy_get_all_source_lines): Fix loop termination condition.
891
403cb6b1
JB
8922013-11-14 Joel Brobecker <brobecker@adacore.com>
893
894 * mi/mi-parse.h (struct mi_parse) <language>: New field.
895 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
896 PARSE->LANGUAGE during command execution, if set.
897 * mi/mi-parse.c: Add "language.h" #include.
898 (mi_parse): Add parsing of "--language" command option.
899
900 * NEWS: Add entry mentioning the new "--language" command option.
901
b5be8ce0
JB
9022013-11-14 Pedro Alves <palves@redhat.com>
903 Joel Brobecker <brobecker@adacore.com>
904
905 * cli/cli-utils.h (extract_arg_const): Add declaration.
906 * cli/cli-utils.c (extract_arg_const): New function.
907 (extract_arg): Reimplement using extract_arg_const.
908
671afef6
JB
9092013-11-14 Joel Brobecker <brobecker@adacore.com>
910
911 * language.h: Add "symtab.h" #include.
912
6c1b0f7b
DE
9132013-11-13 Doug Evans <xdje42@gmail.com>
914
915 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
916 specific breakpoints, don't evaluate breakpoint condition if
917 different thread.
918
74921315
KS
9192013-11-13 Keith Seitz <keiths@redhat.com>
920
248ace2e 921 PR c++/7935
74921315
KS
922 PR c++/10541
923 * cp-support.c (insepct_type): Add support for substituting
924 namespace aliases, too.
925 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
926 for DW_TAG_imported_declaration.
927 (add_partial_symbol): Likewise.
928 (process_die): Handle namespace aliases with
929 read_namespace_alias.
930 (die_needs_namespace): Add DW_TAG_imported_declaration.
931 (read_namespace_alias): New function.
932 (load_partial_dies): Load DW_TAG_imported_declaration, too.
933 (new_symbol_full): Handle DW_TAG_imported_declaration.
934
793156e6
KS
9352013-11-13 Keith Seitz <keiths@redhat.com>
936
937 * p-exp.y (uptok): Make first parameter const.
938 (yylex): Make `tokstart' and `tokptr' const.
939 Don't copy the lexer input to a temporary buffer.
940 Make `p' const.
941 Remove const workaround for parse_escape.
942 Create a temporary buffer for a convenience variable instead
943 of doing in-place modification of the input.
944 If a match is found with a different case from the input,
945 do not change the input at all.
946 Use `tmp' to construct the resultant stoken instead of
947 `tokstart'.
948
c42bd95a
DE
9492013-11-13 Doug Evans <xdje42@gmail.com>
950
951 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
952
93973826
JB
9532013-11-13 Joel Brobecker <brobecker@adacore.com>
954
955 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
956 entry with "ada-exceptions".
957
846060df
JB
9582013-11-13 Joel Brobecker <brobecker@adacore.com>
959
960 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
961 after re-initialization of OBJFILE's obstack.
962
5efd1b2b 9632013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
964
965 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
966 bs->stop != 0 on entry. Update function comment. Simplify early
967 exit for frame mismatch. Reindent rest of function.
968
ee7615e1
AA
9692013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
970
971 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
972 NULL.
973
8943b874
DE
9742013-11-12 Doug Evans <dje@google.com>
975
976 Work around gold/15646.
977 * dwarf2read.c (read_index_from_section): Update comment.
978 (struct dw2_symtab_iterator): New member global_seen.
979 (dw2_symtab_iter_init): Initialize it.
980 (dw2_symtab_iter_next): Skip duplicate global symbols.
981 (dw2_expand_symtabs_matching): Ditto.
982
a8a9844d
JB
9832013-11-12 Joel Brobecker <brobecker@adacore.com>
984
985 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
986 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
987 command.
988 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
989 (mi_cmd_info_ada_exceptions): New function.
990 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
991
778865d3
JB
9922013-11-12 Joel Brobecker <brobecker@adacore.com>
993
994 * ada-lang.h: #include "vec.h".
995 (struct ada_exc_info): New.
996 (ada_exc_info): New typedef.
997 (DEF_VEC_O(ada_exc_info)): New vector.
998 (ada_exceptions_list): Add declaration.
999 * ada-lang.c (ada_is_exception_sym)
1000 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1001 (sort_remove_dups_ada_exceptions_list)
1002 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1003 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1004 (ada_exceptions_list_1, ada_exceptions_list)
1005 (info_exceptions_command): New function.
1006 (_initialize_ada_language): Add "info exception" command.
1007
bc79de95
PM
10082013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1009
1010 PR python/15629
1011 * NEWS: Add linetable feature.
1012 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1013 * python/py-linetable.c: New file.
1014 * python/py-symtab.c (stpy_get_linetable): New function.
1015 * python/python-internal.h (symtab_to_linetable_object): Declare.
1016 (gdbpy_initialize_linetable): Ditto.
1017 * python/python.c (_initialize_python): Call
1018 gdbpy_initialize_linetable.
1019
2df4d1d5
JB
10202013-11-11 Joel Brobecker <brobecker@adacore.com>
1021
1022 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1023 the documentation of fields "except_string" and "condition".
1024 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1025 CONDITION on the heap before passing it to
1026 create_ada_exception_catchpoint.
1027 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1028 CONDITION.
1029
99c1d451
TT
10302013-11-11 Tom Tromey <tromey@redhat.com>
1031
1032 * config.in, configure: Rebuild.
1033 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1034
8ca5801b
JB
10352013-11-11 Joel Brobecker <brobecker@adacore.com>
1036
1037 * remote-sim.c (gdbsim_detach): Break declaration into
1038 shorter lines. No code change.
1039
7a06d430
EBM
10402013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1041
1042 * remote-sim.c (gdbsim_detach): Fix prototype.
1043
73be47f5
DE
10442013-11-08 Doug Evans <dje@google.com>
1045
1046 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1047 (create_debug_types_hash_table): Only print debugging messages for
1048 each TU if dwarf2-read >= 2.
1049 (process_queue): Ditto.
1050 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1051 Update doc string.
1052
a18d8f10
TT
10532013-11-08 Tom Tromey <tromey@redhat.com>
1054
1055 * configure: Rebuild.
1056 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1057
9467110b
TT
10582013-11-08 Tom Tromey <tromey@redhat.com>
1059
1060 * configure, config.in: Rebuild.
1061 * configure.ac: Remove unused configury.
1062
69706679
TT
10632013-11-08 Tom Tromey <tromey@redhat.com>
1064
1065 * m32c-tdep.c: Use gdb_string.h.
1066
9b4bea72
TT
10672013-11-08 Tom Tromey <tromey@redhat.com>
1068
1069 * configure, config.in: Rebuild.
1070 * configure.ac: Remove all link.h-related checks.
1071
3266f10b
TT
10722013-11-08 Tom Tromey <tromey@redhat.com>
1073
1074 * acinclude.m4: Include common.m4.
1075 * common/common.m4: New file.
1076 * configure, config.in: Rebuild.
1077 * configure.ac: Use GDB_AC_COMMON.
1078
db0fec5c
DE
10792013-11-08 Doug Evans <dje@google.com>
1080
1081 * NEWS: Mention that "set debug symtab-create" now accepts a
1082 verbosity level.
1083 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1084 to set the symtab's primary flag.
1085 * jit.c (finalize_symtab): Ditto.
1086 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1087 * symfile.c (allocate_symtab): Only print debugging messages for
1088 symtab_create_debug levels 2 and higher.
1089 * symtab.c (symtab_create_debug): Change type to unsigned int.
1090 (set_symtab_primary): New function.
1091 (_initialize_symtab): Change "set debug symtab-create" to a
1092 zuinteger option.
1093 * symtab.h (set_symtab_primary): Declare.
1094 (symtab_create_debug): Update decl.
1095
52554a0e
TT
10962013-11-08 Tom Tromey <tromey@redhat.com>
1097
1098 * aix-thread.c (aix_thread_detach): Update.
1099 * corelow.c (core_detach): Update.
1100 * darwin-nat.c (darwin_detach): Update.
1101 * dec-thread.c (dec_thread_detach): Update.
1102 * gnu-nat.c (gnu_detach): Update.
1103 * go32-nat.c (go32_detach): Update.
1104 * inf-ptrace.c (inf_ptrace_detach): Update.
1105 * inf-ttrace.c (inf_ttrace_detach): Update.
1106 * linux-fork.c (linux_fork_detach): Update.
1107 * linux-fork.h (linux_fork_detach): Update.
1108 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1109 local for const-correctness.
1110 * linux-thread-db.c (thread_db_detach): Update.
1111 * monitor.c (monitor_detach): Update.
1112 * nto-procfs.c (procfs_detach): Update.
1113 * procfs.c (procfs_detach): Update.
1114 * record.c (record_detach): Update.
1115 * record.h (record_detach): Update.
1116 * remote-m32r-sdi.c (m32r_detach): Update.
1117 * remote-mips.c (mips_detach): Update.
1118 * remote-sim.c (gdbsim_detach): Update.
1119 * remote.c (remote_detach_1, remote_detach)
1120 (extended_remote_detach): Update.
1121 * sol-thread.c (sol_thread_detach): Update.
1122 * target.c (target_detach): Make "args" const.
1123 (init_dummy_target): Update.
1124 * target.h (struct target_ops) <to_detach>: Make argument const.
1125 (target_detach): Likewise.
1126 * windows-nat.c (windows_detach): Update.
1127
204b5331
DE
11282013-11-07 Doug Evans <dje@google.com>
1129
1130 PR 11786
1131 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1132 and align fields for PT_GNU_RELRO segments.
1133
92e32e33
PM
11342013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1135
ef1bc9e7
AM
1136 PR python/15747
1137 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1138
f76c27b5
PM
11392013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1140
1141 * NEWS: Document Python temporary breakpoint support.
1142 * python/py-breakpoint.c (bppy_get_temporary): New function.
1143 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1144 to temporary if True.
1145
d52cd232
JM
11462013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1147
1148 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1149 removed to allow analyzing unconditional branch instructions
1150 with PC-relative offsets of zero.
1151
fa4d0c40
YQ
11522013-11-07 Yao Qi <yao@codesourcery.com>
1153
1154 * mi/mi-cmd-var.c: Include "language.h".
1155 (mi_cmd_var_info_expression): Get language name from
1156 language_defn.
1157 * varobj.c (varobj_language_string): Remove.
1158 (variable_language): Remove declaration.
1159 (languages): Remove.
1160 (varobj_get_language): Change the type of return value.
1161 (variable_language): Remove.
1162 * varobj.h (enum varobj_languages): Remove.
1163 (varobj_language_string): Remove declaration.
1164 (varobj_get_language): Update declaration.
1165
6abde28f
YQ
11662013-11-07 Yao Qi <yao@codesourcery.com>
1167
1168 * language.h (struct language_defn) <la_natural_name>: New
1169 field.
1170 * ada-lang.c (ada_language_defn): Initialize field
1171 'la_natural_name'.
1172 * c-lang.c (c_language_defn): Likewise.
1173 (cplus_language_defn, asm_language_defn): Likewise.
1174 * d-lang.c (d_language_defn): Likewise.
1175 * f-lang.c (f_language_defn): Likewise.
1176 * go-lang.c (go_language_defn): Likewise.
1177 * jv-lang.c (java_language_defn): Likewise.
1178 * language.c (unknown_language_defn ): Likewise.
1179 (auto_language_defn): Likewise.
1180 * m2-lang.c (m2_language_defn): Likewise.
1181 * objc-lang.c (objc_language_defn): Likewise.
1182 * opencl-lang.c (opencl_language_defn): Likewise.
1183 * p-lang.c (pascal_language_defn): Likewise.
1184
27cd387b
YQ
11852013-11-07 Yao Qi <yao@codesourcery.com>
1186
1187 * language.c (language_str): Return const char *.
1188 (add_language): Add const to 'language_names'
1189 * language.h (struct language_defn) <la_name>: Add const.
1190 (language_str: Update declaration.
1191
6682d959
AA
11922013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1193
1194 * s390-linux-nat.c (s390_read_description): Consider the TE field
1195 in the HWCAP for determining 'have_regset_tdb'.
1196
b9502d3f
WN
11972013-11-06 Will Newton <will.newton@linaro.org>
1198
1199 PR gdb/12866
1200 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1201 values. (read_partial_die): Likewise.
1202
840da61a
MB
12032013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1204
1205 PR cli/16122
1206 * top.c (command_line_input): Unify interactivity tests to use
1207 input_from_terminal_p.
1208 * event-top.c (command_line_handler): Likewise.
1209
7636ccf9
YQ
12102013-11-06 Yao Qi <yao@codesourcery.com>
1211
1212 * Makefile.in (check-perf): New target.
1213
12b27276
WN
12142013-11-05 Will Newton <will.newton@linaro.org>
1215
1216 PR gdb/7670
1217 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1218 (arm_print_float_info): Likewise.
1219
67c059c2
AB
12202013-11-04 Anton Blanchard <anton@samba.org>
1221
1222 * target.c (memory_xfer_partial): Cap write to 4KB.
1223
0569175e
TSD
12242013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1225
1226 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1227 probe scan even when the arch provides no get_longjmp_target.
1228
b18e90f5
PA
12292013-10-31 Pedro Alves <palves@redhat.com>
1230
1231 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1232 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1233 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1234 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1235 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1236 <bpstat handling>: If the bpstat chain wants the signal to be
1237 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1238 GDB_SIGNAL_TRAP.
1239
638aa5a1
AB
12402013-10-31 Andrew Burgess <aburgess@broadcom.com>
1241
1242 * breakpoint.c (update_watchpoint): Update error message and add
1243 an additional error message.
1244
0e5fae36
UW
12452013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1246
1247 * s390-tdep.h: Rename to...
1248 * s390-linux-tdep.h: ...here.
1249 * s390-tdep.c: Rename to...
1250 * s390-linux-tdep.c: ...here. Adjust #include.
1251 * s390-nat.c: Rename to...
1252 * s390-linux-nat.c: ...here. Adjust #include.
1253 * config/s390/s390.mh: Rename to...
1254 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1255 s390-linux-nat.o.
1256 * configure.host: Reflect host rename "s390" -> "linux".
1257 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1258 * Makefile.in (ALL_TARGET_OBS): Likewise.
1259 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1260 s390-linux-tdep.h.
1261 (ALLDEPFILES): Reflect rename of .c files.
1262
34201ae3
UW
12632013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1264
1265 * s390-nat.c: Whitespace cleanup.
1266 * s390-tdep.c: Likewise.
1267 * s390-tdep.h: Remove empty line at end of file.
1268
e17aaa33
MR
12692013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1270
1271 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1272 siginfo_size.
1273
aee17e42
TT
12742013-10-29 Tom Tromey <tromey@redhat.com>
1275
1276 * utils.c (reg): Move undefinition...
1277 * gdb_curses.h: ... here. Update comment to mention AIX.
1278
9ac69859
NB
12792013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1280
1281 * exec.h (add_target_sections_of_objfile): New declaration.
1282 * exec.c (add_target_sections_of_objfile): New function.
1283 * symfile.c (add_symbol_file_command): Update current target sections.
1284 (remove_symbol_file_command): New command.
1285 (symfile_free_objfile): New function.
1286 (_initialize_symfile): Register observer for free_objfile events.
1287 * NEWS: Add description of the remove-symbol-file command.
1288 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1289 * objfiles.c (free_objfile): Notify free_objfile.
1290 (is_addr_in_objfile): New function.
1291 * objfiles.h (is_addr_in_objfile): New declaration.
1292 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1293 events instead of solib_unloaded events.
1294 (_initialize_printcmd): Register observer for free_objfile instead
1295 of solib_unloaded notifications.
1296 * solib.c (remove_user_added_objfile): New function.
1297 (_initialize_symfile): Add remove-symbol-file.
1298
f69d9aef
AB
12992013-10-29 Andrew Burgess <aburgess@broadcom.com>
1300
1301 * infcmd.c (default_print_one_register_info): Use val_print to
1302 print all values even optimized out or unavailable ones. Don't
1303 try to print a raw form of optimized out or unavailable values.
1304
487ad57c
YQ
13052013-10-29 Yao Qi <yao@codesourcery.com>
1306
1307 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1308 parameter 'arg' instead of from program_space_data.
1309 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1310 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1311 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1312 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1313 * inflow.c (inflow_inferior_data_cleanup): Get data from
1314 parameter 'arg' instead of inferior_data.
1315 * registry.h: Add comments.
1316
3c4797ba
PA
13172013-10-28 Pedro Alves <palves@redhat.com>
1318
1319 * breakpoint.c (watchpoints_triggered)
1320 <!target_stopped_data_address>: Hardcode return 1.
1321
cdaa5b73
PA
13222013-10-28 Pedro Alves <palves@redhat.com>
1323
1324 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1325 level and reindent.
1326
94c57d6a
PA
13272013-10-28 Pedro Alves <palves@redhat.com>
1328
1329 * infrun.c (process_event_stop_test): New function, factored out
1330 from handle_inferior_event.
1331 (handle_inferior_event): 'process_event_stop_test' is now a
1332 function instead of a goto label -- adjust.
1333
fcf3daef
PA
13342013-10-28 Pedro Alves <palves@redhat.com>
1335
1336 * infrun.c (handle_inferior_event): Move process_event_stop_test
1337 goto label to the else branch of the ecs->random_signal check,
1338 along with FRAME and GDBARCH re-fetching.
1339
c447ac0b
PA
13402013-10-28 Pedro Alves <palves@redhat.com>
1341
1342 * infrun.c (switch_back_to_stepped_thread): New function, factored
1343 out from handle_inferior_event.
1344 (handle_inferior_event): Adjust to call
1345 switch_back_to_stepped_thread. Call it also at the tail of the
1346 random signal handling, and return, instead of also handling
1347 random signals just before the stepping tests.
1348
f05e4c11
PA
13492013-10-28 Pedro Alves <palves@redhat.com>
1350
1351 * infrun.c (clear_stop_func): Delete.
1352 (handle_inferior_event): Don't call clear_stop_func and don't
1353 clear 'ecs->random_signal'.
1354
ca20d462
YQ
13552013-10-27 Yao Qi <yao@codesourcery.com>
1356
1357 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1358 (varobj_create, varobj_get_path_expr): Update.
1359 (varobj_value_has_mutated, varobj_update): Likewise.
1360 (create_child_with_value, new_root_variable): Likewise.
1361 (number_of_children, name_of_variable): Likewise.
1362 (value_of_child, my_value_of_variable): Likewise.
1363 (varobj_value_is_changeable_p): Likewise.
1364
a53b64ea
YQ
13652013-10-25 Yao Qi <yao@codesourcery.com>
1366
1367 * language.h (struct lang_varobj_ops): Declare.
1368 (struct language_defn) <la_varobj_ops>: New field.
1369 * ada-lang.c: Include "varobj.h"
1370 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1371 ada_varobj_ops.
1372 * c-lang.c: Include "varobj.h"
1373 (c_language_defn): Initialize field 'la_varobj_ops' with
1374 c_varobj_ops.
1375 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1376 cplus_varobj_ops.
1377 (asm_language_defn): Initialize field 'la_varobj_ops' with
1378 default_varobj_ops.
1379 (minimal_language_defn): Likewise.
1380 * d-lang.c (d_language_defn): Likewise.
1381 * f-lang.c (f_language_defn): Likewise.
1382 * go-lang.c (go_language_defn): Likewise.
1383 * m2-lang.c (m2_language_defn): Likewise.
1384 * objc-lang.c (objc_language_defn): Likewise.
1385 * opencl-lang.c (opencl_language_defn): Likewise.
1386 * p-lang.c (pascal_language_defn): Likewise.
1387 * language.c (unknown_language_defn): Likewise.
1388 (auto_language_defn): Likewise.
1389 (local_language_defn): Likewise.
1390 * jv-lang.c (java_language_defn): Initialize field
1391 'la_varobj_ops' with java_varobj_ops.
1392 * varobj.c (varobj_create): Update.
1393 * varobj.h (default_varobj_ops): Define macro.
1394
686d4def
PA
13952013-10-25 Pedro Alves <palves@redhat.com>
1396
1397 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1398 static field value.
1399 (cp_print_static_field): If the value is entirely optimized out,
1400 print <optimized out> here.
1401 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1402 static field value.
1403 * p-valprint.c (pascal_object_print_static_field): If the value is
1404 entirely optimized out, print <optimized out> here.
1405 * valops.c (do_search_struct_field)
1406 (value_struct_elt_for_reference): No longer handle a NULL static
1407 field value.
1408 * value.c (value_static_field): Return an optimized out value
1409 instead of NULL.
1410
6c177e28
YQ
14112013-10-25 Yao Qi <yao@codesourcery.com>
1412
1413 * remote.c (remote_traceframe_info): Return early if
1414 traceframe is not selected.
1415
98322bfa
YQ
14162013-10-25 Yao Qi <yao@codesourcery.com>
1417
1418 * tracepoint.c (traceframe_fun): Remove.
1419 (traceframe_sal): Remove.
1420 (set_traceframe_context): Add local variables.
1421
6ba1f115
JB
14222013-10-25 Joel Brobecker <brobecker@adacore.com>
1423
1424 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1425 and parameter name.
1426
bbe769cc
MR
14272013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1428
1429 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1430 failure from register information collection.
1431
72ee4495 14322013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1433
1434 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1435 member.
1436 (linux_corefile_thread_callback): Update accordingly.
1437 (linux_make_corefile_notes): Likewise.
1438
98882a26
PA
14392013-10-24 Pedro Alves <palves@redhat.com>
1440
1441 * NEWS (New options): Mention set/show startup-with-shell.
1442 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1443 instead of 3.
1444 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1445 startup-with-shell'.
1446 (show_startup_with_shell): New function.
1447 (_initialize_fork_child): Register the set/show startup-with-shell
1448 commands.
1449 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1450 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1451 * procfs.c (procfs_init_inferior): Remove comment.
1452 * infcmd.c (startup_with_shell): New global.
1453 * inferior.h (startup_with_shell): Declare global.
1454 (STARTUP_WITH_SHELL): Delete.
1455 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1456
c9737c08
PA
14572013-10-23 Pedro Alves <palves@redhat.com>
1458
1459 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1460 * common/signals.c: Include "gdb_assert.h".
1461 (signals): New field 'symbol'.
1462 (SET): Use the 'symbol' parameter.
1463 (gdb_signal_to_symbol_string): New function.
1464 * infrun.c (handle_inferior_event) <random signal>: In debug
1465 output, print the random signal enum as string in addition to its
1466 number.
1467 * target/waitstatus.c (target_waitstatus_to_string): Print the
1468 signal's enum value as string instead of the (POSIX) signal name.
1469
f60db4f0
GB
14702013-10-23 Gary Benson <gbenson@redhat.com>
1471
1472 PR 16013
1473 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1474 from 32 to 18. Adjusted fscanf format string accordingly.
1475 (Avoids leaving cmd unterminated.)
1476 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1477 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1478 that local_address and remote_address will not overflow.
1479 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1480 leaving dependencies unterminated. Parse size as "%u" to match
1481 definition.
1482
6d3e7a94
PA
14832013-10-22 Pedro Alves <palves@redhat.com>
1484
1485 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1486 set ecs->random signal.
1487
42ec045f
PA
14882013-10-22 Pedro Alves <palves@redhat.com>
1489
1490 * infrun.c (keep_going): Update comments.
1491
14922013-10-22 Pedro Alves <palves@redhat.com>
1493
1494 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1495 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1496
14972013-10-22 Pedro Alves <palves@redhat.com>
1498
1499 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1500 GDB_EXC_BAD_ACCESS.
1501 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1502 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1503 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1504 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1505 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1506 (GDB_SIGNAL_LAST): Change description string.
1507 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1508 Adjust to signal renaming.
1509 * darwin-nat.c (darwin_decode_message): Likewise.
1510
c8fde1b1
JM
15112013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1512
1513 * MAINTAINERS (Write After Approval): Add myself to the list.
1514
e8369a73
AB
15152013-10-18 Andrew Burgess <aburgess@broadcom.com>
1516
1517 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1518 forced off, downgrade them to software watchpoints if possible,
1519 and error out if not possible.
1520 (watch_command_1): Move watchpoint type selection closer to
1521 watchpoint creation, and extend the comments.
1522
776f04fa
PA
15232013-10-18 Pedro Alves <palves@redhat.com>
1524
1525 PR gdb/16062
1526 * infrun.c (handle_inferior_event): Keep going if we got a random
1527 signal we should not stop for, instead of falling through to the
1528 step tests.
1529
0c6faab5
YQ
15302013-10-18 Yao Qi <yao@codesourcery.com>
1531
1532 * c-varobj.c (cplus_number_of_children): Fix indentation.
1533
50b34a18
TT
15342013-10-17 Tom Tromey <tromey@redhat.com>
1535
1536 PR gdb/15995:
1537 * printcmd.c (printcmd): Call gdb_flush.
1538
5c4c8a59
TT
15392013-10-17 Tom Tromey <tromey@redhat.com>
1540
1541 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1542 (elf_locate_sections): Update.
1543
c4124bf1
YQ
15442013-10-17 Yao Qi <yao@codesourcery.com>
1545
1546 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1547 * ada-varobj.c: Remove the include of ada-varobj.h.
1548 (ada_varobj_get_number_of_children): Declare.
1549 (ada_varobj_get_name_of_child): Make it static.
1550 (ada_varobj_get_path_expr_of_child): Likewise.
1551 (ada_varobj_get_value_of_child): Likewise.
1552 (ada_varobj_get_type_of_child): Likewise.
1553 (ada_varobj_get_value_of_array_variable): Likewise.
1554 * ada-varobj.h: Remove.
1555
99ad9427
YQ
15562013-10-17 Yao Qi <yao@codesourcery.com>
1557
1558 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1559 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1560 * ada-varobj.c: Include "varobj.h".
1561 (ada_number_of_children): New. Moved from varobj.c.
1562 (ada_name_of_variable, ada_name_of_child): Likewise.
1563 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1564 (ada_type_of_child, ada_value_of_variable): Likewise.
1565 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1566 (ada_varobj_ops): New.
1567 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1568 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1569 * gdbtypes.h (get_target_type): Declare.
1570 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1571 "ada-lang.h".
1572 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1573 (ANONYMOUS_UNION_NAME): Likewise.
1574 (get_type, get_value_type, get_target_type): Remove declarations.
1575 (value_get_print_value, varobj_value_get_print_value): Likewise.
1576 (c_number_of_children, c_name_of_variable): Likewise.
1577 (c_name_of_child, c_path_expr_of_child): Likewise.
1578 (c_value_of_child, c_type_of_child): Likewise.
1579 (c_value_of_variable, cplus_number_of_children): Likewise.
1580 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1581 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1582 (cplus_value_of_child, cplus_type_of_child): Likewise.
1583 (cplus_value_of_variable, java_number_of_children): Likewise.
1584 (java_name_of_variable, java_name_of_child): Likewise.
1585 (java_path_expr_of_child, java_value_of_child): Likewise.
1586 (java_type_of_child, java_value_of_variable): Likewise.
1587 (ada_number_of_children, ada_name_of_variable): Likewise.
1588 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1589 (ada_value_of_child, ada_type_of_child): Likewise.
1590 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1591 (ada_value_has_mutated): Likewise.
1592 (struct language_specific): Move it to varobj.h.
1593 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1594 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1595 Callers update.
1596 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1597 Make it extern.
1598 (is_anonymous_child): Move it to c-varobj.c and rename to
1599 varobj_is_anonymous_child. Caller update.
1600 (get_type): Move it to c-varobj.c.
1601 (get_value_type): Rename it varobj_get_value_type. Make it
1602 extern.
1603 (get_target_type): Move it gdbtypes.c.
1604 (varobj_formatted_print_options): New function.
1605 (value_get_print_value): Rename it to
1606 varobj_value_get_print_value and make it extern.
1607 (varobj_value_is_changeable_p): Make it extern.
1608 (adjust_value_for_child_access): Move it to c-varobj.c.
1609 (default_value_is_changeable_p): Rename it to
1610 varobj_default_value_is_changeable_p. Make it extern.
1611 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1612 (c_name_of_child, c_path_expr_of_child): Likewise.
1613 (c_value_of_child, c_type_of_child): Likewise.
1614 (c_value_of_variable, cplus_number_of_children): Likewise.
1615 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1616 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1617 (cplus_value_of_child, cplus_type_of_child): Likewise.
1618 (cplus_value_of_variable): Likewise.
1619 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1620 (java_name_of_child, java_path_expr_of_child): Likewise.
1621 (java_value_of_child, java_type_of_child): Likewise.
1622 (java_value_of_variable): Likewise.
1623 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1624 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1625 (ada_value_of_child, ada_type_of_child): Likewise.
1626 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1627 (ada_value_has_mutated): Likewise.
1628 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1629 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1630 (c_varobj_ops, cplus_varobj_ops): Declare.
1631 (java_varobj_ops, ada_varobj_ops): Declare.
1632 (varobj_default_value_is_changeable_p): Declare.
1633 (varobj_value_is_changeable_p): Declare.
1634 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1635 (varobj_get_path_expr_parent): Declare.
1636 (varobj_value_get_print_value): Declare.
1637 (varobj_formatted_print_options): Declare.
1638 (varobj_restrict_range): Declare.
1639
c8a62302
LM
16402013-10-17 Luis Machado <lgustavo@codesourcery.com>
1641
1642 * target/waitstatus.h (target_waitkind): Remove spurious
1643 character from the comments.
1644
eade6471
JB
16452013-10-17 Joel Brobecker <brobecker@adacore.com>
1646
1647 * gdbarch.sh (get_longjmp_target): Add method documentation.
1648 * gdbarch.h: Regenerate.
1649
5411b26c
TT
16502013-10-16 Tom Tromey <tromey@redhat.com>
1651
1652 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1653 label.
1654
87326c87
LM
16552013-10-16 Luis Machado <lgustavo@codesourcery.com>
1656
1657 * gcore.in: Call GDB using the full path to the gcore script.
1658 Error out if the GDB binary is not found.
1659
fd0a4d76
SDJ
16602013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1661
1662 PR gdb/16014
1663 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1664 sizeof.
1665
d92f7ee3
SDJ
16662013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1667
1668 PR gdb/16042
1669 * target.c (target_disable_btrace): Fix invalid return value for
1670 void function.
1671 (target_teardown_btrace): Likewise.
1672
bb5ce47a
YQ
16732013-10-14 Yao Qi <yao@codesourcery.com>
1674
1675 * varobj.c (struct varobj): Move most of the fields to
1676 varobj.h.
1677 (struct varobj_dynamic): New struct.
1678 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1679 (varobj_has_more): Likewise.
1680 (dynamic_varobj_has_child_method): Likewise.
1681 (update_dynamic_varobj_children): Likewise.
1682 (varobj_get_num_children): Likewise.
1683 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1684 (install_new_value_visualizer): Likewise.
1685 (install_new_value_visualizer, install_new_value): Likewise.
1686 (varobj_update, new_variable, free_variable): Likewise.
1687 (my_value_of_variable, value_get_print_value): Likewise.
1688 (install_visualizer): Change the type of parameter 'var' to
1689 'struct varobjd_dynamic *'. Callers update.
1690 * varobj.h (struct varobj): Moved from varobj.c.
1691 (struct varobj) <dynamic>: New field.
1692
0b76b0ce
SL
16932013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1694
1695 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1696 as the preferred name of r30.
1697 * nios2-linux-tdep.c (reg_offsets): Likewise.
1698 * features/nios2-cpu.xml: Likewise.
1699 * features/nios2-linux.c: Regenerated.
1700 * features/nios2.c: Regenerated.
1701 * regformats/nios2-linux.dat: Regenerated.
1702
4856b6bc
JK
17032013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1704
1705 Canonicalize directories for EXEC_FILENAME.
1706 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1707 exec_filename.
1708 * utils.c (gdb_realpath_keepfile): New function.
1709 * utils.h (gdb_realpath_keepfile): New declaration.
1710
9b557b58
DE
17112013-10-11 Doug Evans <dje@google.com>
1712
1713 * Makefile.in (GDBFLAGS): New variable.
1714 (run): New rule.
1715
ce13fade
JB
17162013-10-11 Joel Brobecker <brobecker@adacore.com>
1717
1718 * NEWS: Add entry documenting the new "-catch-assert" and
1719 "-catch-exception" GDB/MI commands.
1720
349774ef
JB
17212013-10-11 Joel Brobecker <brobecker@adacore.com>
1722
1723 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1724 "enabled".
1725 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1726 "enabled". Set B->ENABLE_STATE accordingly.
1727 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1728 ada-lang.c.
1729 (create_ada_exception_catchpoint): Add declaration.
1730 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1731 (create_ada_exception_catchpoint): Make non-static. Add new
1732 parameter "disabled". Use it in call to
1733 init_ada_exception_breakpoint.
1734 (catch_ada_exception_command): Add parameter "enabled" in call
1735 to create_ada_exception_catchpoint.
1736 (catch_assert_command): Likewise.
1737
1738 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1739 Add declarations.
1740 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1741 "catch-exception" commands.
1742 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1743 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1744
761269c8
JB
17452013-10-11 Joel Brobecker <brobecker@adacore.com>
1746
1747 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1748 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1749 of all its enumerates with "ada_". Update the rest of this
1750 file throughout.
1751
b4a5b78b
JB
17522013-10-11 Joel Brobecker <brobecker@adacore.com>
1753
1754 * ada-lang.c (ada_decode_exception_location): Delete.
1755 (create_ada_exception_catchpoint): Remove arguments "sal",
1756 "addr_string" and "ops". Add argument "ex_kind" instead.
1757 Adjust implementation accordingly, calling ada_exception_sal
1758 to get the entities it no longer gets passed as arguments.
1759 Document the function's arguments.
1760 (catch_ada_exception_command): Use catch_ada_exception_command_split
1761 instead of ada_decode_exception_location, and update call to
1762 create_ada_exception_catchpoint.
1763 (catch_ada_assert_command_split): Renames
1764 ada_decode_assert_location. Remove parameters "addr_string" and
1765 "ops", and now returns void. Adjust implementation accordingly.
1766 Update the function documentation.
1767 (catch_assert_command): Use catch_ada_assert_command_split
1768 instead of ada_decode_assert_location. Update call to
1769 create_ada_exception_catchpoint.
1770
7ad1d32c 17712013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1772
1773 * utils.h (perror_warning_with_name): Add declaration.
1774 * utils.c (perror_warning_with_name): New function.
1775 * cli/cli-cmds.c (source_script_with_search): Add call to
1776 perror_warning_with_name if from_tty is nul.
1777
7ad1d32c 17782013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1779
1780 * utils.c (perror_string): New function, extracted out of
1781 throw_perror_with_name.
1782 (throw_perror_with_name): Rework to use perror_string.
1783
bcc75809
YQ
17842013-10-11 Yao Qi <yao@codesourcery.com>
1785
1786 * remote.c (discard_pending_stop_replies_in_queue): Update
1787 declaration.
1788 (struct stop_reply) <rs>: New field.
1789 (remove_stop_reply_of_remote_state): New function.
1790 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1791 Callers update. Pass remove_stop_reply_of_remote_state to
1792 QUEUE_iterate.
1793 (remote_parse_stop_reply): Initialize field 'rs'.
1794
05feb193
WN
17952013-10-10 Will Newton <will.newton@linaro.org>
1796
1797 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1798 linux_init_abi.
1799
0d12017b
JB
18002013-10-10 Joel Brobecker <brobecker@adacore.com>
1801
1802 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1803 serial_baud_show_cmd.
1804 (_initialize_cli_cmds): Delete the code creating the
1805 "set/show remotebaud" commands.
1806 * serial.c (baud_rate): Move here from top.c.
1807 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1808 (_initialize_serial): Create "set/show serial baud" commands.
1809 Add "set/show remotebaud" command aliases.
1810 * top.c (baud_rate): Moved to serial.c.
1811 * NEWS: Document the new "set/show serial baud" commands,
1812 replacing "set/show remotebaud".
1813
578d3588
PA
18142013-10-09 Pedro Alves <palves@redhat.com>
1815
1816 * breakpoint.c (insert_bp_location): Use memory_error_message to
1817 build the memory error string.
1818 * c-lang.c: Include "gdbcore.h".
1819 (c_get_string): Use memory_error to throw error.
1820 (target_xfer_memory_error): Delete.
1821 (memory_error_message): New, factored out from
1822 target_xfer_memory_error.
1823 (memory_error): Change parameter type to target_xfer_error.
1824 Rewrite.
1825 (read_memory): Use memory_error instead of
1826 target_xfer_memory_error.
1827 * gdbcore.h: Include "target.h".
1828 (memory_error): Change parameter type to target_xfer_error.
1829 (memory_error_message): Declare function.
1830 * target.c (target_read_memory, target_read_stack)
1831 (target_write_memory, target_write_raw_memory): Return
1832 TARGET_XFER_E_IO on error. Adjust comments.
1833 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1834 instead of EIO.
1835 * target.h (target_read, target_insert_breakpoint)
1836 (target_remove_breakpoint): Adjust comments.
1837 * valprint.c (partial_memory_read): Rename parameter, and adjust
1838 comment.
1839 (val_print_string): Use memory_error_message to build the memory
1840 error string.
1841
c74e1ccf
JK
18422013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1843
1844 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1845 result variable. Rename variable fopen_e_ever_failed to
1846 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1847
915215be
PA
18482013-10-09 Pedro Alves <palves@redhat.com>
1849
1850 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1851 (monitor_write_memory_longlongs, monitor_write_memory_block):
1852 Constify 'myaddr' parameter.
1853 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1854 helper.
1855 (monitor_xfer_partial): New function.
1856 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1857 hook. Install a to_xfer_partial hook.
1858
acd13123
TT
18592013-10-09 Tom Tromey <tromey@redhat.com>
1860
1861 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1862 bfd_get_alt_debug_link_info.
1863
40135bb1
JK
18642013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1865
1866 New flag OBJF_NOT_FILENAME.
1867 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1868 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1869 allocate_objfile.
1870 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1871 symbol_file_add_from_bfd.
1872 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1873 allocate_objfile.
1874 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1875 NULL.
1876 * objfiles.h (OBJF_NOT_FILENAME): New.
1877
dc294be5
TT
18782013-10-08 Tom Tromey <tromey@redhat.com>
1879
1880 * Makefile.in (SFILES): Add build-id.c.
1881 (HFILES_NO_SRCDIR): Add build-id.h.
1882 * build-id.c: New file, largely from elfread.c. Modified
1883 most functions.
1884 * build-id.h: New file.
1885 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1886 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1887 Search for dwz file using build-id.
1888 * elfread.c (build_id_bfd_get, build_id_verify)
1889 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1890
db230ce3
JB
18912013-10-08 Joel Brobecker <brobecker@adacore.com>
1892
1893 * ada-lang.c (compare_names_with_case): Renamed from
1894 compare_names, adding a new parameter "casing" and its handling.
1895 New function documentation.
1896 (compare_names): New function, implemented using
1897 compare_names_with_case.
1898
6501c98a
JB
18992013-10-08 Joel Brobecker <brobecker@adacore.com>
1900
1901 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1902
84a1243b
TT
19032013-10-07 Tom Tromey <tromey@redhat.com>
1904
1905 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1906 demangled_names_hash.
1907 (free_objfile): Don't delete the demangled_names_hash.
1908 * objfiles.h (struct objfile_per_bfd_storage)
1909 <demangled_names_hash>: New field.
1910 (struct objfile) <demangled_names_hash>: Move to
1911 objfile_per_bfd_storage.
1912 * symfile.c (reread_symbols): Don't delete the
1913 demangled_names_hash.
1914 * symtab.c (create_demangled_names_hash): Update.
1915 (symbol_set_names): Update.
1916
1da77581
TT
19172013-10-07 Tom Tromey <tromey@redhat.com>
1918
1919 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1920 needs_relocations>: New fields.
1921 (gdb_bfd_requires_relocations): New function.
1922 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1923 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1924 the BFD needs relocations applied.
1925
46ecd527
PA
19262013-10-07 Pedro Alves <palves@redhat.com>
1927
1928 PR breakpoints/11568
1929 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1930 the thread list" instead of "gone".
1931
0c557179
SDJ
19322013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1933
1934 * NEWS: Mention new convenience variable $_exitsignal.
1935 * corelow.c (core_open): Reset exit convenience variables. Set
1936 $_exitsignal to the uncaught signal which generated the corefile.
1937 * infrun.c (handle_inferior_event): Reset exit convenience
1938 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1939 (clear_exit_convenience_vars): New function.
1940 * inferior.h (clear_exit_convenience_vars): New prototype.
1941
1cc47d81
YQ
19422013-10-06 Yao Qi <yao@codesourcery.com>
1943
1944 * varobj.h: Add comments to enum varobj_languages.
1945
73869dc2
DE
19462013-10-04 Doug Evans <dje@google.com>
1947
1948 Add support for DWP file format version 2.
1949 * NEWS: Mention support for DWP file format version 2.
1950 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1951 union of asection, containing_section. New fields virtual_offset
1952 and is_virtual. Change type of readin filed from int to char.
1953 (dwo_sections, dwo_file): Tweak comments.
1954 (dwp_v2_section_ids): New enum.
1955 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1956 str_offsets, types.
1957 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1958 All uses updated.
1959 (virtual_v2_dwo_sections): New struct.
1960 (dwp_hash_table): New fields version, nr_columns. Change type of
1961 section_pool field to a union.
1962 (dwp_file): New field version.
1963 (dwarf2_has_info): Check for virtual sections.
1964 (get_containing_section): New function.
1965 (get_section_bfd_owner, get_section_bfd_section): Call it.
1966 (dwarf2_locate_sections): Update.
1967 (dwarf2_section_empty_p): Update.
1968 (dwarf2_read_section): Handle virtual sections.
1969 (locate_dwz_sections): Update.
1970 (create_dwp_hash_table): Document and handle V2 format.
1971 (locate_v1_virtual_dwo_sections): Renamed from
1972 locate_virtual_dwo_sections and update. All callers updated.
1973 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1974 Delete arg htab. Rename arg section_index to unit_index.
1975 All callers updated.
1976 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1977 All uses updated.
1978 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1979 (lookup_dwo_unit_in_dwp): Add V2 support.
1980 (dwarf2_locate_dwo_sections): Update.
1981 (dwarf2_locate_common_dwp_sections): Renamed from
1982 dwarf2_locate_dwp_sections and update. All callers updated.
1983 (dwarf2_locate_v2_dwp_sections): New function.
1984 (open_and_init_dwp_file): Add V2 support.
1985 (read_str_index): New locals str_section, str_offsets_section.
1986
9a2c3737
PA
19872013-10-04 Pedro Alves <palves@redhat.com>
1988
1989 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1990 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1991 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1992 describing comments with references to ptid.h.
1993 * common/ptid.h: Remove intro description of constructors,
1994 accessors and predicates.
1995 (struct ptid): Reformat.
1996 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1997 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1998 describing comments.
1999
f5371440
JB
20002013-10-04 Joel Brobecker <brobecker@adacore.com>
2001
2002 * aix-thread.c (sync_threadlists): Add missing ')' in call
2003 to ptid_build.
2004
793e1c06
JB
20052013-10-04 Joel Brobecker <brobecker@adacore.com>
2006
2007 * procfs.c (procfs_init_inferior): Fix typo causing the build
2008 to fail.
2009
26f0edc1
JB
20102013-10-04 Joel Brobecker <brobecker@adacore.com>
2011
2012 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2013
5713b9b5
JB
20142013-10-04 Joel Brobecker <brobecker@adacore.com>
2015
2016 * mi/mi-main.c (run_one_inferior): Add function description.
2017 Make ARG a pointer to an integer whose value determines whether
2018 we should "run" or "start" the program.
2019 (mi_cmd_exec_run): Add handling of the "--start" option.
2020 Reject all other command-line options.
2021 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2022
f48ff2a7
YQ
20232013-10-04 Yao Qi <yao@codesourcery.com>
2024
2025 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2026 (struct notif_client) <pending_event>: Moved
2027 to struct remote_notif_state.
2028 <id>: New field.
2029 (struct remote_notif_state) <pending_event>: New field.
2030 (notif_event_xfree): Declare.
2031 * remote-notif.c (handle_notification): Adjust.
2032 (notif_event_xfree): New function.
2033 (do_notif_event_xfree): Call notif_event_xfree.
2034 (remote_notif_state_xfree): Call notif_event_xfree to free
2035 each element in field pending_event.
2036 * remote.c (discard_pending_stop_replies): Remove declaration.
2037 (discard_pending_stop_replies_in_queue): Declare.
2038 (remote_close): Call discard_pending_stop_replies_in_queue
2039 instead of discard_pending_stop_replies.
2040 (remote_start_remote): Adjust.
2041 (stop_reply_xfree): Call notif_event_xfree.
2042 (notif_client_stop): Adjust initialization.
2043 (remote_notif_remove_all): Rename it to ...
2044 (remove_stop_reply_for_inferior): ... this. Update comments.
2045 Don't check INF is NULL.
2046 (discard_pending_stop_replies): Return early if notif_state is
2047 NULL. Adjust. Don't check INF is NULL.
2048 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2049 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2050 (remote_wait_ns): Likewise.
2051
5965e028
YQ
20522013-10-04 Yao Qi <yao@codesourcery.com>
2053
2054 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2055 (notif_queue): Remove.
2056 (remote_notif_process): Add one parameter 'notif_queue'.
2057 Update comments. Callers update.
2058 (remote_async_get_pending_events_token): Remove.
2059 (remote_notif_register_async_event_handler): Remove.
2060 (remote_notif_unregister_async_event_handler): Remove.
2061 (handle_notification): Add parameter 'notif_queue'. Update
2062 comments. Callers update.
2063 (notif_xfree): Remove.
2064 (remote_notif_state_allocate): New function.
2065 (remote_notif_state_xfree): New function.
2066 (_initialize_notif): Remove code to allocate queue.
2067 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2068 (struct remote_notif_state): New.
2069 (handle_notification): Update declaration.
2070 (remote_notif_process): Likewise.
2071 (remote_notif_register_async_event_handler): Remove.
2072 (remote_notif_unregister_async_event_handler): Remove.
2073 (remote_notif_state_allocate): Declare.
2074 (remote_notif_state_xfree): Declare.
2075 * remote.c (struct remote_state) <notif_state>: New field.
2076 (remote_close): Don't call
2077 remote_notif_unregister_async_event_handler. Call
2078 remote_notif_state_xfree.
2079 (remote_open_1): Don't call
2080 remote_notif_register_async_event_handler. Call
2081 remote_notif_state_allocate.
2082
5e5ac9a5
YQ
20832013-10-04 Yao Qi <yao@codesourcery.com>
2084
2085 * varobj.c (create_child_with_value): Remove 'const' from the
2086 type of parameter 'name'.
2087 (varobj_add_child): Likewise.
2088 (install_dynamic_child): Remove 'const' from the type of
2089 parameter 'name'.
2090 (varobj_add_child): Likewise.
2091 (create_child_with_value): Likewise. Update comments. Don't
2092 duplicate 'name'.
2093 (update_dynamic_varobj_children): Duplicate 'name'
2094 and pass it to install_dynamic_child.
2095
06ab7b19
PM
20962013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2097
2098 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2099 conversion logic to occur after PyLong_Check. Comment on order
2100 change significance.
2101 * python/py-arch.c (archpy_disassemble): Comment on order of
2102 conversion for integers and longs.
2103
8ae377e8
PA
21042013-10-03 Pedro Alves <palves@redhat.com>
2105
2106 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2107 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2108 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2109 PTRACE_O_TRACEFORK is not supported.
2110 (linux_test_for_tracesysgood): New function.
2111 (linux_test_for_tracefork): New function, factored out from
2112 linux_check_ptrace_features, and also don't kill child_pid here.
2113
b1328b1b
TG
21142013-10-03 Tristan Gingold <gingold@adacore.com>
2115
2116 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2117 Remove verbose error reporting. Use detected state to
2118 thread_set_state call.
2119 (i386_darwin_dr_get): Fix return type. Remove verbose error
2120 report.
2121 Remove trailing spaces.
2122
901461f8
PA
21232013-10-02 Pedro Alves <palves@redhat.com>
2124
2125 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2126 val_print_optimized_out.
2127 * jv-valprint.c (java_print_value_fields): Likewise.
2128 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2129 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2130 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2131 new optimized out value.
2132 * findvar.c (address_from_register): Likewise.
2133 * frame.c (put_frame_register): Tweak error string to say the
2134 register was not saved, rather than optimized out.
2135 * infcmd.c (default_print_one_register_info): Adjust call to
2136 val_print_optimized_out. Use value_of_register instead of
2137 get_frame_register_value.
2138 * mi/mi-main.c (output_register): Use value_of_register instead of
2139 get_frame_register_value.
2140 * valprint.c (valprint_check_validity): Likewise.
2141 (val_print_optimized_out): New value parameter. If the value is
2142 lval_register, print <not saved> instead.
2143 (value_check_printable, val_print_scalar_formatted): Adjust calls
2144 to val_print_optimized_out.
2145 * valprint.h (val_print_optimized_out): New value parameter.
2146 * value.c (struct value) <optimized_out>: Extend comment.
2147 (error_value_optimized_out): New function.
2148 (require_not_optimized_out): Use it. Use a different string for
2149 lval_register values.
2150 * value.h (error_value_optimized_out): New declaration.
2151 * NEWS: Mention <not saved>.
2152
042a84d9
JB
21532013-10-02 Joel Brobecker <brobecker@adacore.com>
2154
2155 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2156 strcmp to compare two symtab filenames.
2157
6b9780fb
JB
21582013-10-02 Joel Brobecker <brobecker@adacore.com>
2159
2160 * symtab.c (search_symbols_equal): Delete.
2161 (sort_search_symbols_remove_dups): Replace call to
2162 search_symbols_equal by call to compare_search_syms,
2163 adjusting as necessary.
2164
751e7549
PM
21652013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2166
2167 PR python/15579
751e7549
PM
2168 * python/python.c: Document gdb.execute command in Python help.
2169
1efd7661
PM
21702013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2171
2172 * python/py-frame.c (frame_info_to_frame_object): Use
2173 gdbpy_convert_exception. Clean up Python object on failure.
2174
562fc849
PM
21752013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2176
2177 * python/lib/gdb/command/frame_filters.py
2178 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2179 (ShowFrameFilterPriority.invoke): Ditto.
2180
d7561cbb
KS
21812013-10-01 Keith Seitz <keiths@redhat.com>
2182
2183 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2184 (parse_linespec): Make 'argptr' const.
2185 Remove temporary cast of 'argptr' to const char **.
2186 (decode_line_full): Pass const pointer to parse_linespec.
2187 (decode_line_1): Likewise.
2188 (decode_objc): Make local variable 'new_argptr' const.
2189 (find_function_symbols): Remove temporary cast to char *
2190 to find_imps.
2191 * objc-lang.c (find_imps): Make argument 'method' const.
2192 Return const.
2193 * objc-lang.h (find_imps): Likewise.
2194
21952013-10-01 Keith Seitz <keiths@redhat.com>
2196
2197 * completer.c (skip_quoted_chars): Make all arguments const.
2198 Return const.
2199 (skip_quoted): Likewise.
2200 * completer.h (skip_quoted_chars): Likewise.
2201 (skip_quoted): Likewise.
2202 * defs.h (skip_quoted): Remove duplicate declaration.
2203 * jv-exp.y: Include completer.h.
2204 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2205 * p-exp.y: Include completer.h.
2206
22072013-10-01 Keith Seitz <keiths@redhat.com>
2208
2209 * c-exp.y (parse_number): Make first argument const.
2210 Make a copy of the input to manipulate.
2211 (c_parse_escape): Make first argument const.
2212 Make local variable 'tokptr' const.
2213 (parse_string_or_char): Make first two arguments const.
2214 (macro_original_text): Make const.
2215 (lex_one_token): Make local variable 'tokstart' const.
2216 Likewise for local variables named 'p'.
2217 Cast away const for struct stoken (temporary).
2218 * c-lang.h (c_parse_escpae): Make first argument const.
2219 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2220 const.
2221 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2222 var_string case.
2223 * f-exp.y (parse_number): Make first argument const.
2224 (match_string_literal): Make local variable 'tokstart'
2225 const.
2226 (yylex): Make local variable 'p' const.
2227 Cast away const for struct stoken (temporary).
2228 * go-exp.y (parse_number): Make first argument const.
2229 (parse_string_or_char): Likewise.
2230 Make local variable 'tokstart' const.
2231 (lex_one_token): Likewise for numerous locals called 'p'.
2232 Cast away const for struct stoken (temporary).
2233 * jv-exp.y (parse_number): Make first argument const.
2234 Make local variables 'tokstart' and 'tokptr' const.
2235 Cast away const for call to skip_quoted (temporary).
2236 (yylex): Make local variable 'p' const.
2237 Cast away const for struct stoken (temporary).
2238 * m2-exp.y (parse_number): Make local variable 'p' const.
2239 (yylex): Likewise for 'tokstart'.
2240 Cast away const for struct stoken (temporary).
2241 Make local variable 'p' const.
2242 * macroexp.c (get_character_constant): Pass a const string
2243 to c_parse_escape.
2244 (get_string_literal): Likewise.
2245 (macro_expand_next): Make first argument const.
2246 Cast away const for init_shared_buffer.
2247 * macroexp.h (macro_expand_next): Make first argument const.
2248 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2249 Pass a const string to c_parse_escape.
2250 Make local variables 'p' and 'namestart' const.
2251 * parse.c (lexptr): Make const.
2252 (prev_lexptr): Likewise.
2253 (find_template_name_end): Return const.
2254 Make argument const, too.
2255 (parse_exp_in_context): Make first argument const.
2256 Remove the entire const_hack.
2257 (parse_exp_in_context_1): Make first argument const.
2258 * parser-defs.h (find_template_name_end): Return const.
2259 Make argument const, too.
2260 (lexptr): Make const.
2261 (prev_lexptr): Likewise.
2262 * utils.c (parse_escape): Make second argument const.
2263 * utils.h (parse_escape): Likewise.
2264
22652013-10-01 Keith Seitz <keiths@redhat.com>
2266
2267 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2268 is now const.
2269 (block_lookup): Make 'raw_name' and 'name' const.
2270 * ada-lex.l (processString): Update for struct stoken.ptr.
2271 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2272 (operator_stoken): Likewise.
2273 (lex_one_token): Remove temporary cast to char * for
2274 'yylval.sval.ptr'.
2275 * f-exp.y (yylex): Likewise.
2276 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2277 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2278 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2279 'yylval.sval.ptr'.
2280 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2281 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2282 * linespec.c (struct ls_parser): Make 'stream' const.
2283 (find_parameter_list_end): Make argument 'input' and local
2284 variable 'p' const.
2285 (linespec_lexer_lex_string): Make local variables 'start' and
2286 'p' const.
2287 Use skip_spaces_const instead of skip_spaces.
2288 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2289 const.
2290 (parse_linespec): Temporarily cast 'argptr' to const for
2291 'parser->lexer.stream'.
2292 * m2-exp.y (yylex): Remove temporary cast to char * for
2293 'yylval.sval.ptr'.
2294 * objc-lang.c (add_msglist): Make local variable 'p' const.
2295 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2296 (exp : STRING): Make 'sp' const.
2297 (parse_number): Make argument 'p' const.
2298 * parser-defs.h (struct stoken): Make 'ptr' const.
2299
193a8eac
DE
23002013-10-01 Doug Evans <dje@google.com>
2301
2302 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2303
2213e2be
YQ
23042013-10-01 Yao Qi <yao@codesourcery.com>
2305
2306 * varobj.c (c_value_of_root): Remove declaration.
2307 (cplus_value_of_root, java_value_of_root): Likewise.
2308 (ada_value_of_root): Likewise.
2309 (struct language_specific) <value_of_root>: Remove.
2310 (languages): Update initialization.
2311 (check_scope): Move earlier.
2312 (c_value_of_root): Move earlier and rename to ...
2313 (value_of_root_1): ... this.
2314 (value_of_root): Caller update.
2315 (cplus_value_of_root, java_value_of_root): Remove.
2316 (ada_value_of_root): Remove.
2317
c573f273
YQ
23182013-10-01 Yao Qi <yao@codesourcery.com>
2319
2320 * varobj.c (varobj_format_string): Remove "unknown".
2321 (languages): Remove the first element.
2322 * varobj.h (enum varobj_languages): Remove vlang_c.
2323
56250258
YQ
23242013-10-01 Yao Qi <yao@codesourcery.com>
2325
2326 * varobj.c (struct language_specific) <language>: Remove.
2327 (languages): Update the initialization.
2328
29f9ebfa
YQ
23292013-10-01 Yao Qi <yao@codesourcery.com>
2330
2331 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2332 "solib-target.h". Include "windows-tdep.h".
2333 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2334 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2335 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2336 windows-tdep.o to gdb_target_obs.
2337
64870a42
YQ
23382013-10-01 Yao Qi <yao@codesourcery.com>
2339
2340 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2341 "solib-target.h".
2342 (amd64_windows_init_abi): Don't call set_solib_ops and
2343 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2344 windows_init_abi instead.
2345 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2346 "solib-target.h".
2347 (i386_cygwin_init_abi): Don't call set_solib_ops,
2348 set_gdbarch_has_dos_based_file_system and
2349 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2350 windows_init_abi instead.
2351 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2352 (windows_init_abi): New function.
2353 (windows_iterate_over_objfiles_in_search_order): Make it
2354 static.
2355 * windows-tdep.h (windows_init_abi): Declare.
2356 (windows_iterate_over_objfiles_in_search_order): Remove
2357 declaration.
2358
0aebdefa
JB
23592013-10-01 Jerome Guitton <guitton@adacore.com>
2360
2361 Checked in by Joel Brobecker <brobecker@adacore.com>
2362 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2363 incomplete dictionnary instead of None in case of missing
2364 environment variables.
2365 (elinos_init): in case of an incomplete environment, best
2366 effort to load system libraries instead of abort.
2367
1c8e84b0
JB
23682013-10-01 Joel Brobecker <brobecker@adacore.com>
2369
2370 * ada-lang.c (ada_has_this_exception_support): Ignore
2371 mst_solib_trampoline minimal symbols.
2372
61d82a0d
TG
23732013-09-30 Tristan Gingold <gingold@adacore.com>
2374
2375 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2376 hardware watchpoint.
2377 (i386_darwin_dr_set): Support 32 and 64 bit states.
2378 (i386_darwin_dr_get): Likewise.
2379 (i386_darwin_dr_set_control): Make static.
2380 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2381 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2382
dfd4cc63
LM
23832013-09-30 Luis Machado <lgustavo@codesourcery.com>
2384
2385 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2386 Replace TIDGET with ptid_get_lwp.
2387 Replace GET_LWP with ptid_get_lwp.
2388 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2389 Replace BUILD_THREAD with ptid_build.
2390 Replace BUILD_LWP with ptid_build.
2391 Replace PIDGET with ptid_get_pid.
2392 Replace TIDGET with ptid_get_lwp.
2393 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2394 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2395 Replace TIDGET with ptid_get_lwp.
2396 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2397 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2398 Replace TIDGET with ptid_get_lwp.
2399 Replace GET_LWP with ptid_get_lwp.
2400 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2401 * auxv.c: Likewise.
2402 * breakpoint.c: Likewise.
2403 * common/ptid.c (ptid_is_pid): Condense check for
2404 null_ptid and minus_one_ptid.
2405 (ptid_lwp_p): New function.
2406 (ptid_tid_p): New function.
2407 * common/ptid.h: Update comments for accessors.
2408 (ptid_lwp_p): New prototype.
2409 (ptid_tid_p): New prototype.
2410 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2411 * gcore.c: Replace PIDGET with ptid_get_pid.
2412 * gdbthread.h: Likewise.
2413 * gnu-nat.c: Likewise.
2414 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2415 Replace TIDGET with ptid_get_lwp.
2416 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2417 * hppanbsd-nat.c: Likewise.
2418 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2419 Replace TIDGET with ptid_get_lwp.
2420 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2421 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2422 * infcmd.c: Likewise.
2423 * inferior.h: Likewise.
2424 * inflow.c: Likewise.
2425 * infrun.c: Likewise.
2426 * linux-fork.c: Likewise.
2427 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2428 Replace GET_PID with ptid_get_pid.
2429 Replace is_lwp with ptid_lwp_p.
2430 Replace GET_LWP with ptid_get_lwp.
2431 Replace BUILD_LWP with ptid_build.
2432
5b4e221c
MF
24332013-09-28 Mike Frysinger <vapier@gentoo.org>
2434
2435 * common/linux-btrace.c: Move sys/syscall.h out of the
2436 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2437 Also check for SYS_perf_event_open before attempting to buid.
2438
57d63ce2
DE
24392013-09-27 Doug Evans <dje@google.com>
2440
19ac8c2e
DE
2441 * dwarf2read.c (dwarf2_section_info): Add comment.
2442 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2443 All uses updated.
2444 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2445 (dwarf2_read_section): Delete unused local "header". Add section
2446 name to error message.
2447 (create_dwo_in_dwp): Tweak comment.
2448 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2449
a32a8923
DE
2450 * dwarf2read.c (die_reader_specs): Tweak comment.
2451 (get_section_bfd_owner, get_section_bfd_section): New functions.
2452 (get_section_name, get_section_file_name): New functions.
2453 (get_section_id, get_section_flags): New functions.
2454 (*): Use new functions to access section fields.
2455
57d63ce2
DE
2456 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2457 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2458 arg "htab". All callers updated.
2459 (create_debug_types_hash_table): Remove redundant copy of
2460 abbrev_section.
2461 (create_dwo_in_dwp): Tweak comments.
2462 (read_str_index): Tweak comment. Record dwarf form name in static
2463 local.
2464
3736004f
PA
24652013-09-27 Pedro Alves <palves@redhat.com>
2466
2467 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2468 (remote_filename_p): Add comment.
2469 * remote.c (remote_filename_p): Adjust to use
2470 REMOTE_SYSROOT_PREFIX.
2471 * solib.c (solib_find): When deciding whether we need to add a
2472 directory separator, check whether the sysroot is "remote:"
2473 instead of checking whether the patch has a drive spec. Add
2474 comments.
2475
5b5596ff
PA
24762013-09-27 Pedro Alves <palves@redhat.com>
2477
2478 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2479 Delete fields.
2480 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2481 directly.
2482
b5eef7aa
JK
24832013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2484
2485 Fix set debug frame output.
2486 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2487 SENTINEL_FRAME entry lower to match enum frame_type order.
2488
5b856f36
PM
24892013-09-26 Pierre Muller <muller@sourceware.org>
2490
2491 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2492 AMD64_R15_REGNUM when a register index is expected.
2493 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2494 Substitute in array.
2495 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2496 (amd64_push_arguments): Substitute in integer_regnum array.
2497
ade7ed9e
DE
24982013-09-25 Doug Evans <dje@google.com>
2499
d3e81981
DE
2500 * objfiles.c (allocate_objfile): Move comment to better place.
2501
8fb8eb5c
DE
2502 New option "set debug symfile on".
2503 * NEWS: Mention "set debug symfile".
2504 * Makefile.in (SFILES): Add symfile-debug.c.
2505 (COMMON_OBS): Add symfile-debug.o.
2506 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2507 objfile's symbol functions.
2508 * objfiles.h (objfile_set_sym_fns): Declare.
2509 * symfile-debug.c: New file.
2510 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2511 objfile's symbol functions.
2512 (reread_symbols): Ditto.
2513
c256e171
DE
2514 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2515 All uses updated.
2516 (add_symtab_fns): Update prototype.
2517 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2518 (registered_sym_fns): ... this.
2519 (symtab_fns): Update.
2520 (add_symtab_fns): New arg "flavour". All callers updated.
2521 (find_sym_fns): Rewrite to use new sym_fns registry.
2522
f56ce883
DE
2523 * symfile.h (struct sym_fns): Add "objfile" argument to
2524 sym_read_linetable. All uses updated.
2525
20c681d1
DE
2526 * symtab.c (domain_name, search_domain_name): New functions.
2527 * symtab.h (domain_name, search_domain_name): Declare.
2528
ade7ed9e
DE
2529 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2530 map_matching_symbols so objfile is first. All uses updated.
2531 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2532 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2533
7d760051
UW
25342013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2535
2536 PR shlibs/8882
2537 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2538 link map entries.
2539
020f7036
DE
25402013-09-24 Doug Evans <dje@google.com>
2541
2542 * objfiles.c (free_objfile): Move comment.
2543
598402f0
JB
25442013-09-24 Joel Brobecker <brobecker@adacore.com>
2545
2546 * ada-exp.y (string_to_operator): Delete.
2547 (dummy_string_to_ada_operator): Delete.
2548
bf4d6c1c
JB
25492013-09-24 Joel Brobecker <brobecker@adacore.com>
2550
2551 Revert:
2552 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2553 amd64-tdep.c.
2554 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2555 call_dummy_integer_regs, and classify.
2556 * amd64-tdep.h (amd64_classify): Add declaration.
2557 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2558 (amd64_reg_class): Delete, moved to i386-tdep.h.
2559 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2560 Replace call to amd64_classify by call to tdep->classify.
2561 (amd64_push_arguments): Get the list of registers to use for
2562 passing integer parameters from the gdbarch tdep structure,
2563 rather than using a hardcoded one. Replace calls to amd64_classify
2564 by calls to tdep->classify.
2565 (amd64_push_dummy_call): Get the register number used for
2566 the "hidden" argument from tdep->call_dummy_integer_regs.
2567 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2568 and tdep->call_dummy_integer_regs. Set tdep->classify.
2569
849e9755
JB
25702013-09-24 Joel Brobecker <brobecker@adacore.com>
2571
2572 Revert:
2573 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2574 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2575 where tdep->memory_args_by_pointer is non-zero.
2576
c1459fd6
JB
25772013-09-24 Joel Brobecker <brobecker@adacore.com>
2578
2579 Revert:
2580 * i386-tdep.h (struct gdbarch_tdep): Add new field
2581 integer_param_regs_saved_in_caller_frame.
2582 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2583 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2584
20c2e3e0
JB
25852013-09-24 Joel Brobecker <brobecker@adacore.com>
2586
874440b8 2587 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2588 (amd64_windows_classify): Delete.
2589 (amd64_windows_passed_by_integer_register)
2590 (amd64_windows_passed_by_xmm_register)
2591 (amd64_windows_passed_by_pointer)
2592 (amd64_windows_adjust_args_passed_by_pointer)
2593 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2594 (amd64_windows_push_dummy_call): New functions.
2595 (amd64_windows_init_abi): Remove setting of
2596 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2597 tdep->classify, tdep->memory_args_by_pointer and
2598 tdep->integer_param_regs_saved_in_caller_frame.
2599 Add call to set_gdbarch_push_dummy_call.
2600
82bf32bc
JK
26012013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2602
2603 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2604 objfile->original_name.
2605
24ba069a
JK
26062013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2607
2608 Pass down original filename for objfile.
2609 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2610 * elfread.c (elf_symfile_read): Likewise.
2611 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2612 longer set ORIGINAL_NAME.
2613 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2614 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2615 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2616 symbol_file_add_from_bfd call.
2617 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2618 (macho_check_dsym): Add parameter filenamep. Change function comment.
2619 Set *filenamep.
2620 (macho_symfile_read): New variable dsym_filename. Update
2621 macho_check_dsym call. Use it for symbol_file_add_separate.
2622 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2623 it. Use it for objfile->original_name.
2624 (objfile_name): Return OBFD's filename, if available.
2625 * objfiles.h (allocate_objfile): Add new parameter name.
2626 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2627 * symfile-mem.c (symbol_file_add_from_memory): Update
2628 symbol_file_add_from_bfd call.
2629 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2630 comment for it.
2631 (symbol_file_add_with_addrs): New parameter name, add function comment
2632 for it. Remove variable name. Update allocate_objfile call.
2633 (symbol_file_add_separate): New parameter name, add function comment
2634 for it. Update symbol_file_add_with_addrs call.
2635 (symbol_file_add_from_bfd): New parameter name. Update
2636 symbol_file_add_with_addrs call.
2637 (symbol_file_add): Update symbol_file_add_from_bfd call.
2638 (reread_symbols): New variable original_name. Save
2639 objfile->original_name by it.
2640 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2641 second parameter.
2642
4262abfb
JK
26432013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2644
2645 Code cleanup: Add objfile_name accessor function.
2646 * ada-lang.c (is_known_support_routine): Use objfile_name.
2647 * auto-load.c (source_gdb_script_for_objfile)
2648 (auto_load_objfile_script): Likewise.
2649 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2650 * dbxread.c (dbx_symfile_read): Likewise.
2651 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2652 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2653 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2654 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2655 (lookup_dwp_signatured_type, lookup_dwo_unit)
2656 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2657 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2658 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2659 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2660 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2661 (read_subrange_type, load_partial_dies, read_partial_die)
2662 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2663 (die_containing_type, build_error_marker_type, lookup_die_type)
2664 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2665 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2666 (get_DW_AT_signature_type, write_psymtabs_to_index)
2667 (save_gdb_index_command): Likewise.
2668 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2669 Likewise.
2670 * expprint.c (dump_subexp_body_standard): Likewise.
2671 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2672 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2673 original_name.
2674 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2675 obj_name, use objfile_name for it, use the variable.
2676 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2677 Use objfile_name.
2678 * machoread.c (macho_symtab_read, macho_check_dsym)
2679 (macho_symfile_relocate): Likewise.
2680 * maint.c (maintenance_translate_address): Likewise.
2681 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2682 * minsyms.c (install_minimal_symbols): Likewise.
2683 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2684 original_name.
2685 (filter_overlapping_sections): Use objfile_name.
2686 (objfile_name): New function.
2687 * objfiles.h (struct objfile): Rename field name to original_name.
2688 (objfile_name): New prototype.
2689 * printcmd.c (sym_info, address_info): Use objfile_name.
2690 * probe.c (parse_probes, collect_probes, compare_probes)
2691 (info_probes_for_ops): Likewise.
2692 * progspace.c (clone_program_space): Likewise.
2693 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2694 (maintenance_info_psymtabs): Likewise.
2695 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2696 (source_section_scripts): Likewise.
2697 * python/py-objfile.c (objfpy_get_filename): Likewise.
2698 * python/py-progspace.c (pspy_get_filename): Likewise.
2699 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2700 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2701 * solib.c (solib_read_symbols): Likewise.
2702 * stabsread.c (scan_file_globals): Likewise.
2703 * stap-probe.c (handle_stap_probe): Likewise.
2704 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2705 (find_separate_debug_file_by_debuglink): Likewise.
2706 (reread_symbols): Likewise. Use the objfile field name renamed to
2707 original_name.
2708 (allocate_symtab): Use objfile_name.
2709 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2710 (dump_objfile, dump_msymbols, dump_symtab_1)
2711 (maintenance_print_msymbols, maintenance_print_objfiles)
2712 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2713 * target.c (target_translate_tls_address, target_info): Likewise.
2714 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2715 objfile_name.
2716
4721dc18
JK
27172013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2718
2719 Code cleanup.
2720 * probe.c (parse_probes): Rename variable objfile_name to
2721 objfile_namestr.
2722
a61d6db8
JK
27232013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2724
2725 Remove solib-sunos.c.
2726 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2727 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2728 * objfiles.c (rt_common_objfile): Remove.
2729 (free_objfile): Remove rt_common_objfile comparison.
2730 * objfiles.h (rt_common_objfile): Remove.
2731 * solib-sunos.c: Remove.
2732 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2733
2659903b
JK
27342013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2735
2736 Remove a.out NetBSD and OpenBSD hosts.
2737 * NEWS (Removed native configurations): New.
2738 * config/arm/nbsdaout.mh: Remove.
2739 * config/i386/nbsdaout.mh: Remove.
2740 * config/i386/obsdaout.mh: Remove.
2741 * config/m68k/nbsdaout.mh: Remove.
2742 * config/sparc/nbsdaout.mh: Remove.
2743 * config/vax/nbsdaout.mh: Remove.
2744 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2745 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2746 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2747 error.
2748 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2749 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2750 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2751
f60e2d5c
TT
27522013-09-23 Tom Tromey <tromey@redhat.com>
2753
2754 * linespec.c (struct minsym_and_objfile): Remove.
2755 (minsym_and_objfile_d): Remove.
2756 (struct linespec, struct collect_info, linespec_parse_basic)
2757 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2758 (compare_msymbols, find_method, find_function_symbols)
2759 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2760 (add_minsym, search_minsyms_for_name): Update.
2761
d3eaaf66
AB
27622013-09-23 Andrew Burgess <aburgess@broadcom.com>
2763
2764 * regcache.c: Add include of valprint.h.
2765 (dump_endian_bytes): Delete.
2766 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2767
2cc762b5
AB
27682013-09-23 Andrew Burgess <aburgess@broadcom.com>
2769
2770 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2771
96181529
PA
27722013-09-19 Pedro Alves <palves@redhat.com>
2773
2774 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2775 breakpoints.
2776
9b3f3ee6
TS
27772013-09-19 Pedro Alves <palves@redhat.com>
2778 Thomas Schwinge <thomas@codesourcery.com>
2779 Yue Lu <hacklu.newborn@gmail.com>
2780
2781 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2782 Take a gdb_byte pointer instead of a char pointer.
2783
2784 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2785 gnu_xfer_partial helper.
2786 (gnu_xfer_partial): New function.
2787 (gnu_target): Don't install a deprecated_xfer_memory hook.
2788 Install a to_xfer_partial hook.
2789
69150c3d
JK
27902013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2791
2792 Constification.
2793 * main.c (captured_main): Replace catch_command_errors by
2794 catch_command_errors_const. Twice.
2795 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2796 (symbol_file_add): Make name parameter const.
2797 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2798 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2799 variable name. Change their usage accordingly.
2800 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2801 const.
2802 (symbol_file_add_main): Make args parameter const.
2803
086850b2
UW
28042013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2805 Ulrich Weigand <uweigand@de.ibm.com>
2806
2807 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2808 of c_value member.
2809 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2810
ca08a94c 28112013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2812 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2813
2814 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2815 (gnu_create_inferior)
2816 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2817 (set_sig_thread_cmd): Use the lwpid field of ptids to
2818 store/extract thread ids instead of the tid field.
2819 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2820
e4c6a2c4
AB
28212013-09-18 Andrew Burgess <aburgess@broadcom.com>
2822
2823 * infcmd.c (default_print_one_register_info): Add detection of
2824 optimized out values.
2825 (default_print_registers_info): Switch to using
2826 get_frame_register_value.
2827
58c48e72
MM
28282013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2829
2830 * infrun.c (handle_inferior_event): Check if we know the
2831 function start address before setting a resume breakpoint.
2832
c8d37639
PA
28332013-09-18 Pedro Alves <palves@redhat.com>
2834
2835 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2836 minus_one_ptid instead of looking at the ptid's tid field and
2837 comparing that to -1.
2838
71926e28
AB
28392013-09-18 Andrew Burgess <aburgess@broadcom.com>
2840
2841 * main.h (get_gdb_program_name): Remove extra whitespace.
2842
c88a1531
AB
28432013-09-18 Andrew Burgess <aburgess@broadcom.com>
2844
2845 * main.h (get_gdb_program_name): Add declaration.
2846 * main.c (get_gdb_program_name): Add definition.
2847
4390d890
DE
28482013-09-17 Doug Evans <dje@google.com>
2849
2850 * dwarf2read.c: Move definitions of complaint functions to after
2851 forward declarations of local functions.
2852
49fa26b0
PA
28532013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2854 Pedro Alves <palves@redhat.com>
2855
2856 PR gdb/11568
2857 * breakpoint.c (remove_threaded_breakpoints): New function.
2858 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2859 as thread_exit observer.
2860
08d72866
PA
28612013-09-17 Pedro Alves <palves@redhat.com>
2862
2863 PR gdb/15911
2864 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2865 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2866 * corelow.c (core_open):
2867 * frame.h (print_stack_frame, print_frame_info): New
2868 'set_current_sal' parameter.
2869 * infcmd.c (finish_command, kill_command): Adjust call to
2870 print_stack_frame.
2871 * inferior.c (inferior_command): Likewise.
2872 * infrun.c (normal_stop): Likewise.
2873 * linux-fork.c (linux_fork_context): Likewise.
2874 * record-full.c (record_full_goto_entry, record_full_restore):
2875 Likewise.
2876 * remote-mips.c (common_open): Likewise.
2877 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2878 Use it.
2879 (print_frame_info): New 'set_current_sal' parameter. Set the last
2880 displayed sal depending on the new paremeter instead of looking at
2881 print_what.
2882 (backtrace_command_1, select_and_print_frame, frame_command)
2883 (current_frame_command, up_command, down_command): Adjust call to
2884 print_stack_frame.
2885 * thread.c (print_thread_info, restore_selected_frame)
2886 (do_captured_thread_select): Adjust call to print_stack_frame.
2887 * tracepoint.c (tfind_1): Likewise.
2888 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2889 (mi_cmd_stack_info_frame): Likewise.
2890 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2891 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2892
6bc305f5
SDJ
28932013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2894
2895 * value.c (isvoid_internal_fn): Replace "parameter" with
2896 "argument".
2897
0a7cfe2c
SS
28982013-09-16 Stan Shebs <stan@codesourcery.com>
2899
2900 * README: Update references to writing code for GDB.
2901 * configure.ac (build_warnings): Remove obsolete comment.
2902 * configure: Regenerate.
2903 * gdbarch.sh: Remove references to gdbint.texinfo.
2904 * gdbarch.h: Regenerate.
2905 * gdbtypes.c (objfile_type): Remove comments referencing internals
2906 manual and D10V.
2907
a280dbd1
SDJ
29082013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2909
2910 * NEWS: Mention new convenience function $_isvoid.
2911 * value.c (isvoid_internal_fn): New function.
2912 (_initialize_values): Add new convenience function $_isvoid.
2913
04a83fee
PM
29142013-09-16 Pierre Muller <muller@sourceware.org>
2915
2916 * arm-linux-tdep.c: Add "elf/common.h" header.
2917 Remove AT_HWCAP macro definintion as it is provided in
2918 added include file.
2919 * s390-tdep.c: Remove system header <elf.h>
2920 Add "elf/common.h" header for AT_HWCAP definition.
2921 (s390_core_read_description): Use correct CORE_ADDR
2922 for hwcap local variable used as third parameter
2923 of function target_auxv_search.
2924
88505fac
PM
29252013-09-14 Pierre Muller <muller@sourceware.org>
2926 Tom Tromey <tromey@redhat.com>
2927 Pedro Alves <palves@redhat.com>
2928
2929 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2930 mode if operating system doesn't know O_CLOEXEC.
2931
d3846e71
JK
29322013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2933
2934 Code cleanup.
2935 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2936 inner block.
2937
4ac33720
UW
29382013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2939
2940 * NEWS: Mention TDB support.
2941 * features/s390-tdb.xml: New file.
2942 * features/s390-te-linux64.xml: New file.
2943 * features/s390x-te-linux64.xml: New file.
2944 * features/Makefile (WHICH): Add new tdescs above.
2945 (s390-te-linux64-expedite): Set.
2946 (s390x-te-linux64-expedite): Set.
2947 * features/s390-te-linux64.c: New file (generated).
2948 * features/s390x-te-linux64.c: New file (generated).
2949 * regformats/s390-te-linux64.dat: New file (generated).
2950 * regformats/s390x-te-linux64.dat: New file (generated).
2951 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2952 (HWCAP_S390_TE): Likewise.
2953 (S390_TDB_DWORD0_REGNUM): Likewise.
2954 (S390_TDB_DWORD0_REGNUM): Likewise.
2955 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2956 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2957 (S390_TDB_ATIA_REGNUM): Likewise.
2958 (S390_TDB_R0_REGNUM): Likewise.
2959 (S390_TDB_R1_REGNUM): Likewise.
2960 (S390_TDB_R2_REGNUM): Likewise.
2961 (S390_TDB_R3_REGNUM): Likewise.
2962 (S390_TDB_R4_REGNUM): Likewise.
2963 (S390_TDB_R5_REGNUM): Likewise.
2964 (S390_TDB_R6_REGNUM): Likewise.
2965 (S390_TDB_R7_REGNUM): Likewise.
2966 (S390_TDB_R8_REGNUM): Likewise.
2967 (S390_TDB_R9_REGNUM): Likewise.
2968 (S390_TDB_R10_REGNUM): Likewise.
2969 (S390_TDB_R11_REGNUM): Likewise.
2970 (S390_TDB_R12_REGNUM): Likewise.
2971 (S390_TDB_R13_REGNUM): Likewise.
2972 (S390_TDB_R14_REGNUM): Likewise.
2973 (S390_TDB_R15_REGNUM): Likewise.
2974 (S390_NUM_REGS): Increase.
2975 (S390_IS_TDBREGSET_REGNUM): New macro.
2976 (s390_regmap_tdb): Declare.
2977 (s390_sizeof_tdbregset): Define.
2978 (tdesc_s390_te_linux64): Declare.
2979 (tdesc_s390x_te_linux64): Likewise.
2980 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2981 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2982 (s390_regmap_tdb): New regmap.
2983 (s390_supply_tdb_regset): New function.
2984 (s390_tdb_regset): New regset.
2985 (s390_linux64v2_regset_sections): Add TDB regset to list.
2986 (s390x_linux64v2_regset_sections): Likewise.
2987 (s390_regset_from_core_section): Recognize TDB core note section.
2988 (s390_core_read_description): If HWCAP indicates TE support,
2989 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2990 (s390_gdbarch_init): Handle TDB regset.
2991 (_initialize_s390_tdep): Initialize new tdescs.
2992 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2993 (have_regset_tdb): New variable.
2994 (s390_native_supply): Support register invalidation.
2995 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2996 (check_regset): Treat ENODATA as "regset exists".
2997 (s390_linux_fetch_inferior_registers): Add TDB.
2998 (s390_read_description): Check for TDB existence and select
2999 appropriate tdesc.
3000 * gdbserver/Makefile.in (clean): Add removal of new makefile
3001 targets.
3002 (s390-te-linux64.c): New makefile target.
3003 (s390x-te-linux64.c): Likewise.
3004 * gdbserver/configure.srv (srv_regobj): Append new objects
3005 s390-te-linux64.o and s390x-te-linux64.o.
3006 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3007 s390x-te-linux64.xml, and s390-tdb.xml.
3008 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3009 declaration.
3010 (tdesc_s390_te_linux64): Likewise.
3011 (init_registers_s390x_te_linux64): Likewise.
3012 (tdesc_s390x_te_linux64): Likewise.
3013 (s390_check_regset): Treat ENODATA as "regset exists".
3014 (s390_arch_setup): Add TDB regset support.
3015 (initialize_low_arch): Initialize registers for new tdescs.
3016
2ccd1468
UW
30172013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3018
3019 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3020 (S390_IS_FPREGSET_REGNUM): New macro.
3021 * s390-tdep.c (s390_dwarf_regmap): Make const.
3022 (regnum_is_gpr_full): New function for replacing repeated code.
3023 (s390_pseudo_register_name): Use it.
3024 (s390_pseudo_register_type): Likewise.
3025 (s390_pseudo_register_read): Likewise.
3026 (s390_pseudo_register_write): Likewise.
3027 (s390_unwind_pseudo_register): Likewise.
3028 (s390_regmap_gregset): New format for regmap.
3029 (s390x_regmap_gregset): Likewise.
3030 (s390_regmap_fpregset): Likewise.
3031 (s390_regmap_upper): Likewise.
3032 (s390_regmap_last_break): Likewise.
3033 (s390_regmap_system_call): Likewise.
3034 (s390_supply_regset): Adjust to new regmap format.
3035 (s390_collect_regset): Likewise.
3036 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3037 (s390_native_collect): Likewise.
3038 (supply_gregset): Likewise.
3039 (fill_gregset): Likewise.
3040 (supply_fpregset): Likewise.
3041 (fill_fpregset): Likewise.
3042 (fetch_regset): Likewise.
3043 (store_regset): Likewise.
3044 (s390_linux_fetch_inferior_registers): Likewise.
3045 (s390_linux_fetch_inferior_registers): Likewise.
3046
1aa4cd77
AP
30472013-09-12 Andrew Pinski <apinski@cavium.com>
3048
3049 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3050
d91fab15
UW
30512013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3052
3053 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3054
5a5d8ead
AB
30552013-09-09 Andrew Burgess <aburgess@broadcom.com>
3056
3057 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3058
1385f66c
PA
30592013-09-06 Pedro Alves <palves@redhat.com>
3060
3061 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3062 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3063 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3064 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3065 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3066 gdb_stdlog.
3067
146ec4db
PA
30682013-09-06 Pedro Alves <palves@redhat.com>
3069
3070 * remote-sim.c (dump_mem): Constify buf parameter.
3071 gdbsim_xfer_inferior_memory): Rename to ...
3072 (gdbsim_xfer_memory): ... this. Adjust interface as
3073 target_xfer_partial helper.
3074 (gdbsim_xfer_partial): New function.
3075 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3076 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3077
fcde0081
PA
30782013-09-06 Pedro Alves <palves@redhat.com>
3079
3080 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3081 host_address_to_string, and send debug output to gdb_stdlog.
3082
749c8b38
RW
30832013-09-06 Ricard Wanderlof <ricardw@axis.com>
3084
3085 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3086 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3087 gdb_target_obs for cris target.
3088 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3089 (cris_gdbarch_init): Move calls to
3090 set_gdbarch_fetch_tls_load_module_address and
3091 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3092 Add call to gdbarch_init_osabi.
3093 * cris-linux-tdep.c: New file.
3094 * cris-tdep.h: New file.
3095
43df09d9
AB
30962013-09-06 Andrew Burgess <aburgess@broadcom.com>
3097
3098 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3099 to deprecated_init_ui_hook.
3100
4d09c5b4
AB
31012013-09-06 Andrew Burgess <aburgess@broadcom.com>
3102
3103 * cli/cli-interp.c (_initialize_cli_interp): Add a
3104 command_loop_proc to interp_procs.
3105 * event-top.c (cli_command_loop): Change signature to match
3106 interp_command_loop_ftype.
3107 * event-top.h (cli_command_loop): Same.
3108 * interps.c (interp_new): Require every interpreter to have a
3109 command_loop_proc.
3110 (current_interp_command_loop): Just call the command_loop_proc on
3111 the current interpreter.
3112 * tui/tui-interp.c (_initialize_tui_interp): Add a
3113 command_loop_proc to interp_procs.
3114
8eb3d7b6
RW
31152013-09-06 Ricard Wanderlof <ricardw@axis.com>
3116
3117 * cris-tdep.c (cris_gdbarch_init): Add call to
3118 get_gdbarch_fetch_tls_load_module_address.
3119
18b3c2f5
RW
31202013-09-06 Ricard Wanderlof <ricardw@axis.com>
3121
3122 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3123 (cris_elf_gregset_t): Rename from elf_gregset_t.
3124 (crisv32_elf_gregset_t): Adjust.
3125 (cris_supply_gregset, fetch_core_registers): Adjust.
3126
dc8636ef
RW
31272013-09-06 Ricard Wanderlof <ricardw@axis.com>
3128
3129 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3130
257e6d53
AB
31312013-09-05 Andrew Burgess <aburgess@broadcom.com>
3132
1581d8a7 3133 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3134 references in comments.
1581d8a7 3135 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3136 deprecated_command_loop_hook.
3137 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3138 setup.
1581d8a7 3139 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3140
7c33b57c
PA
31412013-09-05 Pedro Alves <palves@redhat.com>
3142
3143 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3144 local is now int instead of ULONGEST. Print it with %d
3145 instead of paddress.
3146
9f8edbd5
TG
31472013-09-05 Tristan Gingold <gingold@adacore.com>
3148
3149 * MAINTAINERS: Remove avr maintainership.
3150
d5b495b4
PA
31512013-09-05 Pedro Alves <palves@redhat.com>
3152
3153 * findvar.c (value_of_register): Rework in terms of
3154 value_of_register_lazy.
3155
40b91786
MB
31562013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3157
3158 * symfile.c (add_symbol_file_command): Remove trailing
3159 whitespaces and blank line after comment.
3160
6eed1678
PA
31612013-09-05 Pedro Alves <palves@redhat.com>
3162
3163 * tui/tui-regs.c (tui_register_format): Don't look at the
3164 register's name here. Return string representing register
3165 value instead of storing it in the data element.
3166 (tui_get_register): Compare register string representations
3167 instead of register value states and contents.
3168
8eb6bda2
PA
31692013-09-05 Pedro Alves <palves@redhat.com>
3170
3171 PR tui/15933
3172 * tui/tui-regs.c (tui_show_registers): Show registers of the
3173 selected frame, not the current frame.
3174
48b1f08c
RW
31752013-09-05 Ricard Wanderlof <ricardw@axis.com>
3176
3177 * MAINTAINERS (Write After Approval): Add myself to the list.
3178
89e63ee4
DE
31792013-09-04 Doug Evans <dje@google.com>
3180
3181 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3182 (queue_and_load_dwo_tu): New function.
3183 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3184 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3185 Make dependent_cu optional.
3186 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3187 and an older .gdb_index is in use, queue and load all its TUs too.
3188
492c0ab7
JK
31892013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3190
3191 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3192 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3193 variable search_flags.
3194 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3195 (OPF_RETURN_REALPATH): ... here.
3196 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3197 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3198 call. Twice.
3199 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3200 openp call.
3201 * solib.c (solib_find): Likewise. Four times.
3202 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3203 in the function comment and for the realpath_fptr variable.
3204 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3205 (find_and_open_source): Likewise. Twice.
3206 * symfile.c (symfile_bfd_open): Likewise, also twice.
3207
23a44de8
DE
32082013-09-04 Doug Evans <dje@google.com>
3209
3210 * progspace.c (save_current_space_and_thread): Remove unnecessary
3211 call to save_current_inferior.
3212
47061676
AB
32132013-09-04 Andrew Burgess <aburgess@broadcom.com>
3214
3215 * sh64-tdep.c (sh64_do_register): Return after printing message
3216 about unavailable register contents.
3217
41dc8db8
MB
32182013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3219 Pedro Alves <palves@redhat.com>
3220
3221 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3222 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3223 options and collapse into single conditional branch.
41dc8db8 3224
07107ca6
LM
32252013-09-03 Luis Machado <lgustavo@codesourcery.com>
3226
a7ea61cf 3227 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3228 detach_fork.
3229 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3230 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3231 * inferior.h (detach_fork): Remove.
3232 * infrun.c (detach_fork): Adjust comment and make it
3233 static.
3234 (follow_fork): Pass detach_fork parameter to
3235 target_follow_fork.
3236 * linux-nat.c (linux_child_follow_fork): New parameter
3237 detach_fork.
3238 * target.c (target_follow_fork): New parameter detach_fork.
3239 Pass detach_fork as parameter and print its value.
3240 * target.h (struct target_ops) <to_follow_fork>: New int
3241 parameter.
3242 (target_follow_fork): New parameter detach_fork.
3243
3bec2768
JB
32442013-09-03 Joel Brobecker <brobecker@adacore.com>
3245
3246 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3247 Replace sec->bfd by sec->the_bfd_section->owner.
3248
c01cbb3d
YQ
32492013-09-03 Yao Qi <yao@codesourcery.com>
3250
3251 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3252 from linux_has_shared_address_space.
3253 (linux_has_shared_address_space): Call linux_is_uclinux.
3254 * linux-tdep.h (linux_is_uclinux): Declare.
3255 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3256 linux_is_uclinux.
3257
7b00db47
YQ
32582013-09-03 Yao Qi <yao@codesourcery.com>
3259
3260 * config/djgpp/fnchange.lst: Remove entry of
3261 i386-interix-nat.c and i386-interix-tdep.c.
3262 * configure.ac: Remove '*-*-interix*'.
3263 * configure: Re-generated.
3264 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3265 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3266 obsolete comments.
3267 * osabi.c (gdb_osabi_names): Remove "Interix".
3268
0f9741f2
YQ
32692013-09-03 Yao Qi <yao@codesourcery.com>
3270
3271 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3272
1e038f67
MM
32732013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3274
3275 * record.h (record_print_flag) <record_print_src_line,
3276 record_print_insn_range>: Rename into ...
3277 (record_print_flag) <record_print_src_line,
3278 record_print_insn_range>: ... this. Update all users.
3279
9e52adf9
PM
32802013-09-02 Pierre Muller <muller@sourceware.org>
3281
3282 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3283 error code.
3284
a2388568
PM
32852013-09-02 Pierre Muller <muller@sourceware.org>
3286
3287 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3288 by use of plongest function.
3289
9058cc3a
TG
32902013-09-02 Tristan Gingold <gingold@adacore.com>
3291
3292 * NEWS: Add entry mentioning support for native Windows x64
3293 SEH data.
3294
3295 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3296 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3297 (struct amd64_windows_frame_cache): New struct.
3298 (amd64_windows_w2gdb_regnum): New global.
3299 (pc_in_range, amd64_windows_frame_decode_epilogue)
3300 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3301 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3302 (amd64_windows_frame_this_id): New functions.
3303 (amd64_windows_frame_unwind): New static global.
3304 (amd64_windows_skip_prologue): New function.
3305 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3306 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3307 with amd64_windows_skip_prologue.
3308
3161820b 33092013-08-30 Joel Brobecker <brobecker@adacore.com>
3310
3311 GDB 7.6.1 released.
3312
02457c76
PA
33132013-08-30 Pedro Alves <palves@redhat.com>
3314
3315 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3316 SRC_AND_LOC.
3317
e0162910
PA
33182013-08-30 Pedro Alves <palves@redhat.com>
3319
3320 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3321 warning text.
3322
6391ce51
PA
33232013-08-30 Pedro Alves <palves@redhat.com>
3324
3325 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3326 Adjust arguments to print_stack_frame.
3327
d1da0587
PA
33282013-08-30 Pedro Alves <palves@redhat.com>
3329
3330 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3331
adfd8245
PA
33322013-08-30 Pedro Alves <palves@redhat.com>
3333
3334 * frame.h (show_and_print_stack_frame): Delete declaration.
3335
96d9056e
PM
33362013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3337
3338 PR python/15461
96d9056e
PM
3339 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3340 (archpy_name): Check for valid architecture.
3341 (archpy_disassemble): Ditto.
3342
11cb8762
JB
33432013-08-29 Joel Brobecker <brobecker@adacore.com>
3344
3345 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3346 instead of "long long" in call to ptrace64.
3347
1af12a7d
AB
33482013-08-29 Andrew Burgess <aburgess@broadcom.com>
3349
3350 * mi/mi-interp.c (mi_command_loop): Change signature to match
3351 interp_command_loop_ftype.
3352 (mi1_command_loop): Remove.
3353 (mi2_command_loop): Remove.
3354 (mi3_command_loop): Remove.
3355 (mi_interpreter_resume): Remove setting of
3356 deprecated_command_loop_hook.
3357 (_initialize_mi_interp): Set mi_command_loop as the command loop
3358 callback.
3359
acc900c2
SA
33602013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3361
3362 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3363 value_type.
3364
548b762d
SA
33652013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3366
3367 * value.c (allocate_value_contents): Make static.
3368 * value.h (allocate_value_contents): Remove prototype.
3369
08039c9e
SA
33702013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3371
3372 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3373 of assembling value via allocate_value_lazy and attribute setter.
3374 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3375 assembling value via allocate_value_lazy and attribute setter.
3376 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3377 assembling value via allocate_value_lazy and attribute setter.
3378
314c7de9
SA
33792013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3380
3381 * value.c (value_from_contents_and_address): Replace allocate_value and
3382 memcpy with value_from_contents.
3383
8f28f522
PM
33842013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3385
3386 * python/py-framefilter.c (py_print_frame): Remove usage of
3387 PyString_AsString. Use python_string_to_host_string instead.
3388 Refactor function to work with a string as a new allocation
3389 instead of a pointer.
3390 (py_print_frame): Ditto.
3391 * python/lib/gdb/frames.py (return_list): Cain iterators together
3392 instead of adding them as a list.
3393 (_sort_list): Call return_list, and remove duplicate code.
3394 (execute_frame_filters): Convert iterator to a list with list().
3395 * python/lib/gdb/command/frame_filters.py
3396 (SetFrameFilterPriority._set_filter_priority): Convert priority
3397 attribute to an integer.
3398 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3399 wrapper function __next__.
3400 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3401 define as "str".
3402
8ee002df
PM
34032013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3404
3405 PR python/15752
8ee002df
PM
3406 * python/py-framefilter.c (apply_frame_filter): Check
3407 gdb_python_initialized. Exit if the Python frame-filter code
3408 cannot be initialized.
3409
af4c453a
PM
34102013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3411
3412 PR cli/15842
af4c453a
PM
3413 * top.c (print_gdb_version): Remove erroneous newline after help
3414 text.
3415
bf8793bb
YQ
34162013-08-29 Yao Qi <yao@codesourcery.com>
3417
3418 * varobj.c (install_dynamic_child): Remove trailing space.
3419 Add one blank line after variable declaration.
3420
1f0c4988
JK
34212013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3422
3423 PR gdb/15415
3424 * corefile.c (get_exec_file): Use exec_filename.
3425 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3426 * exec.c (exec_close): Free EXEC_FILENAME.
3427 (exec_file_attach): New variable canonical_pathname. Use
3428 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3429 EXEC_FILENAME.
3430 * exec.h (exec_filename): New.
3431 * inferior.c (print_inferior, inferior_command): Use
3432 PSPACE_EXEC_FILENAME.
3433 * mi/mi-main.c (print_one_inferior): Likewise.
3434 * progspace.c (clone_program_space, print_program_space): Likewise.
3435 * progspace.h (struct program_space): New field pspace_exec_filename.
3436 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3437 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3438
59ee9f94
WN
34392013-08-28 Will Newton <will.newton@linaro.org>
3440
3441 * common/linux-ptrace.c: Include stdint.h unconditionally.
3442
c8a2a419
JK
34432013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3444
3445 Code cleanup.
3446 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3447
ffa4ac95
YQ
34482013-08-28 Yao Qi <yao@codesourcery.com>
3449 Pedro Alves <palves@redhat.com>
3450
3451 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3452 instead of stdio_fileopen.
3453 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3454 .Call stderr_fileopen instead of stdio_fileopen.
3455 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3456 [__MINGW32__] (stderr_file_fputs): New function.
3457 (stderr_fileopen): New function.
3458 * ui-file.h (stderr_fileopen): Declare.
3459
69d751e3
DE
34602013-08-27 Doug Evans <dje@google.com>
3461
3462 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3463 (struct dwarf2_per_cu_data): Ditto.
3464 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3465 (process_imported_unit_die): Ditto.
3466 (follow_die_sig_1): Simplify assert.
3467
44f38867
PA
34682013-08-27 Pedro Alves <palves@redhat.com>
3469
3470 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3471 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3472 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3473 windows_xfer_memory directly.
3474 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3475
d28d46b5
PA
34762013-08-27 Pedro Alves <palves@redhat.com>
3477
3478 * darwin-nat.c (darwin_xfer_memory): Delete.
3479 (_initialize_darwin_inferior): Don't install a
3480 deprecated_xfer_memory method.
3481
6211c335
YQ
34822013-08-27 Pedro Alves <pedro@codesourcery.com>
3483 Yao Qi <yao@codesourcery.com>
3484
3485 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3486 (parse_no_frames_option): Remove.
3487 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3488 (mi_cmd_stack_list_args): Adjust.
3489 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3490 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3491 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3492 Caller update.
3493 (list_args_or_locals): New parameter 'skip_unavailable'.
3494 Handle it.
3495 * valprint.c (scalar_type_p): Rename to ...
3496 (val_print_scalar_type_p): ... this. Make extern.
3497 (val_print, value_check_printable): Adjust.
3498 * valprint.h (val_print_scalar_type_p): Declare.
3499 * value.c (value_entirely_unavailable): New function.
3500 * value.h (value_entirely_unavailable): Declare.
3501
3502 * NEWS: Mention the new option "--skip-unavailable" to MI
3503 commands '-stack-list-locals', '-stack-list-arguments' and
3504 '-stack-list-variables'.
3505
242f1fd7
YQ
35062013-08-27 Yao Qi <yao@codesourcery.com>
3507
3508 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3509 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3510 options.
3511 * mi/mi-getopt.c (mi_getopt): Remove.
3512 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3513 'error_on_unknown'.
3514 (mi_getopt): Call mi_getopt_1.
3515 (mi_getopt_silent): New.
3516 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3517
260b681b
DE
35182013-08-26 Doug Evans <dje@google.com>
3519
779bd270
DE
3520 PR symtab/15885
3521 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3522 .gdb_index is in use.
3523 * symfile.c (reread_symbols): Reset objfile->sf.
3524
52e260a3
DE
3525 * NEWS: Document "mt print objfiles" now takes optional regexp.
3526 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3527 regexp of objfiles to print.
3528 (_initialize_symmisc): Update doc string for "mt print objfiles".
3529
260b681b
DE
3530 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3531 missing debug info checks.
3532
a85c52f2
UW
35332013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3534 Ulrich Weigand <uweigand@de.ibm.com>
3535
3536 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3537 line tables generated by XLC compiled binaries.
3538
4f00dda3
DE
35392013-08-23 Doug Evans <dje@google.com>
3540
db68bbae
DE
3541 * symmisc.c (dump_symtab): Delete prototype.
3542 (dump_msymbols, dump_objfile): Ditto.
3543 (maintenance_info_symtabs): Mark as dont_repeat.
3544 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3545
4f00dda3
DE
3546 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3547 debugging printf to better location.
3548
23d577b0
PA
35492013-08-23 Pedro Alves <palves@redhat.com>
3550
3551 * target.c (target_read_live_memory): Change type of 'ret' local
3552 to LONGEST.
3553
00d84524
PA
35542013-08-23 Pedro Alves <palves@redhat.com>
3555
3556 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3557 (remote_read_bytes): Change return type to LONGEST, and adjust to
3558 return a target_xfer_error on error.
3559 (remote_xfer_memory): Delete.
3560 (remote_flash_write): Change type of 'ret' local to LONGEST.
3561 (remote_xfer_partial, remote_xfer_partial): Adjust.
3562 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3563
1ed3ee94
PM
35642013-08-23 Pierre Muller <muller@sourceware.org>
3565
3566 ARI fix: Push # directives to start of line.
3567 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3568
9eaabc75
MW
35692013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3570
3571 PR gdb/15501
3572 * breakpoint.c (enable_command, disable_command): Iterate over
3573 all specified breakpoint locations.
3574
101158d9
LM
35752013-08-22 Luis Machado <lgustavo@codesourcery.com>
3576
3577 * common/linux-ptrace.c (linux_fork_to_function): Push #
3578 directives to the start of the line.
3579 (linux_check_ptrace_features): Fix warning message to use
3580 the "_" markup.
3581
96d7229d
LM
35822013-08-22 Luis Machado <lgustavo@codesourcery.com>
3583
3584 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3585 nat/linux-waitpid.h.
3586 (linux-waitpid.o): New object file rule.
3587 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3588 (current_ptrace_options): Moved from linux-nat.c.
3589 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3590 parameters.
3591 (linux_fork_to_function): New function.
3592 (linux_grandchild_function): Likewise.
3593 (linux_child_function): Likewise.
3594 (linux_check_ptrace_features): New function, heavily
3595 based on linux-nat.c:linux_test_for_tracefork.
3596 (linux_enable_event_reporting): New function.
3597 (ptrace_supports_feature): Likewise.
3598 (linux_supports_tracefork): Likewise.
3599 (linux_supports_traceclone): Likewise.
3600 (linux_supports_tracevforkdone): Likewise.
3601 (linux_supports_tracesysgood): Likewise.
3602 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3603 gdbserver/linux-low.c.
3604 (linux_enable_event_reporting): New declaration.
3605 (linux_supports_tracefork): Likewise.
3606 (linux_supports_traceclone): Likewise.
3607 (linux_supports_tracevforkdone): Likewise.
3608 (linux_supports_tracesysgood): Likewise.
3609 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3610 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3611 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3612 * config/arm/linux.mh (NATDEPFILES): Likewise.
3613 * config/i386/linux.mh (NATDEPFILES): Likewise.
3614 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3615 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3616 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3617 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3618 * config/mips/linux.mh (NATDEPFILES): Likewise.
3619 * config/pa/linux.mh (NATDEPFILES): Likewise..
3620 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3621 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3622 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3623 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3624 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3625 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3626 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3627 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3628 ptrace's 4th argument's types.
3629 Check the type of PTRACE_TYPE_ARG4.
3630 * configure: Regenerate.
3631 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3632 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3633 (linux_supports_tracefork_flag): Remove.
3634 (linux_supports_tracesysgood_flag): Likewise.
3635 (linux_supports_tracevforkdone_flag): Likewise.
3636 (current_ptrace_options): Moved to
3637 common/linux-ptrace.c.
3638 (linux_tracefork_child): Remove.
3639 (my_waitpid): Remove.
3640 (linux_test_for_tracefork): Renamed to
3641 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3642 (linux_test_for_tracesysgood): Remove.
3643 (linux_supports_tracesysgood): Remove.
3644 (linux_supports_tracefork): Remove.
3645 (linux_supports_tracevforkdone): Remove.
3646 (linux_enable_tracesysgood): Remove.
3647 (linux_enable_event_reporting): Remove.
3648 (linux_init_ptrace): New function.
3649 (linux_child_post_attach): Call linux_init_ptrace.
3650 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3651 (linux_child_follow_fork): Call linux_supports_tracefork
3652 and linux_supports_tracevforkdone.
3653 (linux_child_insert_fork_catchpoint): Call
3654 linux_supports_tracefork.
3655 (linux_child_insert_vfork_catchpoint): Likewise.
3656 (linux_child_set_syscall_catchpoint): Call
3657 linux_supports_tracesysgood.
3658 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3659 * nat/linux-nat.h: New file.
3660 * nat/linux-waitpid.c: New file.
3661 * nat/linux-waitpid.h: New file.
3662
9f948660
SDJ
36632013-08-22 Samuel Bronson <naesten@gmail.com>
3664
3665 ARM Linux support for `catch syscall'.
3666 * syscalls/arm-linux.py: New file.
3667 * syscalls/arm-linux.xml: Likewise.
3668 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3669 (arm_linux_init_abi): Register the new function and syscall xml file.
3670 * data-directory/Makefile.in: Install the new syscall xml file.
3671 * NEWS: Brag about this.
3672
6be7b56e
PA
36732013-08-22 Pedro Alves <palves@redhat.com>
3674
3675 PR gdb/15871
3676 * corefile.c (target_xfer_memory_error): New function.
3677 (memory_error): Defer EIO to target_memory_error.
3678 (read_memory): Use target_xfer_partial, and handle finer-grained
3679 target xfer errors.
3680 * target.c (target_xfer_error_to_string): New function.
3681 (memory_xfer_partial_1): If memory is known to be
3682 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3683 (target_xfer_partial): Make extern.
3684 * target.h (enum target_xfer_error): New enum.
3685 (target_xfer_error_to_string): Declare function.
3686 (target_xfer_partial): Declare function.
3687 (struct target_ops) <xfer_partial>: Adjust describing comment.
3688
bcbec14e
AM
36892013-08-22 Alan Modra <amodra@gmail.com>
3690
3691 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3692 * configure.tgt: Likewise as targets.
3693
fc474241
DE
36942013-08-20 Doug Evans <dje@google.com>
3695
3696 * buildsym.c (subfile_stack): Move here from buildsym.h.
3697 (pending_macros): Ditto.
3698 (get_macro_table): New function.
3699 (buildsym_init): Initialize subfile_stack.
3700 * coffread.c (type_vector,type_vector_length): Moved here from
3701 buildsym.h.
3702 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3703 (coff_symtab_read): Use it.
3704 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3705 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3706 with call to get_macro_table.
3707 * stabsread.c (type_vector,type_vector_length): Moved here from
3708 buildsym.h.
3709 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3710 * buildsym.h (get_macro_table): Declare.
3711
bec71544
TT
37122013-08-20 Tom Tromey <tromey@redhat.com>
3713
3714 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3715 Update.
3716 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3717
0002ad5f
DE
37182013-08-20 Doug Evans <dje@google.com>
3719
3720 * blockframe.c: Remove #include "psymtab.h".
3721 * cp-support.c: Ditto.
3722 * source.c: Ditto.
3723 * stack.c: Ditto.
3724
df302446
TT
37252013-08-20 Tom Tromey <tromey@redhat.com>
3726
3727 PR python/15816:
3728 * exceptions.h (return_mask): Now an enum.
3729 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3730 enum constants.
3731
df6d5441
TT
37322013-08-20 Tom Tromey <tromey@redhat.com>
3733
3734 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3735 get_objfile_arch.
3736 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3737 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3738 * jit.c (jit_object_close_impl): Update.
3739 * jv-lang.c (get_dynamics_objfile): Update.
3740 * linespec.c (add_minsym): Use get_dynamics_objfile.
3741 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3742 (allocate_objfile): Don't initialize 'gdbarch' field.
3743 (get_objfile_arch): Update.
3744 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3745 moved from...
3746 (struct objfile) <gdbarch>: ... here. Remove.
3747 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3748 get_objfile_arch.
3749 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3750
f5aee5ee
AM
37512013-08-20 Alan Modra <amodra@gmail.com>
3752
3753 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3754 for IBM long double nan and inf.
3755 (floatformat_is_negative, floatformat_classify,
3756 floatformat_mantissa): Similarly.
3757 (floatformat_ieee_single, floatformat_ieee_double,
3758 floatformat_ieee_quad, floatformat_arm_ext,
3759 floatformat_ia64_spill): Delete unused vars.
3760 (_initialize_doublest): Delete unused function.
3761 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3762 little-endian variants of floatformat_ibm_long_double.
3763
33b60d58 37642013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3765
33b60d58
LM
3766 * Makefile.in (SFILES): Remove common/target-common.c and
3767 add target/waitstatus.c.
3768 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3769 target/resume.h, target/wait.h and target/waitstatus.h.
3770 (COMMON_OBS): Remove target-common.o and add
3771 waitstatus.o.
3772 (target-common.o): Remove.
3773 (waitstatus.o): New target object file.
3774 * common/target-common.c: Move contents to
3775 target/waitstatus.c and remove.
3776 * common/target-common.h: Move contents to other files and
3777 remove.
3778 (enum resume_kind: Move to target/resume.h.
3779 (TARGET_WNOHANG): Move to target/wait.h.
3780 (enum target_waitkind): Move to target/waitstatus.h.
3781 (struct target_waitstatus): Likewise.
3782 * target.h: Do not include target-common.h and
3783 include target/resume.h, target/wait.h and
3784 target/waitstatus.h.
3785 * target/resume.h: New file.
3786 * target/wait.h: New file.
3787 * target/waitstatus.h: New file.
3788 * target/waitstatus.c: New file.
3789
12696c10
PA
37902013-08-19 Pedro Alves <palves@redhat.com>
3791
3792 * linux-nat.c (linux_test_for_tracefork)
3793 (linux_test_for_tracesysgood, linux_child_follow_fork)
3794 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3795 (linux_nat_wait_1): Extend comment.
3796 (linux_async_pipe): Add comment.
3797
ba89f962
KB
37982013-08-15 Kevin Buettner <kevinb@redhat.com>
3799
3800 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3801 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3802 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3803 Update to account for fact that PC is now a pseudo-register.
3804 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3805 cases for RL78_PC_REGNUM.
3806
35ab155d
MB
38072013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3808
3809 PR cli/15841
3810 * top.c (quit_force): Skip writing history file
3811 if input is not from terminal.
3812
0d031856
TT
38132013-08-14 Tom Tromey <tromey@redhat.com>
3814
3815 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3816 resultthreadlist>: New fields.
3817 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3818 (remote_get_threadlist, remote_threadlist_iterator): Use
3819 new fields. Remove static variables.
3820
ee154bee
TT
38212013-08-14 Tom Tromey <tromey@redhat.com>
3822
3823 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3824 remote_watch_data_address>: New fields.
3825 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3826 (process_stop_reply, remote_wait_as)
3827 (remote_check_watch_resources, remote_stopped_data_address): Update.
3828
88b496c3
TT
38292013-08-14 Tom Tromey <tromey@redhat.com>
3830
3831 * remote.c (struct remote_state) <async_client_callback,
3832 async_client_context>: New fields.
3833 (async_client_callback, async_client_context): Remove.
3834 (remote_async_serial_handler, remote_async): Update.
3835
2f65bcb7
TT
38362013-08-14 Tom Tromey <tromey@redhat.com>
3837
3838 * remote.c (sizeof_pkt): Remove.
3839 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3840
b80fafe3
TT
38412013-08-14 Tom Tromey <tromey@redhat.com>
3842
3843 * remote.c (struct remote_state) <use_threadinfo_query,
3844 use_threadextra_query>: New fields.
3845 (remote_threads_info, remote_threads_extra_info)
3846 (remote_open_1): Update.
3847
8e88304f
TT
38482013-08-14 Tom Tromey <tromey@redhat.com>
3849
3850 * remote.c (struct remote_state) <finished_object,
3851 finished_annex, finished_offset>: New fields.
3852 (remote_read_qxfer): Use remote_state fields; remove static
3853 variables.
3854
280ceea3
TT
38552013-08-14 Tom Tromey <tromey@redhat.com>
3856
3857 * remote.c (struct remote_state) <last_sent_step>:
3858 New field.
3859 (last_sent_step): Remove.
3860 (remote_resume, remote_wait_as): Update.
3861
b73be471
TT
38622013-08-14 Tom Tromey <tromey@redhat.com>
3863
3864 * remote.c (struct remote_state) <last_sent_signal>:
3865 New field.
3866 (last_sent_signal): Remove.
3867 (new_remote_state, remote_resume, remote_wait_as): Update.
3868
5e4a05c4
TT
38692013-08-14 Tom Tromey <tromey@redhat.com>
3870
3871 * remote.c (struct remote_state) <last_program_signals_packet>:
3872 New field.
3873 (last_program_signals_packet): Remove.
3874 (remote_program_signals, remote_open_1): Update.
3875
747dc59d
TT
38762013-08-14 Tom Tromey <tromey@redhat.com>
3877
3878 * remote.c (struct remote_state) <last_pass_packet>:
3879 New field.
3880 (last_pass_packet): Remove.
3881 (remote_pass_signals, remote_open_1): Update.
3882
262e1174
TT
38832013-08-14 Tom Tromey <tromey@redhat.com>
3884
3885 * remote.c (struct remote_state) <remote_traceframe_number>:
3886 New field.
3887 (remote_traceframe_number): Remove.
3888 (new_remote_state, remote_open_1, set_remote_traceframe)
3889 (remote_trace_find): Update.
3890
47f8a51d
TT
38912013-08-14 Tom Tromey <tromey@redhat.com>
3892
3893 * remote.c (struct remote_state) <general_thread, continue_thread>:
3894 New fields.
3895 (general_thread, continue_thread): Remove.
3896 (record_currthread, set_thread, set_general_process)
3897 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3898 (extended_remote_mourn_1): Update.
3899
5d93a237
TT
39002013-08-14 Tom Tromey <tromey@redhat.com>
3901
3902 * remote.c (struct remote_state) <remote_desc>: New field.
3903 (remote_desc): Remove.
3904 (remote_threads_info, remote_threads_extra_info, remote_close)
3905 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3906 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3907 (remote_hostio_send_command, remote_file_put, remote_file_get)
3908 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3909 (remote_async, remote_new_objfile, set_range_stepping): Update.
3910
cf792862
TT
39112013-08-14 Tom Tromey <tromey@redhat.com>
3912
3913 * remote.c (remote_state): Now a pointer.
3914 (get_remote_state_raw): Update.
3915 (new_remote_state): New function.
3916 (_initialize_remote): Use new_remote_state.
3917
dc473cfb
TT
39182013-08-14 Tom Tromey <tromey@redhat.com>
3919
3920 * remote.c (remote_protocol_features): Now const.
3921
85ec6ce7
TT
39222013-08-14 Tom Tromey <tromey@redhat.com>
3923
3924 * remote.c (crc32_table, crc32): Remove.
3925 (remote_verify_memory): Use xcrc32.
3926
73033f12
SDJ
39272013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3928
3929 * value.h (create_internalvar_type_lazy): Adjust prototype
3930 declaration.
3931
5c30d39a
AB
39322013-08-13 Andrew Burgess <aburgess@broadcom.com>
3933
3934 * common/format.c (parse_format_string): Don't allow '#' flag for
3935 pointer arguments in format string.
3936
1a66331e
PM
39372013-08-13 Pierre Muller <muller@sourceware.org>
3938
fde605f3 3939 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3940 if rl_get_screen_size did not return useful values.
3941
b4013987
AA
39422013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3943
3944 PR breakpoints/15117
3945 * linespec.c (linespec_parse_basic): Check for convenience
3946 variable or history value while parsing.
3947
959b6a66
SDJ
39482013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3949
3950 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3951 AVR.
3952 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3953 different signals between the generic Linux kernel implementation
3954 and AVR's.
3955 (avr_linux_gdb_signal_from_target): Delete.
3956 (avr_linux_gdb_signal_to_target): Delete.
3957 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3958
24a55014
DE
39592013-08-09 Doug Evans <dje@google.com>
3960
3961 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3962 entries.
3963
eb14d406
SDJ
39642013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3965
3966 * linux-tdep.c: Define enum with generic signal numbers.
3967 (linux_gdb_signal_from_target): New function.
3968 (linux_gdb_signal_to_target): Likewise.
3969 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3970 methods to the functions above.
3971 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3972 (linux_gdb_signal_to_target): Likewise.
3973 * alpha-linux-tdep.c: Define new enum with signals different
3974 from generic Linux kernel.
3975 (alpha_linux_gdb_signal_from_target): New function.
3976 (alpha_linux_gdb_signal_to_target): Likewise.
3977 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3978 with the functions mentioned above.
3979 * avr-tdep.c: Define enum with differences between Linux kernel
3980 and AVR signals.
3981 (avr_linux_gdb_signal_from_target): New function.
3982 (avr_linux_gdb_signal_to_target): Likewise.
3983 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3984 the functions mentioned above.
3985 * sparc-linux-tdep.c: Define enum with differences between SPARC
3986 and generic Linux kernel signal numbers.
3987 (sparc32_linux_gdb_signal_from_target): New function.
3988 (sparc32_linux_gdb_signal_to_target): Likewise.
3989 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3990 to the functions defined above.
3991 * xtensa-linux-tdep.c: Define enum with differences between
3992 Xtensa and Linux kernel generic signals.
3993 (xtensa_linux_gdb_signal_from_target): New function.
3994 (xtensa_linux_gdb_signal_to_target): Likewise.
3995 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3996 to the functions defined above.
3997 * mips-linux-tdep.c: Define enum with differences between
3998 signals in MIPS and Linux kernel generic ones.
3999 (mips_gdb_signal_to_target): New function.
4000 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4001 only different signals from the Linux kernel generic.
4002 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4003 the functions defined above.
4004 * mips-linux-tdep.h (enum mips_signals): Remove.
4005
156d08c8
PA
40062013-08-09 Pedro Alves <palves@redhat.com>
4007
4008 * avr-tdep.c (XMALLOC): Delete macro.
4009 * cli/cli-dump.c (XMALLOC): Delete macro.
4010
db229724
PA
40112013-08-09 Pedro Alves <palves@redhat.com>
4012
4013 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4014 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4015 (fopen_with_cleanup, add_dump_command): Make static.
4016 * cli/cli-dump.h: Delete file.
4017 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4018 cli/cli-dump.h.
4019
3f12a589
PA
40202013-08-09 Pedro Alves <palves@redhat.com>
4021
4022 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4023 error message.
4024
c718be47
PA
40252013-08-09 Pedro Alves <palves@redhat.com>
4026
156d08c8 4027 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4028 error message.
4029
1e351ed1
PA
40302013-08-09 Pedro Alves <palves@redhat.com>
4031
4032 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4033 (gcore_command): Use tilde_expand here, and when showing the
4034 filename to the user, show the expanded version.
4035
1ed8d800
YQ
40362013-08-09 Yao Qi <yao@codesourcery.com>
4037
4038 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4039 'entryval' is set.
4040
47ecca85
PA
40412013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4042
4043 * gcore.c (create_gcore_bfd): Use tilde_expand.
4044
82a0a75f
YQ
40452013-08-08 Yao Qi <yao@codesourcery.com>
4046
4047 * frame.h (read_frame_local): Declare.
4048 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4049 read_frame_local.
4050 * stack.c (read_frame_local): New.
4051
5c4aa40b
YQ
40522013-08-08 Yao Qi <yao@codesourcery.com>
4053
4054 * mi/mi-cmd-stack.c: Update comments to function
4055 list_args_or_locals.
4056
b93601f3
TT
40572013-08-07 Tom Tromey <tromey@redhat.com>
4058
4059 PR symtab/15028:
4060 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4061 (process_psymtab_comp_unit_reader): Use it.
4062 (process_psymtab_comp_unit): Update. Add "pretend_language"
4063 argument.
4064 (dwarf2_build_psymtabs_hard): Update.
4065 (scan_partial_symbols): Pass CU's language to
4066 process_psymtab_comp_unit.
4067
fa760f46
TT
40682013-08-07 Tom Tromey <tromey@redhat.com>
4069
4070 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4071 (dwarf2_gdb_index_functions): Update.
4072 * psymtab.c (find_symbol_file_from_partial): Remove.
4073 (psym_functions): Update.
4074 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4075 Remove.
4076
bf6d8a91
TT
40772013-08-07 Tom Tromey <tromey@redhat.com>
4078
4079 * symfile.c (set_initial_language): Look up "main" symbol
4080 and use its language.
4081 * symtab.c (find_main_filename): Remove.
4082 * symtab.h (find_main_filename): Remove.
4083
f9125b6c
TT
40842013-08-07 Tom Tromey <tromey@redhat.com>
4085
4086 * dwarf2read.c (recursively_compute_inclusions): Add
4087 "immediate_parent" argument. Set symtab's "user" field
4088 if not set.
4089 (compute_symtab_includes): Update.
4090
fdbb204b
TT
40912013-08-07 Tom Tromey <tromey@redhat.com>
4092
4093 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4094 when adding label symbols.
4095
49de1690
UW
40962013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4097 Ulrich Weigand <uweigand@de.ibm.com>
4098
4099 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4100 * configure.host (powerpc64-*-aix*): Likewise.
4101
b08ee99f
UW
41022013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4103 Ulrich Weigand <uweigand@de.ibm.com>
4104
4105 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4106 is defined.
4107 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4108 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4109 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4110 * configure.ac: Check for ptrace64.
4111 * configure, config.in: Regenerate.
4112
fecf803e
UW
41132013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4114 Ulrich Weigand <uweigand@de.ibm.com>
4115
4116 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4117 Call ptrace64 instead of ptrace if defined.
4118 Add macro addr_ptr to take care of ptrace address argument.
4119 (pdc_read_regs): Likewise.
4120 (pdc_write_regs): Likewise.
4121 (aix_thread_resume): Likewise.
4122 (fetch_regs_kernel_thread): Likewise.
4123 (store_regs_kernel_thread): Likewise.
4124
3bb5e4a8
AB
41252013-08-07 Anton Blanchard <anton@samba.org>
4126
4127 * MAINTAINERS: Add myself to Write After Approval.
4128
12070676
TT
41292013-08-05 Tom Tromey <tromey@redhat.com>
4130
4131 * aix-thread.c (_initialize_aix_thread): Use
4132 complete_target_initialization.
4133 * bsd-uthread.c (_initialize_bsd_uthread): Use
4134 complete_target_initialization.
4135 * dec-thread.c (_initialize_dec_thread): Use
4136 complete_target_initialization.
4137 * ravenscar-thread.c (_initialize_ravenscar): Use
4138 complete_target_initialization.
4139 * sol-thread.c (_initialize_sol_thread): Use
4140 complete_target_initialization.
4141 * spu-multiarch.c (_initialize_spu_multiarch): Use
4142 complete_target_initialization.
4143
7c7b6655
TT
41442013-08-05 Tom Tromey <tromey@redhat.com>
4145
4146 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4147 * ada-lang.c (ada_lookup_simple_minsym): Return
4148 bound_minimal_symbol.
4149 * ada-lang.h (ada_lookup_simple_minsym): Update.
4150 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4151 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4152 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4153 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4154 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4155 * minsyms.c (msymbol_objfile): Remove.
4156 (lookup_minimal_symbol_internal): New function, from
4157 lookup_minimal_symbol.
4158 (lookup_minimal_symbol): Rewrite using
4159 lookup_minimal_symbol_internal.
4160 (lookup_bound_minimal_symbol): New function.
4161 * minsyms.h (msymbol_objfile): Remove.
4162 (lookup_bound_minimal_symbol): Declare.
4163 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4164 * parse.c (write_exp_msymbol): Change parameter to a
4165 bound_minimal_symbol.
4166 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4167 * parser-defs.h (write_exp_msymbol): Update.
4168 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4169 * symfile.c (simple_read_overlay_table): Use
4170 lookup_bound_minimal_symbol.
4171 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4172 (search_symbols): Likewise.
4173 (print_msymbol_info): Take a bound_minimal_symbol argument.
4174 (symtab_symbol_info, rbreak_command): Update.
4175 * symtab.h (struct symbol_search) <msymbol>: Change type
4176 to bound_minimal_symbol.
4177 * valops.c (find_function_in_inferior): Use
4178 lookup_bound_minimal_symbol.
4179 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4180
934b9bac
JK
41812013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4182
4183 Code cleanup.
4184 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4185 to ...
4186 (async_cleanup_sigint_signal_handler): ... this.
4187 (initialize_sigint_signal_handler): Remove declaration.
4188 (handle_remote_sigint): Rename the declaration to ...
4189 (async_handle_remote_sigint): ... this.
4190 (handle_remote_sigint_twice): Rename the declaration to ...
4191 (async_handle_remote_sigint_twice): ... this.
4192 (async_remote_interrupt, async_remote_interrupt_twice)
4193 (remote_interrupt): Remove the declarations.
4194 (remote_interrupt_twice): Rename the declaration ...
4195 (sync_remote_interrupt_twice): ... this.
4196 (sigint_remote_twice_token): Rename the variable to ...
4197 (async_sigint_remote_twice_token): ... this.
4198 (sigint_remote_token): Rename the variable to ...
4199 (async_sigint_remote_token): ... this.
4200 (initialize_sigint_signal_handler): Rename the function to ...
4201 (async_initialize_sigint_signal_handler): ... this. Update the name
4202 inside.
4203 (handle_remote_sigint): Rename the function to ...
4204 (async_handle_remote_sigint): ... this. Update the names inside.
4205 (handle_remote_sigint_twice): Rename the function to ...
4206 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4207 (cleanup_sigint_signal_handler): Rename the function to ...
4208 (async_cleanup_sigint_signal_handler): ... this.
4209 (remote_interrupt): Rename the function to ...
4210 (sync_remote_interrupt): this. Update the names inside.
4211 (remote_interrupt_twice): Rename the function to ...
4212 (sync_remote_interrupt_twice): this. Update the names inside.
4213 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4214 (_initialize_remote): Update the names inside.
4215
3a1115a0
TT
42162013-08-02 Tom Tromey <tromey@redhat.com>
4217
4218 PR symtab/15719:
4219 * breakpoint.c (update_watchpoint, watchpoint_check)
4220 (watch_command_1): Update.
4221 * eval.c (fetch_subexp_value): Add "preserve_errors"
4222 parameter.
4223 * ppc-linux-nat.c (check_condition): Update.
4224 * value.h (fetch_subexp_value): Update.
4225
58b19776
AB
42262013-08-02 Andrew Burgess <aburgess@broadcom.com>
4227
4228 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4229 add_file_handler.
4230
ec94af83
DE
42312013-08-01 Doug Evans <dje@google.com>
4232
7ee85ab1
DE
4233 PR symtab/15691
4234 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4235 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4236 Add assert of sig_entry->dwo_unit == NULL.
4237 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4238 had already been read.
4239 (read_signatured_type): Set per_cu.tu_read.
4240
b846d303
DE
4241 PR symtab/15695
4242 * valops.c (value_struct_elt): Add missing call to check_typedef.
4243 (value_find_oload_method_list): Ditto.
4244
b52109bc
DE
4245 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4246 effectively, struct symbol_search **.
4247 (make_cleanup_free_search_symbols): Change arg to struct
4248 symbol_search **. All callers updated.
4249 (compare_search_syms): Compare symtab file name and block as well.
4250 (search_symbols_equal): New function.
4251 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4252 New args new_head, new_tail. Result is now void. Remove dups after
4253 sorting the symbols.
4254 (search_symbols): Sort all found symbols once, after all have been
4255 found, and remove duplicates. Simplify cleanup tracking of result.
4256 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4257
ec94af83
DE
4258 Further workarounds for binutils/15021.
4259 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4260 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4261 Watch for duplicate symtabs coming from type units.
4262 (compute_symtab_includes): Update call to
4263 recursively_compute_inclusions. Build vector of included symtabs
4264 instead of per_cus.
4265 * symtab.h (symtab_ptr): New typedef.
4266 (DEF_VEC_P (symtab_ptr)): New VEC type.
4267 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4268 instead.
4269
b2ae85cf
AB
42702013-08-01 Andrew Burgess <aburgess@broadcom.com>
4271
4272 * cli/cli-script.c (script_from_file): Remove use of
4273 error_pre_print.
4274 * main.c (captured_main): Remove use of error_pre_print and
4275 quit_pre_print.
4276 * utils.c (error_pre_print, quit_pre_print): Remove.
4277 * utils.h (error_pre_print, quit_pre_print): Likewise.
4278
645eab03
YQ
42792013-08-01 Yao Qi <yao@codesourcery.com>
4280
4281 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4282 with mi_getopt.
4283 (mi_cmd_stack_list_variables): Likewise.
4284
16f92dd4
AB
42852013-07-31 Andrew Burgess <aburgess@broadcom.com>
4286
4287 * exceptions.c (deprecated_throw_reason): Remove.
4288 * exceptions.h (deprecated_throw_reason): Remove.
4289
13f78033
AB
42902013-07-31 Andrew Burgess <aburgess@broadcom.com>
4291
4292 * remote-mips.c (mips_error): Replace use of
4293 deprecated_throw_reason with throw_verror. Use the error message
4294 passed to mips_error as the error message for throw_verror.
4295
039e3c22
AB
42962013-07-31 Andrew Burgess <aburgess@broadcom.com>
4297
4298 * monitor.c (monitor_interrupt_query): Replace use of
4299 deprecated_throw_reason with quit.
4300 * nto-procfs.c (interrupt_query): Likewise.
4301 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4302 * remote-mips.c (mips_kill): Likewise.
4303 * remote.c (interrupt_query): Likewise.
4304
8150913b
AB
43052013-07-31 Andrew Burgess <aburgess@broadcom.com>
4306
4307 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4308 with call to fatal.
4309
de74e63a
YQ
43102013-07-31 Pedro Alves <pedro@codesourcery.com>
4311 Yao Qi <yao@codesourcery.com>
4312
4313 * tracepoint.c (trace_dump_command): Select the current frame.
4314
247f5c4f
DE
43152013-07-30 Doug Evans <dje@google.com>
4316
4317 * dwarf2read.c (process_queue): Add type signature to debug output.
4318
11b4b7cc
AB
43192013-07-30 Andrew Burgess <aburgess@broadcom.com>
4320
4321 * value.c (value_fetch_lazy): Mark optimized out values as such
4322 rather than raising an error.
4323
b0c54aa5
AB
43242013-07-30 Andrew Burgess <aburgess@broadcom.com>
4325
4326 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4327 before checking which bits of the parent, not the child, value are
4328 valid.
4329
97c85fc6
MB
43302013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4331
4332 PR gdb/15715
4333 * top.c: Include "filenames.h".
4334 (set_history_filename): New function.
4335 (init_main): Install it as set hook of the "set history filename"
4336 command.
4337
ff39bb5e
SA
43382013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4339
4340 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4341 attribute parameter.
4342 (dwarf2_const_value_data): Constify struct attribute parameter.
4343 (dwarf2_const_value): Constify struct attribute parameter.
4344 (dwarf2_const_value_attr): Constify struct attribute parameter.
4345 (lookup_die_type): Constify struct attribute parameter.
4346 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4347 (follow_die_ref_or_sig): Constify struct attribute parameter.
4348 (follow_die_ref): Constify struct attribute parameter.
4349 (follow_die_sig): Constify struct attribute parameter.
4350 (get_DW_AT_signature_type): Constify struct attribute parameter.
4351 (get_type_unit_group): Constify struct attribute parameter.
4352 (fill_in_loclist_baton): Constify struct attribute parameter.
4353 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4354 (type_unit_group): Constify struct attribute parameter.
4355
6e5a29e1
SA
43562013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4357
4358 * dwarf2read.c (attr_form_is_block): Make argument const.
4359 (attr_form_is_section_offset): Make argument const.
4360 (attr_form_is_constant): Make argument const.
4361 (attr_form_is_ref): Make argument const.
4362
7771576e
SA
43632013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4364
4365 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4366 All uses updated.
4367 (attr_form_is_ref): Moved below attr_form_is_constant.
4368
a94e8645
DE
43692013-07-29 Doug Evans <dje@google.com>
4370
bb5291d0
DE
4371 * main.c (captured_command_loop): Tweak comment.
4372
b5419e49
DE
4373 * target.c (target_async_permitted_1): Fix comment.
4374
b2d23133
DE
4375 * symtab.c (iterate_over_some_symtabs): Add comment.
4376
a94e8645
DE
4377 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4378
7a60ad40
YQ
43792013-07-27 Yao Qi <yao@codesourcery.com>
4380
4381 * NEWS: Mention that GDBserver now supports hardware
4382 watchpoints on the MIPS GNU/Linux target.
4383
aaee2056
YQ
43842013-07-27 Yao Qi <yao@codesourcery.com>
4385
4386 * Makefile.in (HFILES_NO_SRCDIR): Add
4387 common/mips-linux-watch.h.
4388 (mips-linux-watch.o): New rule.
4389 * common/mips-linux-watch.c: New.
4390 * common/mips-linux-watch.h: New.
4391 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4392 * mips-linux-nat.c: Include mips-linux-watch.h.
4393 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4394 to common/mips-linux-watch.h.
4395 (MAX_DEBUG_REGISTER): Likewise.
4396 (enum pt_watch_style): Likewise.
4397 (struct mips32_watch_regs): Likewise.
4398 (struct mips64_watch_regs): Likewise.
4399 (struct pt_watch_regs): Likewise.
4400 (struct mips_watchpoint): Likewise.
4401 (mips_linux_watch_get_irw_mask): Move to
4402 common/mips-linux-watch.c.
4403 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4404 (mips_linux_watch_get_watchlo): Likewise.
4405 (mips_linux_watch_set_watchlo): Likewise.
4406 (mips_linux_watch_get_watchhi): Likewise.
4407 (mips_linux_watch_set_watchhi): Likewise.
4408 (mips_linux_read_watch_registers): Likewise.
4409 (mips_linux_watch_type_to_irw): Likewise.
4410 (mips_linux_stopped_data_address, fill_mask): Likewise.
4411 (mips_linux_watch_try_one_watch): Likewise.
4412 (mips_linux_watch_populate_regs): Likewise.
4413
b3436450
YQ
44142013-07-27 Yao Qi <yao@codesourcery.com>
4415
4416 * mips-linux-nat.c (get_irw_mask): Rename to ...
4417 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4418 'set' to 'n'. Update function comment. All callers changed.
4419 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4420 function comment. All callers changed.
4421 (get_num_valid): Rename to ...
4422 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4423 'set' to 'n'. Update function comment. All callers changed.
4424 (get_watchlo): Rename to ...
4425 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4426 'set' to 'n'. Update function comment. All callers changed.
4427 (set_watchlo): Rename to ...
4428 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4429 'set' to 'n'. Update function comment. All callers changed.
4430 (get_watchhi): Rename to ...
4431 (mips_linux_watch_get_watchhi): ... this. Update function
4432 comment. All callers changed.
4433 (set_watchhi): Rename to ...
4434 (mips_linux_watch_set_watchhi): ... this. Update function
4435 comment. All callers changed.
4436 (mips_linux_read_watch_registers): Update function comment.
4437 Add new parameters 'lwpid', 'watch_readback', and
4438 'watch_readback_valid'. Update.
4439 (type_to_irw): Rename to ...
4440 (mips_linux_watch_type_to_irw): ... this. Update function
4441 comment. All callers changed.
4442 (fill_mask): Update function comment.
4443 (try_one_watch): Rename to ...
4444 (mips_linux_watch_try_one_watch): ... this. Change the type
4445 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4446 (populate_regs_from_watches): Rename to ...
4447 (mips_linux_watch_populate_regs): ... this. Add parameter
4448 'current_watches'. All callers changed.
4449
9be14b81
YQ
44502013-07-27 Yao Qi <yao@codesourcery.com>
4451
4452 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4453 the code.
4454 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4455 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4456 (struct pt_watch_regs): Likewise.
4457 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4458 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4459 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4460 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4461 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4462
de6f69ad
YQ
44632013-07-27 Yao Qi <yao@codesourcery.com>
4464
4465 * breakpoint.h: Include break-common.h.
4466 (enum target_hw_bp_type): Move to ...
4467 * common/break-common.h: ... here. New.
4468
6f64ef53
PA
44692013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4470
4471 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4472 process group regardless of having tty on stdin.
4473
6107e809
DE
44742013-07-25 Doug Evans <dje@google.com>
4475
4476 * linux-fork.h (detach_fork): Delete.
4477
7fdc1521
TT
44782013-07-25 Tom Tromey <tromey@redhat.com>
4479
4480 PR remote/15256, PR remote/15266:
4481 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4482 * monitor.c (monitor_detach): Use unpush_target.
4483 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4484 * remote-mips.c (mips_detach): Use unpush_target. Don't
4485 call mips_close.
4486 * remote-sim.c (gdbsim_detach): Use unpush_target.
4487 * target.c (pop_target): Remove.
4488 (pop_all_targets_above): Don't call target_close.
4489 (target_close): Assert that the target is unpushed.
4490 * target.h (pop_target): Don't declare.
4491 * tracepoint.c (tfile_open): Use unpush_target.
4492
c22a2b88
TT
44932013-07-25 Tom Tromey <tromey@redhat.com>
4494
4495 * linux-thread-db.c (init_thread_db_ops): Call
4496 complete_target_initialization.
4497 (_initialize_thread_db): Don't call add_target.
4498 * target.c (complete_target_initialization): New function.
4499 (add_target_with_completer): Call it.
4500 * target.h (complete_target_initialization): Declare.
4501
cbb6aada
MK
45022013-07-25 Mark Kettenis <kettenis@gnu.org>
4503
4504 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4505 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4506 (HPPANBSD_SIZEOF_GREGS): New define.
4507 (hppaobsd_supply_gregset): Handle additional registers.
4508 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4509 we provide more registers now.
4510 (hppabsd_supply_gregset): Supply additional registers.
4511 (hppabsd_collect_gregset): Collect additional registers.
4512
17767988
MK
45132013-07-25 Mark Kettenis <kettenis@gnu.org>
4514
4515 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4516 (hppabsd_dwarf2_frame_init_reg): New function.
4517 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4518
fdc8aae8
AB
45192013-07-25 Andrew Burgess <aburgess@broadcom.com>
4520
4521 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4522 'z' format code. Remove error for optimized out values, standard
4523 code will handle these fine.
4524
6fbe845e
AB
45252013-07-25 Andrew Burgess <aburgess@broadcom.com>
4526
4527 * NEWS: Mention new 'z' formatter.
4528 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4529 (_initialize_printcmd): Mention 'z' formatter in help text of the
4530 'x' command.
4531
3373342d
MR
45322013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4533
4534 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4535 formatting.
4536
25f9533e
SDJ
45372013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4538
4539 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4540 interface can evaluate arguments. Fallback to the old mode if it
4541 cannot.
4542 (create_exception_master_breakpoint): Likewise.
4543 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4544 (struct sym_probe_fns elf_probe_fns): Export function above to the
4545 probe interface.
4546 * probe.c (can_evaluate_probe_arguments): New function.
4547 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4548 function pointer.
4549 (can_evaluate_probe_arguments): New function prototype.
4550 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4551 probe interface can evaluate arguments. Fallback to the old mode
4552 if it cannot.
4553 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4554 interface can evaluate arguments. Warning the user if it cannot.
4555 (stap_can_evaluate_probe_arguments): New function.
4556 (struct probe_ops stap_probe_ops): Export function above to the
4557 probe interface.
4558 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4559 New function pointer.
4560
3360c0bf
LM
45612013-07-24 Luis Machado <lgustavo@codesourcery.com>
4562
4563 * Makefile.in (SFILES): Add common/target-common.c.
4564 Add common/target-common.h to headers.
4565 (COMMON_OBS): Add target-common.o.
4566 (target-common.o): New target.
4567 * linux-nat.h (resume_kind): Move to common/target-common.h.
4568 * target.c (target_waitstatus_to_string): Move to
4569 common/target-common.c.
4570 * target.h: Include target-common.h.
4571 (target_waitkind): Move to common/target-common.h.
4572 (target_waitstatus): Likewise.
4573 (TARGET_WNOHANG): Likewise.
4574 * common/target-common.c: New file.
4575 * common/target-common.h: New file.
4576
6656a72d
DE
45772013-07-24 Doug Evans <dje@google.com>
4578
4579 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4580 a warning.
4581
6df81a63
YQ
45822013-07-23 Yao Qi <yao@codesourcery.com>
4583
4584 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4585 parameter 'gdbarch'.
4586 (i386_stack_tramp_frame_sniffer): Caller update.
4587 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4588 parameter 'gdbarch' and 'target'.
4589 (i386_linux_core_read_description): Caller update.
4590 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4591 Likewise.
4592 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4593 declaration.
4594
365156ad
TT
45952013-07-23 Tom Tromey <tromey@redhat.com>
4596
4597 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4598 2013-07-22.
4599
046ac79f
JK
46002013-07-22 Doug Evans <dje@google.com>
4601
4602 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4603 * exec.c (exec_close): Update call to remove_target_sections.
4604 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4605 * solib.c (update_solib_list): Ditto.
4606 (reload_shared_libraries_1): Ditto.
4607 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4608 * target.h (struct target_section): Rename key to owner.
4609 All uses updated.
046ac79f 4610
29b2cc46
TT
46112013-07-22 Tom Tromey <tromey@redhat.com>
4612
4613 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4614
d1160018
TT
46152013-07-22 Tom Tromey <tromey@redhat.com>
4616
4617 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4618 Simplify cleanup handling.
4619
2f324bf6
TT
46202013-07-22 Tom Tromey <tromey@redhat.com>
4621
4622 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4623 on all return paths.
4624
e23b9d6e
UW
46252013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4626
4627 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4628 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4629 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4630
1cf55f60
PM
46312013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4632
4633 * top.c (print_gdb_version): Add help, apropos description and
4634 url to online documentation.
4635
fa876972
HZ
46362013-07-19 Hui Zhu <hui@codesourcery.com>
4637
4638 PR gdb/15692
4639 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4640
1527aea8
YQ
46412013-07-19 Yao Qi <yao@codesourcery.com>
4642
4643 * target.c (update_current_target): Change the default action
4644 of 'to_traceframe_info' from tcomplain to return_zero.
4645 * target.h (struct target_ops) <to_traceframe_info>: Add more
4646 comments.
4647 * valops.c (read_value_memory): Call
4648 traceframe_available_memory unconditionally.
4649
886f230e
YQ
46502013-07-18 Yao Qi <yao@codesourcery.com>
4651
4652 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4653 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4654 symbol without prefix. If found, set its type to
4655 'mst_solib_trampoline'.
4656
16419bae
DE
46572013-07-17 Doug Evans <dje@google.com>
4658
e7045703
DE
4659 * NEWS: Mention "set print raw frame-arguments".
4660 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4661 * stack.c (print_raw_frame_arguments): New static global.
4662 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4663 (_initialize_stack): New command "set/show print raw frame-arguments".
4664 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4665 (set_print_raw, show_print_raw): New functions.
4666 (_initialize_valprint): New prefix command "set/show print raw".
4667 * valprint.h (value_print_options): Improve comments.
4668
453e48a5
DE
4669 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4670 of all *list variables.
4671
16419bae
DE
4672 * gdbcmd.h (togglelist): Delete.
4673 * cli/cli-cmds.c (togglelist): Delete.
4674 (init_cmd_lists): Update.
4675 * cli/cli-cmds.h (togglelist): Delete.
4676
626f2d1c
TT
46772013-07-17 Tom Tromey <tromey@redhat.com>
4678
4679 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4680 dwarf2_per_objfile.
4681
57e6060e
DE
46822013-07-16 Doug Evans <dje@google.com>
4683
4684 * nto-tdep.c (nto_relocate_section_addresses): Update,
4685 target_section.bfd deleted.
4686 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4687 * s390-tdep.c (s390_load): Ditto.
4688 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4689
5ea5559b
AB
46902013-07-16 Andrew Burgess <aburgess@broadcom.com>
4691
4692 * common/format.c (parse_format_string): Add checks for NULL
4693 character before calling strchr.
4694
2b2848e2
DE
46952013-07-16 Doug Evans <dje@google.com>
4696
2c571006
DE
4697 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4698 temp_pathname argument.
4699 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4700 when opening the file fails.
4701
2b2848e2
DE
4702 * target.h (struct target_section): Delete member bfd.
4703 All users updated to use the_bfd_section->owner instead.
4704 * exec.c (add_to_section_table): Assert bfd is expected value.
4705 Remove initialization of target_section.bfd.
4706 (remove_target_sections): Update.
4707 (section_table_available_memory): Update.
4708 (section_table_xfer_memory_partial): Update.
4709 (print_section_info): Update.
4710 (exec_set_section_address): Update.
4711 * record-full.c (record_full_core_xfer_partial): Update.
4712 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4713 * solib-target.c (solib_target_relocate_section_addresses): Update.
4714 * symfile.c (build_section_addr_info_from_section_table): Update.
4715 * target.c (memory_xfer_live_readonly_partial): Update.
4716 (memory_xfer_partial_1): Update.
4717
926bf92d
UW
47182013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4719
4720 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4721 now available for embedded (BookE) and server (BookS) processors,
4722 correct mentions of 'booke' and adjust comments accordingly in order to
4723 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4724 (have_ptrace_booke_interface): Rename function and variable
4725 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4726 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4727 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4728 'hwdebug_point_cmp'. Update all uses.
4729 (booke_find_thread_points_by_tid): Rename function
4730 'booke_find_thread_points_by_tid' to
4731 'hwdebug_find_thread_points_by_tid'. Update all uses.
4732 (booke_insert_point): Rename function 'booke_insert_point' to
4733 'hwdebug_insert_point'. Update all uses.
4734 (booke_remove_point): Rename function 'booke_remove_point' to
4735 'hwdebug_remove_point'. Update all uses.
4736
d929bc19
MR
47372013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4738
4739 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4740 numbers with enum values.
4741
054e8d9e
AA
47422013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4743
4744 PR threads/13217
4745 * thread.c (thread_apply_all_command): Check for valid threads
4746 and thread count.
4747 (thread_array_cleanup): New struct.
4748 (set_thread_refcount): New function.
4749
cf006359
AB
47502013-07-11 Andrew Burgess <aburgess@broadcom.com>
4751
4752 * infcmd.c (default_print_one_register_info): Reuse function
4753 print_hex_chars.
4754
94e36acc
TT
47552013-07-10 Tom Tromey <tromey@redhat.com>
4756
4757 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4758 (ada-exp.o): New target.
4759
915dd369
SDJ
47602013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4761
4762 * mt-tdep.c (mt_registers_info): Call
4763 get_no_prettyformat_print_options instead of
4764 get_raw_print_options (regression by last patch from Doug
4765 Evans).
4766
eca07816
JB
47672013-07-09 Pedro Alves <palves@redhat.com>
4768
4769 Checked in by Joel Brobecker <brobecker@adacore.com>.
4770 * ada-lang.c (coerce_unspec_val_to_type): Use
4771 value_optimized_out_const.
4772 * value.c (value_optimized_out_const): New function.
4773 * value.h (value_optimized_out_const): New declaration.
4774
2a998fc0
DE
47752013-07-09 Doug Evans <dje@google.com>
4776
4777 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4778 Enum values rename as well. All uses updated.
4779 * valprint.h (value_print_options): Rename member pretty to
4780 pretty format. Rename member prettyprint_arrays to
4781 prettyformat_arrays. Rename member prettyprint_structs to
4782 prettyformat_structs. All uses updated.
4783 (get_no_prettyformat_print_options): Renamed from
4784 get_raw_print_options.
4785 * valprint.c (get_no_prettyformat_print_options): Renamed from
4786 get_raw_print_options. All callers updated.
4787 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4788 All callers updated.
4789 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4790 All callers updated.
4791 (_initialize_valprint): Improve help text for "set print pretty" and
4792 "set print arrays".
4793
466c1fca
AB
47942013-07-09 Andrew Burgess <aburgess@broadcom.com>
4795
4796 * value.c (value_bits_valid): Revert previous change, and change
4797 by Pedro on 2013-07-04, due to regressions in
4798 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4799
ad0f0303
AB
48002013-07-08 Andrew Burgess <aburgess@broadcom.com>
4801 Pedro Alves <palves@redhat.com>
4802
4803 * value.c (value_bits_valid): If the value is not lval_computed
4804 or has no check validity handler then the answer is the
4805 optimized_out flag, otherwise defer to the handler.
4806
b187bec1
EZ
48072013-07-06 Eli Zaretskii <eliz@gnu.org>
4808
48d1d6f5
EZ
4809 * top.c (print_gdb_configuration): Explain in output of
4810 --configuration what does "relocatable" mean.
4811
b187bec1
EZ
4812 * main.c (print_gdb_help): Regroup options in the --help text.
4813 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4814 the relevant discussions.
4815
52d361e1
YQ
48162013-07-06 Yao Qi <yao@codesourcery.com>
4817
4818 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4819 Remove parameter 'lsal'.
4820 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4821 to inner block. Caller update.
4822 (base_breakpoint_create_breakpoints_sal): Update.
4823 (bkpt_create_breakpoints_sal): Likewise.
4824 (tracepoint_create_breakpoints_sal): Likewise.
4825 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4826 element 0 of vector 'canonical->sals'.
4827
e1ec1b42
LM
48282013-07-05 Luis Machado <lgustavo@codesourcery.com>
4829
4830 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4831 register number instead of the pseudo register one.
4832 (rs6000_dwarf2_reg_to_regnum): Likewise.
4833
7195e6f0
PA
48342013-07-04 Pedro Alves <palves@redhat.com>
4835
4836 * findvar.c (value_of_register): Use allocate_optimized_out_value
4837 if the register has been optimized out, instead of
4838 set_value_optimized_out.
4839 * frame-unwind.c (frame_unwind_got_optimized): Use
4840 allocate_optimized_out_value.
4841
58722cac
PA
48422013-07-04 Pedro Alves <palves@redhat.com>
4843
4844 * value.c (value_bits_valid): If the value is not lval_computed,
4845 or doesn't have a check_validity hook, assume the value is entirely
4846 valid.
4847
691a26f5
AB
48482013-07-04 Andrew Burgess <aburgess@broadcom.com>
4849
4850 * stack.c (read_frame_arg): No longer fetch lazy values.
4851 * value.c (value_optimized_out): If the value is not already
4852 marked optimized out, and is lazy then fetch it.
4853 (value_primitive_field): Move optimized out check to later in the
4854 function, after we have loaded any lazy values.
4855 (value_fetch_lazy): Use optimized out flag directly rather than
4856 calling optimized_out method.
4857
a58e2656
AB
48582013-07-04 Andrew Burgess <aburgess@broadcom.com>
4859
4860 * valops.c: Don't include "user-regs.h".
4861 (value_fetch_lazy): Moved to value.c.
4862 * value.c: Include "user-regs.h".
4863 (value_fetch_lazy): Moved from valops.c.
4864
bd885420
YQ
48652013-07-04 Yao Qi <yao@codesourcery.com>
4866
4867 Revert:
4868 2013-06-27 Yao Qi <yao@codesourcery.com>
4869
4870 * common/create-version.sh: Update comments. Handle the case
4871 that TARGET_ALIAS is empty.
4872
17ef446e
PA
48732013-07-03 Pedro Alves <palves@redhat.com>
4874
4875 * Makefile.in (config.status): Depend on development.sh.
4876 (aclocal_m4_deps): Add libmcheck.m4.
4877 * acinclude.m4: Include libmcheck.m4.
4878 * configure.ac: Source development.sh instead of setting
4879 'development' here. --enable-libmcheck/--disable-libmcheck code
4880 factored out to GDB_AC_LIBMCHECK. Run it.
4881 * development.sh: New file.
4882 * libmcheck.m4: New file.
4883 * configure: Regenerate.
4884
ac6dd50f
TT
48852013-07-02 Tom Tromey <tromey@redhat.com>
4886
4887 * contrib/ari/update-web-ari.sh: Update for version.in change.
4888
bd1df410
TT
48892013-07-02 Tom Tromey <tromey@redhat.com>
4890
4891 * common/ptid.h: Comment fixes.
4892
4db1a1dc
TT
48932013-07-01 Tom Tromey <tromey@redhat.com>
4894
4895 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4896 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4897 (dwarf2_read_index, create_all_comp_units): Update.
4898
dd9aa048
TT
48992013-07-01 Tom Tromey <tromey@redhat.com>
4900
4901 * configure.ac (build_warnings): Add -Wold-style-definition.
4902 * configure: Rebuild.
4903 * machoread.c (_initialize_machoread): Use "(void)".
4904 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4905 use "(void)".
4906
44d100c3
TT
49072013-07-01 Tom Tromey <tromey@redhat.com>
4908
4909 * configure.ac (build_warnings): Add -Wold-style-declaration.
4910 * configure: Rebuild.
4911 * dsrec.c (make_srec): Use "static const", not "const static".
4912 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4913 not "const static".
4914 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4915 Use "static const", not "const static".
4916 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4917 not "const static".
4918 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4919 not "const static".
4920 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4921 not "const static".
4922 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4923 not "const static".
4924 (v850_dbtrap_breakpoint_from_pc): Likewise.
4925 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4926 not "const static".
4927
2945b807
TT
49282013-07-01 Tom Tromey <tromey@redhat.com>
4929
4930 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4931 * configure: Rebuild.
4932
d8d2a3ee
PA
49332013-07-01 Pedro Alves <palves@redhat.com>
4934
4935 * defs.h: Include "pathmax.h".
4936 * utils.c: Don't include sys/param.h.
4937 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4938 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4939 instead of MAXPATHLEN.
4940 * solib-sunos.c: Don't include sys/param.h.
4941 * xcoffread.c: Don't include sys/param.h.
4942 * bsd-kvm.c: Don't include sys/param.h.
4943 * darwin-nat.c: Don't include sys/param.h.
4944 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4945 * darwin-nat-info.c: Don't include sys/param.h.
4946 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4947 MAXPATHLEN.
4948 * i386obsd-nat.c: Don't include sys/param.h.
4949 * inf-child.c: Don't include sys/param.h.
4950 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4951 * linux-fork.c: Don't include sys/param.h.
4952 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4953 * linux-nat.c: Don't include sys/param.h.
4954 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4955 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4956 * m68klinux-nat.c: Don't include sys/param.h.
4957 * nbsd-nat.c: Don't include sys/param.h.
4958 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4959 * ppc-linux-nat.c: Don't include sys/param.h.
4960 * rs6000-nat.c: Don't include sys/param.h.
4961 * spu-linux-nat.c. Don't include sys/param.h.
4962 * windows-nat.c: Don't include sys/param.h.
4963 * xtensa-linux-nat.c: Don't include sys/param.h.
4964 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4965
38ec2207
PA
49662013-07-01 Pedro Alves <palves@redhat.com>
4967
4968 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4969 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4970 * gnulib/aclocal.m4: Regenerate.
4971 * gnulib/config.in: Regenerate.
4972 * gnulib/configure: Regenerate.
4973 * gnulib/import/pathmax.h: New file.
4974 * gnulib/import/Makefile.am: Regenerate.
4975 * gnulib/import/Makefile.in: Regenerate.
4976 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4977 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4978 * gnulib/import/m4/pathmax.m4: New file.
4979
e655c1a2
PA
49802013-07-01 Pedro Alves <palves@redhat.com>
4981
4982 * configure.ac (GDBINIT): Define, depending on host.
4983 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4984 * top.c (PATH_MAX): Delete fallback definition.
4985 (GDBINIT_FILENAME): Delete.
4986 (gdbinit): Reimplement as const char array set to the GDBINIT
4987 string constant.
4988 * top.h (gdbinit): Make const.
4989 * configure, config.in: Regenerate.
4990
50dd9793
PA
49912013-07-01 Pedro Alves <palves@redhat.com>
4992
4993 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4994 * cli/cli-cmds.h (source_script): Likewise.
4995 * exceptions.c (catch_command_errors_const): New function.
4996 * exceptions.h (catch_command_errors_const): Declare.
4997 * main.c (get_init_files): Make parameters const, and adjust.
4998 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4999 'local_gdbinit' locals const. Adjust to use
5000 catch_command_errors_const.
5001 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5002 'local_gdbinit' locals const.
5003
bc7dea8d
PA
50042013-07-01 Pedro Alves <palves@redhat.com>
5005
5006 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5007 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5008 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5009 <unistd.h>.
5010
8839a007
PA
50112013-07-01 Pedro Alves <palves@redhat.com>
5012
5013 Import the "unistd" gnulib module.
5014 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5015 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5016 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5017 import/m4/unistd_h.m4.
5018 * gnulib/aclocal.m4: Renenerate.
5019 * gnulib/config.in: Renenerate.
5020 * gnulib/configure: Renenerate.
5021 * gnulib/import/Makefile.am: Renenerate.
5022 * gnulib/import/Makefile.in: Renenerate.
5023 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5024 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5025 * gnulib/import/m4/off_t.m4: New file.
5026 * gnulib/import/m4/ssize_t.m4: New file.
5027 * gnulib/import/m4/sys_types_h.m4: New file.
5028 * gnulib/import/m4/unistd_h.m4: New file.
5029 * gnulib/import/sys_types.in.h: New file.
5030 * gnulib/import/unistd.c: New file.
5031 * gnulib/import/unistd.in.h: New file.
5032
8c0da261
PA
50332013-07-01 Pedro Alves <palves@redhat.com>
5034
5035 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5036 defined instead of checking HAVE_UNISTD_H.
5037
3574124b
PA
50382013-07-01 Pedro Alves <palves@redhat.com>
5039
5040 Reimport gnulib from scratch.
5041 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5042 import/m4/onceonly.m4.
5043 * gnulib/aclocal.m4: Renegerate.
5044 * gnulib/config.in: Renegerate.
5045 * gnulib/configure: Renegerate.
5046 * gnulib/import/Makefile.in: Renegerate.
5047 * gnulib/import/extra/update-copyright: Renegerate.
5048 * gnulib/import/m4/onceonly.m4: Delete.
5049
702dc4fd
PA
50502013-07-01 Pedro Alves <palves@redhat.com>
5051
5052 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5053
47e1ce27
JK
50542013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5055
5056 Code cleanup.
5057 * remote.c (async_remote_interrupt_twice): Make it static.
5058 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5059
e82839d4
SDJ
50602013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5061
5062 * ia64-linux-tdep.c: Include <ctype.h>.
5063 (ia64_linux_stap_is_single_operand): New function.
5064 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5065
d6c2da54
TT
50662013-06-28 Tom Tromey <tromey@redhat.com>
5067
5068 * Makefile.in (version.c): Use version.in, not
5069 common/version.in.
5070 * common/create-version.sh: Likewise.
5071 * common/version.in: Move...
5072 * version.in: ...here.
5073
74da6f00
PA
50742013-06-28 Pedro Alves <palves@redhat.com>
5075
5076 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5077 here.
5078 * utils.h (pagination_enabled): Declare.
5079
d32dc48e
PA
50802013-06-28 Pedro Alves <palves@redhat.com>
5081
5082 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5083 Move higher up in file.
5084
0edd9e3b
TT
50852013-06-28 Tom Tromey <tromey@redhat.com>
5086
5087 * tracepoint.c (deprecated_readline_begin_hook)
5088 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5089 declare.
5090
4eb59108
PA
50912013-06-28 Pedro Alves <palves@redhat.com>
5092
5093 PR tui/14880
5094 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5095 checking if they're available.
5096 * value.c (value_available_contents_eq): Change comment.
5097 * value.h (value_available_contents_eq): Expand comment.
5098
97b17156
TT
50992013-06-27 Tom Tromey <tromey@redhat.com>
5100
5101 * target.c (find_run_target): Remove.
5102 * target.h (find_run_target): Remove.
5103
6a3bfc5c
TT
51042013-06-27 Tom Tromey <tromey@redhat.com>
5105
5106 * corelow.c (core_gdbarch): Now static.
5107
c9ef825d
TT
51082013-06-27 Tom Tromey <tromey@redhat.com>
5109
5110 * target.c (target_struct_index): Remove.
5111
e5823f1c
PA
51122013-06-27 Pedro Alves <palves@redhat.com>
5113
5114 * infrun.c: Remove comment describing the 'stepping over runtime
5115 loader dynamic symbol resolution code' mechanism; moved to
5116 gdbint.texinfo.
5117
97f8dd09
PA
51182013-06-27 Pedro Alves <palves@redhat.com>
5119
5120 * exceptions.c (catch_command_errors): Remove spurious space.
5121 * exceptions.h (catch_command_errors): Second parameter is "arg",
5122 not "command".
5123
02b1871e
YQ
51242013-06-27 Yao Qi <yao@codesourcery.com>
5125
5126 * common/create-version.sh: Update comments. Handle the case
5127 that TARGET_ALIAS is empty.
5128
bb1b1cf1
PA
51292013-06-26 Pedro Alves <palves@redhat.com>
5130
5131 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5132 comment.
5133
7b624e71
PA
51342013-06-26 Pedro Alves <palves@redhat.com>
5135
5136 * infrun.c: Update comments on stepping over runtime loader
5137 dynamic symbol resolution code.
5138
74e5a346
SDJ
51392013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5140
5141 * ax-gdb.h (union exp_element): Forward declare.
5142 * parser-defs.h: Include expression.h.
5143
a2fb2cee
MR
51442013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5145
5146 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5147
cdba14e0
DK
51482013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5149
5150 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5151
f30aa5af
DK
51522013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5153
5154 Fix trace-status to output proper start-time and stop-time.
5155 * tracepoint.c (trace_status_command): Fix type of printf arg to
5156 prevent improper type conversion.
5157 (trace_status_mi): Likewise.
5158
1aee363c
MR
51592013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5160
5161 * mips-tdep.c (mips_next_pc): Fix a typo.
5162
3356937a
MR
51632013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5164
5165 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5166
dc673c81
YQ
51672013-06-26 Pedro Alves <pedro@codesourcery.com>
5168 Yao Qi <yao@codesourcery.com>
5169
5170 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5171 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5172 * mi/mi-main.c (print_variable_or_computed): New function.
5173 (mi_cmd_trace_frame_collected): New function.
5174 * tracepoint.c (find_trace_state_variable_by_number): New.
5175 (struct traceframe_info): Move to tracepoint.h
5176 (struct collection_list): Likewise.
5177 (do_collect_symbol): Include locals and arguments in the
5178 collected variables list.
5179 (clear_collection_list): Clear wholly collected variables list
5180 and computed variables list.
5181 (append_exp): New function.
5182 (encode_actions_1): Include variables in the wholly
5183 collected variables list. Include memory ranges and
5184 full-fledged expressions in the computed expressions list.
5185 (encode_actions): Move some code to ...
5186 Return the cleanup chain.
5187 (encode_actions_rsp): ... here. New function.
5188 (get_traceframe_location, get_traceframe_info): Remove static.
5189 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5190 (struct collection_list): Moved from tracepoint.c. Add two
5191 new fields 'wholly_collected' and 'computed'.
5192 (find_trace_state_variable_by_number): Declare.
5193 (encode_actions): Adjust declaration.
5194 (encode_actions_rsp): Declare.
5195 (get_traceframe_info, get_traceframe_location): Declare.
5196
5197 * NEWS: Mention new MI command -trace-frame-collected.
5198
28a93511
YQ
51992013-06-26 Pedro Alves <pedro@codesourcery.com>
5200 Yao Qi <yao@codesourcery.com>
5201
5202 * ctf.c (ctf_traceframe_info): Push trace state variables
5203 present in the trace data into the traceframe info object.
5204 * breakpoint.c (DEF_VEC_I): Remove.
5205 * common/filestuff.c (DEF_VEC_I): Likewise.
5206 * dwarf2loc.c (DEF_VEC_I): Likewise.
5207 * mi/mi-main.c (DEF_VEC_I): Likewise.
5208 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5209 * features/traceframe-info.dtd: Add tvar element and its
5210 attributes.
5211 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5212 (build_traceframe_info): Push trace state variables present in
5213 the trace data into the traceframe info object.
5214 (traceframe_info_start_tvar): New function.
5215 (tvar_attributes): New.
5216 (traceframe_info_children): Add "tvar" element.
5217 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5218
5219 * NEWS: Mention the change in GDB and GDBserver.
5220
ddacd3c8
YQ
52212013-06-26 Pedro Alves <pedro@codesourcery.com>
5222 Yao Qi <yao@codesourcery.com>
5223
5224 * tracepoint.c (trace_dump_command): Move code to ...
5225 (get_traceframe_location): ... here. New.
5226
05796b35
YQ
52272013-06-26 Pedro Alves <pedro@codesourcery.com>
5228 Yao Qi <yao@codesourcery.com>
5229
5230 * tracepoint.c (trace_dump_command): GDB emits an error
5231 instead of a warning when a traceframe is not selected.
5232
cbfa3b61
YQ
52332013-06-26 Pedro Alves <pedro@codesourcery.com>
5234 Yao Qi <yao@codesourcery.com>
5235
5236 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5237 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5238 in collection_list.
5239 (do_clear_collection_list, init_collection_list): New.
5240 (encode_actions): Add local variables 'tracepoint_list' and
5241 'stepping_list'. Call init_collection_list and make cleanup
5242 which calls do_clear_collection_list. Don't call
5243 clear_collection_list.
5244 (_initialize_tracepoint): Delete references to
5245 'tracepoint_list' and 'stepping_list'.
5246
6e2048d3
TT
52472013-06-25 Tom Tromey <tromey@redhat.com>
5248
5249 * common/create-version.sh (date): Use "$", not "$$" in sed
5250 expression.
5251
42059f0e
KB
52522013-06-25 Kevin Buettner <kevinb@redhat.com>
5253
5254 * NEWS (New targets): Add entry for TI MSP430.
5255
a0743c90
YQ
52562013-06-25 Yao Qi <yao@codesourcery.com>
5257
5258 * remote.c (remote_start_remote): Move code to upload tsv
5259 earlier.
5260
9d6e6e84
HZ
52612013-06-25 Yao Qi <yao@codesourcery.com>
5262 Hui Zhu <hui@codesourcery.com>
5263 Pedro Alves <palves@redhat.com>
5264
5265 PR breakpoints/15075
5266 PR breakpoints/15434
5267 * breakpoint.c (bpstat_stop_status): Call
5268 b->ops->after_condition_true.
5269 (update_dprintf_command_list): Don't append "continue" command
5270 to the command list of dprintf breakpoint.
5271 (base_breakpoint_after_condition_true): New function.
5272 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5273 (dprintf_after_condition_true): New function.
5274 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5275 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5276
586cf749
KB
52772013-06-24 Kevin Buettner <kevinb@redhat.com>
5278
5279 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5280 (ALLDEPFILES): Add msp430-tdep.c.
5281 * configure.tgt (msp430*-*-elf): New target.
5282 * msp430-tdep.c: New file.
5283
1bbce132
MR
52842013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5285
5286 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5287 microMIPS synthetic symbols.
5288
3e5d3a5a
MR
52892013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5290
5291 * objfiles.h (pc_in_section): New prototype.
5292 (in_plt_section): Remove name argument, replace prototype with
5293 static inline function.
5294 * mips-tdep.h: Include "objfiles.h".
5295 (in_mips_stubs_section): New function.
5296 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5297 in_solib_call_trampoline member.
5298 (hppa_in_solib_call_trampoline): Remove name argument.
5299 * objfiles.c (pc_in_section): New function.
5300 (in_plt_section): Remove function.
5301 * mips-linux-tdep.c: Include "objfiles.h".
5302 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5303 name argument. Return 1 rather than the low 16-bit halfword of
5304 any instruction examined.
5305 (mips_linux_in_dynsym_resolve_code): Update
5306 mips_linux_in_dynsym_stub call accordingly.
5307 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5308 rather than an equivalent hand-coded sequence.
5309 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5310 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5311 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5312 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5313 in_opd_section.
5314 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5315 on call to tdep->in_solib_call_trampoline.
5316 (hppa_in_solib_call_trampoline): Remove name argument, update
5317 according to in_plt_section change.
5318 (hppa_skip_trampoline_code): Update according to in_plt_section
5319 change.
5320 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5321 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5322 Likewise.
5323 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5324 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5325 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5326 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5327 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5328 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5329 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5330 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5331 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5332 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5333 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5334 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5335 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5336
b9b26a16
JB
53372013-06-24 Joel Brobecker <brobecker@adacore.com>
5338
5339 * common/create-version.sh: Fix expansion of $host_alias
5340 and $target_alias in generation of HOST_NAME and TARGET_NAME
5341 (resp.).
5342
01208463
TT
53432013-06-24 Tom Tromey <tromey@redhat.com>
5344
5345 * common/create-version.sh: New file.
5346 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5347 create-version.sh.
5348 (HFILES_NO_SRCDIR): Use common/version.h.
5349 * version.in: Move to ...
5350 * common/version.in: ... here. Replace date with "DATE".
5351 * version.h: Move to ...
5352 * common/version.h: ... here.
5353
bb6b9a5e
JB
53542013-06-21 Joel Brobecker <brobecker@adacore.com>
5355
5356 * gdb/gnulib/Makefile.in: Update date in copyright header.
5357 * gdb/gnulib/configure.ac: Ditto.
5358 * gdb/gnulib/update-gnulib.sh: Ditto.
5359
c3b18ee7
JB
53602013-06-21 Joel Brobecker <brobecker@adacore.com>
5361
5362 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5363 "gdb/gnulib/import".
5364
85d3b769
WN
53652013-06-21 Will Newton <will.newton@linaro.org>
5366
5367 * doublest.c (ldfrexp): Remove function.
5368 (convert_doublest_to_floatformat): Call frexpl instead of
5369 ldfrexp.
5370
88b48903
WN
53712013-06-21 Will Newton <will.newton@linaro.org>
5372
5373 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5374 * gnulib/aclocal.m4: Regenerate.
5375 * gnulib/config.in: Regenerate.
5376 * gnulib/configure: Regenerate.
5377 * gnulib/import/Makefile.am: Update.
5378 * gnulib/import/Makefile.in: Update.
5379 * gnulib/import/m4/gnulib-cache.m4: Update.
5380 * gnulib/import/m4/gnulib-comp.m4: Update.
5381 * gnulib/import/float+.h: Import.
5382 * gnulib/import/float.c: Import.
5383 * gnulib/import/float.in.h: Import.
5384 * gnulib/import/fpucw.h: Import.
5385 * gnulib/import/frexp.c: Import.
5386 * gnulib/import/frexpl.c: Import.
5387 * gnulib/import/isnan.c: Import.
5388 * gnulib/import/isnand-nolibm.h: Import.
5389 * gnulib/import/isnand.c: Import.
5390 * gnulib/import/isnanl-nolibm.h: Import.
5391 * gnulib/import/isnanl.c: Import.
5392 * gnulib/import/itold.c: Import.
5393 * gnulib/import/m4/exponentd.m4: Import.
5394 * gnulib/import/m4/exponentl.m4: Import.
5395 * gnulib/import/m4/float_h.m4: Import.
5396 * gnulib/import/m4/fpieee.m4: Import.
5397 * gnulib/import/m4/frexp.m4: Import.
5398 * gnulib/import/m4/frexpl.m4: Import.
5399 * gnulib/import/m4/isnand.m4: Import.
5400 * gnulib/import/m4/isnanl.m4: Import.
5401 * gnulib/import/m4/math_h.m4: Import.
5402 * gnulib/import/math.c: Import.
5403 * gnulib/import/math.in.h: Import.
5404
4353c9e6
JK
54052013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5406
5407 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5408 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5409 signature_INTEL_edx comparisons.
5410
e3e06db3
DE
54112013-06-20 Doug Evans <dje@google.com>
5412
6ac97d4c
DE
5413 symtab/15652
5414 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5415 All callers updated.
5416 (open_dwp_file): If we can't find the dwp file, search the basename
5417 in debug-file-directory.
5418
93417882
DE
5419 * dwarf2read.c (struct dwp_file): Fix comment.
5420 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5421
e3e06db3
DE
5422 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5423 better.
5424
0878d0fa
YQ
54252013-06-20 Yao Qi <yao@codesourcery.com>
5426
5427 * breakpoint.c (create_breakpoint): Fix code indentation.
5428
023fa29b
YQ
54292013-06-20 Yao Qi <yao@codesourcery.com>
5430
5431 * breakpoint.c (create_breakpoints_sal_default): Remove
5432 parameter 'lsal'. Update declaration.
5433 (bkpt_create_breakpoints_sal): Caller update.
5434 (tracepoint_create_breakpoints_sal): Likewise.
5435
c898adb7
YQ
54362013-06-20 Pedro Alves <pedro@codesourcery.com>
5437 Yao Qi <yao@codesourcery.com>
5438
5439 * NEWS: Mention the new option '--skip-unavailable' of command
5440 -data-list-register-values.
5441 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5442 --skip-unavailable option. Adjust to use output_register.
5443 (output_register): Add new 'skip_unavailable' parameter.
5444 Handle it.
5445
4d157a3d
MF
54462013-06-19 Mike Frysinger <vapier@gentoo.org>
5447
5448 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5449 common/i386-gcc-cpuid.h.
5450 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5451 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5452 Copy the latest version from upstream gcc.
5453 * common/linux-btrace.c: Include i386-cpuid.h.
5454 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5455 call to i386_cpuid.
5456 (cpu_supports_btrace): Likewise.
5457 * go32-nat.c: Include i386-cpuid.h.
5458 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5459
1ce4db08
DE
54602013-06-19 Doug Evans <dje@google.com>
5461
5462 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5463 (get_section_index): Ditto.
5464
0e4777df
TT
54652013-06-19 Tom Tromey <tromey@redhat.com>
5466
5467 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5468 "dprintf" help.
5469
3190f0c6
DE
54702013-06-18 Doug Evans <dje@google.com>
5471
5472 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5473 before using it.
5474 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5475 Move test of cu_index closer to use. Print complaint if cu_index
5476 is bad.
5477
8b89a20a
JB
54782013-06-18 Joel Brobecker <brobecker@adacore.com>
5479
5480 * machoread.c (oso_vector): Delete this global.
5481 (macho_register_oso): Add new parameter "oso_vector_ptr".
5482 Use it instead of the "oso_vector" global.
5483 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5484 (macho_symfile_read): Use a local oso_vector, to be free'ed
5485 at the end of this function, in place of the old "oso_vector"
5486 global. Update various function calls accordingly. Use one
5487 single cleanup chain for the entire function.
5488
59b0c7c1
JB
54892013-06-18 Joel Brobecker <brobecker@adacore.com>
5490
937c708c 5491 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5492 DWARF2_PER_OBJFILE by uses of DATA instead.
5493
427cd150
TT
54942013-06-18 Tom Tromey <tromey@redhat.com>
5495
5496 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5497 argument.
5498 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5499 Special case signals other than GDB_SIGNAL_TRAP.
5500 (explains_signal_watchpoint): New function.
5501 (base_breakpoint_explains_signal): Add 'sig' argument.
5502 (initialize_breakpoint_ops): Set 'explains_signal' method for
5503 watchpoints.
5504 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5505 signal argument.
5506 (bpstat_explains_signal): Likewise.
5507 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5508
2d57700b
TT
55092013-06-18 Tom Tromey <tromey@redhat.com>
5510
5511 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5512
ac475191
TT
55132013-06-18 Tom Tromey <tromey@redhat.com>
5514
5515 * python/python.c (finish_python_initialization): Decref
5516 'pythondir' on failure path as well.
5517
5bd1ef56
TT
55182013-06-18 Tom Tromey <tromey@redhat.com>
5519
5520 PR symtab/15391:
5521 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5522 after taking bits_to_skip into account. Sign extend byte_offset.
5523 * utils.h (gdb_sign_extend): Declare.
5524 * utils.c (gdb_sign_extend): New function.
5525
92fac807
JK
55262013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5527
5528 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5529
2d503272
PM
55302013-06-17 Pierre Muller <muller@sourceware.org>
5531
5532 * corelow.c (core_open): Print GDB signal name instead of target
5533 signal number.
5534
6916fd98
MF
55352013-06-17 Mike Frysinger <vapier@gentoo.org>
5536
5537 * .gitignore: Add /gcore.
5538
9c02c129
DE
55392013-06-13 Doug Evans <dje@google.com>
5540
5541 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5542 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5543
d0548fa2
PM
55442013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5545
5546 * stack.c (backtrace_command_1): Fix indentation.
5547
22128028
JB
55482013-06-11 Joel Brobecker <brobecker@adacore.com>
5549
5550 * window-nat.c (thread_rec): Add missing empty line after
5551 local variable declaration.
5552
2ed3e009
JB
55532013-06-11 Joel Brobecker <brobecker@adacore.com>
5554
5555 * windows-nat.c (thread_rec): Revert format used to print
5556 error code returned by SuspendThread from %d back to %u.
5557
0c3d84be
JB
55582013-06-11 Joel Brobecker <brobecker@adacore.com>
5559
5560 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5561 ID in debug trace.
5562 (get_windows_debug_event): Likewise, for all debug traces.
5563
80e88e1a
JB
55642013-06-11 Joel Brobecker <brobecker@adacore.com>
5565
5566 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5567 warning message.
5568
1edebdbf
YQ
55692013-06-08 Pedro Alves <pedro@codesourcery.com>
5570 Yao Qi <yao@codesourcery.com>
5571
5572 * mi/mi-main.c (get_register): Remove declaration.
5573 (output_register): Declare.
5574 (mi_cmd_data_list_register_values): Remove local variable
5575 'tuple_cleanup'. Move some code into output_register.
5576 (get_register): Renamed to ...
5577 (output_register): ... this. Output the register's
5578 "number" ui_out tuple here.
5579
47d48711
PA
55802013-06-07 Pedro Alves <palves@redhat.com>
5581
5582 * darwin-nat.c: Fix formating in copyright header.
5583 * darwin-nat.h: Likewise.
5584 * gnu-nat.c: Likewise.
5585 * machoread.c: Likewise.
5586
3aee8918
PA
55872013-06-07 Pedro Alves <palves@redhat.com>
5588
5f2b57b5 5589 PR server/14823
3aee8918
PA
5590 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5591 static. Output a global target description pointer.
5592 (init_registers_${name}): Adjust to initialize a
5593 target description structure.
5594
fe8400b4
WN
55952013-06-07 Will Newton <will.newton@linaro.org>
5596
5597 * printcmd.c (build_address_symbolic): Call
5598 gdbarch_addr_bits_remove for text minimal symbols.
5599
20df6206
WN
56002013-06-07 Will Newton <will.newton@linaro.org>
5601
5602 * MAINTAINERS: Add myself to Write After Approval.
5603
aef525cb
YQ
56042013-06-07 Yao Qi <yao@codesourcery.com>
5605
5606 * tracepoint.c (start_tracing): Move code to ...
5607 (trace_reset_local_state): ... here. New.
5608 (disconnect_tracing): Don't call set_current_traceframe,
5609 set_tracepoint_num, and set_traceframe_context. Call
5610 trace_reset_local_state instead.
5611 (tfile_close): Call trace_reset_local_state.
5612 * ctf.c (ctf_close): Likewise.
5613 * remote.c (remote_close): Likewise.
5614 * tracepoint.h (trace_reset_local_state): Declare.
5615
d2415c6c
DE
56162013-06-06 Doug Evans <dje@google.com>
5617
5618 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5619 and fix header docs.
5620
69fc87c2
DE
56212013-06-05 Doug Evans <dje@google.com>
5622 Keith Seitz <keiths@redhat.com>
5623
5624 PR 15519
5625 * cp-namespace.c (find_symbol_in_baseclass): Call
5626 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5627 Check result of call to lookup_symbol_static.
5628 Call lookup_static_symbol_aux unconditionally.
5629 Call check_typedef on base types before accessing them.
5630 (cp_lookup_nested_symbol): Fix comment.
5631
a513d1e8
LM
56322013-06-05 Luis Machado <lgustavo@codesourcery.com>
5633
5634 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5635 minimal symbols pointing to function descriptors.
5636
351a6f02
TT
56372013-06-05 Tom Tromey <tromey@redhat.com>
5638
5639 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5640
5e1b953b 56412013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5642 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5643
5644 * remote.c (remote_wait_as): Restore signal handler before returning
5645 when GDB gets a notification.
5646
f9e14852
GB
56472013-06-04 Gary Benson <gbenson@redhat.com>
5648
8445cbf1 5649 PR 2328
f9e14852
GB
5650 * breakpoint.h (handle_solib_event): Moved function declaration
5651 to solib.h.
5652 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5653 (bpstat_stop_status): Pass new argument to handle_solib_event.
5654 * solib.h (update_solib_breakpoints): New function declaration.
5655 (handle_solib_event): Moved function declaration from
5656 breakpoint.h.
5657 * solib.c (update_solib_breakpoints): New function.
5658 (handle_solib_event): Moved function from breakpoint.c.
5659 Updated to call solib_ops->handle_event if not NULL.
5660 * solist.h (target_so_ops): New fields "update_breakpoints" and
5661 "handle_event".
5662 * infrun.c (set_stop_on_solib_events): New function.
5663 (_initialize_infrun): Use the above for "set
5664 stop-on-solib-events".
5665 (handle_inferior_event): Pass new argument to handle_solib_event.
5666 * solib-svr4.c (probe.h): New include.
5667 (svr4_free_library_list): New forward declaration.
5668 (probe_action): New enum.
5669 (probe_info): New struct.
5670 (probe_info): New static variable.
5671 (NUM_PROBES): New definition.
5672 (svr4_info): New fields "using_xfer", "probes_table" and
5673 "solib_list".
5674 (free_probes_table): New function.
5675 (free_solib_list): New function.
5676 (svr4_pspace_data_cleanup): Free probes table and solib list.
5677 (svr4_copy_library_list): New function.
5678 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5679 (svr4_read_so_list): New parameter "prev_lm".
5680 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5681 (svr4_current_sos): New function.
5682 (probe_and_action): New struct.
5683 (hash_probe_and_action): New function.
5684 (equal_probe_and_action): Likewise.
5685 (register_solib_event_probe): Likewise.
5686 (solib_event_probe_at): Likewise.
5687 (solib_event_probe_action): Likewise.
5688 (solist_update_full): Likewise.
5689 (solist_update_incremental): Likewise.
5690 (disable_probes_interface_cleanup): Likewise.
5691 (svr4_handle_solib_event): Likewise.
5692 (svr4_update_solib_event_breakpoint): Likewise.
5693 (svr4_update_solib_event_breakpoints): Likewise.
5694 (svr4_create_solib_event_breakpoints): Likewise.
5695 (enable_break): Free probes table before creating breakpoints.
5696 Use svr4_create_solib_event_breakpoints to create breakpoints.
5697 (svr4_solib_create_inferior_hook): Free the solib list.
5698 (_initialize_svr4_solib): Initialise
5699 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5700
ced63ec0
GB
57012013-06-04 Gary Benson <gbenson@redhat.com>
5702
5703 * target.h (target_ops): New field
5704 "to_augmented_libraries_svr4_read".
5705 (target_augmented_libraries_svr4_read): New macro.
5706 * target.c (update_current_target): Handle
5707 to_augmented_libraries_svr4_read.
5708 * remote.c (remote_state): New field
5709 "augmented_libraries_svr4_read".
5710 (remote_augmented_libraries_svr4_read_feature): New function.
5711 (remote_protocol_features): Add entry for
5712 "augmented-libraries-svr4-read".
5713 (remote_augmented_libraries_svr4_read): New function.
5714 (init_remote_ops): Initialize
5715 remote_ops.to_augmented_libraries_svr4_read.
5716
7f91dbec
GB
57172013-06-04 Gary Benson <gbenson@redhat.com>
5718
5719 * NEWS: Update.
5720
607ece04
GB
57212013-06-04 Gary Benson <gbenson@redhat.com>
5722
5723 * objfiles.h (inhibit_section_map_updates): New function
5724 declaration.
5725 (resume_section_map_updates): Likewise.
5726 (resume_section_map_updates_cleanup): Likewise.
5727 * objfiles.c (objfile_pspace_info): Removed field
5728 "objfiles_changed_p". New fields "new_objfiles_available",
5729 "section_map_dirty" and "inhibit_updates".
5730 (allocate_objfile): Set new_objfiles_available.
5731 (free_objfile): Set section_map_dirty.
5732 (objfile_relocate1): Likewise.
5733 (in_plt_section): Likewise.
5734 (find_pc_section): Update the conditions under which the
5735 section map will be updated.
5736 (inhibit_section_map_updates): New function.
5737 (resume_section_map_updates): Likewise.
5738 (resume_section_map_updates_cleanup): Likewise.
5739
9ee6a5ac
GB
57402013-06-04 Gary Benson <gbenson@redhat.com>
5741
5742 * probe.h (get_probe_argument_count): New declaration.
5743 (evaluate_probe_argument): Likewise.
5744 * probe.c (get_probe_argument_count): New function.
5745 (evaluate_probe_argument): Likewise.
5746 (probe_safe_evaluate_at_pc): Use the above new functions.
5747
845d4708
AM
57482013-06-04 Alan Modra <amodra@gmail.com>
5749
5750 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5751 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5752 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5753 target mem reads on optional insns.
5754 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5755 ppc_insns_match_pattern calls.
5756 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5757 Add match for power7 thread safety insns, and new order of
5758 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5759 invocation in comment, and update rest of comment.
5760 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5761 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5762 (ppc64_standard_linkage2_target): Update insn offsets.
5763 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5764 stubs first. Update calls.
5765
404e278f
YQ
57662013-06-04 Yao Qi <yao@codesourcery.com>
5767
5768 * solib.c (solib_find): Don't need dir separator if path has
5769 drive spec.
5770
f6aea118
JB
57712013-06-03 Joel Brobecker <brobecker@adacore.com>
5772
5773 Revert (indirectly causes a SIGSEGV):
5774 * machoread.c (macho_symfile_read): Assign first cleanup to
5775 'back_to'.
5776
87967e27
YQ
57772013-06-03 Yao Qi <yao@codesourcery.com>
5778
5779 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5780 mi-parse.c. Make them static.
5781 (mi_all_values): Likewise.
5782 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5783 mi_parse_print_values. Make it external.
5784 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5785 Remove the declarations.
5786 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5787 * mi/mi-parse.h (mi_parse_print_values): Declare.
5788 * mi/mi-cmd-stack.c: Include mi-parse.h.
5789 (parse_print_values): Remove
5790 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5791 of parse_print_values.
5792 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5793
3ca73e0c
YQ
57942013-05-31 Pedro Alves <pedro@codesourcery.com>
5795 Yao Qi <yao@codesourcery.com>
5796
5797 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5798 (encode_actions): Move code to ...
5799 (all_tracepoint_actions_and_cleanup): ... here. New.
5800 (trace_dump_command): Likewise.
5801
4e993a19
TT
58022013-05-30 Tom Tromey <tromey@redhat.com>
5803
5804 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5805
e3b76b4f
TT
58062013-05-30 Tom Tromey <tromey@redhat.com>
5807
5808 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5809 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5810 'old_chain' argument. Add 'parser_result' argument.
5811 (gdb_xml_create_parser_and_cleanup): Remove old version.
5812 (gdb_xml_parse_quick): Update.
5813 (xml_process_xincludes): Update.
5814 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5815 declare.
5816
db26349c
TT
58172013-05-30 Tom Tromey <tromey@redhat.com>
5818
5819 * probe.c (collect_probes): Check arguments for NULL before
5820 calling compile_rx_or_error.
5821 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5822 Remove NULL return.
5823
77f9e713
TT
58242013-05-30 Tom Tromey <tromey@redhat.com>
5825
5826 * infrun.c (adjust_pc_after_break): Introduce an outer null
5827 cleanup.
5828
45475de7
TT
58292013-05-30 Tom Tromey <tromey@redhat.com>
5830
5831 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5832
ac5007fd
TT
58332013-05-30 Tom Tromey <tromey@redhat.com>
5834
5835 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5836 for 'old_chain'. Do not check 'head' before processing
5837 cleanups.
5838
cd82eddc
TT
58392013-05-30 Tom Tromey <tromey@redhat.com>
5840
5841 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5842 "cleanup_tuple".
5843
57cee33a
TT
58442013-05-30 Tom Tromey <tromey@redhat.com>
5845
5846 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5847 inner scope. Unconditionally call do_cleanups.
5848
795d915c
TT
58492013-05-30 Tom Tromey <tromey@redhat.com>
5850
5851 * source.c (find_and_open_source): Call do_cleanups.
5852
1fc3cf4a
TT
58532013-05-30 Tom Tromey <tromey@redhat.com>
5854
5855 * linux-thread-db.c (thread_db_load_search): Unconditionally
5856 call do_cleanups.
5857
e35ac9bf
TT
58582013-05-30 Tom Tromey <tromey@redhat.com>
5859
5860 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5861 for 'cleanup'; instead use a later one.
5862
f3300387
TT
58632013-05-30 Tom Tromey <tromey@redhat.com>
5864
5865 * python/py-breakpoint.c (bppy_get_commands): Use
5866 explicit, unconditional return.
5867 * python/py-frame.c (frapy_read_var): Likewise.
5868 * python/python.c (gdbpy_decode_line): Likewise.
5869
c27e16e3
TT
58702013-05-30 Tom Tromey <tromey@redhat.com>
5871
5872 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5873 do_cleanups on all return paths.
5874
5ae85e44
TT
58752013-05-30 Tom Tromey <tromey@redhat.com>
5876
5877 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5878
73b8d9da
TT
58792013-05-30 Tom Tromey <tromey@redhat.com>
5880
5881 * stabsread.c (read_struct_type): Call do_cleanups along
5882 all return paths.
5883
7d266584
MR
58842013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5885
5886 * mips-linux-tdep.c: Adjust formatting throughout.
5887
0f900f54
TT
58882013-05-30 Tom Tromey <tromey@redhat.com>
5889
5890 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5891 along all return paths.
5892
a991ac28
TT
58932013-05-30 Tom Tromey <tromey@redhat.com>
5894
5895 * symfile.c (find_separate_debug_file): Call do_cleanups
5896 along all return paths.
5897
1abaf042
TT
58982013-05-30 Tom Tromey <tromey@redhat.com>
5899
5900 * symtab.c (search_symbols): Introduce a null cleanup for
5901 'retval_chain'.
5902
edefe1da
TT
59032013-05-30 Tom Tromey <tromey@redhat.com>
5904
5905 * python/py-value.c (valpy_binop): Call do_cleanups before
5906 exiting loop.
5907
54f72dcc
TT
59082013-05-30 Tom Tromey <tromey@redhat.com>
5909
5910 * python/py-prettyprint.c (print_children): Remove extra
5911 do_cleanups call.
5912
af1c6971
TT
59132013-05-30 Tom Tromey <tromey@redhat.com>
5914
5915 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5916 all return paths.
5917
b862ce75
TT
59182013-05-30 Tom Tromey <tromey@redhat.com>
5919
5920 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5921 along all return paths.
5922
e12fefc8
TT
59232013-05-30 Tom Tromey <tromey@redhat.com>
5924
5925 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5926 call do_cleanups.
5927
4867f990
TT
59282013-05-30 Tom Tromey <tromey@redhat.com>
5929
5930 * varobj.c (c_value_of_root): Call do_cleanups along all
5931 return paths.
5932
4fd2d6af
TT
59332013-05-30 Tom Tromey <tromey@redhat.com>
5934
5935 * tracepoint.c (trace_dump_command): Unconditionally call
5936 do_cleanups.
5937
752eb8b4
TT
59382013-05-30 Tom Tromey <tromey@redhat.com>
5939
5940 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5941 do_cleanups earlier.
5942
e42d0aa5
TT
59432013-05-30 Tom Tromey <tromey@redhat.com>
5944
5945 * machoread.c (macho_symfile_read): Assign first cleanup to
5946 'back_to'.
5947
4bbc010a
TT
59482013-05-30 Tom Tromey <tromey@redhat.com>
5949
5950 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5951
b9635925
TT
59522013-05-30 Tom Tromey <tromey@redhat.com>
5953
5954 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5955
25f43500
TT
59562013-05-30 Tom Tromey <tromey@redhat.com>
5957
5958 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5959 call discard_cleanups.
5960 (inf_ptrace_attach): Likewise.
5961
d6a2e54a
TT
59622013-05-30 Tom Tromey <tromey@redhat.com>
5963
5964 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5965 return paths.
5966 (mips_initialize): Likewise.
5967 (common_open): Call do_cleanups.
5968
48be7c1b
TT
59692013-05-30 Tom Tromey <tromey@redhat.com>
5970
5971 * utils.c (internal_vproblem): Call do_cleanups.
5972
e61727ab
TT
59732013-05-30 Tom Tromey <tromey@redhat.com>
5974
5975 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5976
b81b921f
TT
59772013-05-30 Tom Tromey <tromey@redhat.com>
5978
5979 * cli/cli-script.c (setup_user_args): Don't return after error.
5980
fe48dfb1
TT
59812013-05-30 Tom Tromey <tromey@redhat.com>
5982
5983 * somread.c (som_symtab_read): Call do_cleanups.
5984
27833de7
TT
59852013-05-30 Tom Tromey <tromey@redhat.com>
5986
5987 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5988
5b3fca71
TT
59892013-05-30 Tom Tromey <tromey@redhat.com>
5990
5991 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5992 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5993 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5994 * source.c (show_substitute_path_command): Call do_cleanups.
5995 (unset_substitute_path_command, set_substitute_path_command):
5996 Likewise.
5997 * symfile.c (load_command): Call do_cleanups.
5998
af83e3f8
TT
59992013-05-30 Tom Tromey <tromey@redhat.com>
6000
6001 * contrib/cleanup_check.py: New file.
6002 * contrib/gcc-with-excheck: Add option parsing.
6003
564eac42
JB
60042013-05-30 Joel Brobecker <brobecker@adacore.com>
6005
6006 * windows-nat.c (windows_delete_thread): Add missing space
6007 in cast expression.
6008
47902076
HAQ
60092013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6010
6011 * inferior.c (top level): Include tilde.h.
6012 (add_inferior_command): Call tilde_expand on the value of 'exec'
6013 argument.
6014
23da373a
YQ
60152013-05-30 Pedro Alves <pedro@codesourcery.com>
6016 Yao Qi <yao@codesourcery.com>
6017
6018 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6019 Caller update.
6020 (encode_actions): Likewise.
6021 * remote.c (remote_download_tracepoint): Caller update.
6022 * tracepoint.h (encode_actions): Update declaration.
6023
a6e6f791
PA
60242013-05-30 Pedro Alves <palves@redhat.com>
6025
6026 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6027 pointer.
6028
36d25514
YQ
60292013-05-30 Yao Qi <yao@codesourcery.com>
6030
6031 * remote.c (remote_check_symbols): Remove unused parameter
6032 'objfile'.
6033 Declaration update.
6034 (remote_start_remote, remote_new_objfile): Caller update.
6035
62a813cc
YQ
60362013-05-30 Yao Qi <yao@codesourcery.com>
6037
6038 * mi/mi-cmds.c (mi_cmds): Define MI command
6039 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6040 DEF_MI_CMD_CLI.
6041
28439a30
PA
60422013-05-29 Pedro Alves <palves@redhat.com>
6043
6044 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6045 (remote_insert_watchpoint, remote_remove_watchpoint)
6046 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6047 (remote_verify_memory, compare_sections_command)
6048 (remote_search_memory): Set the general process/thread on the
6049 remote side.
6050
6ac1c082
PA
60512013-05-29 Pedro Alves <palves@redhat.com>
6052
6053 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6054 (_initialize_aarch64_tdep): Don't call
6055 initialize_tdesc_aarch64_without_fpu.
6056 * features/Makefile (WHICH): Remove reference to
6057 aarch64-without-fpu.
6058 * features/aarch64-without-fpu.c: Delete file.
6059 * regformats/aarch64-without-fpu.dat: Delete file.
6060
a73e3634
YQ
60612013-05-28 Yao Qi <yao@codesourcery.com>
6062
6063 * tracepoint.c (stringify_collection_list): Remove parameter
6064 'string'.
6065 (encode_actions): Caller update. Remove local variables.
6066
c0ea94eb
YQ
60672013-05-24 Yao Qi <yao@codesourcery.com>
6068
6069 * tracepoint.c (TFILE_PID): Remove.
6070 (tfile_open): Don't add thread and inferior.
6071 (tfile_close): Don't set 'inferior_ptid'. Don't call
6072 exit_inferior_silent.
6073 (tfile_thread_alive): Remove.
6074 (init_tfile_ops): Don't set field 'to_thread_alive' of
6075 tfile_ops.
6076
20d7f211
DE
60772013-05-23 Doug Evans <dje@google.com>
6078
6079 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6080
8658d16d
PA
60812013-05-23 Pedro Alves <palves@redhat.com>
6082
6083 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6084 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6085 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6086 Only define if HAVE_SOCKETS is defined.
6087 * configure.ac: Check for sys/socket.h.
6088 * config.in, configure: Regenerate.
6089
21aa081e
PA
60902013-05-23 Pedro Alves <palves@redhat.com>
6091
6092 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6093 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6094 printing uint32_t variables.
6095
c2d6af84
PA
60962013-05-23 Pedro Alves <palves@redhat.com>
6097
6098 * NEWS: Mention GDBserver range stepping support.
6099
c1e36e3e
PA
61002013-05-23 Yao Qi <yao@codesourcery.com>
6101 Pedro Alves <palves@redhat.com>
6102
6103 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6104 field.
6105 * infcmd.c (step_once, until_next_command): Enable range stepping.
6106 * infrun.c (displaced_step_prepare): Disable range stepping.
6107 (resume): Disable range stepping if stepping over a breakpoint or
6108 we have software watchpoints. If range stepping is enabled,
6109 assert the thread is in the stepping range.
6110 (clear_proceed_status_thread): Clear may_range_step.
6111 (handle_inferior_event): Disable range stepping as soon as we know
6112 the thread that hit the event. Re-enable it whenever we're going
6113 to step with a step range.
6114 * remote.c (struct vCont_action_support) <r>: New field.
6115 (use_range_stepping): New global.
6116 (remote_vcont_probe): Handle 'r' action.
6117 (append_resumption): Append an 'r' action if the thread may range
6118 step.
6119 (show_range_stepping): New function.
6120 (set_range_stepping): New function.
6121 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6122 'set range-stepping' and 'show range-stepping' commands.
6123 * NEWS: Mention range stepping, the new vCont;r action, and the
6124 new "set/show range-stepping" commands.
6125
d458bd84
PA
61262013-05-23 Yao Qi <yao@codesourcery.com>
6127 Pedro Alves <palves@redhat.com>
6128
6129 * remote.c (struct vCont_action_support): New struct.
6130 (struct remote_state) <support_vCont_t>: Remove field.
6131 <vCont_actions_support>: New field.
6132 (remote_vcont_probe, remote_stop_ns): Update.
6133
ce4c476a
PA
61342013-05-23 Yao Qi <yao@codesourcery.com>
6135 Pedro Alves <palves@redhat.com>
6136
6137 * gdbthread.h (pc_in_thread_step_range): New declaration.
6138 * thread.c (pc_in_thread_step_range): New function.
6139 * infrun.c (handle_inferior_event): Use it.
6140
ce70887a
JB
61412013-05-23 Joel Brobecker <brobecker@adacore.com>
6142
6143 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6144 of sprintf.
6145
55b87a52
KS
61462013-05-22 Keith Seitz <keiths@redhat.com>
6147
6148 * ada-lang.c (is_known_support_routine): Add explicit free of
6149 'func_name' from find_frame_funname.
6150 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6151 for func_name from find_frame_funname.
6152 * python/py-frame.c (frapy_name): Add explicit free of
6153 'name' from find_frame_funname.
6154 * stack.c (find_frame_funname): Add comment explaining that
6155 funcp must be freed by the caller.
6156 Return copy of symbol names instead of pointers.
6157 (print_frame): Add a cleanup for 'funname' from
6158 find_frame_funname.
6159 * stack.h (find_frame_funname): Remove "const" from
6160 'funname' parameter.
6161
5f2e6b00
TT
61622013-05-22 Tom Tromey <tromey@redhat.com>
6163
6164 PR c++/15401:
6165 * c-valprint.c (c_value_print): Use value_addr for
6166 references. Convert back to reference type with value_ref.
6167
d85c4847
EZ
61682013-05-22 Eli Zaretskii <eliz@gnu.org>
6169
6170 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6171 unloaded DLL, it will be done by handle_solib_event. See
6172 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6173 details.
6174
54eb231c
PM
61752013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6176
6177 * ui-out.c: Create typedef ui_out_level_p and define vector
6178 operations for that type.
6179 (struct ui_out): Use a vector instead of an array.
6180 (current_level): Return level from a vector.
6181 (push_level): Create a level in a vector.
6182 (pop_level): Delete a level in a vector.
6183 (ui_out_new): Create initial level zero level, and store in a
6184 vector.
6185 (ui_out_destroy): Add vector cleanup.
6186
ac90359c
PA
61872013-05-22 Pedro Alves <palves@redhat.com>
6188
6189 * python/python-internal.h (gdb_Py_DECREF): Tag with
6190 "ARI: editCase function".
6191
6dcc1893
PP
61922013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6193
6194 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6195
c8c735b9
PA
61962013-05-21 Pedro Alves <palves@redhat.com>
6197
6198 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6199 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6200 * python/py-utils.c (py_decref): Don't check for NULL before
6201 calling Py_DECREF.
6202
1915daeb
PA
62032013-05-21 Pedro Alves <palves@redhat.com>
6204
6205 * python/py-utils.c (py_decref): Remove extra braces.
6206 (gdb_pymodule_addobject): Remove extra braces.
6207 * python-internal.h (gdb_Py_DECREF): New static inline function.
6208 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6209
bd9673a4
PW
62102013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6211
6212 * breakpoints.c (detach_breakpoints): Do not
6213 detach breakpoints locations with loc_type bp_loc_other.
6214
ff6009d0
JK
62152013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6216
6217 Workaround Python 2.6.
6218 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6219 a block.
6220
3641da11
JK
62212013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6222
6223 Code cleanup: constification.
6224 * solib.c (solib_ops): Make return type and ops variable type const.
6225 (set_solib_ops): Make the new_ops parameter and ops variable const.
6226 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6227 (solib_add, solib_keep_data_in_core, clear_solib)
6228 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6229 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6230 const.
6231 * solib.h (set_solib_ops): Make the new_ops parameter const.
6232
776af39e
JB
62332013-05-21 Joel Brobecker <brobecker@adacore.com>
6234
6235 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6236 variable.
6237 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6238 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6239 (SYSTEM_GDBINIT_FILES): New variables.
6240 (all): Add stamp-system-gdbinit.
6241 (stamp-system-gdbinit): New rule.
6242 (clean-system-gdbinit, install-system-gdbinit)
6243 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6244 (install-only): Add dependency on install-system-gdbinit.
6245 (uninstall): Add dependency on uninstall-system-gdbinit.
6246 (clean): Add dependency on clean-system-gdbinit.
6247 * system-gdbinit/elinos.py: New file.
6248 * system-gdbinit/wrs-linux.py: New file.
6249
1509e573
JB
62502013-05-21 Joel Brobecker <brobecker@adacore.com>
6251
6252 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6253
c5867ab6
HZ
62542013-05-21 Hui Zhu <hui@codesourcery.com>
6255
6256 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6257 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6258 * mi/mi-cmd-break.c (ctype.h): New include.
6259 (gdb_obstack.h): New include.
6260 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6261 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6262 (mi_cmd_dprintf_insert): New.
6263 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6264 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6265
7d38e38f
TT
62662013-05-20 Tom Tromey <tromey@redhat.com>
6267
6268 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6269
97b77b39
TT
62702013-05-20 Tom Tromey <tromey@redhat.com>
6271
6272 * python/py-value.c (valpy_get_dynamic_type): Simplify
6273 dynamic_type assignment. Use Py_XINCREF.
6274
53e66479
TT
62752013-05-20 Tom Tromey <tromey@redhat.com>
6276
6277 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6278
dcf87832
TT
62792013-05-20 Tom Tromey <tromey@redhat.com>
6280
6281 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6282 (gdbpy_selected_frame): Move object-construction code
6283 out of TRY_CATCH.
6284
aa36459a
TT
62852013-05-20 Tom Tromey <tromey@redhat.com>
6286
6287 * python/py-arch.c (gdbpy_initialize_arch): Use
6288 gdb_pymodule_addobject.
6289 * python/py-block.c (gdbpy_initialize_blocks): Use
6290 gdb_pymodule_addobject.
6291 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6292 gdb_pymodule_addobject.
6293 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6294 gdb_pymodule_addobject.
6295 * python/py-event.c (gdbpy_initialize_event_generic): Use
6296 gdb_pymodule_addobject.
6297 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6298 gdb_pymodule_addobject.
6299 * python/py-evts.c (add_new_registry): Use
6300 gdb_pymodule_addobject.
6301 (gdbpy_initialize_py_events): Likewise.
6302 * python/py-finishbreakpoint.c
6303 (gdbpy_initialize_finishbreakpoints): Use
6304 gdb_pymodule_addobject.
6305 * python/py-frame.c (gdbpy_initialize_frames): Use
6306 gdb_pymodule_addobject.
6307 * python/py-function.c (gdbpy_initialize_functions): Use
6308 gdb_pymodule_addobject.
6309 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6310 gdb_pymodule_addobject.
6311 * python/py-infthread.c (gdbpy_initialize_thread): Use
6312 gdb_pymodule_addobject.
6313 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6314 gdb_pymodule_addobject.
6315 * python/py-param.c (gdbpy_initialize_parameters): Use
6316 gdb_pymodule_addobject.
6317 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6318 gdb_pymodule_addobject.
6319 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6320 gdb_pymodule_addobject.
6321 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6322 gdb_pymodule_addobject.
6323 * python/py-type.c (gdbpy_initialize_types): Use
6324 gdb_pymodule_addobject.
6325 * python/py-utils.c (gdb_pymodule_addobject): New function.
6326 * python/py-value.c (gdbpy_initialize_values): Use
6327 gdb_pymodule_addobject.
6328 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6329 * python/python.c (_initialize_python): Use
6330 gdb_pymodule_addobject.
6331
3d4a3c3e
TT
63322013-05-20 Tom Tromey <tromey@redhat.com>
6333
6334 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6335 * python/py-param.c (get_set_value, get_show_value): Use
6336 explicit decrefs.
6337 * python/python.c (start_type_printers, apply_type_printers):
6338 Use explicit decrefs.
6339
72ff8829
TT
63402013-05-20 Tom Tromey <tromey@redhat.com>
6341
6342 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6343 incref the module.
6344
02146ba5
TT
63452013-05-20 Tom Tromey <tromey@redhat.com>
6346
6347 * python/python.c (gdbpy_run_events): Decref the result
6348 of PyObject_CallObject.
6349
33ee792f
TT
63502013-05-20 Tom Tromey <tromey@redhat.com>
6351
6352 * python/py-symtab.c (set_sal): Use
6353 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6354 (symtab_and_line_to_sal_object): Update.
6355
fcb49fc8
TT
63562013-05-20 Tom Tromey <tromey@redhat.com>
6357
6358 * python/py-param.c (compute_enum_values): Decref 'item'.
6359
0646da15
TT
63602013-05-20 Tom Tromey <tromey@redhat.com>
6361
6362 * mi/mi-main.c: Include python-internal.h.
6363 (mi_cmd_list_features): Check gdb_python_initialized.
6364 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6365 (python_inferior_exit, python_new_objfile, add_thread_object)
6366 (delete_thread_object, py_free_inferior): Check
6367 gdb_python_initialized.
6368 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6369 gdb_python_initialized.
6370 * python/py-type.c (save_objfile_types): Check
6371 gdb_python_initialized.
6372 * python/python-internal.h (gdb_python_initialized): Declare.
6373 * python/python.c (ensure_python_env): Throw exception if
6374 Python not initialized.
6375 (before_prompt_hook, source_python_script_for_objfile)
6376 (start_type_printers, apply_type_printers,
6377 free_type_printers): Check gdb_python_initialized.
6378 * varobj.c (varobj_get_display_hint)
6379 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6380 (install_new_value_visualizer, varobj_set_visualizer)
6381 (value_get_print_value): Check gdb_python_initialized.
6382
999633ed
TT
63832013-05-20 Tom Tromey <tromey@redhat.com>
6384
6385 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6386 Check errors.
6387 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6388 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6389 Check errors.
6390 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6391 Check errors.
6392 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6393 Check errors.
6394 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6395 Check errors.
6396 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6397 init function to return 'int'.
6398 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6399 Return 'int'. Check errors.
6400 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6401 Check errors.
6402 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6403 Return 'int'. Check errors.
6404 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6405 Check errors.
6406 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6407 Check errors.
6408 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6409 Check errors.
6410 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6411 Check errors.
6412 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6413 Check errors.
6414 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6415 Check errors.
6416 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6417 Check errors.
6418 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6419 Check errors.
6420 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6421 Check errors.
6422 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6423 Check errors.
6424 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6425 Check errors.
6426 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6427 Check errors.
6428 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6429 Check errors.
6430 * python/python-internal.h (gdbpy_initialize_auto_load,
6431 gdbpy_initialize_values, gdbpy_initialize_frames,
6432 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6433 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6434 gdbpy_initialize_blocks, gdbpy_initialize_types,
6435 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6436 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6437 gdbpy_initialize_finishbreakpoints,
6438 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6439 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6440 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6441 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6442 gdbpy_initialize_signal_event,
6443 gdbpy_initialize_breakpoint_event,
6444 gdbpy_initialize_continue_event,
6445 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6446 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6447 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6448 * python/python.c (gdb_python_initialized): New global.
6449 (gdbpy_initialize_events): Return 'int'. Check errors.
6450 (_initialize_python): Check errors. Set
6451 gdb_python_initialized.
6452
18868860
TT
64532013-05-20 Tom Tromey <tromey@redhat.com>
6454
6455 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6456 Decref the reslut of PyObject_CallMethod.
6457
9f4ff0c2
TT
64582013-05-20 Tom Tromey <tromey@redhat.com>
6459
6460 * python/py-event.c (gdbpy_initialize_event_generic): Return
6461 early if PyType_Ready fails.
6462
0d3a2e8a
TT
64632013-05-20 Tom Tromey <tromey@redhat.com>
6464
6465 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6466 as 'default' in the switch.
6467
b86af38a
TT
64682013-05-20 Tom Tromey <tromey@redhat.com>
6469
6470 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6471 get_addr_from_python calls out of TRY_CATCH.
6472 (infpy_write_memory, infpy_search_memory): Likewise.
6473 * python/py-utils.c (get_addr_from_python): Return negative
6474 value on error. Use TRY_CATCH.
6475 * python/python-internal.h (get_addr_from_python): Use
6476 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6477
c127ec58
TT
64782013-05-20 Tom Tromey <tromey@redhat.com>
6479
6480 * python/py-event.c (evpy_emit_event): Decref the
6481 result of PyObject_CallFunctionObjArgs.
6482
ba327838
TT
64832013-05-20 Tom Tromey <tromey@redhat.com>
6484
6485 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6486 Correctly decref.
6487
d8191432
TT
64882013-05-20 Tom Tromey <tromey@redhat.com>
6489
6490 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6491
5d153bd1
TT
64922013-05-20 Tom Tromey <tromey@redhat.com>
6493
6494 * python/py-event.h (gdbpy_initialize_event_generic): Use
6495 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6496 * python/py-evts.c (add_new_registry): Use
6497 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6498 * python/python-internal.h
6499 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6500
56cc411c
TT
65012013-05-20 Tom Tromey <tromey@redhat.com>
6502
6503 * python/py-arch.c (archpy_disassemble): Update.
6504 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6505 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6506 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6507 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6508 macro.
6509 (GDB_PY_HANDLE_EXCEPTION): Update.
6510 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6511
8919e174
TT
65122013-05-20 Tom Tromey <tromey@redhat.com>
6513
6514 * python/python-internal.h (events_object_type): Remove.
6515
9b08f225
TT
65162013-05-20 Tom Tromey <tromey@redhat.com>
6517
f5aee5ee
AM
6518 * python/py-event.h (evpy_emit_event): Use
6519 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6520 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6521 New macro.
9b08f225 6522
f04010ff
TT
65232013-05-20 Tom Tromey <tromey@redhat.com>
6524
6525 * py-evtregistry.c (create_event_object): Decref
6526 eventregistry_object if PyList_New fails.
6527
3919fd96
TT
65282013-05-20 Tom Tromey <tromey@redhat.com>
6529
6530 * py-cmd.c (gdbpy_string_to_argv): Check result of
6531 PyList_New.
6532
0430e8cb
TT
65332013-05-20 Tom Tromey <tromey@redhat.com>
6534
6535 * python/python.c (before_prompt_hook): Add cleanup to
6536 decref 'hook'.
6537
764123e4
TT
65382013-05-20 Tom Tromey <tromey@redhat.com>
6539
6540 * python/py-function.c (fnpy_init): Decref result of
6541 PyObject_GetAttrString.
6542
634c58be
TT
65432013-05-20 Tom Tromey <tromey@redhat.com>
6544
6545 * python/py-threadevent.c (get_event_thread): Use
6546 CPYCHECKER_RETURNS_BORROWED_REF.
6547 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6548 New define.
6549 (pspace_to_pspace_object, objfile_to_objfile_object)
6550 (find_thread_object): Use it.
6551
62eec1a5
TT
65522013-05-20 Tom Tromey <tromey@redhat.com>
6553
6554 * python/py-arch.c (arch_object_type): Use
6555 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6556 * python/py-block.c (block_syms_iterator_object_type):
6557 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6558 * python/py-bpevent.c (breakpoint_event_object_type):
6559 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6560 * python/py-cmd.c (cmdpy_object_type): Use
6561 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6562 * python/py-continueevent.c (continue_event_object_type):
6563 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6564 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6565 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6566 * python/py-events.h (thread_event_object_type):
6567 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6568 * python/py-evtregistry.c (eventregistry_object_type): Use
6569 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6570 * python/py-exitedevent.c (exited_event_object_type):
6571 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6572 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6573 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6574 * python/py-function.c (fnpy_object_type): Use
6575 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6576 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6577 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6578 * python/py-infthread.c (thread_object_type): Use
6579 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6580 * python/py-lazy-string.c (lazy_string_object_type):
6581 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6582 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6583 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6584 * python/py-objfile.c (objfile_object_type): Use
6585 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6586 * python/py-param.c (parmpy_object_type):
6587 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6588 * python/py-progspace.c (pspace_object_type):
6589 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6590 * python/py-signalevent.c (signal_event_object_type):
6591 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6592 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6593 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6594 * python/py-type.c (type_object_type, field_object_type)
6595 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6596 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6597 define.
6598 (value_object_type, block_object_type, symbol_object_type)
6599 (event_object_type, stop_event_object_type, breakpoint_object_type)
6600 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6601
81ea8796
AT
66022013-05-20 Andreas Tobler <andreas@fgznet.ch>
6603
6604 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6605 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6606
a2ce51a0
DE
66072013-05-20 Doug Evans <dje@google.com>
6608
6609 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6610 For Fission.
6611 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6612 reading_dwo_directly.
6613 (struct signatured_type): New member dwo_unit.
6614 (struct die_reader_specs): New member comp_dir.
6615 (create_signatured_type_table_from_index): Use malloc for
6616 all_type_units instead of objfile's obstack.
6617 (create_all_type_units): Ditto.
6618 (fill_in_sig_entry_from_dwo_entry): New function.
6619 (add_type_unit): New function.
6620 (lookup_dwo_signatured_type): New function.
6621 (lookup_dwp_signatured_type): New function.
6622 (lookup_signatured_type): New arg cu. All callers updated.
6623 (init_cu_die_reader): Initialize comp_dir.
6624 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6625 Change assert of matching type signatures to call error on mismatch.
6626 (lookup_dwo_unit): Add assert.
6627 (init_tu_and_read_dwo_dies): New function.
6628 (init_cutu_and_read_dies): Call it.
6629 (build_type_unit_groups): Handle case of no type unit groups created.
6630 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6631 (lookup_dwo_cutu): Tweak complaint.
6632 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6633 (dwarf2_per_objfile_free): Free all_type_units.
6634
a25cd31f
JB
66352013-05-20 Joel Brobecker <brobecker@adacore.com>
6636
6637 * windows-nat.c (handle_unload_dll): Add missing empty line.
6638
4d804846
JB
66392013-05-20 Joel Brobecker <brobecker@adacore.com>
6640
6641 * dwarf2read.c (prototyped_function_p): New function.
6642 (read_subroutine_type): Use it.
6643
1c432e72
JB
66442013-05-20 Joel Brobecker <brobecker@adacore.com>
6645
6646 * rs6000-aix-tdep.c: De-indent some example code provided
6647 as a comment.
6648
4feebbdd
EBM
66492013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6650
6651 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6652 region is ok for a hardware watchpoint using the new ptrace interface
6653 on Power servers.
6654
7d0c9981
DE
66552013-05-17 Doug Evans <dje@google.com>
6656
6657 * NEWS: Mention new maintenance commands check-symtabs, and
6658 expand-symtabs, and renamed check-psymtabs.
6659 * psymtab.c (maintenance_check_psymtabs): Renamed from
6660 maintenance_check_symtabs. Only process already-expanded symbol
6661 tables.
6662 (_initialize_psymtab): Update.
6663 * symmisc.c (maintenance_check_symtabs): New function.
6664 (maintenance_expand_name_matcher): New function
6665 (maintenance_expand_file_matcher): New function
6666 (maintenance_expand_symtabs): New function.
6667 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6668 commands.
6669
6cbc7c3d
TT
66702013-05-17 Tom Tromey <tromey@redhat.com>
6671
6672 * python/py-inferior.c (infpy_read_memory): Don't call
6673 PyErr_SetString if PyObject_New fails.
6674 * python/py-frame.c (frame_info_to_frame_object): Don't call
6675 PyErr_SetString if PyObject_New fails.
6676
a48b32c0
L
66772013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6678
6679 * acinclude.m4: Add check for dlopen in libdl.
6680 * configure.ac: Ditto.
6681 * configure: Regenerate.
6682
3de661e6
PM
66832013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6684
6685 * frame.c (frame_stash): Convert to htab.
6686 (frame_addr_hash): New function.
6687 (frame_addr_hash_eq): New function.
6688 (frame_stash_create): Convert function to create
6689 a hash table.
6690 (frame_stash_add): Convert function to add an entry to a hash
6691 table.
6692 (frame_stash_find): Convert function to search the hash table.
6693 (frame_stash_invalidate): Convert function to empty the hash
6694 table.
6695 (get_frame_id): Only add to stash if a frame_id is created.
6696 (_initialize_frame): Call frame_stash_create.
6697
bb4168a9 66982013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6699
6700 * configure.ac: Ensure MIG is available when building for GNU Hurd
6701 hosts.
6702 * configure: Regenerate.
6703
d1be3247
JB
67042013-05-16 Joel Brobecker <brobecker@adacore.com>
6705
6706 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6707
b8fea896
JB
67082013-05-16 Joel Brobecker <brobecker@adacore.com>
6709
6710 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6711 all cleanups are done before returning from this function.
6712
af880d85
JB
67132013-05-15 Joel Brobecker <brobecker@adacore.com>
6714
6715 * utils.h: #include "exceptions.h".
6716 (enum errors): Remove partial declaration.
6717
356a5233
JB
67182013-05-15 Joel Brobecker <brobecker@adacore.com>
6719
6720 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6721 * gdbarch.h, gdbarch.c: Regenerate.
6722 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6723 handling.
6724
6725 * rs6000-aix-tdep.h: New file.
6726 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6727 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6728 "xml-utils.h".
6729 (struct field_info, struct ld_info_desc): New types.
6730 (ld_info32_desc, ld_info64_desc): New static constants.
6731 (struct ld_info): New type.
6732 (rs6000_aix_extract_ld_info): New function.
6733 (rs6000_aix_shared_library_to_xml): Likewise.
6734 (rs6000_aix_ld_info_to_xml): Likewise.
6735 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6736 (rs6000_aix_init_osabi): Add call to
6737 set_gdbarch_core_xfer_shared_libraries_aix.
6738 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6739 Remove "xml-utils.h" include.
6740 (LdInfo): Delete typedef.
6741 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6742 Delete macros.
6743 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6744 Adjust code accordingly.
6745 (rs6000_core_ldinfo): Delete, folded into
6746 rs6000_aix_core_xfer_shared_libraries_aix.
6747 (rs6000_xfer_shared_library): Delete.
6748 (rs6000_xfer_shared_libraries): Reimplement.
6749
742ce053
MM
67502013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6751
6752 * record.c (record_goto_cmdlist): New.
6753 (cmd_record_goto): Split into this ...
6754 (cmd_record_goto_begin): ... this
6755 (cmd_record_goto_end): ... and this.
6756 (_initialize_record): Change "record goto" to prefix command.
6757 Add commands for "record goto begin" and "record goto end".
6758 Add an alias for "record goto start" to "record goto begin".
6759
e93ba630
JK
67602013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6761
6762 * linespec.c (convert_linespec_to_sals): New comment for
6763 SOURCE_FILENAME assignment.
6764
5821aace
JK
67652013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6766
6767 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6768 internal_warning.
6769
a1b8c4cc
TT
67702013-05-14 Tom Tromey <tromey@redhat.com>
6771
6772 * eval.c (parse_and_eval_long): Make 'exp' const.
6773 * value.h (parse_and_eval_long): Update.
6774
23b3a2c3
TT
67752013-05-14 Tom Tromey <tromey@redhat.com>
6776
6777 * ui-file.c (gdb_fopen): Make arguments const.
6778 * ui-file.h (gdb_fopen): Make arguments const.
6779
ca623f82
TT
67802013-05-14 Tom Tromey <tromey@redhat.com>
6781
6782 * remote.c (remote_set_trace_notes): Make arguments const.
6783 * target.c (update_current_target): Update cast.
6784 * target.h (to_set_trace_notes): Make arguments const.
6785
503ebb2c
TT
67862013-05-14 Tom Tromey <tromey@redhat.com>
6787
6788 * go32-nat.c (go32_terminal_info): Make 'args' const.
6789 * inferior.h (child_terminal_info): Update.
6790 * inflow.c (child_terminal_info): Make 'args' const.
6791 * target.c (default_terminal_info): Make 'args' const.
6792 (debug_to_terminal_save_ours): Likewise.
6793 * target.h (struct target_ops) <to_terminal_info>: Make argument
6794 const.
6795
85e1311a
TT
67962013-05-13 Tom Tromey <tromey@redhat.com>
6797
6798 * gcore.c (create_gcore_bfd): Make 'filename' const.
6799 * gcore.h (create_gcore_bfd): Make 'filename' const.
6800 * record-full.c (record_full_save): Make 'recfilename' const.
6801 * target.c (target_save_record): Make 'filename' const.
6802 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6803 const.
6804 (target_save_record): Likewise.
6805
d62bfeaf
TT
68062013-05-13 Tom Tromey <tromey@redhat.com>
6807
f5aee5ee 6808 PR gdb/15338:
d62bfeaf
TT
6809 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6810 ranges section has been read.
6811
ac1ca910
TT
68122013-05-13 Tom Tromey <tromey@redhat.com>
6813
6814 PR exp/15364:
6815 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6816 STRUCTOP_PTR>: Return a not_lval value for
6817 EVAL_AVOID_SIDE_EFFECTS.
6818 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6819 for EVAL_AVOID_SIDE_EFFECTS.
6820
36d1c68c
JB
68212013-05-13 Joel Brobecker <brobecker@adacore.com>
6822
6823 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6824 floating point registers to register type before storing
6825 value.
6826 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6827 Likewise.
6828
21ff4686
TT
68292013-05-10 Joel Brobecker <brobecker@adacore.com>
6830 Tom Tromey <tromey@redhat.com>
6831
6832 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6833 New functions.
6834 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6835 Declare.
6836 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6837 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6838 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6839 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6840
d3685d60
TT
68412013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6842 Tom Tromey <tromey@redhat.com>
6843
6844 PR build/15414:
6845 * configure: Rebuild.
6846 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6847 with -Wno-format.
6848
eb9fe518
PA
68492013-05-10 Pedro Alves <palves@redhat.com>
6850
6851 * remote.c (_initialize_remote): Fix spelling of
6852 qXfer:traceframe-info:read packet in packet config command.
6853
9779ab84
PA
68542013-05-10 David Taylor <dtaylor@emc.com>
6855
6856 PR remote/15455
6857
6858 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6859 "QTro" at start of packet.
6860
060cfbef
JB
68612013-05-10 Joel Brobecker <brobecker@adacore.com>
6862
6863 * solib-aix.c (solib_aix_relocate_section_addresses):
6864 For the .bss section action, apply the same offset as
6865 the .data section.
6866
ab1c4e88
JB
68672013-05-10 Joel Brobecker <brobecker@adacore.com>
6868
6869 * solib-aix.c (solib_aix_relocate_section_addresses):
6870 Remove FIXME comment.
6871
c1357578
JB
68722013-05-10 Joel Brobecker <brobecker@adacore.com>
6873
6874 PR tdep/15420:
6875 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6876 New functions, directly copied from sparc-sol-thread.c.
6877 * sparc-sol-thread.c: Delete.
6878 * configure.ac: Remove code handling sparc-solaris-thread.c.
6879 * configure: Regenerate.
6880
1e611234
PM
68812013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6882
6883 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6884 filter logic.
6885 (backtrace_command): Add "no-filters" option parsing.
6886 (_initialize_stack): Alter help to reflect "no-filters" option.
6887 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6888 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6889 (py-frame.o): Add target
6890 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6891 filter files.
6892 * python/python.h: Add new frame filter constants, and flag enum.
6893 (apply_frame_filter): Add definition.
6894 * python/python.c (apply_frame_filter): New non-Python
6895 enabled function.
6896 * python/py-utils.c (py_xdecref): New function.
6897 (make_cleanup_py_xdecref): Ditto.
6898 * python/py-objfile.c: Declare frame_filters dictionary.
6899 (objfpy_dealloc): Add frame_filters dealloc.
6900 (objfpy_new): Initialize frame_filters attribute.
6901 (objfile_to_objfile_object): Ditto.
6902 (objfpy_get_frame_filters): New function.
6903 (objfpy_set_frame_filters): New function.
6904 * python/py-progspace.c: Declare frame_filters dictionary.
6905 (pspy_dealloc): Add frame_filters dealloc.
6906 (pspy_new): Initialize frame_filters attribute.
6907 (pspacee_to_pspace_object): Ditto.
6908 (pspy_get_frame_filters): New function.
6909 (pspy_set_frame_filters): New function.
6910 * python/py-framefilter.c: New file.
6911 * python/lib/gdb/command/frame_filters.py: New file.
6912 * python/lib/gdb/frames.py: New file.
6913 * python/lib/gdb/__init__.py: Initialize global frame_filters
6914 dictionary
6915 * python/lib/gdb/FrameDecorator.py: New file.
6916 * python/lib/gdb/FrameIterator.py: New file.
6917 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6918 * mi/mi-cmds.h: Declare.
6919 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6920 --no-frame-filter logic, and Python frame filter logic.
6921 (stack_enable_frame_filters): New function.
6922 (parse_no_frame_option): Ditto.
6923 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6924 filter logic.
6925 (mi_cmd_stack_list_locals): Ditto.
6926 (mi_cmd_stack_list_args): Ditto.
6927 (mi_cmd_stack_list_variables): Ditto.
6928 * NEWS: Add frame filter note.
6929
2cb9c859
DE
69302013-05-09 Doug Evans <dje@google.com>
6931
6bf667bb
DE
6932 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6933 All callers updated.
6934 (syms_from_objfile): Ditto. Make static.
6935 (symbol_file_add_with_addrs): Renamed from
6936 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6937 num_offsets. All callers updated.
6938 * symfile.h (syms_from_objfile): Delete.
6939
2cb9c859
DE
6940 * symfile.c (decrement_reading_symtab): Add assert.
6941 (increment_reading_symtab): Ditto.
6942
40aea477
JB
69432013-05-09 Joel Brobecker <brobecker@adacore.com>
6944
6945 * source.c (forward_search_command): Replace call to getc
6946 by call to fgetc.
6947 (reverse_search_command): Likewise.
6948
680d1742
DE
69492013-05-08 Doug Evans <dje@google.com>
6950
6951 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6952 matching test.
6953
17e760ae
JB
69542013-05-08 Joel Brobecker <brobecker@adacore.com>
6955
6956 * sol-thread.c (info_cb): Factorize the code a little.
6957
c0f5f490
JB
69582013-05-08 Joel Brobecker <brobecker@adacore.com>
6959
6960 * sol-thread.c (info_cb): Rework the output of the "maintenance
6961 info sol-threads" command a bit.
6962
5d74e061
JB
69632013-05-08 Joel Brobecker <brobecker@adacore.com>
6964
6965 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6966 Replace ti.ti_startfunc by ti.ti_pc.
6967
814a3ff7
JB
69682013-05-08 Joel Brobecker <brobecker@adacore.com>
6969
6970 * solib-aix.c (solib_aix_free_library_list): New function
6971 for the case where HAVE_LIBEXPAT is not defined.
6972
58ce7251
SDJ
69732013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6974
6975 PR breakpoints/15413:
6976 * breakpoint.c (condition_completer): Simplify the code to
6977 disconsider multiple locations of breakpoints when completing the
6978 "condition" command.
6979
be8b1ea6
PM
69802013-05-07 Pierre Muller <muller@sourceware.org>
6981
6982 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6983 instead of <sys/wait.h>.
6984
1e52bda6
PM
69852013-05-07 Pierre Muller <muller@sourceware.org>
6986
6987 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6988 trailing new line from warning message.
6989
27fd0c6b
PM
69902013-05-07 Pierre Muller <muller@sourceware.org>
6991
6992 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6993 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6994
e228ac87
JB
69952013-05-07 Joel Brobecker <brobecker@adacore.com>
6996
6997 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6998 error message (ARI fix).
6999
70002013-05-07 Joel Brobecker <brobecker@adacore.com>
7001
7002 * features/library-list-aix.dtd: Replace library-list by
7003 library-list-aix.
7004 * rs6000-nat.c: Replace library-list by library-list-aix
7005 throughout.
7006 * solib-aix.c: Likewise.
7007
70082013-05-07 Joel Brobecker <brobecker@adacore.com>
7009
7010 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7011 Renames TARGET_OBJECT_AIX_LIBRARIES.
7012 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7013 TARGET_OBJECT_LIBRARIES_AIX throughout.
7014 * solib-aix.c: Likwise.
7015
26a4dda9
YQ
70162013-05-07 Yao Qi <yao@codesourcery.com>
7017
7018 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7019 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7020
3582629f
YQ
70212013-05-07 Yao Qi <yao@codesourcery.com>
7022
7023 * solib-dsbt.c (enable_break): Declare.
7024 (dsbt_current_sos): Remove call to enable_break2.
7025 (enable_break2): Rename to enable_break. Set solib breakpoint
7026 on '_dl_debug_state'.
7027 (enable_break): Remove.
7028
aacbb8a5
LM
70292013-05-07 Luis Machado <lgustavo@codesourcery.com>
7030
7031 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7032 debug state prior to replicating existing hardware watchpoints or
7033 breakpoints.
7034
0c013353
JK
70352013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7036
7037 * gcore.c (gcore_create_callback): Ignore sections with
7038 separate_debug_objfile_backlink != NULL.
7039
a1217d97
SL
70402013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7041 Andrew Jenner <andrew@codesourcery.com>
7042 Chung-Lin Tang <cltang@codesourcery.com>
7043 Julian Brown <julian@codesourcery.com>
7044
7045 Based on the nios2-elf port from Altera Corporation.
7046
7047 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7048 nios2-linux-tdep.o.
7049 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7050 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7051 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7052 * nios2-tdep.h: New.
7053 * nios2-tdep.c: New.
7054 * nios2-linux-tdep.c: New.
7055 * features/Makefile (WHICH): Add nios2-linux.
7056 (nios2-linux-expedite): Set.
7057 * features/nios2-cpu.xml: New.
7058 * features/nios2.xml: New.
7059 * features/nios2-linux.xml: New.
7060 * features/nios2.c: New (autogenerated).
7061 * features/nios2-linux.c: New (autogenerated).
7062 * regformats/nios2-linux.dat: New (autogenerated).
7063 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7064 and commands.
7065
0892cb63
DE
70662013-05-06 Doug Evans <dje@google.com>
7067
3b7bacac
DE
7068 * symfile.c: Whitespace cleanup.
7069
0892cb63
DE
7070 * solist.h (struct target_so_ops): New member clear_so.
7071 * solib-svr4.c (svr4_clear_so): New function.
7072 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7073 * solib.c (clear_so): Renamed from free_so_symbols.
7074 All callers updated. Call target clear_so if it exists.
7075
40501e00
TT
70762013-05-06 Tom Tromey <tromey@redhat.com>
7077
7078 * ada-lang.c (ada_value_primitive_packed_val): Don't
7079 call value_incref.
7080 * value.c (set_value_parent): Incref the new parent and decref
7081 the old parent.
7082 (value_copy, value_primitive_field): Use set_value_parent.
7083
b6807d98
TT
70842013-05-06 Tom Tromey <tromey@redhat.com>
7085
7086 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7087 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7088 if needed.
7089 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7090 * dwarf2read.c (write_constant_as_bytes)
7091 (dwarf2_fetch_constant_bytes): New functions.
7092
3aef2284
TT
70932013-05-06 Tom Tromey <tromey@redhat.com>
7094
7095 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7096 parameters.
7097 (dwarf2_const_value_attr): Update.
7098
66f65e2b
TT
70992013-05-06 Tom Tromey <tromey@redhat.com>
7100
7101 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7102 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7103 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7104 Remove declaration.
7105
7919a973
TT
71062013-05-06 Tom Tromey <tromey@redhat.com>
7107
7108 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7109 objfile's obstack.
7110
a7bfba49
DE
71112013-05-06 Doug Evans <dje@google.com>
7112
3189cb12
DE
7113 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7114 * stabsread.h (process_one_symbol): Update declaration.
7115 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7116 * elfread.c (elf_symfile_relocate_probe): Ditto.
7117 * psymtab.c (relocate_psymtabs): Ditto.
7118 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7119 (objfile_relocate): Ditto.
7120 * objfiles.h (objfile_relocate): Update declaration.
7121 * symfile.c (relative_addr_info_to_section_offsets): Constify
7122 addrs parameter.
7123 (default_symfile_offsets): Ditto.
7124 (syms_from_objfile_1): Constify offsets parameter.
7125 (syms_from_objfile): Ditto.
7126 (symbol_file_add_with_addrs_or_offsets): Ditto.
7127 (symfile_map_offsets_to_segments): Constify data parameter.
7128 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7129 delta parameters of member relocate.
7130 (struct sym_probe_fns): Constify new_offsets,
7131 delta parameters of member sym_relocate_probe.
7132 (struct sym_fns): Constify section_addr_info parameter of member
7133 sym_offsets.
7134 (relative_addr_info_to_section_offsets): Update declaration.
7135 (default_symfile_offsets): Ditto.
7136 (syms_from_objfile): Ditto.
7137 (symfile_map_offsets_to_segments): Ditto.
7138
a7bfba49
DE
7139 * symfile.c (syms_from_objfile_1): Use correct section count when
7140 objfile->sf == NULL.
7141
5f8e0b8f
MF
71422013-05-06 Mike Frysinger <vapier@gentoo.org>
7143
7144 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7145
ea52d893
DE
71462013-05-06 Doug Evans <dje@google.com>
7147
7148 * psympriv.h (struct partial_symtab): Augment comment for member
7149 section_offsets.
7150
4d1eb6b4
JB
71512013-05-06 Joel Brobecker <brobecker@adacore.com>
7152
7153 Reimplement shared library support on ppc-aix...
7154 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7155 * features/library-list-aix.dtd: New file.
7156 * solib-aix.h, solib-aix.c: New file.
7157 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7158 (rs6000_find_toc_address_hook): Delete.
7159 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7160 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7161 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7162 "xml-utils.h".
7163 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7164 (vmap_symtab, fixup_breakpoints): Delete.
7165 (rs6000_xfer_shared_libraries): New function.
7166 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7167 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7168 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7169 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7170 (rs6000_xfer_shared_library): New function.
7171 (find_toc_address): Delete.
7172 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7173 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7174 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7175 before creating minimal symbol. Adjust function description
7176 accordingly.
7177 (scan_xcoff_symtab): Replace call to
7178 prim_record_minimal_symbol_and_info by call to
7179 record_minimal_symbol.
7180 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7181 around default_symfile_offsets.
7182 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7183 powerpc-aix targets.
7184 * config/rs6000/nm-rs6000.h: Delete.
7185 * config/powerpc/aix.mh (NAT_FILE): Delete.
7186 (NATDEPFILES): Remove xcoffsolib.o.
7187 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7188 (ALL_TARGET_OBS): Add solib-aix.o.
7189 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7190 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7191 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7192 * xcoffsolib.h, xcoffsolib.c: Delete.
7193
7194 * solib.c (reload_shared_libraries): Remove reference to
7195 SOLIB_CREATE_INFERIOR_HOOK.
7196 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7197 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7198 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7199 comment.
7200 * corelow.c (deprecated_core_resize_section_table): Delete.
7201 * exec.c: Remove include of xcoffsolib.h".
7202 (map_vmap, vmap): Delete.
7203 (exec_close_1): Remove references to vmap.
7204 (exec_file_attach): Remove vmap handling code, and reference
7205 to DEPRECATED_IBM6000_TARGET.
7206 (bfdsec_to_vmap): Delete.
7207 (exec_files_info): Remove block of code handling VMAP.
7208 * infcmd.c (post_create_inferior): Remove reference to
7209 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7210 * infrun.c (follow_exec): Remove reference to
7211 SOLIB_CREATE_INFERIOR_HOOK.
7212 * stack.c (print_frame): Remove reference to PC_SOLIB.
7213 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7214 (dsbt_relocate_main_executable): Likewise.
7215 * solib-frv.c (frv_current_sos): Likewise.
7216
0c4f667c
JB
72172013-05-06 Joel Brobecker <brobecker@adacore.com>
7218
7219 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7220 to target_write_memory and target_read_memory.
7221
726ce67c
JB
72222013-05-06 Joel Brobecker <brobecker@adacore.com>
7223
7224 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7225 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7226
c8c9911f
JB
72272013-05-06 Joel Brobecker <brobecker@adacore.com>
7228
7229 * darwin-nat.c: Replace all "%x" instances in format strings
7230 into "0x%x" throughout.
7231
fda184b6
JB
72322013-05-06 Joel Brobecker <brobecker@adacore.com>
7233
7234 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7235 gdb_assert by call to MACH_CHECK_ERROR.
7236 (darwin_attach_pid): Raise an error rather than a failed
7237 assertion when various system calls failed. Report a warning
7238 instead of raising a failed assertion when PREV_NOT is not NULL
7239 after call to mach_port_request_notification.
7240 (darwin_ptrace_me): Raise an error rather than a failed
7241 assertion when read returns nonzero.
7242
d1d69afb
JB
72432013-05-06 Joel Brobecker <brobecker@adacore.com>
7244
7245 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7246
dc90b24d
JK
72472013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7248
7249 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7250
faab9922
JK
72512013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7252
7253 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7254 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7255 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7256 a stale cleanup. Fix double free of NAME.
7257
e0ea48a0
EZ
72582013-05-04 Eli Zaretskii <eliz@gnu.org>
7259
7260 * windows-nat.c (windows_delete_thread): Accept an additional
7261 argument, the thread's exit code, and announce thread death when
7262 print_thread_events is non-zero and we are deleting a thread that
7263 is not the main thread.
7264 (get_windows_debug_event): Pass thread exit code to
7265 windows_delete_thread.
7266
83b2706a
KB
72672013-05-03 Kevin Buettner <kevinb@redhat.com>
7268
7269 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7270 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7271 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7272 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7273 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7274 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7275 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7276 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7277 (gdbarch_tdep): New struct.
7278 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7279 E_NUM_REGS.
7280 (v850e3v5_register_name): New function.
7281 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7282 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7283 code handling the struct return conventions for the RH850 ABI.
7284 Update all callers.
7285 (v850_eight_byte_align_p): New function.
7286 (v850_push_call_dummy): Push structs by value, not by reference
7287 for the RH850 ABI. Add support for eight byte alignment.
7288 (v850_dbtrap_breakpoint_from_pc): New function.
7289 (v850_gdbarch_init): Add ABI detection code. Register
7290 v850e3v5_register_name for the v850e3v5 architecture. Set the
7291 number of registers for v850e3v5. Register
7292 v850_dbtrap_breakpoint_from_pc as appropriate.
7293 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7294
d445b2f6
DE
72952013-05-03 Doug Evans <dje@google.com>
7296
7297 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7298 of bfd_count_sections.
7299 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7300 * symfile.c (default_symfile_offsets): Ditto.
7301 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7302 one entry, not bfd_count_sections entries.
7303
b3ce41ea
KB
73042013-05-03 Kevin Buettner <kevinb@redhat.com>
7305
7306 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7307 `save' and `restore' register groups. Don't include SPL
7308 or SPH in these groups.
7309 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7310 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7311 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7312 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7313 dwarf2_append_unwinders().
7314
96f7d3f1
PW
73152013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7316
7317 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7318 ignore SIGINT and SIGTRAP in case these internal signals are
7319 caught explicitely.
7320
b9dd1947
JB
73212013-05-01 Joel Brobecker <brobecker@adacore.com>
7322
7323 * darwin-nat.c (darwin_read_write_inferior): Change types
7324 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7325 of copy_count to "mach_msg_type_number_t".
7326 (darwin_read_dyld_info): Change type of parameter
7327 rdaddr to "gdb_byte *".
7328
4ca18a63
JB
73292013-05-01 Joel Brobecker <brobecker@adacore.com>
7330
7331 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7332 of &info->load_map from "char *" to "gdb_byte *".
7333
2b692d32
JB
73342013-05-01 Joel Brobecker <brobecker@adacore.com>
7335
7336 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7337 from "char *" to "gdb_byte *".
7338 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7339
a98c29a0
DE
73402013-04-30 Doug Evans <dje@google.com>
7341
6a506a2d
DE
7342 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7343 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7344 DWO stub. If DWO isn't found, just use stub.
7345 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7346
a98c29a0
DE
7347 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7348 calling init_cutu_and_read_dies.
7349
f92b06da
WT
73502013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7351
7352 * target-descriptions.c (maint_print_c_tdesc_cmd):
7353 Add case to parse structures as register types and
7354 bitfields.
7355
95eebdcc
WT
73562013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7357
7358 * MAINTAINERS (Write After Approval): Add myself to the list.
7359
019c1128
JB
73602013-04-30 Joel Brobecker <brobecker@adacore.com>
7361
7362 * sol-thread.c (rw_common): Change type of parameter "buf"
7363 to "gdb_byte *".
7364 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7365 rw_common to "gdb_byte *" instead of "char *".
7366
5812197c
JB
73672013-04-30 Joel Brobecker <brobecker@adacore.com>
7368
7369 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7370 of local variable msym to const struct bound_minimal_symbol.
7371 Adjust use accordingly.
7372 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7373
ecccb813
TS
73742013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7375
7376 * i386gnu-nat.c (CREG_OFFSET): New macro.
7377 (creg_offset): New array.
7378 (CREG_ADDR): Use creg_offset instead of reg_offset.
7379
f1d02dd4 73802013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7381
7382 * mep-tdep.c (mep_write_pc): Delete.
7383 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7384 Add call to set_gdbarch_pc_regnum.
7385
f1d02dd4 73862013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7387
7388 * common/filestuff.c: Replace #include <dirent.h> by
7389 #include "gdb_dirent.h".
7390
f1d02dd4 73912013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7392
7393 * common/filestuff.c: Replace #include <sys/stat.h> by
7394 #include "gdb_stat.h".
7395
b385a60d
PM
73962013-04-29 Pierre Muller <muller@sourceware.org>
7397
7398 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7399 editCase function rule.
7400 (get_DW_AT_signature_type): Likewise.
7401
d27b54ad
JB
74022013-04-29 Joel Brobecker <brobecker@adacore.com>
7403
7404 * m32r-tdep.c (m32r_write_pc): Delete.
7405 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7406 Add call to set_gdbarch_pc_regnum.
7407
47d21dc5
PM
74082013-04-29 Pierre Muller <muller@sourceware.org>
7409
7410 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7411
9056882e
JB
74122013-04-29 Joel Brobecker <brobecker@adacore.com>
7413
7414 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7415
7ee4732a
YQ
74162013-04-28 Yao Qi <yao@codesourcery.com>
7417
7418 * solib-dsbt.c (fetch_loadmap): Re-indent.
7419 (displacement_from_map, enable_break2): Likewise.
7420 (dsbt_relocate_section_addresses): Likewise.
7421
2260af53 74222013-04-26 Joel Brobecker <brobecker@adacore.com>
7423
7424 GDB 7.6 released.
7425
ff546935
TT
74262013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7427
7428 PR corefiles/14983:
7429 * dwarf2read.c (process_full_comp_unit): Always create a static
7430 block.
7431
40fb6c5e
HZ
74322013-04-25 Hui Zhu <hui@codesourcery.com>
7433
7434 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7435 to loc->cmd_bytecode.
7436
74e04d1c
DE
74372013-04-24 Doug Evans <dje@google.com>
7438
7439 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7440
3cf62c1d
KS
74412013-04-22 Keith Seitz <keiths@redhat.com>
7442
7443 * tracepoint.c (trace_save): Call the writer's start method.
7444
bf9e4d0c
MB
74452013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7446
7447 PR gdb/10462
7448 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7449 before argument.
7450
5d71132c
TT
74512013-04-23 Tom Tromey <tromey@redhat.com>
7452
7453 * common/filestuff.c: Check USE_WIN32API before including
7454 sys/socket.h.
7455 (HAVE_F_GETFD): New define.
7456 (mark_cloexec): Check HAVE_F_GETFD.
7457 (gdb_open_cloexec): Change 'mode' to unsigned long.
7458 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7459 (gdb_pipe_cloexec): Check HAVE_PIPE.
7460 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7461 long.
7462
a11cfd87
HZ
74632013-04-23 Hui Zhu <hui@codesourcery.com>
7464
7465 PR gdb/15293
a11cfd87
HZ
7466 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7467
2d9442cc
HZ
74682013-04-23 Hui Zhu <hui@codesourcery.com>
7469
7470 PR gdb/15165
2d9442cc
HZ
7471 * breakpoint.c (dprintf_print_recreate): New.
7472 (save_breakpoints): Let it not save dprintf commands.
7473 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7474
614c279d
TT
74752013-04-22 Tom Tromey <tromey@redhat.com>
7476
7477 PR gdb/7912:
7478 * Makefile.in (SFILES): Add filestuff.c
7479 (COMMON_OBS): Add filestuff.o.
7480 (filestuff.o): New target.
7481 * auto-load.c (auto_load_objfile_script_1): Use
7482 gdb_fopen_cloexec.
7483 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7484 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7485 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7486 * common/agent.c (gdb_connect_sync_socket): Use
7487 gdb_socket_cloexec.
7488 * common/filestuff.c: New file.
7489 * common/filestuff.h: New file.
7490 * common/linux-osdata.c (linux_common_core_of_thread)
7491 (command_from_pid, commandline_from_pid, print_source_lines)
7492 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7493 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7494 gdb_fopen_cloexec.
7495 * common/linux-procfs.c (linux_proc_get_int)
7496 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7497 * config.in, configure: Rebuild.
7498 * configure.ac: Don't check for sys/socket.h. Check for
7499 fdwalk, pipe2.
7500 * corelow.c (core_open): Use gdb_open_cloexec.
7501 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7502 * fork-child.c (fork_inferior): Call close_most_fds.
7503 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7504 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7505 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7506 Use gdb_fopen_cloexec.
7507 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7508 gdb_open_cloexec.
7509 (linux_async_pipe): Use gdb_pipe_cloexec.
7510 * remote-fileio.c (remote_fileio_func_open): Use
7511 gdb_open_cloexec.
7512 * remote.c (remote_file_put, remote_file_get): Use
7513 gdb_fopen_cloexec.
7514 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7515 close_most_fds.
7516 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7517 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7518 * solib.c (solib_find): Use gdb_open_cloexec.
7519 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7520 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7521 (tfile_open): Use gdb_open_cloexec.
7522 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7523 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7524 * xml-support.c (xml_fetch_content_from_file): Use
7525 gdb_fopen_cloexec.
7526 * main.c (captured_main): Call notice_open_fds.
7527
5fda2332
EBM
75282013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7529
7530 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7531 'char *' to 'gdb_byte *'.
7532 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7533 'gdb_byte'.
7534
eb6c553b
YQ
75352013-04-22 Yao Qi <yao@codesourcery.com>
7536
7537 * infrun.c: Fix typo in comment.
7538
9991b207
SDJ
75392013-04-22 Andrew Haley <aph@redhat.com>
7540
7541 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7542 instead of "long".
7543
8b4833e3
YQ
75442013-04-20 Yao Qi <yao@codesourcery.com>
7545
7546 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7547 'char *' to 'gdb_byte *'. Cast the return value of
7548 'bt_ctf_get_char_array' to 'gdb_byte *'.
7549
bd3f3b55
PA
75502013-04-19 Pedro Alves <palves@redhat.com>
7551
7552 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7553 -Wpointer-sign.
7554 * configure: Regenerate.
7555
c49e7f76
PA
75562013-04-19 Pedro Alves <palves@redhat.com>
7557
7558 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7559 'void *'.
7560
12ff8552
PA
75612013-04-19 Pedro Alves <palves@redhat.com>
7562
7563 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7564 Change type of 'myaddr' parameter to gdb_byte pointer.
7565 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7566 to 'long long' pointer instead of to 'unsigned long long'.
7567 (monitor_write_memory_block, monitor_read_memory_single)
7568 (monitor_read_memory): Change type of 'myaddr' parameter to
7569 gdb_byte pointer.
7570
9c37696b
PA
75712013-04-19 Pedro Alves <palves@redhat.com>
7572
7573 * record.c (validate_history_size): Make parameter 'setting'
7574 unsigned.
7575
a398505b
PA
75762013-04-19 Pedro Alves <palves@redhat.com>
7577
7578 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7579 to 'gdb_byte *'.
7580
9f8afa72
PA
75812013-04-19 Pedro Alves <palves@redhat.com>
7582
7583 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7584 local to int.
7585
c714b426
PA
75862013-04-19 Pedro Alves <palves@redhat.com>
7587
7588 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7589 * ada-tasks.c (read_fat_string_value): Likewise.
7590
507a579c
PA
75912013-04-19 Pedro Alves <palves@redhat.com>
7592
7593 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7594 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7595 'offset', and adjust.
7596
f9d83a0b
PA
75972013-04-19 Pedro Alves <palves@redhat.com>
7598
7599 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7600 (read_index_from_section): Add cast to 'char *'.
7601
745eb4fd
PA
76022013-04-19 Pedro Alves <palves@redhat.com>
7603
7604 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7605
db5be46f
PA
76062013-04-19 Pedro Alves <palves@redhat.com>
7607
7608 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7609
0f928d68
PA
76102013-04-19 Pedro Alves <palves@redhat.com>
7611
7612 * record-full.c (record_full_get_bookmark): Change local 'ret'
7613 type to char * and add cast to gdb_byte *.
7614 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7615 string.
7616 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7617
89f6d837
PA
76182013-04-19 Pedro Alves <palves@redhat.com>
7619
7620 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7621 * python/py-prettyprint.c (print_string_repr): Change type of
7622 'output' local to char *. Add cast to gdb_byte * in
7623 LA_PRINT_STRING call.
7624 (print_children): Change type of 'output' local to char *.
7625 * python/py-value.c (valpy_string): Add cast to const char * in
7626 PyUnicode_Decode call.
7627
ce6ec7d8
PA
76282013-04-19 Pedro Alves <palves@redhat.com>
7629
7630 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7631 and change its type to 'const char *'. Adjust.
7632 (mips_send_packet): Add cast to 'char *', and remove cast to
7633 'unsigned char *'.
7634 (mips_receive_packet): Remove cast to 'unsigned char *'.
7635 (mips_load_srec): Use bfd_byte.
7636 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7637 (pmon_checkset): Make 'value' parameter unsigned.
7638
fda0389f
PA
76392013-04-19 Pedro Alves <palves@redhat.com>
7640
7641 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7642
bc20a4af
PA
76432013-04-19 Pedro Alves <palves@redhat.com>
7644
7645 * remote.c (remote_write_bytes_aux, compare_sections_command)
7646 (remote_read_qxfer)
7647 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7648 (remote_hostio_readlink, remote_bfd_iovec_pread)
7649 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7650 binary buffer, and char when buffer is used as string.
7651 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7652 (trace_save, tfile_open, traceframe_walk_blocks)
7653 (tfile_fetch_registers): Likewise.
7654
c628b528
PA
76552013-04-19 Pedro Alves <palves@redhat.com>
7656
7657 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7658 buffer and size_t size. Adjust.
7659 * ser-base.h (ser_base_write): Adjust.
7660 * ser-go32.c (cnts): Change type to size_t.
7661 (dos_write): Change prototype -- take 'void *'
7662 buffer and size_t size. Adjust.
7663 (dos_info): Print elements of 'cnts' as unsigned long.
7664 * serial.c (serial_write): Likewise.
7665 * serial.h (serial_write): Adjust.
7666 (struct serial_ops) <write>: Change prototype -- take 'void *'
7667 buffer and size_t size. Adjust.
7668
51a5cd90
PA
76692013-04-19 Pedro Alves <palves@redhat.com>
7670
7671 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7672 gdb_byte *.
7673 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7674
a9933661
PA
76752013-04-19 Pedro Alves <palves@redhat.com>
7676
7677 * alpha-tdep.c (alpha_extract_return_value): Use
7678 regcache_cooked_read_unsigned to read 'v0'.
7679
19afdd07
PA
76802013-04-19 Pedro Alves <palves@redhat.com>
7681
7682 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7683 parameters 'at', 'as' and 'offset' to uint32_t.
7684
96b32e50
PA
76852013-04-19 Pedro Alves <palves@redhat.com>
7686
7687 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7688 'is64' to signed 'int'.
7689
eb1bd1fb
PA
76902013-04-19 Pedro Alves <palves@redhat.com>
7691
7692 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7693 parameter to int *.
7694
463920bf
PA
76952013-04-19 Pedro Alves <palves@redhat.com>
7696
7697 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7698 'insnbuf' buffer type to unsigned int[].
7699
70242eb1
PA
77002013-04-19 Pedro Alves <palves@redhat.com>
7701
7702 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7703
9d1dd0e2
PA
77042013-04-19 Pedro Alves <palves@redhat.com>
7705
7706 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7707 unsigned long *.
7708
44096aee
PA
77092013-04-19 Pedro Alves <palves@redhat.com>
7710
7711 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7712 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7713 UINT_MAX.
7714 * mips-tdep.c (heuristic_fence_post): Change type to int.
7715 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7716
e4286e57
PA
77172013-04-19 Pedro Alves <palves@redhat.com>
7718
7719 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7720 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7721 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7722
001f13d8
PA
77232013-04-19 Pedro Alves <palves@redhat.com>
7724
7725 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7726 it to get a string view of the byte buffer.
7727 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7728 type to gdb_byte *. Adjust.
7729 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7730 Change local to char *.
7731 * solib-darwin.c (find_program_interpreter): Change return type to
7732 char *. Adjust.
7733 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7734 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7735 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7736 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7737 * solib-svr4.c (find_program_interpreter): Change return type to
7738 char *. Adjust.
7739 (enable_break): Change local 'interp_name' to char *.
7740 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7741 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7742 (spu_pseudo_register_write_spu): Use char for string buffer.
7743 Adjust.
7744 (info_spu_event_command, info_spu_signal_command): Add casts to
7745 'char *'.
7746
948f8e3d
PA
77472013-04-19 Pedro Alves <palves@redhat.com>
7748
7749 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7750 gdb_byte[].
7751 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7752 * ada-lang.c (ada_value_assign): Use gdb_byte.
7753 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7754 (alphanbsd_sigtramp_offset): Use gdb_byte.
7755 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7756 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7757 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7758 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7759 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7760 * arm-tdep.c (arm_stub_unwind_sniffer)
7761 (arm_displaced_init_closure): Use gdb_byte.
7762 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7763 (arm_default_thumb_le_breakpoint)
7764 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7765 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7766 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7767 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7768 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7769 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7770 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7771 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7772 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7773 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7774 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7775 (cris_store_return_value, cris_extract_return_value): Use
7776 gdb_byte.
7777 (constraint): Change type of parameter to char * from signed
7778 char*. Use gdb_byte.
7779 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7780 of local buffer to gdb_byte *.
7781 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7782 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7783 (add_address_entry): Change type of local buffer to gdb_byte[].
7784 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7785 (frv_push_dummy_call): Use gdb_byte.
7786 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7787 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7788 (hppa_hpux_supply_save_state): Use gdb_byte.
7789 * hppa-tdep.c (hppa32_push_dummy_call)
7790 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7791 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7792 (slotN_contents, replace_slotN_contents): Change type of parameter
7793 to gdb_byte *.
7794 (fetch_instruction, ia64_pseudo_register_write)
7795 (ia64_register_to_value, ia64_value_to_register)
7796 (ia64_extract_return_value, ia64_store_return_value)
7797 (ia64_push_dummy_call): Use gdb_byte.
7798 * m32c-tdep.c (m32c_return_value): Remove cast.
7799 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7800 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7801 gdb_byte.
7802 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7803 * mn10300-tdep.c (mn10300_store_return_value)
7804 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7805 gdb_byte.
7806 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7807 (moxie_process_record): Remove casts.
7808 * ppc-ravenscar-thread.c (supply_register_at_address)
7809 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7810 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7811 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7812 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7813 * remote.c (compare_sections_command): Use gdb_byte.
7814 * score-tdep.c (score7_free_memblock): Change type of parameter to
7815 gdb_byte *.
7816 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7817 gdb_byte *. Use gdb_byte.
7818 (sh_push_dummy_call_fpu): Use gdb_byte.
7819 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7820 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7821 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7822 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7823 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7824 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7825 (sh64_store_return_value, sh64_register_convert_to_virtual):
7826 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7827 (sh64_pseudo_register_write): Use gdb_byte.
7828 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7829 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7830 buffer.
7831 (irix_current_sos): Use gdb_byte.
7832 * solib-som.c (som_current_sos): Use gdb_byte.
7833 * sparc-ravenscar-thread.c (supply_register_at_address)
7834 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7835 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7836 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7837 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7838 'gdb_byte *'.
7839 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7840 'gdb_byte *'.
7841 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7842 * xstormy16-tdep.c (xstormy16_extract_return_value)
7843 (xstormy16_store_return_value): Change parameter type to
7844 'gdb_byte *'. Adjust.
7845 (xstormy16_push_dummy_call): Use gdb_byte.
7846 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7847 (call0_analyze_prologue, execute_code): Use gdb_byte.
7848
433730c9
PA
78492013-04-19 Vladimir Kargov <kargov@gmail.com>
7850 Pedro Alves <palves@redhat.com>
7851
7852 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7853 value contents.
7854
ac9ec31b
DE
78552013-04-17 Doug Evans <dje@google.com>
7856
7857 * dwarf2read.c (struct signatured_type): New member type.
7858 (struct attribute): Replace member signatured_type with signature.
7859 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7860 (read_call_site_scope): Call follow_die_ref instead of
7861 follow_die_ref_or_sig.
7862 (read_structure_type): Rewrite handling of signatured types.
7863 (read_enumeration_type): Ditto.
7864 (read_attribute_value): Update.
7865 (build_error_marker_type): New function.
7866 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7867 Don't call error for bad types, just build an error marker type.
7868 (dump_die_shallow): Update.
7869 (follow_die_sig_1): Renamed from follow_die_sig.
7870 Don't call error for bad types, instead return NULL.
7871 (follow_die_sig): New function.
7872 (get_signatured_type, get_DW_AT_signature_type): New functions.
7873
e546e8bb
YZ
78742013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7875
7876 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7877 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7878 function.
e546e8bb 7879
ab116149
YQ
78802013-04-17 Yao Qi <yao@codesourcery.com>
7881
7882 * top.c (print_gdb_configuration): Print configure-time
7883 parameter on using libbabeltrace or not.
7884
488a42b8
PA
78852013-04-16 Pedro Alves <palves@redhat.com>
7886
7887 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7888
f5fb825b
PA
78892013-04-16 Pedro Alves <palves@redhat.com>
7890
85d494ea 7891 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7892 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7893
e1154999
PA
78942013-04-16 Pedro Alves <palves@redhat.com>
7895
7896 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7897 * common/glibc_thread_db.h: ... this new file ...
7898 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7899
e3b50a7f
PA
79002013-04-16 Will Newton <will.newton@gmail.com>
7901 Pedro Alves <palves@redhat.com>
7902
7903 PR build/11881
7904
7905 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7906 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7907 HAVE_THREAD_DB_H.
7908
1c2e4450
PA
79092013-04-16 Pedro Alves <palves@redhat.com>
7910 Eli Zaretskii <eliz@gnu.org>
7911
7912 * NEWS: Mention "set foo unlimited".
7913
4031ecc5
DE
79142013-04-15 Doug Evans <dje@google.com>
7915
19c3d4c9
DE
7916 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7917 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7918 (create_dwo_cu_reader): Renamed from
7919 create_dwo_debug_info_hash_table_reader.
7920 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7921 Remove support for multiple CUs in a DWO file.
7922 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7923
4031ecc5
DE
7924 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7925 instead of phex.
7926 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7927 (create_dwo_in_dwp): Ditto.
7928
b340913d
TT
79292013-04-15 Tom Tromey <tromey@redhat.com>
7930
7931 * NEWS: Move recent entries into "since 7.6" section.
7932
cc16e6c9
TT
79332013-04-15 Tom Tromey <tromey@redhat.com>
7934
7935 PR c++/13588:
7936 * NEWS: Update.
7937 * break-catch-throw.c (struct exception_catchpoint)
7938 <exception_rx, pattern>: New fields.
7939 (fetch_probe_arguments, dtor_exception_catchpoint)
7940 (check_status_exception_catchpoint)
7941 (print_one_detail_exception_catchpoint): New functions.
7942 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7943 Compile regular expression if needed.
7944 (extract_exception_regexp): New function.
7945 (catch_exception_command_1): Use extract_exception_regexp.
7946 (compute_exception): Use fetch_probe_arguments.
7947 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7948 and check_status fields.
7949 * cp-abi.c (cplus_typename_from_type_info): New function.
7950 * cp-abi.h (cplus_typename_from_type_info): Declare.
7951 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7952 * gdb_regex.h (compile_rx_or_error): Declare.
7953 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7954 comment.
7955 (init_gnuv3_ops): Set get_type_from_type_info field.
7956 * probe.c (compile_rx_or_error): Move...
7957 * utils.c (compile_rx_or_error): ... here.
7958
72f1fe8a
TT
79592013-04-15 Tom Tromey <tromey@redhat.com>
7960
7961 PR c++/15176:
7962 * NEWS: Update.
7963 * break-catch-throw.c (compute_exception): New function.
7964 (exception_funcs): New global.
7965 (_initialize_break_catch_throw): Create $_exception.
7966 * cp-abi.c (cplus_type_from_type_info): New function.
7967 * cp-abi.h (cplus_type_from_type_info): Declare.
7968 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7969 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7970 (gnuv3_get_type_from_type_info): New functions.
7971 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7972
fc4746a2
TT
79732013-04-15 Tom Tromey <tromey@redhat.com>
7974
7975 * break-catch-throw.c (struct exception_names): New.
7976 (exception_functions): Change type.
7977 (re_set_exception_catchpoint): Look for SDT probes.
7978
15a73f56
TT
79792013-04-15 Tom Tromey <tromey@redhat.com>
7980
7981 PR c++/10119:
7982 * break-catch-throw.c (exception_functions): New global.
7983 (gnu_v3_exception_catchpoint_ops): Move earlier.
7984 (struct exception_catchpoint): New.
7985 (classify_exception_breakpoint): Rewrite.
7986 (re_set_exception_catchpoint): New function.
7987 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7988 Allocate a struct exception_catchpoint.
7989 (catch_exception_command_1): Update.
7990 (initialize_throw_catchpoint_ops): Set 're_set' method.
7991
916703c0
TT
79922013-04-15 Tom Tromey <tromey@redhat.com>
7993
7994 * Makefile.in (SFILES): Add break-catch-throw.c
7995 (COMMON_OBS): Add break-catch-throw.o.
7996 * break-catch-throw.c: New file.
7997 * breakpoint.c: Move exception-catching code to new file.
7998 (ep_parse_optional_if_clause): No longer static.
7999 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8000
6e72ca20
TT
80012013-04-15 Tom Tromey <tromey@redhat.com>
8002
8003 PR c++/9065:
8004 * NEWS: Update.
8005 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8006 * c-exp.y (TYPEID): New token.
8007 (exp): Add new TYPEID productions.
8008 (ident_tokens): Add "typeid".
8009 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8010 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8011 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8012 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8013 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8014 case.
8015 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8016 (build_std_type_info_type, gnuv3_get_typeid_type)
8017 (gnuv3_get_typeid): New functions.
8018 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8019 new fields on ABI object.
8020 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8021 * std-operator.def (OP_TYPEID): New.
8022
715c6909
TT
80232013-04-15 Tom Tromey <tromey@redhat.com>
8024
8025 * elfread.c (elf_symtab_read): Install versioned symbol under
8026 unversioned name as well.
8027
8de20a37
TT
80282013-04-15 Tom Tromey <tromey@redhat.com>
8029
8030 PR c++/11990:
8031 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8032 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8033 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8034 (gdb_demangle): New function.
8035 * cp-support.h (gdb_demangle): Declare.
8036 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8037 (dwarf2_name): Use gdb_demangle.
8038 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8039 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8040 suffixes from name.
8041 (gnuv3_print_method_ptr): Use gdb_demangle.
8042 * jv-lang.c (java_demangle): Use gdb_demangle.
8043 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8044 * language.c (unk_lang_demangle): Use gdb_demangle.
8045 * symtab.c (symbol_find_demangled_name)
8046 (demangle_for_lookup): Use gdb_demangle.
8047
591f19e8
TT
80482013-04-15 Tom Tromey <tromey@redhat.com>
8049
8050 PR c++/12824:
8051 * NEWS: Update.
8052 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8053 New constant.
8054 (classify_exception_breakpoint): New function.
8055 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8056 (print_mention_exception_catchpoint)
8057 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8058 (catch_exception_command_1): Handle "rethrow" catchpoint.
8059 (catch_rethrow_command): New function.
8060 (_initialize_breakpoint): Add "catch rethrow" command.
8061
4d40cad2
PM
80622013-04-15 Pierre Muller <muller@sourceware.org>
8063
8064 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8065 set_gdbarch_write_pc as deprecated anymore.
8066
30bcb456
JB
80672013-04-15 Joel Brobecker <brobecker@adacore.com>
8068
8069 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8070 declarations.
8071
da9160e4
YQ
80722013-04-13 Yao Qi <yao@codesourcery.com>
8073
8074 * ctf.c (_initialize_ctf): Include "completer.h".
8075 Call add_target_with_completer instead of add_target.
8076
39ed5604
JK
80772013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8078
8079 Fix GDB regression related to PR binutils/14813.
8080 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8081 * minidebug.c (lzma_close): Add return value comment.
8082 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8083 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8084 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8085
80862013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8087
8088 * config.in: Regenerate.
8089
d521ce57
TT
80902013-04-12 Tom Tromey <tromey@redhat.com>
8091
8092 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8093 const.
8094 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8095 (struct die_reader_specs) <buffer>: Likewise.
8096 (die_reader_func_ftype): Make 'info_ptr' const.
8097 (struct line_header) <include_dirs, statement_program_start,
8098 statement_program_end>: Now const.
8099 (struct file_entry) <name>: Likewise.
8100 (struct partial_die_info) <sibling>: Likewise.
8101 (struct dwarf_block) <data>: Likewise.
8102 (dwarf2_read_section): Remove cast.
8103 (dwarf2_get_section_info): Make 'bufp' const.
8104 (read_index_from_section): Constify.
8105 (dw2_get_file_names_reader): Make 'info_ptr' const.
8106 (dw2_get_primary_filename_reader): Likewise.
8107 (read_comp_unit_head): Make 'info_ptr' and return type const.
8108 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8109 Likewise.
8110 (read_abbrev_offset): Constify.
8111 (dwarf2_create_include_psymtab): Make 'name' const.
8112 (create_debug_types_hash_table): Update.
8113 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8114 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8115 Constify.
8116 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8117 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8118 (read_comp_units_from_section): Constify.
8119 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8120 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8121 const.
8122 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8123 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8124 (create_dwp_hash_table, dwarf2_ranges_read)
8125 (dwarf2_record_block_ranges): Constify.
8126 (read_die_and_children, read_die_and_siblings_1)
8127 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8128 const.
8129 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8130 (abbrev_table_read_table): Constify.
8131 (load_partial_dies): Make 'info_ptr' const.
8132 (read_partial_die, read_attribute_value, read_attribute): Make
8133 'info_ptr' and return type const.
8134 (read_address, read_initial_length)
8135 (read_checked_initial_length_and_offset, read_offset)
8136 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8137 const.
8138 (read_direct_string): Make 'buf' and return type const.
8139 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8140 (read_indirect_string): Make return type const.
8141 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8142 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8143 'info_ptr' const.
8144 (read_str_index): Make return type const.
8145 (add_include_dir): Make 'include_dir' const.
8146 (add_file_name): Make 'name' const.
8147 (dwarf_decode_line_header): Constify.
8148 (psymtab_include_file_name): Make return type const.
8149 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8150 (dwarf2_start_subfile): Make 'filename' const.
8151 (dwarf2_const_value_attr): Make 'bytes' const.
8152 (read_signatured_type_reader): Make 'info_ptr' const.
8153 (decode_locdesc): Constify.
8154 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8155 const.
8156 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8157 'mac_end', and return type const.
8158 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8159 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8160 type const.
8161 (per_cu_header_read_in): Constify.
8162 * symfile.h (dwarf2_get_section_info): Update.
8163
d47a1bc1
TT
81642013-04-12 Tom Tromey <tromey@redhat.com>
8165
8166 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8167
6eaaf48b
EZ
81682013-04-12 Eli Zaretskii <eliz@gnu.org>
8169
fc4c25bf 8170 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8171 * top.c (print_gdb_configuration): New function, displays the
8172 details about GDB configure-time parameters.
8173 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8174 * cli/cli-cmds.c (show_configuration): New function.
8175 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8176 * main.c (captured_main) <print_configuration>: New static var.
8177 <long_options>: Use it.
8178 If --configuration was given, call print_gdb_configuration.
8179
b292c783
JK
81802013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8181 Pedro Alves <palves@redhat.com>
8182
8183 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8184 (generated_files): Add gcore.
8185 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8186 HAVE_NATIVE_GCORE_HOST.
8187 (gcore): New.
8188 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8189 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8190 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8191 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8192 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8193 Add HAVE_NATIVE_GCORE_HOST.
8194 * configure: Regenerate.
8195 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8196 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8197 AC_CONFIG_FILES for gcore.
8198 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8199 gdb_have_gcore.
8200 * gdb_gcore.sh: Rename to ...
8201 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8202 and GCORE_TRANSFORM_NAME substitutions.
8203
c96b3c4f
JK
8204 Fix parsing tabs in ${gdb_target_obs}.
8205 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8206
d6cb50a2
JK
82072013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8208
8209 * remote.c (unpush_and_perror): Add output message final dot.
8210
cf2cb5ec
YQ
82112013-04-11 Yao Qi <yao@codesourcery.com>
8212
8213 * tracepoint.c (tfile_interp_line): Fit parameters line and
8214 utpp in one line.
8215
07293be4
JB
82162013-04-10 Joel Brobecker <brobecker@adacore.com>
8217
8218 * solib.c (solib_map_sections): Remove code overwriting
8219 SO->SO_NAME with the bfd's filename.
8220
f81d1120
PA
82212013-04-10 Pedro Alves <palves@redhat.com>
8222
8223 * cli/cli-decode.c (integer_unlimited_completer): New function.
8224 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8225 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8226 completer.
8227 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8228 (is_unlimited_literal): New function.
8229 (do_set_command): Handle literal "unlimited" arguments.
8230 * frame.c (_initialize_frame) <set backtrace limit>: Document
8231 "unlimited".
8232 * printcmd.c (_initialize_printcmd) <set print
8233 max-symbolic-offset>: Add help text.
8234 * record-full.c (_initialize_record_full) <set record full
8235 insn-number-max>: Likewise.
8236 * record.c (_initialize_record) <set record
8237 instruction-history-size, set record function-call-history-size>:
8238 Add help text.
8239 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8240 help text.
8241 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8242 Likewise.
8243 * source.c (_initialize_source) <set listsize>: Add help text.
8244 * utils.c (initialize_utils) <set height, set width>: Likewise.
8245 <set pagination>: Mention "set height unlimited".
8246 * valprint.c (_initialize_valprint) <set print elements, set print
8247 repeats>: Document "unlimited".
8248
2f9d54cf
PA
82492013-04-10 Pedro Alves <palves@redhat.com>
8250
8251 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8252 instead of disconnect_tracing.
8253 * infcmd.c (detach_command, disconnect_command): Call
8254 query_if_trace_running. Adjust.
8255 * top.c: Include "tracepoint.h".
8256 (quit_target): Delete. Contents moved ...
8257 (quit_force): ... here. Wrap each stage of teardown in
8258 TRY_CATCH. Call disconnect_tracing before detaching.
8259
393fd4c3
YQ
82602013-04-10 Hui Zhu <hui@codesourcery.com>
8261 Yao Qi <yao@codesourcery.com>
8262
8263 * configure.ac: Check libbabeltrace is installed.
8264 * config.in: Regenerate.
8265 * configure: Regenerate.
8266 * Makefile.in (LIBBABELTRACE): New.
8267 (CLIBS): Add LIBBABELTRACE.
8268 * ctf.c: Include "exec.h".
8269 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8270 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8271 (ctf_save_metadata_header): Define new type aliases in
8272 metadata.
8273 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8274 in metadata. Start a new faked packet for trace status.
8275 (ctf_write_status): Write trace status to CTF.
8276 (ctf_write_uploaded_tsv): Write TSV to CTF.
8277 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8278 (ctf_write_definition_end): End the faked packet.
8279
8280 (ctx, ctf_iter, trace_dirname): New.
8281 (start_pos): New variable.
8282 (ctf_destroy, ctf_open_dir, ctf_open): New.
8283 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8284 macros.
8285 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8286 (ctf_fetch_registers, ctf_xfer_partial): New.
8287 (ctf_get_trace_state_variable_value): New.
8288 (ctf_get_tpnum_from_frame_event): New.
8289 (ctf_get_traceframe_address): New.
8290 (ctf_trace_find, ctf_has_stack): New.
8291 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8292 (ctf_get_trace_status, ctf_read_status): New.
8293 (_initialize_ctf): New.
8294 * tracepoint.c (get_tracepoint_number): New
8295 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8296 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8297 * tracepoint.h: ... here.
8298 (get_tracepoint_number): Declare it.
8299 (get_uploaded_tsv): Declare it.
8300
8301 * NEWS: Mention new configure option.
8302
5c2b4418
HZ
83032013-04-10 Pedro Alves <palves@redhat.com>
8304 Hui Zhu <hui@codesourcery.com>
8305
8306 * breakpoint.c (dprintf_re_set): New.
8307 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8308 to dprintf_re_set.
8309
a5c66735
JB
83102013-04-09 Joel Brobecker <brobecker@adacore.com>
8311
8312 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8313 Remove solib-svr4.o from the list.
8314
9e77999c
JB
83152013-04-09 Joel Brobecker <brobecker@adacore.com>
8316
8317 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8318 Use gdb_assert_not_reached instead of invalid boolean expression.
8319
1927e618
PA
83202013-04-09 Pedro Alves <palves@redhat.com>
8321
8322 * remote.c (unpush_and_perror): New function.
8323 (readchar, remote_serial_write): Use it.
8324
10782d74
MM
83252013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8326
8327 * NEWS: Mention new btrace RSP packets.
8328
4c8429ef
TT
83292013-04-08 Tom Tromey <tromey@redhat.com>
8330
8331 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8332 long.
8333
8625fc1b
TT
83342013-04-08 Tom Tromey <tromey@redhat.com>
8335
8336 * maint.c (print_bfd_section_info): Print the section index.
8337 * symmisc.c (dump_msymbols): Print the section index.
8338
e27d198c
TT
83392013-04-08 Tom Tromey <tromey@redhat.com>
8340
8341 PR symtab/8424:
8342 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8343 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8344 * breakpoint.c (resolve_sal_pc): Update.
8345 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8346 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8347 (minsym_lookup_iterator_cb): Use it.
8348 (default_read_var_value): Update.
8349 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8350 Update.
8351 * infcmd.c (jump_command): Update.
8352 * linespec.c (minsym_found): Update.
8353 * maint.c (maintenance_translate_address): Update.
8354 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8355 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8356 * parse.c (write_exp_msymbol): Update.
8357 * printcmd.c (address_info): Update.
8358 * psymtab.c (find_pc_sect_psymbol): Update.
8359 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8360 SYMBOL_OBJ_SECTION.
8361 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8362 Don't initialize SYMBOL_OBJ_SECTION.
8363 * spu-tdep.c (spu_catch_start): Update.
8364 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8365 * symmisc.c (dump_msymbols, print_symbol): Update.
8366 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8367 how fallback section is computed.
8368 (fixup_symbol_section): Update.
8369 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8370 Update.
8371 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8372 Initialize SYMBOL_SECTION.
8373 * symtab.h (struct general_symbol_info) <section>: Update comment.
8374 <obj_section>: Remove.
8375 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8376 (SYMBOL_OBJFILE): New macro.
8377
e6dc44a8
TT
83782013-04-08 Tom Tromey <tromey@redhat.com>
8379
8380 * coffread.c (record_minimal_symbol): Update.
8381 * dbxread.c (record_minimal_symbol): Update.
8382 * elfread.c (record_minimal_symbol): Update.
8383 * machoread.c (macho_symtab_add_minsym): Update.
8384 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8385 Update.
8386 * minsyms.c (prim_record_minimal_symbol): Update.
8387 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8388 argument.
8389 (prim_record_minimal_symbol_and_info): Likewise.
8390 * minsyms.h (prim_record_minimal_symbol_full)
8391 (prim_record_minimal_symbol_and_info): Update.
8392 * symtab.c (allocate_symbol, initialize_symbol)
8393 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8394 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8395 Update.
8396
36192a8d
TT
83972013-04-08 Tom Tromey <tromey@redhat.com>
8398
8399 PR symtab/8423:
8400 * solib-som.c (som_solib_section_offsets): Use BFD section
8401 indices. Set offsets for all sections.
8402 * somread.c (som_symtab_read): Compute BFD section for
8403 symbol. Use prim_record_minimal_symbol_and_info.
8404 (som_symfile_read): Fix comment.
8405 (struct find_section_offset_arg): New.
8406 (find_section_offset, set_section_index): New functions.
8407 (som_symfile_offsets): Use set_section_index to compute
8408 section indices.
8409
65cf3563
TT
84102013-04-08 Tom Tromey <tromey@redhat.com>
8411
8412 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8413 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8414 gdb_bfd_section_index.
8415 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8416 New functions.
8417 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8418 Declare.
8419 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8420 Update.
8421 * objfiles.c (add_to_objfile_sections_full): New function.
8422 (add_to_objfile_sections): Use it.
8423 (build_section_table): Rewrite.
8424 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8425 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8426 (struct objfile) <sections>: Update comment.
8427 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8428 is NULL.
8429 (ALL_OBJSECTIONS): Use it.
8430 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8431 * solib-frv.c (frv_relocate_main_executable): Update.
8432 * solib-target.c (solib_target_relocate_section_addresses):
8433 Use gdb_bfd_section_index.
8434 * symfile.c (build_section_addr_info_from_section_table):
8435 Use gdb_bfd_section_index.
8436 (build_section_addr_info_from_bfd, place_section): Likewise.
8437 * symtab.c (fixup_section): Update.
8438 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8439
7cbd4a93
TT
84402013-04-08 Tom Tromey <tromey@redhat.com>
8441
8442 * minsyms.h (struct bound_minimal_symbol): New.
8443 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8444 Remove objfile argument.
8445 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8446 Return bound_minimal_symbol.
8447 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8448 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8449 Return bound_minimal_symbol.
8450 (in_gnu_ifunc_stub): Update.
8451 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8452 Remove 'objfile_p' argument.
8453 (lookup_solib_trampoline_symbol_by_pc): Update.
8454 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8455 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8456 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8457 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8458 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8459 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8460 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8461 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8462 stack.c, symtab.c, tui/tui-disasm.c: Update.
8463
f85f34ed
TT
84642013-04-08 Tom Tromey <tromey@redhat.com>
8465
8466 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8467 Use symbol's obstack, not an objfile.
8468 * coffread.c (process_coff_symbol): Update.
8469 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8470 * jv-lang.c (add_class_symbol): Update.
8471 * mdebugread.c (new_symbol): Update.
8472 * minsyms.c (prim_record_minimal_symbol_full)
8473 (terminate_minimal_symbol_table): Update.
8474 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8475 * stabsread.c (define_symbol, read_enum_type): Update.
8476 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8477 Handle Ada specially.
8478 (symbol_set_language): Add 'obstack' argument.
8479 (symbol_set_names): Update.
8480 (symbol_natural_name, symbol_demangled_name): Always use
8481 ada_decode_symbol.
8482 * symtab.h (struct general_symbol_info)
8483 <language_specific::obstack>: New field.
8484 <ada_mangled>: New field.
8485 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8486 (symbol_set_language): Update.
8487
ccde22c0
TT
84882013-04-08 Tom Tromey <tromey@redhat.com>
8489
8490 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8491 Take an obstack, not an objfile.
8492 (symbol_set_names): Update.
8493 * symtab.h (symbol_set_demangled_name): Update.
8494
e623cf5d
TT
84952013-04-08 Tom Tromey <tromey@redhat.com>
8496
8497 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8498 allocate_symbol.
8499 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8500 (read_func_scope): Call allocate_template_symbol.
8501 (new_symbol_full): Call allocate_symbol.
8502 * jit.c (finalize_symtab): Call allocate_symbol.
8503 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8504 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8505 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8506 (common_block_end): Call allocate_symbol.
8507 * symtab.c (allocate_symbol, initialize_symbol)
8508 (allocate_template_symbol): New functions.
8509 * symtab.c (allocate_symbol, initialize_symbol)
8510 (allocate_template_symbol): Declare.
8511 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8512
f6de8ec2
PA
85132013-04-08 Pedro Alves <palves@redhat.com>
8514 Keith Seitz <keiths@redhat.com>
8515
8516 * breakpoint.c (create_breakpoint): Rename
8517 "parse_condition_and_thread" parameter to "parse_arg". Update
8518 describing comment. If !PARSE_ARG, then error out if ARG is not
8519 the empty string after extracting the location.
8520 * breakpoint.h (create_breakpoint): Rename
8521 "parse_condition_and_thread" parameter to "parse_arg".
8522
f65ce5fb
AR
85232013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8524
8525 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8526
cc5925ad
YQ
85272013-04-07 Yao Qi <yao@codesourcery.com>
8528
8529 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8530 and 'addr2' to CORE_ADDR.
8531 * target.c (update_current_target): Update.
8532 * target.h (struct target_ops) <to_trace_find>: Change parameter
8533 type to CORE_ADDR.
8534 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8535 'addr2' to CORE_ADDR.
8536 (tfile_trace_find): Likewise.
8537 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8538 Change local variable 'addr' to type CORE_ADDR.
8539 * tracepoint.h (tfind_1): Update declaration.
8540
d9ac0664
EZ
85412013-04-06 Eli Zaretskii <eliz@gnu.org>
8542
8543 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8544 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8545 Include main.h.
8546
8547 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8548 here...
8549 * main.h (windows_get_absolute_argv0): ...to here.
8550
02142a6c
DE
85512013-04-05 Doug Evans <dje@google.com>
8552
8553 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8554 (read_cutu_die_from_dwo): Add comments.
8555 (read_structure_type): Update comment.
8556 (read_enumeration_type, read_namespace_type): Update comment.
8557 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8558
43662968
JK
85592013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8560
8561 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8562 * Makefile.in (gdb.z): Remove.
8563 (install-only): Remove $(man1dir) and gdb.1 installation.
8564 * gdb.1: Remove.
8565
9ead1b84
JK
85662013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8567
8568 Fix compatibility with Linux kernel 3.8.3.
8569 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8570 to more inner block. Remove parsing of NUMBER from outer block.
8571 Parse NUMBER only if KEYWORD has been identified.
8572
d1794952
JK
85732013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8574
8575 Fix variable name shadowing.
8576 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8577 filename to mapsfilename and update its uses.
8578
9025569e
EZ
85792013-04-05 Eli Zaretskii <eliz@gnu.org>
8580
8581 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8582 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8583 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8584 details of the problem.
8585
c9a6ce02
PA
85862013-04-04 Pedro Alves <palves@redhat.com>
8587 Hui Zhu <hui@codesourcery.com>
8588
8589 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8590 tracepoint, reset its STEP_COUNT and call validate_actionline.
8591
5ff888ce
DE
85922013-04-03 Doug Evans <dje@google.com>
8593
bf6af496
DE
8594 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8595 read_die_and_siblings.
8596 (read_die_and_siblings): New function.
8597 (read_cutu_die_from_dwo): Dump die if requested.
8598 (read_die_and_children): Call read_full_die_1 and
8599 read_die_and_siblings_1.
8600 (read_full_die): Dump die if requested.
8601
8602 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8603
0ac5b59e
DE
8604 * dwarf2read.c (struct dwo_file): New member comp_dir.
8605 Rename member name to dwo_name. All uses updated.
8606 (hash_dwo_file): Include comp_dir in computation.
8607 (eq_dwo_file): Ditto.
8608 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8609 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8610
5ff888ce
DE
8611 * psymtab.c (read_psymtabs_with_fullname): Don't call
8612 psymtab_to_fullname if the basenames are different.
8613
ec83d211
JK
86142013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8615
8616 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8617 New entry about "fullname" presence.
8618
4f4352f7
PA
86192013-04-03 Pedro Alves <palves@redhat.com>
8620
8621 * NEWS: Mention x86_64/Cygwin as new native configuration.
8622
3d1d5ea3
DE
86232013-04-02 Doug Evans <dje@google.com>
8624
8625 * dwarf2read.c (read_structure_type): Fix typo in comment.
8626
be9a8770
PA
86272013-04-02 Pedro Alves <palves@redhat.com>
8628
8629 * NEWS: Mention "set/show debug aarch64", "set/show debug
8630 coff-pe-read" and "set/show debug mach-o".
8631
a46c1e42
PA
86322013-04-02 Pedro Alves <palves@redhat.com>
8633
8634 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8635
3ad18b19
EZ
86362013-04-02 Eli Zaretskii <eliz@gnu.org>
8637
8638 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8639 gdb_string.h is now in common/.
8640
e9f1758d
PA
86412013-04-02 Pedro Alves <palves@redhat.com>
8642
8643 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8644 under "New options".
8645
049dc89b
JK
86462013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8647
8648 Revert this patch:
8649 PR gdb/15275
8650 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8651
c33e31fd
PA
86522013-04-02 Pedro Alves <palves@redhat.com>
8653
8654 PR gdb/15275
8655
8656 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8657 (remote_serial_write): New function.
8658 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8659
ea5f3910
JW
86602013-04-01 Jiong Wang <jiwang@tilera.com>
8661
8662 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8663 "New targets" sections.
ea5f3910 8664
5c6fa7ab
DE
86652013-04-01 Doug Evans <dje@google.com>
8666
c0f78cd4
DE
8667 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8668 (process_enumeration_scope): Simplify.
8669
0186c6a7
DE
8670 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8671 type_unit_group ...
8672 (struct signatured_type): ... to here.
8673 (sig_type_ptr): New typedef.
8674 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8675 out of union 't'. All uses updated.
8676 (dw2_get_file_names_reader): Assert not called for a type unit.
8677 (dw2_get_file_names): Assert not called for a type unit or type
8678 unit group.
8679 (build_type_psymtabs_reader): Assert called for a type unit.
8680 (build_type_psymtab_dependencies): Assert called for a type unit group.
8681
5c6fa7ab
DE
8682 * dwarf2read.c (free_dwo_file): Add comment.
8683 (dwarf2_per_objfile_free): Unref dwp bfd.
8684
b3c0ad67 86852013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8686
8687 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8688 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8689 (read_pe_exported_syms): Remove unused 'exportix'.
8690 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8691 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8692 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8693
e2df1547
AR
86942013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8695
8696 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8697 (print_it_watchpoint): Remove unused 'bl'.
8698 (say_where): Remove unused 'uiout'.
8699 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8700 (bkpt_breakpoint_hit): Remove unused 'b'.
8701 (internal_bkpt_print_it): Remove unused 'uiout'.
8702 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8703
d81e75c0
TD
87042013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8705
8706 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8707 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8708
5a8b3f62
DE
87092013-03-29 Doug Evans <dje@google.com>
8710
ab5088bf
DE
8711 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8712 Delete arg is_dwp. All callers updated.
8713 (open_dwp_file): New function.
8714 (open_and_init_dwp_file): Call it.
8715 (get_dwp_file): New function.
8716 (lookup_dwo_cutu): Call it.
8717
a8ad1e57
DE
8718 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8719 unnecessary, cleanup.
8720
6296d8c1
DE
8721 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8722
b0c7bfa9
DE
8723 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8724 (lookup_dwo_unit): New function.
8725 (init_cutu_and_read_dies): Move DWO handling to new functions.
8726
c88ee1f0
DE
8727 * dwarf2read.c (struct signatured_type): Tweak comment.
8728 (struct dwo_unit): Tweak comment.
8729 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8730 (create_dwo_debug_info_hash_table): Tweak comment.
8731 (dwarf2_per_cu_offset_and_type): Tweak comment.
8732
5a8b3f62
DE
8733 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8734 missing .debug_types section.
8735
9852c492
YQ
87362013-03-29 Yao Qi <yao@codesourcery.com>
8737
8738 * corelow.c: Include "completer.h".
8739 (_initialize_corelow): Call add_target_with_completer with
8740 argument 'filename_completer'.
8741 * tracepoint.c: Likewise.
8742 * exec.c (_initialize_exec): Likewise.
8743 * target.c (add_target): Rename to ...
8744 (add_target_with_completer): ... this. Call set_cmd_completer
8745 if parameter completer is not NULL.
8746 (add_target): New.
8747 * target.h: Include "command.h".
8748 (add_target_with_completer): Declare it.
8749
af312be7
JB
87502013-03-28 Joel Brobecker <brobecker@adacore.com>
8751
8752 * coffread.c (is_import_fixup_symbol): New function.
8753 (record_minimal_symbol): Use is_import_fixup_symbol to
8754 detect import fixup symbols, and discard them.
8755
8a0459fd
DE
87562013-03-28 Doug Evans <dje@google.com>
8757
0349ea22
DE
8758 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8759 types hash table until we know we need it.
8760
f652bce2
DE
8761 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8762 index numbers.
8763
e4a48d9d
DE
8764 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8765 All callers updated.
8766 (dw2_print_stats): Print #read CUs too.
8767 (dump_die_shallow): Print signatured types better.
8768
8a0459fd
DE
8769 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8770 info_or_types_section to section. All uses updated.
8771 (struct dwo_unit): Ditto.
8772
bd3eecc3
PA
87732013-03-28 Pedro Alves <palves@redhat.com>
8774
8775 * NEWS (New options): New section.
8776 (New options): Mention set/show remote trace-status-packet.
8777 * remote.c (PACKET_qTStatus): New enumeration value.
8778 (remote_get_trace_status): Skip sending qTStatus if the packet is
8779 disabled. Use packet_ok.
8780 (_initialize_remote): Register a configuration command for
8781 qTStatus packet.
8782
41245087
DE
87832013-03-28 Doug Evans <dje@google.com>
8784
7edbb660
DE
8785 * symfile.c (find_separate_debug_file): Add comment.
8786 (terminate_after_last_dir_separator): Tweak comment.
8787
0018ea6f
DE
8788 * dwarf2read.c (create_partial_symtab): Add forward decl.
8789 (create_partial_symtab): Move to be closer to other psymtab functions.
8790 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8791
ca69b9e6
DE
8792 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8793 (compute_symtab_includes): Remove unnecessary forward declaration.
8794 (die_needs_namespace): Add comment marking group of functions for
8795 dwarf2 name computation.
8796
a9375afe
DE
8797 * typeprint.c (_initialize_typeprint): Improve type help text.
8798
41245087
DE
8799 * python/python.c (finish_python_initialization): Provide suggestion
8800 for how to tell gdb to find its python files.
8801
7f7cc265
PA
88022013-03-28 Pedro Alves <palves@redhat.com>
8803
8804 PR gdb/15294
8805
8806 * source.c (_initialize_source): Change back "set listsize" to an
8807 integer command.
8808
ec21308c
JK
88092013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8810
8811 PR gdb/15275
8812 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8813
840a9a1f
PA
88142013-03-27 Pedro Alves <palves@redhat.com>
8815
8816 * top.c (history_size): Rename to ...
8817 (history_size_setshow_var): ... this. Add comment.
8818 (show_commands): Use readline's 'history_length' instead of
8819 computing the history length by calling history_get in a loop.
8820 (set_history_size_command): Error out for sizes over INT_MAX.
8821 Restore previous history size on invalid size.
8822 (init_history): If HISTSIZE is negative, leave the history size as
8823 zero. Add comments.
8824 (init_main): Adjust.
8825
826ecc4d
PA
88262013-03-27 Pedro Alves <palves@redhat.com>
8827
8828 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8829 coff_pe_read" command to "set debug coff-pe-read".
8830
0ccfeeae
MM
88312013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8832
8833 * record.c (command_size_to_target_size): Fix size comparison.
8834 Change parameter type from pointer to integer to integer.
8835 Update all users.
8836
40653b35
PM
88372013-03-27 Pierre Muller <muller@sourceware.org>
8838
8839 * windows-nat.c (handle_output_debug_string): Avoid typecast
8840 from integer of different size warning.
8841
c62fa0e2
JB
88422013-03-26 Joel Brobecker <brobecker@adacore.com>
8843
8844 * windows-nat.c (handle_output_debug_string): Add empty line
8845 after local block variable definition.
8846
2c619be2
PA
88472013-03-26 Pedro Alves <palves@redhat.com>
8848
8849 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8850 (net_open): Make 'polls' local unsigned.
8851
1b493192
PA
88522013-03-26 Pedro Alves <palves@redhat.com>
8853
8854 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8855 a zuinteger command instead of uinteger.
8856
7ee70bf5
PA
88572013-03-26 Pedro Alves <palves@redhat.com>
8858
8859 * record-full.c (record_full_insn_num): Make it unsigned.
8860 (record_full_check_insn_num, record_full_message)
8861 (record_full_registers_change, record_full_xfer_partial): Remove
8862 record_full_insn_max_num check (it's always != 0).
8863 (record_full_info, record_full_restore): Use %u as format string.
8864 (): Use %u as format string.
8865 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8866 check (it's always != 0).
8867
dfd1f9bb
PA
88682013-03-26 Pedro Alves <palves@redhat.com>
8869
8870 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8871 and "set dcache size" commands zuinteger instead of uinteger.
8872
addb4faf
PA
88732013-03-26 Pedro Alves <palves@redhat.com>
8874
8875 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8876 command zuinteger instead of uinteger.
8877
b75bf488
PA
88782013-03-26 Pedro Alves <palves@redhat.com>
8879
8880 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8881 zuinteger instead of uinteger.
8882
42c634cb
PA
88832013-03-26 Pedro Alves <palves@redhat.com>
8884
8885 * record.c (record_insn_history_size_setshow_var)
8886 (record_call_history_size_setshow_var): New globals.
8887 (command_size_to_target_size): New function.
8888 (cmd_record_insn_history, cmd_record_call_history): Use
8889 command_size_to_target_size instead of cast.
8890 (validate_history_size, set_record_insn_history_size)
8891 (set_record_call_history_size): New functions.
8892 (_initialize_record): Install set_record_insn_history_size and
8893 set_record_call_history_size as "set" hooks of "set record
8894 instruction-history-size" and "set record
8895 function-call-history-size".
8896
1fb2e2b5
PA
88972013-03-26 Pedro Alves <palves@redhat.com>
8898
8899 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8900 use with history_max_entries use. Remove FIXME note.
8901
99c819ee
MM
89022013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8903
8904 * record-btrace.c (record_btrace_close): Call
8905 record_btrace_auto_disable.
8906
9f9e404c
JB
89072013-03-25 Joel Brobecker <brobecker@adacore.com>
8908
8909 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8910
ebcdfe33
DE
89112013-03-25 Doug Evans <dje@google.com>
8912
8913 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8914
24955f63
TT
89152013-03-25 Tom Tromey <tromey@redhat.com>
8916
8917 PR symtab/11462:
8918 * c-exp.y (exp): Add new productions for destructors after '.' and
8919 '->'.
8920 (write_destructor_name): New function.
8921
fce632b6
TT
89222013-03-25 Tom Tromey <tromey@redhat.com>
8923
8924 PR c++/9197:
8925 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8926 value_struct_elt, not lookup_struct_elt_type.
8927 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8928 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8929 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8930
a4341769
YQ
89312013-03-25 Yao Qi <yao@codesourcery.com>
8932
8933 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8934 instead of '_mkdir'.
8935
b5981e5a
EZ
89362013-03-23 Eli Zaretskii <eliz@gnu.org>
8937
8938 * windows-nat.c (windows_get_absolute_argv0): New function.
8939 * windows-nat.h: Add its prototype.
8940
8941 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8942 Use IS_DIR_SEPARATOR instead of looking for a character inside
8943 SLASH_STRING. Include filenames.h.
8944 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8945 relocate_gdb_directory works when passed gdb_program_name.
8946 Include windows-nat.h.
8947
598d3636
JK
89482013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8949
8950 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8951 * remote.c (trace_error): Remove the special handling of '2'.
8952 (readchar) <SERIAL_EOF>
8953 (readchar) <SERIAL_ERROR>
8954 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8955 (remote_get_trace_status): Call throw_exception if EX is
8956 TARGET_CLOSE_ERROR.
8957 * utils.c (perror_with_name): Rename to ...
8958 (throw_perror_with_name): ... here. New parameter errcode, describe it
8959 in the function comment.
8960 (perror_with_name): New function wrapper.
8961 * utils.h (enum errors): New stub declaration.
8962 (throw_perror_with_name): New declaration.
8963
82b821e9
PA
89642013-03-22 Pedro Alves <palves@redhat.com>
8965 Yao Qi <yao@codesourcery.com>
8966 Mark Kettenis <kettenis@gnu.org>
8967
8968 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8969 Don't let the user set the value to UINT_MAX directly.
8970 <var_integer>: Don't let the user set the value to INT_MAX
8971 directly.
8972
78a095c3
JK
89732013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8974
8975 * remote.c (remote_unpush_target): New function.
8976 (remote_open_1): Remove two pop_target calls, update one comment, add
8977 comment to target_preopen call. Replace pop_target call by
8978 remote_unpush_target call.
8979 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8980 pop_target calls by remote_unpush_target calls.
8981
3e74e146
PA
89822013-03-22 Pedro Alves <palves@redhat.com>
8983
8984 * linux-nat.c (linux_child_follow_fork): Don't call
8985 linux_enable_event_reporting.
8986 (linux_handle_extended_wait): Don't call
8987 linux_enable_event_reporting.
8988
a2213dca
PA
89892013-03-22 Pedro Alves <palves@redhat.com>
8990
8991 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8992 use it to rewrite the trampoline buffers with type gdb_byte[], and
8993 undefine the macro. Remove char* cast.
8994
bd712aed
DE
89952013-03-21 Doug Evans <dje@google.com>
8996
8997 New commands "mt set per-command {space,time,symtab} {on,off}".
8998 * NEWS: Add entry.
8999 * event-top.c: #include "maint.h".
9000 * main.c: #include "maint.h".
9001 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9002 timeval-utils.h, maint.h, cli/cli-setshow.h.
9003 (per_command_time, per_command_space): New static globals.
9004 (per_command_symtab): New static global.
9005 (per_command_setlist, per_command_showlist): New static globals.
9006 (struct cmd_stats): Move here from utils.c.
9007 (set_per_command_time): Renamed from set_display_time in utils.c
9008 and moved here. All callers updated.
9009 (set_per_command_space): Renamed from set_display_space in utils.c
9010 and moved here. All callers updated.
9011 (count_symtabs_and_blocks): New function.
9012 (report_command_stats): Moved here from utils.c. Add support for
9013 printing symtab stats. Only print data if enabled before command
9014 executed.
9015 (make_command_stats_cleanup): Ditto.
9016 (sert_per_command_cmd, show_per_command_cmd): New functions.
9017 (_initialize_maint_cmds): Add new commands
9018 mt set per-command {space,time,symtab} {on,off}.
9019 * maint.h: New file.
9020 * top.c: #include "maint.h".
9021 * utils.c (reset_prompt_for_continue_wait_time): New function.
9022 (get_prompt_for_continue_wait_time): New function.
9023 * utils.h (reset_prompt_for_continue_wait_time): Declare
9024 (get_prompt_for_continue_wait_time): Declare.
9025 (make_command_stats_cleanup): Moved to maint.h.
9026 (set_display_time, set_display_space): Moved to maint.h and renamed
9027 to set_per_command_time, set_per_command_space.
9028 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9029 parse_binary_operation and made non-static. Don't call error,
9030 just return an error marker. All callers updated.
9031 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9032
d76488d8
TT
90332013-03-21 Tom Tromey <tromey@redhat.com>
9034
9035 * symfile.c (alloc_section_addr_info): Update header. Don't set
9036 'num_sections' field.
9037 (build_section_addr_info_from_section_table): Set 'num_sections'.
9038 (build_section_addr_info_from_bfd): Likewise.
9039 (build_section_addr_info_from_objfile): Remove dead loop
9040 condition.
9041 (free_section_addr_info): Unconditionally call xfree.
9042 (relative_addr_info_to_section_offsets, addrs_section_sort)
9043 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9044 condition.
9045 (syms_from_objfile_1): Remove dead 'if' condition. Check
9046 'num_sections'.
9047 (add_symbol_file_command): Set 'num_sections'.
9048 * symfile-mem.c (symbol_file_add_from_memory): Set
9049 'num_sections'.
9050 * somread.c (som_symfile_offsets): Remove dead loop condition.
9051 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9052 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9053
a72e5169 90542013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9055
9056 * tracepoint.h (decode_agent_options): Add 'trace_string'
9057 argument.
9058 * tracepoint.c (decode_agent_options): Add 'trace_string'
9059 argument.
9060 (validate_actionline): Update.
9061 (collect_symbol): Add 'trace_string' argument.
9062 (struct add_local_symbols_data) <trace_string>: New field.
9063 (do_collect_symbol): Update.
9064 (add_local_symbols): Add 'trace_string' argument.
9065 (encode_actions_1): Update.
9066 (trace_dump_actions): Update.
9067 * dwarf2loc.c (access_memory): Update.
9068 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9069 * ax-general.c (new_agent_expr): Update.
9070 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9071 (gen_trace_for_return_address): Add argument.
9072 (trace_kludge, trace_string_kludge): Remove.
9073 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9074 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9075 (gen_trace_for_var): Add 'trace_string' argument.
9076 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9077 (gen_printf, agent_eval_command_one): Update.
9078
b2f83c08
TT
90792013-03-21 Tom Tromey <tromey@redhat.com>
9080
9081 PR exp/15109:
9082 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9083 Handle FILENAME token.
9084
9507860e
TT
90852013-03-21 Tom Tromey <tromey@redhat.com>
9086
9087 * c-exp.y (YYPRINT): Define.
9088 (c_print_token): New function.
9089
e403aa4b
TT
90902013-03-21 Tom Tromey <tromey@redhat.com>
9091
9092 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9093
af307d6a
YQ
90942013-03-21 Yao Qi <yao@codesourcery.com>
9095
9096 * ctf.c: Include "gdb_stat.h".
9097 [USE_WIN32API]: New macro 'mkdir'.
9098 (ctf_start): Use permission bits macros if they are defined.
9099
fb81d016
KS
91002013-03-20 Keith Seitz <keiths@redhat.com>
9101
9102 * breakpoint.h (struct breakpoint): Add comment to
9103 extra_string indicating that this member is mallod'd.
9104 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9105
ef0026f0
PA
91062013-03-20 Pedro Alves <palves@redhat.com>
9107
9108 PR gdb/15289
9109
9110 * cli/cli-setshow.c (do_set_command)
9111 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9112 the result of parsing the command argument. Throw error if the
9113 value is greater than UINT_MAX. Print the invalid value with
9114 plongest.
9115 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9116 result of parsing the command argument. Throw error if the value
9117 is greater than INT_MAX, not greater or equal. Also throw error
9118 if the value is less than INT_MIN. Print the invalid value with
9119 plongest.
9120 <var_zuinteger_unlimited>: Throw error if the value is greater
9121 than INT_MAX, not greater or equal.
9122 (do_show_command) <var_integer, var_zinteger,
9123 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9124
24d6c2a0
TT
91252013-03-20 Tom Tromey <tromey@redhat.com>
9126
9127 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9128 if possible.
9129 * dwarf2read.c (read_func_scope): Remove old FIXME.
9130 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9131 not LOC_COMPUTED.
9132 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9133 Unconditionally call via computed ops, if possible.
9134 * printcmd.c (address_info): Unconditionally call via computed ops,
9135 if possible.
9136 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9137 if possible.
9138 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9139 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9140 if possible.
9141
f1e6e072
TT
91422013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9143 Tom Tromey <tromey@redhat.com>
9144
9145 PR symtab/8421:
9146 * coffread.c (coff_register_index): New global.
9147 (process_coff_symbol, coff_read_enum_type): Set
9148 SYMBOL_ACLASS_INDEX.
9149 (_initialize_coffread): Initialize new global.
9150 * dwarf2loc.c (locexpr_find_frame_base_location)
9151 (dwarf2_block_frame_base_locexpr_funcs)
9152 (loclist_find_frame_base_location)
9153 (dwarf2_block_frame_base_loclist_funcs): New.
9154 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9155 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9156 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9157 (dwarf2_block_frame_base_loclist_funcs): New.
9158 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9159 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9160 globals.
9161 (read_func_scope): Update.
9162 (fixup_go_packaging, mark_common_block_symbol_computed)
9163 (var_decode_location, new_symbol_full, dwarf2_const_value):
9164 Set SYMBOL_ACLASS_INDEX.
9165 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9166 (_initialize_dwarf2_read): Initialize new globals.
9167 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9168 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9169 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9170 globals.
9171 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9172 (_initialize_mdebugread): Initialize new globals.
9173 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9174 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9175 (stab_register_index, stab_regparm_index): New globals.
9176 (define_symbol, read_enum_type, common_block_end): Set
9177 SYMBOL_ACLASS_INDEX.
9178 (_initialize_stabsread): Initialize new globals.
9179 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9180 globals.
9181 (MAX_SYMBOL_IMPLS): New define.
9182 (register_symbol_computed_impl, register_symbol_block_impl)
9183 (register_symbol_register_impl)
9184 (initialize_ordinary_address_classes): New functions.
9185 (_initialize_symtab): Call initialize_ordinary_address_classes.
9186 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9187 (struct symbol_impl): New.
9188 (SYMBOL_ACLASS_BITS): New define.
9189 (struct symbol) <aclass, ops>: Remove fields.
9190 <aclass_index>: New field.
9191 (symbol_impls): Declare.
9192 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9193 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9194 (register_symbol_computed_impl, register_symbol_block_impl)
9195 (register_symbol_register_impl): Declare.
9196 (struct symbol_computed_ops): Add location_has_loclist.
9197 (struct symbol_block_ops): New.
9198 (SYMBOL_BLOCK_OPS): New.
9199 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9200
dbccfd4c
TT
92012013-03-20 Tom Tromey <tromey@redhat.com>
9202
9203 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9204 (print_partial_symbols, recursively_search_psymtabs): Use
9205 PSYMBOL_CLASS.
9206
e3f1ad4f
PM
92072013-03-20 Pierre Muller <muller@sourceware.org>
9208
9209 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9210 addtion, subtraction, multiplication and division binary operator.
9211
460014f5
JK
92122013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9213
9214 Code cleanup.
9215 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9216 * bsd-kvm.c (bsd_kvm_close): Likewise.
9217 * bsd-uthread.c (bsd_uthread_close): Likewise.
9218 * corelow.c (core_close): Likewise.
9219 (core_close_cleanup): Remove parameter quitting from a caller.
9220 * event-top.c (async_disconnect): Likewise.
9221 * exec.c (exec_close_1): Remove parameter quitting.
9222 * go32-nat.c (go32_close): Likewise.
9223 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9224 parameter quitting from a caller.
9225 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9226 variable.
9227 (mips_linux_close): Remove parameter quitting. Remove parameter
9228 quitting from a caller.
9229 * monitor.c (monitor_close): Remove parameter quitting.
9230 * monitor.h (monitor_close): Likewise.
9231 * record-btrace.c (record_btrace_close): Likewise.
9232 * record-full.c (record_full_close): Likewise.
9233 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9234 it also from fprintf_unfiltered.
9235 * remote-mips.c (mips_close): Remove parameter quitting.
9236 (mips_detach): Remove parameter quitting from a caller.
9237 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9238 (gdbsim_close): Remove duplicate function comment. Remove parameter
9239 quitting and remove it also from printf_filtered.
9240 * remote.c (remote_close): Remove parameter quitting.
9241 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9242 * target.c (update_current_target): Remove parameter int from to_close
9243 de_fault.
9244 (push_target, unpush_target, pop_target): Remove parameter quitting from
9245 a caller.
9246 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9247 Remove parameter quitting from a caller.
9248 (target_preopen): Remove parameter quitting from a caller.
9249 (target_close): Remove parameter quitting. Remove parameter quitting
9250 from a caller two times. Remove parameter quitting also from
9251 fprintf_unfiltered.
9252 * target.h (struct target_ops): Remove parameter quitting and as int
9253 from fields to_xclose and to_close.
9254 (extern struct target_ops current_target):
9255 (target_close, pop_all_targets): Remove parameter quitting. Update the
9256 comment.
9257 (pop_all_targets_above): Remove parameter quitting.
9258 * top.c (quit_target): Remove parameter quitting from a caller.
9259 * tracepoint.c (tfile_close): Remove parameter quitting.
9260 * windows-nat.c (windows_close): Remove parameter quitting.
9261
35a7120b
CV
92622013-03-20 Corinna Vinschen <vinschen@redhat.com>
9263
9264 * windows-nat.c (handle_output_debug_string): Replace call
9265 to string_to_core_addr with call to strtoull.
9266
8249a5a9
YQ
92672013-03-20 Yao Qi <yao@codesourcery.com>
9268
9269 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9270 and write it to CTF metadata.
9271
2c15ef43
CV
92722013-03-19 Corinna Vinschen <vinschen@redhat.com>
9273
9274 * windows-nat.c (handle_output_debug_string): Change type of n to
9275 SIZE_T to avoid crash on 64 bit systems.
9276
1cdd3232
EZ
92772013-03-17 Eli Zaretskii <eliz@gnu.org>
9278
9279 * python/python-internal.h (HAVE_SNPRINTF)
9280 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9281 about redefinition of snprintf by pyerrors.h.
9282
3cb2ab1a
SE
92832013-03-15 Steve Ellcey <sellcey@mips.com>
9284
9285 * remote-sim.c (sim_command_completer): Make char arguments const.
9286
9ce98649
TT
92872013-03-15 Tom Tromey <tromey@redhat.com>
9288
9289 PR c++/15116:
9290 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9291
dccee2de
TT
92922013-03-14 Tom Tromey <tromey@redhat.com>
9293
9294 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9295 New fields.
9296 (get_file_crc): Move from symfile.c.
9297 (gdb_bfd_crc): New function.
9298 * gdb_bfd.h (gdb_bfd_crc): Declare.
9299 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9300 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9301 (separate_debug_file_exists): Use gdb_bfd_crc.
9302
cc0ea93c
TT
93032013-03-14 Tom Tromey <tromey@redhat.com>
9304
9305 * symfile.c (get_debug_link_info): Remove.
9306 (find_separate_debug_file_by_debuglink): Use
9307 bfd_get_debug_link_info.
9308
08c23b0d
TT
93092013-03-14 Tom Tromey <tromey@redhat.com>
9310
9311 * symtab.c (error_in_psymtab_expansion): New function.
9312 (lookup_symbol_aux_quick)
9313 (basic_lookup_transparent_type_quick): Remove "last resort"
9314 code. Use error_in_psymtab_expansion.
9315
288e77a7
JK
93162013-03-14 Doug Evans <dje@google.com>
9317 Jan Kratochvil <jan.kratochvil@redhat.com>
9318
9319 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9320 any successful compare_filenames_for_search or FILENAME_CMP.
9321 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9322 * symtab.c (iterate_over_some_symtabs): Likewise.
9323
8f1b8b82
JK
93242013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9325
9326 * source.c (print_source_lines_base): Make a local copy of
9327 symtab_to_fullname.
9328
23eb71e4
JK
93292013-03-14 Hui Zhu <hui_zhu@mentor.com>
9330 Jan Kratochvil <jan.kratochvil@redhat.com>
9331
9332 * source.c (print_source_lines_base): Suppress "file" for TUI.
9333
bb869963
SDJ
93342013-03-14 Keith Seitz <keiths@redhat.com>
9335 Alan Matsuoka <alanm@redhat.com>
9336
9337 PR c++/15203
9338 PR c++/15210
9339 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9340 TYPE_CODE_METHOD.
9341 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9342 symbols.
9343
d6682f9e
YQ
93442013-03-14 Yao Qi <yao@codesourcery.com>
9345
9346 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9347 status to tfile if trace is stopped by command 'tstop'.
9348
a22fa6e4
YQ
93492013-03-14 Yao Qi <yao@codesourcery.com>
9350
9351 * tracepoint.c (tfile_write_status): Write trace notes and user
9352 name into tfile if they are not NULL.
9353
d0353e76
YQ
93542013-03-14 Hui Zhu <hui@codesourcery.com>
9355 Yao Qi <yao@codesourcery.com>
9356
9357 * Makefile.in (REMOTE_OBS): Add ctf.o.
9358 (SFILES): Add ctf.c.
9359 (HFILES_NO_SRCDIR): Add ctf.h.
9360 * ctf.c, ctf.h: New files.
9361 * tracepoint.c: Include 'ctf.h'.
9362 (collect_pseudocommand): Remove static.
9363 (trace_save_command): Parse option "-ctf".
9364 Produce different trace file writers per option.
9365 Adjust output message.
9366 (trace_save_tfile, trace_save_ctf): New.
9367 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9368 * mi/mi-main.c: Include 'ctf.h'.
9369 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9370 trace_save_tfile or trace_save_ctf.
9371 * NEWS: Mention these changes.
9372
3f43bc09
YQ
93732013-03-14 Yao Qi <yao@codesourcery.com>
9374
9375 * tracepoint.c (trace_file_writer_xfree): New.
9376 (struct tfile_writer_data): New.
9377 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9378 (tfile_write_header, tfile_write_regblock_type): New.
9379 (tfile_write_status, tfile_write_uploaded_tsv): New.
9380 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9381 (tfile_write_raw_data, (tfile_end): New.
9382 (tfile_write_ops): New global variable.
9383 (TRACE_WRITE_R_BLOCK): New macro.
9384 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9385 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9386 (TRACE_WRITE_V_BLOCK): New macro.
9387 (trace_save): Add extra one parameter WRITER. Make it static.
9388 Use WRITER to writer trace.
9389 (tfile_trace_file_writer_new): New.
9390 (trace_save_command): Caller update.
9391 (trace_save_tfile): Write trace data in TFILE format.
9392 * tracepoint.h (struct trace_frame_write_ops): New.
9393 (struct trace_file_write_ops): New.
9394 (struct trace_file_writer): New.
9395 (trace_save): Remove its declaration.
9396 (trace_save_tfile): Declare it.
9397 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9398 instead of trace_save.
9399
58665b40
PA
94002013-03-13 Pedro Alves <palves@redhat.com>
9401
9402 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9403
10217050
PA
94042013-03-13 Pedro Alves <palves@redhat.com>
9405
9406 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9407 commented out code.
9408 * demangle.c (current_demangling_style_string): Make it const.
9409 (set_demangling_command): Assert the demangling style is known.
9410 Remove all handling of unknown styles. Set
9411 'current_demangling_style_string' to an element of the
9412 demangling_style_names array.
9413 (set_demangling_style): Delete.
9414 (_initialize_demangler): Set current_demangling_style_string to the
9415 element of the demangling_style_names array that corresponds to
9416 the default demangling style. Remove FIXME note. Don't call
9417 set_demangling_style.
9418 * gdb-demangle.h (set_demangling_style): Remove declaration.
9419
6f937416
PA
94202013-03-13 Pedro Alves <palves@redhat.com>
9421
9422 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9423 fields const.
9424 (ada_make_symbol_completion_list): Make "text0" parameter const.
9425 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9426 * breakpoint.c (condition_completer): Make "text" and "word"
9427 parameters const. Adjust.
9428 (check_tracepoint_command): Adjust to validate_actionline
9429 prototype change.
9430 (catch_syscall_completer): Make "text" and "word" parameters
9431 const.
9432 * cli/cli-cmds.c (show_user): Make "comname" local const.
9433 (valid_command_p): Make "command" parameter const.
9434 (alias_command): Make "alias_prefix" and "command_prefix" locals
9435 const.
9436 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9437 (add_alias_cmd): Make "name" and "oldname" parameters const.
9438 Adjust. No longer make copy of OLDNAME.
9439 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9440 (add_setshow_cmd_full, add_setshow_enum_cmd)
9441 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9442 (add_setshow_filename_cmd, add_setshow_string_cmd)
9443 (add_setshow_string_noescape_cmd)
9444 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9445 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9446 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9447 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9448 Make "name" parameter const.
9449 (help_cmd): Rename "command" parameter to "arg". New const local
9450 "command".
9451 (find_cmd): Make "command" parameter const.
9452 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9453 deprecated_cmd_warning prototype change.
9454 (undef_cmd_error): Make "cmdtype" parameter const.
9455 (lookup_cmd): Make "line" parameter const.
9456 (deprecated_cmd_warning): Change type of "text" parameter to
9457 pointer to const char, from pointer to pointer to char. Adjust.
9458 (lookup_cmd_composition): Make "text" parameter const.
9459 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9460 parameters const.
9461 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9462 const.
9463 * cli/cli-script.c (validate_comname): Make "tem" local const.
9464 (define_command): New const local "tem_c". Use it in calls to
9465 lookup_cmd.
9466 (document_command): Make "tem" and "comfull" locals const.
9467 (show_user_1): Make "prefix" and "name" parameters const.
9468 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9469 const.
9470 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9471 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9472 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9473 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9474 (complete_on_enum, add_setshow_enum_cmd)
9475 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9476 (add_setshow_filename_cmd, add_setshow_string_cmd)
9477 (add_setshow_string_noescape_cmd)
9478 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9479 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9480 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9481 Change prototypes, constifying strings.
9482 * completer.c (noop_completer, filename_completer): Make "text"
9483 and "prefix" parameters const.
9484 (location_completer, expression_completer)
9485 (complete_line_internal): Make "text" and "prefix" parameters
9486 const and adjust.
9487 (command_completer, signal_completer): Make "text" and "prefix"
9488 parameters const.
9489 * completer.h (noop_completer, filename_completer)
9490 (expression_completer, location_completer, command_completer)
9491 (signal_completer): Change prototypes.
9492 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9493 parameters const.
9494 * cp-abi.c (cp_abi_completer): Likewise.
9495 * expression.h (parse_expression_for_completion): Change
9496 prototype.
9497 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9498 parameters const.
9499 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9500 * infrun.c (handle_completer): Make "text" and "word" parameters
9501 const.
9502 * interps.c (interpreter_completer): Make "text" and "word"
9503 parameters const.
9504 * language.h (struct language_defn)
9505 <la_make_symbol_completion_list>: Make "text" and "word"
9506 parameters const.
9507 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9508 (parse_exp_in_context): Rename to ...
9509 (parse_exp_in_context_1): ... this.
9510 (parse_exp_in_context): Reimplement, with const hack from
9511 parse_exp_1.
9512 (parse_expression_for_completion): Make "string" parameter const.
9513 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9514 to pointer to const char. Adjust.
9515 (print_command_1): Make "exp" parameter const.
9516 (output_command): Rename to ...
9517 (output_command_const): ... this. Make "exp" parameter const.
9518 (output_command): Reimplement.
9519 (x_command): Adjust.
9520 (display_command): Rename "exp" parameter to "arg". New "exp"
9521 local, const version of "arg".
9522 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9523 "cmd_name" local const.
9524 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9525 call.
9526 (cmdpy_completer): Make "text" and "word" parameters const.
9527 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9528 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9529 const.
9530 * remote.c (_initialize_remote): Make "cmd_name" local const.
9531 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9532 parameters const. Adjust.
9533 (completion_list_add_fields): Make "sym_text", "text" and "word"
9534 parameters const.
9535 (struct add_name_data) <sym_text, text, word>: Make fields const.
9536 (default_make_symbol_completion_list_break_on): Make "text" and
9537 "word" parameters const. Adjust locals.
9538 (default_make_symbol_completion_list)
9539 (make_symbol_completion_list, make_symbol_completion_type)
9540 (make_symbol_completion_list_fn): Make "text" and "word"
9541 parameters const.
9542 (make_file_symbol_completion_list): Make "text", "word" and
9543 "srcfile" parameters const. Adjust locals.
9544 (add_filename_to_list): Make "text" and "word" parameters const.
9545 (struct add_partial_filename_data) <text, word>: Make fields
9546 const.
9547 (make_source_files_completion_list): Make "text" and "word"
9548 parameters const.
9549 * symtab.h (default_make_symbol_completion_list_break_on)
9550 (default_make_symbol_completion_list, make_symbol_completion_list)
9551 (make_symbol_completion_type enum type_code)
9552 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9553 (make_source_files_completion_list): Change prototype.
9554 * top.c (execute_command): Adjust to pass pointer to pointer to
9555 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9556 change.
9557 (set_verbose): Make "cmdname" local const.
9558 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9559 and adjust.
9560 (validate_actionline): Make "line" parameter a pointer to const
9561 char, and adjust.
9562 (encode_actions_1): Make "action_exp" local const, and adjust.
9563 (encode_actions): Adjust.
9564 (replace_comma): Delete.
9565 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9566 const, and adjust. Don't frob the action string while splitting
9567 it at commas. Instead, make a copy of each split substring in
9568 turn.
9569 (trace_dump_command): Adjust to validate_actionline prototype
9570 change.
9571 * tracepoint.h (decode_agent_options, decode_agent_options)
9572 (encode_actions, validate_actionline): Change prototypes.
9573 * valprint.h (output_command): Delete declaration.
9574 (output_command_const): Declare.
9575 * value.c (function_destroyer): Cast const away in xfree call.
9576
a0bcdaa7
PA
95772013-03-13 Pedro Alves <palves@redhat.com>
9578
9579 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9580 rather than casting 'const char * const *' to 'const char **'.
9581 * ada-lex.l (processInt): Make "trailer" local const. Remove
9582 'const char **' cast.
9583 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9584 locals, and use those as strtol output pointer, instead than doing
9585 invalid casts to from 'const char **' to 'char **'.
9586 (_initialize_demangle): Remove cast.
9587 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9588 locals, and use those as strtol output pointer, instead than doing
9589 invalid casts to from 'const char **' to 'char **'.
9590 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9591 casts.
9592 * stap-probe.c (stap_parse_register_operand)
9593 (stap_parse_single_operand): Likewise.
9594
8ddb1965
YQ
95952013-03-13 Yao Qi <yao@codesourcery.com>
9596
9597 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9598 the last matched 'V' blcok in trace frame.
9599
2d450646
JB
96002013-03-12 Joel Brobecker <brobecker@adacore.com>
9601
9602 * NEWS: Create a new section for the next release branch.
9603 Rename the section of the current branch, now that it has
9604 been cut.
9605
b4b79973 96062013-03-12 Joel Brobecker <brobecker@adacore.com>
9607
9608 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9609 * version.in: Bump version to 7.6.50.20130312-cvs.
9610
ee047554
KS
96112013-03-12 Keith Seitz <keiths@redhat.com>
9612
9613 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9614 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9615 Remove temporary copy of input string.
9616 (mi_execute_command_wrapper): Make "cmd" const.
9617 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9618 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9619 Use const strings.
9620 (mi_parse): Make "cmd" const.
9621 Use const strings.
9622 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9623
bbc13ae3
KS
96242013-03-12 Keith Seitz <keiths@redhat.com>
9625
9626 * ada-lang.c (ada_read_renaming_var_value): Pass const
9627 pointer to expression string to parse_exp_1.
9628 (create_excep_cond_exprs): Likewise.
9629 * ax-gdb.c (agent_eval_command_one): Likewise.
9630 (maint_agent_printf_command): Likewise.
9631 Constify much of the string handling/parsing.
9632 * breakpoint.c (set_breakpoint_condition): Pass const
9633 pointer to expression string to parse_exp_1.
9634 (update_watchpoint): Likewise.
9635 (parse_cmd_to_aexpr): Constify string handling.
9636 Pass const pointer to parse_exp_1.
9637 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9638 (find_condition_and_thread): Likewise.
9639 Make TOK const.
9640 (watch_command_1): Make "arg" const.
9641 Constify string handling.
9642 Copy the expression string instead of changing the input
9643 string.
9644 (update_breakpoint_location): Pass const pointer to
9645 parse_exp_1.
9646 * eval.c (parse_and_eval_address): Make "exp" const.
9647 (parse_to_comma_and_eval): Make "expp" const.
9648 (parse_and_eval): Make "exp" const.
9649 * expression.h (parse_expression): Make argument const.
9650 (parse_exp_1): Make first argument const.
9651 * findcmd.c (parse_find_args): Treat "args" as const.
9652 * linespec.c (parse_linespec): Pass const pointer to
9653 linespec_expression_to_pc.
9654 (linespec_expression_to_pc): Make "exp_ptr" const.
9655 * parse.c (parse_exp_1): Make "stringptr" const.
9656 Make a copy of the expression to pass to parse_exp_in_context until
9657 this whole interface can be constified.
9658 (parse_expression): Make "string" const.
9659 * printcmd.c (ui_printf): Treat "arg" as const.
9660 Handle const strings.
9661 * tracepoint.c (validate_actionline): Pass const pointer to
9662 all calls to parse_exp_1.
9663 (encode_actions_1): Likewise.
9664 * value.h (parse_to_comma_and_eval): Make argument const.
9665 (parse_and_eval_address): Likewise.
9666 (parse_and_eval): Likewise.
9667 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9668 (varobj_set_value): Likewise.
9669 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9670 constify string handling.
9671 Pass const pointers to parse_and_eval_address and
9672 parse_to_comman_and_eval.
9673 * cli/cli-utils.c (skip_to_space): Rename to ...
9674 (skip_to_space_const): ... this. Handle const strings.
9675 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9676 skip_to_space_const.
9677 (skip_to_space_const): Declare.
9678 * common/format.c (parse_format_string): Make "arg" const.
9679 Handle const strings.
9680 * common/format.h (parse_format_string): Make "arg" const.
9681 * gdbserver/ax.c (ax_printf): Make "format" const.
9682 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9683 of the expression string.
9684
f3cec7e6
HZ
96852013-03-12 Hui Zhu <hui@codesourcery.com>
9686
9687 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9688
9df7235c
HZ
96892013-03-12 Yao Qi <yao@codesourcery.com>
9690 Hui Zhu <hui@codesourcery.com>
9691
9692 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9693 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9694 DW_OP_deref_size.
9695
82d049ab
PH
96962013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9697
5f8e0b8f
MF
9698 * ada-lex.l (rules): Only recognize 'thread' as a
9699 delimiter when followed by numerals, as for c-exp.y.
9700 Use new rewind_to_char function to rewind the input for
9701 expression-delimiting tokens.
9702 (rewind_to_char): New function.
82d049ab 9703
8c1fb155
JK
97042013-03-11 Pedro Alves <palves@redhat.com>
9705 Jan Kratochvil <jan.kratochvil@redhat.com>
9706
9707 * configure: Regenerate.
9708 * configure.ac (check dynamic export flag): Link python test with
9709 $PYTHON_LIBS.
9710
cc81e1c6
DE
97112013-03-11 Doug Evans <dje@google.com>
9712 Keith Seitz <keiths@redhat.com>
9713
9714 * linespec.c (find_linespec_symbols): Call find_function_symbols
9715 first, and then call lookup_prefix_sym/find_method.
9716
39086a0e
PA
97172013-03-11 Pedro Alves <palves@redhat.com>
9718
9719 * charset.c (convert_between_encodings): Don't cast between
9720 different pointer to pointer types. Instead, make the 'inp' local
9721 be of the type iconv expects.
9722 (wchar_iterate): Don't cast between different pointer to pointer
9723 types. Instead, use new pointer local of the type iconv expects.
9724 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9725 Add new local of type char pointer, and use it to get a
9726 char/string view of the byte buffer, instead of casting between
9727 pointer to pointer types.
9728
90585175
HAQ
97292013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9730
9731 * remote.c (remote_set_trace_buffer_size): Move != operator
9732 to the start of next line to fix an ARI warning.
9733
59ea5688
MM
97342013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9735
9736 * NEWS: Add record changes.
9737
946287b7
MM
97382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9739
9740 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9741 the instruction history disassembly.
9742 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9743 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9744
afedecd3
MM
97452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9746
9747 * Makefile.in (SFILES): Add record-btrace.c
9748 (COMMON_OBS): Add record-btrace.o
9749 * record-btrace.c: New.
9750 * objfiles.c: Include btrace.h.
9751 (free_objfile): call btrace_free_objfile.
9752
15984c13
MM
97532013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9754
9755 * target.c (target_call_history, target_call_history_from,
9756 target_call_history_range): New.
9757 * target.h (target_ops) <to_call_history, to_call_history_from,
9758 to_call_history_range>: New fields.
9759 (target_call_history, target_call_history_from,
9760 target_call_history_range): New declaration.
9761 * record.c (get_call_history_modifiers, cmd_record_call_history,
9762 record_call_history_size): New.
9763 (_initialize_record): Add the "record function-call-history" command.
9764 Add "set/show record function-call-history-size" commands.
9765 * record.h (record_print_flag): New.
9766
67c86d06
MM
97672013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9768
9769 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9770 to_insn_history_range>: New fields.
9771 (target_insn_history): New.
9772 (target_insn_history_from): New.
9773 (target_insn_history_range): New.
9774 * target.c (target_insn_history): New.
9775 (target_insn_history_from): New.
9776 (target_insn_history_range): New.
9777 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9778 (record_insn_history_size): New.
9779 (get_insn_number): New.
9780 (get_context_size): New.
9781 (no_chunk): New.
9782 (get_insn_history_modifiers): New.
9783 (cmd_record_insn_history): New.
9784 (_initialize_record): Add "set/show record instruction-history-size"
9785 command. Add "record instruction-history" command.
9786
7c1687a9
MM
97872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9788
9789 * record.h (record_disconnect): New.
9790 (record_detach): New.
9791 (record_mourn_inferior): New.
9792 (record_kill): New.
9793 * record-full.c (record_disconnect, record_detach,
9794 record_mourn_inferior, record_kill): Move to...
9795 * record.c: ...here.
9796 (DEBUG): New.
9797 (record_stop): New.
9798 (record_unpush): New.
9799 (cmd_record_stop): Call record_stop. Replace unpush_target
9800 call with record_unpush call.
9801 (record_disconnect, record_detach): Assert that the target
9802 is of record stratum. Call record_unpush, record_stop, and
9803 DEBUG.
9804 (record_mourn_inferior, record_kill): Assert that the target
9805 is of record stratum. Call record_unpush and DEBUG.
9806
25ea693b
MM
98072013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9808
9809 * record-full.h, record-full.c (record_memory_query): Rename
9810 to ...
9811 (record_full_memory_query): ...this. Update all users.
9812 (record_arch_list_add_reg): Rename to ...
9813 (record_full_arch_list_add_reg): ...this. Update all users.
9814 (record_arch_list_add_mem): Rename to ...
9815 (record_full_arch_list_add_mem): ...this. Update all users.
9816 (record_arch_list_add_end): Rename to ...
9817 (record_full_arch_list_add_end): ...this. Update all users.
9818 (record_gdb_operation_disable_set): Rename to ...
9819 (record_full_gdb_operation_disable_set): ...this.
9820 Update all users.
9821
88d1aa9d
MM
98222013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9823
9824 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9825 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9826 (RECORD_IS_REPLAY): Renamed to ...
9827 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9828 (RECORD_FILE_MAGIC): Renamed to ...
9829 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9830 (record_mem_entry): Renamed to ...
9831 (record_full_mem_entry): ... this. Updated all users.
9832 (record_reg_entry): Renamed to ...
9833 (record_full_reg_entry): ... this. Updated all users.
9834 (record_end_entry): Renamed to ...
9835 (record_full_end_entry): ... this. Updated all users.
9836 (record_type) <record_end, record_reg, record_mem>: Renamed
9837 to ...
9838 (record_full_type) <record_full_end, record_full_reg,
9839 record_full_mem>: ... this. Updated all users.
9840 (record_entry): Renamed to ...
9841 (record_full_entry): ... this. Updated all users.
9842 (record_core_buf_entry): Renamed to ...
9843 (record_full_core_buf_entry): ... this. Updated all users.
9844 (record_core_regbuf): Renamed to ...
9845 (record_full_core_regbuf): ... this. Updated all users.
9846 (record_core_start): Renamed to ...
9847 (record_full_core_start): ... this. Updated all users.
9848 (record_core_end): Renamed to ...
9849 (record_full_core_end): ... this. Updated all users.
9850 (record_core_buf_list): Renamed to ...
9851 (record_full_core_buf_list): ... this. Updated all users.
9852 (record_first): Renamed to ...
9853 (record_full_first): ... this. Updated all users.
9854 (record_list): Renamed to ...
9855 (record_full_list): ... this. Updated all users.
9856 (record_arch_list_head): Renamed to ...
9857 (record_full_arch_list_head): ... this. Updated all users.
9858 (record_arch_list_tail): Renamed to ...
9859 (record_full_arch_list_tail): ... this. Updated all users.
9860 (record_stop_at_limit): Renamed to ...
9861 (record_full_stop_at_limit): ... this. Updated all users.
9862 (record_insn_max_num): Renamed to ...
9863 (record_full_insn_max_num): ... this. Updated all users.
9864 (record_insn_num): Renamed to ...
9865 (record_full_insn_num): ... this. Updated all users.
9866 (record_insn_count): Renamed to ...
9867 (record_full_insn_count): ... this. Updated all users.
9868 (record_ops): Renamed to ...
9869 (record_full_ops): ... this. Updated all users.
9870 (record_core_ops): Renamed to ...
9871 (record_full_core_ops): ... this. Updated all users.
9872 (set_record_cmdlist): Renamed to ...
9873 (set_record_full_cmdlist): ... this. Updated all users.
9874 (show_record_cmdlist): Renamed to ...
9875 (show_record_full_cmdlist): ... this. Updated all users.
9876 (record_cmdlist): Renamed to ...
9877 (record_full_cmdlist): ... this. Updated all users.
9878 (record_beneath_to_resume_ops): Renamed to ...
9879 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9880 (record_beneath_to_resume): Renamed to ...
9881 (record_full_beneath_to_resume): ... this. Updated all users.
9882 (record_beneath_to_wait_ops): Renamed to ...
9883 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9884 (record_beneath_to_wait): Renamed to ...
9885 (record_full_beneath_to_wait): ... this. Updated all users.
9886 (record_beneath_to_store_registers_ops): Renamed to ...
9887 (record_full_beneath_to_store_registers_ops): ... this.
9888 Updated all users.
9889 (record_beneath_to_store_registers): Renamed to ...
9890 (record_full_beneath_to_store_registers): ... this.
9891 Updated all users.
9892 (record_beneath_to_xfer_partial_ops): Renamed to ...
9893 (record_full_beneath_to_xfer_partial_ops): ... this.
9894 Updated all users.
9895 (record_beneath_to_xfer_partial): Renamed to ...
9896 (record_full_beneath_to_xfer_partial): ... this.
9897 Updated all users.
9898 (record_beneath_to_insert_breakpoint): Renamed to ...
9899 (record_full_beneath_to_insert_breakpoint): ... this.
9900 Updated all users.
9901 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9902 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9903 Updated all users.
9904 (record_beneath_to_stopped_data_address): Renamed to ...
9905 (record_full_beneath_to_stopped_data_address): ... this.
9906 Updated all users.
9907 (record_beneath_to_async): Renamed to ...
9908 (record_full_beneath_to_async): ... this. Updated all users.
9909 (record_goto_insn): Renamed to ...
9910 (record_full_goto_insn): ... this. Updated all users.
9911 (record_save): Renamed to ...
9912 (record_full_save): ... this. Updated all users.
9913 (record_reg_alloc): Renamed to ...
9914 (record_full_reg_alloc): ... this. Updated all users.
9915 (record_reg_release): Renamed to ...
9916 (record_full_reg_release): ... this. Updated all users.
9917 (record_mem_alloc): Renamed to ...
9918 (record_full_mem_alloc): ... this. Updated all users.
9919 (record_mem_release): Renamed to ...
9920 (record_full_mem_release): ... this. Updated all users.
9921 (record_end_alloc): Renamed to ...
9922 (record_full_end_alloc): ... this. Updated all users.
9923 (record_end_release): Renamed to ...
9924 (record_full_end_release): ... this. Updated all users.
9925 (record_entry_release): Renamed to ...
9926 (record_full_entry_release): ... this. Updated all users.
9927 (record_list_release): Renamed to ...
9928 (record_full_list_release): ... this. Updated all users.
9929 (record_list_release_following): Renamed to ...
9930 (record_full_list_release_following): ... this.
9931 Updated all users.
9932 (record_list_release_first): Renamed to ...
9933 (record_full_list_release_first): ... this. Updated all users.
9934 (record_arch_list_add): Renamed to ...
9935 (record_full_arch_list_add): ... this. Updated all users.
9936 (record_get_loc): Renamed to ...
9937 (record_full_get_loc): ... this. Updated all users.
9938 (record_check_insn_num): Renamed to ...
9939 (record_full_check_insn_num): ... this. Updated all users.
9940 (record_arch_list_cleanups): Renamed to ...
9941 (record_full_arch_list_cleanups): ... this. Updated all users.
9942 (record_message): Renamed to ...
9943 (record_full_message): ... this. Updated all users.
9944 (record_message_wrapper): Renamed to ...
9945 (record_full_message_wrapper): ... this. Updated all users.
9946 (record_message_wrapper_safe): Renamed to ...
9947 (record_full_message_wrapper_safe): ... this. Updated all users.
9948 (record_gdb_operation_disable): Renamed to ...
9949 (record_full_gdb_operation_disable): ... this. Updated all users.
9950 (record_hw_watchpoint): Renamed to ...
9951 (record_full_hw_watchpoint): ... this. Updated all users.
9952 (record_exec_insn): Renamed to ...
9953 (record_full_exec_insn): ... this. Updated all users.
9954 (record_restore): Renamed to ...
9955 (record_full_restore): ... this. Updated all users.
9956 (record_async_inferior_event_token): Renamed to ...
9957 (record_full_async_inferior_event_token): ... this.
9958 Updated all users.
9959 (record_async_inferior_event_handler): Renamed to ...
9960 (record_full_async_inferior_event_handler): ... this.
9961 Updated all users.
9962 (record_core_open_1): Renamed to ...
9963 (record_full_core_open_1): ... this. Updated all users.
9964 (record_open_1): Renamed to ...
9965 (record_full_open_1): ... this. Updated all users.
9966 (record_open): Renamed to ...
9967 (record_full_open): ... this. Updated all users.
9968 (record_close): Renamed to ...
9969 (record_full_close): ... this. Updated all users.
9970 (record_resume_step): Renamed to ...
9971 (record_full_resume_step): ... this. Updated all users.
9972 (record_resumed): Renamed to ...
9973 (record_full_resumed): ... this. Updated all users.
9974 (record_execution_dir): Renamed to ...
9975 (record_full_execution_dir): ... this. Updated all users.
9976 (record_resume): Renamed to ...
9977 (record_full_resume): ... this. Updated all users.
9978 (record_get_sig): Renamed to ...
9979 (record_full_get_sig): ... this. Updated all users.
9980 (record_sig_handler): Renamed to ...
9981 (record_full_sig_handler): ... this. Updated all users.
9982 (record_wait_cleanups): Renamed to ...
9983 (record_full_wait_cleanups): ... this. Updated all users.
9984 (record_wait_1): Renamed to ...
9985 (record_full_wait_1): ... this. Updated all users.
9986 (record_wait): Renamed to ...
9987 (record_full_wait): ... this. Updated all users.
9988 (record_stopped_by_watchpoint): Renamed to ...
9989 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9990 (record_disconnect): Renamed to ...
9991 (record_full_disconnect): ... this. Updated all users.
9992 (record_detach): Renamed to ...
9993 (record_full_detach): ... this. Updated all users.
9994 (record_mourn_inferior): Renamed to ...
9995 (record_full_mourn_inferior): ... this. Updated all users.
9996 (record_kill): Renamed to ...
9997 (record_full_kill): ... this. Updated all users.
9998 (record_stopped_data_address): Renamed to ...
9999 (record_full_stopped_data_address): ... this. Updated all users.
10000 (record_registers_change): Renamed to ...
10001 (record_full_registers_change): ... this. Updated all users.
10002 (record_store_registers): Renamed to ...
10003 (record_full_store_registers): ... this. Updated all users.
10004 (record_xfer_partial): Renamed to ...
10005 (record_full_xfer_partial): ... this. Updated all users.
10006 (record_breakpoint): Renamed to ...
10007 (record_full_breakpoint): ... this. Updated all users.
10008 (record_breakpoint_p): Renamed to ...
10009 (record_full_breakpoint_p): ... this. Updated all users.
10010 (record_breakpoints): Renamed to ...
10011 (record_full_breakpoints): ... this. Updated all users.
10012 (record_sync_record_breakpoints): Renamed to ...
10013 (record_full_sync_record_breakpoints): ... this.
10014 Updated all users.
10015 (record_init_record_breakpoints): Renamed to ...
10016 (record_full_init_record_breakpoints): ... this.
10017 Updated all users.
10018 (record_insert_breakpoint): Renamed to ...
10019 (record_full_insert_breakpoint): ... this. Updated all users.
10020 (record_remove_breakpoint): Renamed to ...
10021 (record_full_remove_breakpoint): ... this. Updated all users.
10022 (record_can_execute_reverse): Renamed to ...
10023 (record_full_can_execute_reverse): ... this. Updated all users.
10024 (record_get_bookmark): Renamed to ...
10025 (record_full_get_bookmark): ... this. Updated all users.
10026 (record_goto_bookmark): Renamed to ...
10027 (record_full_goto_bookmark): ... this. Updated all users.
10028 (record_async): Renamed to ...
10029 (record_full_async): ... this. Updated all users.
10030 (record_can_async_p): Renamed to ...
10031 (record_full_can_async_p): ... this. Updated all users.
10032 (record_is_async_p): Renamed to ...
10033 (record_full_is_async_p): ... this. Updated all users.
10034 (record_execution_direction): Renamed to ...
10035 (record_full_execution_direction): ... this. Updated all users.
10036 (record_info): Renamed to ...
10037 (record_full_info): ... this. Updated all users.
10038 (record_delete): Renamed to ...
10039 (record_full_delete): ... this. Updated all users.
10040 (record_is_replaying): Renamed to ...
10041 (record_full_is_replaying): ... this. Updated all users.
10042 (record_goto_entry): Renamed to ...
10043 (record_full_goto_entry): ... this. Updated all users.
10044 (record_goto_begin): Renamed to ...
10045 (record_full_goto_begin): ... this. Updated all users.
10046 (record_goto_end): Renamed to ...
10047 (record_full_goto_end): ... this. Updated all users.
10048 (record_goto): Renamed to ...
10049 (record_full_goto): ... this. Updated all users.
10050 (init_record_ops): Renamed to ...
10051 (init_record_full_ops): ... this. Updated all users.
10052 (record_core_resume): Renamed to ...
10053 (record_full_core_resume): ... this. Updated all users.
10054 (record_core_kill): Renamed to ...
10055 (record_full_core_kill): ... this. Updated all users.
10056 (record_core_fetch_registers): Renamed to ...
10057 (record_full_core_fetch_registers): ... this. Updated all users.
10058 (record_core_prepare_to_store): Renamed to ...
10059 (record_full_core_prepare_to_store): ... this. Updated all users.
10060 (record_core_store_registers): Renamed to ...
10061 (record_full_core_store_registers): ... this. Updated all users.
10062 (record_core_xfer_partial): Renamed to ...
10063 (record_full_core_xfer_partial): ... this. Updated all users.
10064 (record_core_insert_breakpoint): Renamed to ...
10065 (record_full_core_insert_breakpoint): ... this. Updated all users.
10066 (record_core_remove_breakpoint): Renamed to ...
10067 (record_full_core_remove_breakpoint): ... this. Updated all users.
10068 (record_core_has_execution): Renamed to ...
10069 (record_full_core_has_execution): ... this. Updated all users.
10070 (init_record_core_ops): Renamed to ...
10071 (init_record_full_core_ops): ... this. Updated all users.
10072 (cmd_record_restore): Renamed to ...
10073 (cmd_record_full_restore): ... this. Updated all users.
10074 (record_save_cleanups): Renamed to ...
10075 (record_full_save_cleanups): ... this. Updated all users.
10076 (cmd_record_start): Renamed to ...
10077 (cmd_record_full_start): ... this. Updated all users.
10078 (set_record_insn_max_num): Renamed to ...
10079 (set_record_full_insn_max_num): ... this. Updated all users.
10080 (set_record_command): Renamed to ...
10081 (set_record_full_command): ... this. Updated all users.
10082 (show_record_command): Renamed to ...
10083 (show_record_full_command): ... this. Updated all users.
10084 (_initialize_record): Renamed to ...
10085 (_initialize_record_full): ... this. Updated all users.
10086
d02ed0bb
MM
100872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10088
10089 * record.h: Split into this and ...
10090 * record-full.h: ... this.
10091 * record.c: Split into this and ...
10092 * record-full.c: ... this.
10093 * target.h (target_ops): Add new fields to_info_record,
10094 to_save_record, to_delete_record, to_record_is_replaying,
10095 to_goto_record_begin, to_goto_record_end, to_goto_record.
10096 (target_info_record): New.
10097 (target_save_record): New.
10098 (target_supports_delete_record): New.
10099 (target_delete_record): New.
10100 (target_record_is_replaying): New.
10101 (target_goto_record_begin): New.
10102 (target_goto_record_end): New.
10103 (target_goto_record): New.
10104 * target.c (target_info_record): New.
10105 (target_save_record): New.
10106 (target_supports_delete_record): New.
10107 (target_delete_record): New.
10108 (target_record_is_replaying): New.
10109 (target_goto_record_begin): New.
10110 (target_goto_record_end): New.
10111 (target_goto_record): New.
10112 * record.h: Declare struct cmd_list_element.
10113 (record_cmdlist): New declaration.
10114 (set_record_cmdlist): New declaration.
10115 (show_record_cmdlist): New declaration.
10116 (info_record_cmdlist): New declaration.
10117 (cmd_record_goto): New declaration.
10118 * record.c: Remove unnecessary includes.
10119 Include inferior.h.
10120 (cmd_record_goto): Remove declaration.
10121 (record_cmdlist): Now extern. Initialize.
10122 (set_record_cmdlist): Now extern. Initialize.
10123 (show_record_cmdlist): Now extern. Initialize.
10124 (info_record_cmdlist): Now extern. Initialize.
10125 (find_record_target): New.
10126 (require_record_target): New.
10127 (cmd_record_start): Update.
10128 (cmd_record_delete): Remove target-specific code.
10129 Call target_delete_record.
10130 (cmd_record_stop): Unpush any record target.
10131 (set_record_insn_max_num): Move to record-full.c
10132 (set_record_command): Add comment.
10133 (show_record_command): Add comment.
10134 (info_record_command): Update comment.
10135 Remove target-specific code.
10136 Call the record target's to_info_record.
10137 (cmd_record_start): New.
10138 (cmd_record_goto): Now extern.
10139 Remove target-specific code.
10140 Call target_goto_begin, target_goto_end, or target_goto.
10141 (_initialize_record): Move record target ops initialization to
10142 record-full.c.
10143 Change "record" command help text.
10144 Move "record restore", "record set", and "record show" commands to
10145 record-full.c.
10146 * Makefile.in (SFILES): Add record-full.c.
10147 (HFILES_NO_SRCDIR): Add record-full.h.
10148 (COMMON_OBS): Add record-full.o.
10149 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10150 * arm-tdep.c: Include record-full.h.
10151 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10152 * i386-tdep.c: Include record-full.h.
10153 * infrun.c: Include record-full.h.
10154 * linux-record.c: Include record-full.h.
10155 * moxie-tdep.c: Include record-full.h.
10156 * record-full.c: Include record-full.h.
10157 Change module comment.
10158 (set_record_full_cmdlist): New.
10159 (show_record_full_cmdlist): New.
10160 (record_full_cmdlist): New.
10161 (record_goto_insn): New declaration.
10162 (record_save): New declaration.
10163 (record_check_insn_num): Change query string.
10164 (record_info): New.
10165 (record_delete): New.
10166 (record_is_replaying): New.
10167 (record_goto_entry): New.
10168 (record_goto_begin): New.
10169 (record_goto_end): New.
10170 (record_goto): New.
10171 (init_record_ops): Update.
10172 (init_record_core_ops): Update.
10173 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10174 (cmd_record_start): New.
10175 (set_record_insn_max_num): Moved from record.c
10176 (set_record_full_command): New.
10177 (show_record_full_command): New.
10178 (_initialize_record_full): New.
10179
b48d48eb
MM
101802013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10181
10182 * target.h (add_deprecated_target_alias): New.
10183 * target.c (add_deprecated_target_alias): New.
10184
a950d57c
MM
101852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10186
10187 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10188 and signal.h.
10189 (linux_supports_btrace): Add kernel and
10190 cpuid check.
10191 (kernel_supports_btrace): New function.
10192 (cpu_supports_btrace): New function.
10193 (intel_supports_btrace): New function.
10194
9accd112
MM
101952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10196
10197 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10198 * remote.c: Include btrace.h.
10199 (struct btrace_target_info): New struct.
10200 (remote_supports_btrace): New function.
10201 (send_Qbtrace): New function.
10202 (remote_enable_btrace): New function.
10203 (remote_disable_btrace): New function.
10204 (remote_teardown_btrace): New function.
10205 (remote_read_btrace): New function.
10206 (init_remote_ops): Add btrace ops.
10207 (enum <unnamed>): Add btrace packets.
10208 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10209 (_initialize_remote): Add packet configuration for branch tracing.
10210
c12a2917
MM
102112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10212
10213 * features/btrace.dtd: New file.
10214 * Makefile.in (XMLFILES): Add btrace.dtd.
10215 * btrace.h (parse_xml_btrace): New declaration.
10216 * btrace.c: Include xml-support.h.
10217 (parse_xml_btrace): New function.
10218 (parse_xml_btrace_block): New function.
10219 (block_attributes): New struct.
10220 (btrace_attributes): New struct.
10221 (btrace_children): New struct.
10222 (btrace_elements): New struct.
10223
3e3aea48
MM
102242013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10225
10226 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10227 (amd64_linux_enable_btrace): New.
10228 (amd64_linux_disable_btrace): New.
10229 (amd64_linux_teardown_btrace): New.
10230 (_initialize_amd64_linux_nat): Initialize btrace ops.
10231 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10232 (i386_linux_enable_btrace): New.
10233 (i386_linux_disable_btrace): New.
10234 (i386_linux_teardown_btrace): New.
10235 (_initialize_i386_linux_nat): Initialize btrace ops.
10236 * config/i386/linux.mh: Add linux-btrace.o.
10237 * config/i386/linux64.mh: Add linux-btrace.o.
10238
7c97f91e
MM
102392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10240
10241 * common/linux_btrace.h: New file.
10242 * common/linux_btrace.c: New file.
10243 * Makefile.in (SFILES): Add btrace.c.
10244 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10245 (COMMON_OBS): Add btrace.o.
10246 (linux-btrace.o): New rule.
10247
1999790b 102482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10249
10250 * target.h: Include btrace.h.
10251 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10252 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10253 * target.c (target_supports_btrace): New function.
10254 (target_enable_btrace): New function.
10255 (target_disable_btrace): New function.
10256 (target_teardown_btrace): New function.
10257 (target_read_btrace): New function.
10258 * btrace.h: New file.
10259 * btrace.c: New file.
10260 * Makefile.in: Add btrace.c.
10261 * gdbthread.h: Include btrace.h.
10262 (struct thread_info): Add btrace field.
10263 * thread.c: Include btrace.h.
10264 (clear_thread_inferior_resources): Call target_teardown_btrace.
10265 * common/btrace-common.h: New file.
10266
61a31a67
JK
102672013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10268
10269 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10270 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10271 kill_status to outer block.
10272
05c56a9d
JK
102732013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10274
10275 Fix entry-values if the callee called a noreturn function.
10276 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10277 get_frame_address_in_block. Add new comment.
10278
9112db09
JK
102792013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10280
10281 Fix entry-values in C++ across CUs.
10282 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10283 lookup_minimal_symbol. Add a comment.
10284 * dwarf2read.c
10285 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10286 DW_AT_linkage_name.
10287
9b67fcec
YQ
102882013-03-08 Yao Qi <yao@codesourcery.com>
10289
10290 * tracepoint.c (_initialize_tracepoint): Indent the code.
10291
6221be90
PA
102922013-03-08 Pedro Alves <palves@redhat.com>
10293
10294 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10295 (parse_find_args, find_command): Change type of pattern buffer
10296 locals to 'gdb_byte *'.
10297
be9a119c 102982013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10299 Hafiz Abid Qadeer <abidh@codesourcery.com>
10300
10301 * NEWS: Mention set and show trace-buffer-size commands.
10302 Mention new packet.
10303 * target.h (struct target_ops): New method
10304 to_set_trace_buffer_size.
10305 (target_set_trace_buffer_size): New macro.
10306 * target.c (update_current_target): Set up new method.
10307 * tracepoint.c (trace_buffer_size): New global.
10308 (start_tracing): Send it to the target.
10309 (set_trace_buffer_size): New function.
10310 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10311 * remote.c (remote_set_trace_buffer_size): New function.
10312 (_initialize_remote): Use it.
10313 (QTBuffer:size) New remote command.
10314 (PACKET_QTBuffer_size): New enum.
10315 (remote_protocol_features): Add an entry for
10316 PACKET_QTBuffer_size.
10317
7da3ab79
TT
103182013-03-08 Tom Tromey <tromey@redhat.com>
10319
10320 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10321 variable.
10322
0c1f71e7
PA
103232013-03-07 Pedro Alves <palves@redhat.com>
10324
10325 * target.c (target_read_stralloc, target_fileio_read_alloc):
10326 *Cast pointer to 'gdb_byte *' in target call.
10327
c8af03a2
PA
103282013-03-07 Pedro Alves <palves@redhat.com>
10329
10330 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10331 call.
10332
529480d0
KS
103332013-03-07 Keith Seitz <keiths@redhat.com>
10334
10335 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10336 (trace_pass_command): Likewise.
10337 * cli/cli-cmds.c: Include cli/cli-utils.h.
10338 (source_command): Use skip-spaces.
10339 (disassemble_command): Likewise.
10340 * findcmd.c: Include cli/cli-utils.h.
10341 (parse_find_args): Use skip_spaces.
10342 * go32-nat.c: Include cli/cli-utils.h.
10343 (go32_sldt): Use skip_spaces.
10344 (go32_sgdt): Likewise.
10345 (go32_sidt): Likewise.
10346 (go32_pde): Likewise.
10347 (go32_pte): Likewise.
10348 (go32_pte_for_address): Likewise.
10349 * infcmd.c: Include cli/cli-utils.h.
10350 (registers_info): Use skip_spaces.
10351 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10352 (linux_info_proc): Likewise.
10353 * linux-thread-db.c: Include cli/cli-utils.h.
10354 (info_auto_load_libthread_db): Use skip_spaces_const.
10355 * m32r-rom.c: Include cli/cli-utils.h.
10356 (m32r_upload_command): Use skip_spaces.
10357 * maint.c: Include cli/cli-utils.h.
10358 (maintenance_translate_address): Use skip_spaces.
10359 * mi/mi-parse.c: Include cli/cli-utils.h.
10360 (mi_parse_argv): Use skip_spaces.
10361 (mi_parse): Likewise.
10362 * minsyms.c: Include cli/cli-utils.h.
10363 (msymbol_hash_iw): Use skip_spaces_const.
10364 * objc-lang.c: Include cli/cli-utils.h.
10365 (parse_selector): Use skip_spaces.
10366 (parse_method): Likewise.
10367 * python/python.c: Include cli/cli-utils.h.
10368 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10369 (python_command)[HAVE_PYTHON]: Likewise.
10370 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10371 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10372 (m32r_load): Use skip_spaces.
10373 * serial.c: Include cli/cli-utils.h.
10374 (serial_open): Use skip_spaces_const.
10375 * stack.c: Include cli/cli-utils.h.
10376 (parse_frame_specification_1): Use skip_spaces_const.
10377 * symfile.c: Include cli/cli-utils.h.
10378 (set_ext_lang_command): Use skip_spaces.
10379 * symtab.c: Include cli/cli-utils.h.
10380 (rbreak_command): Use skip_spaces.
10381 * thread.c (thread_name_command): Use skip_spaces.
10382 * tracepoint.c (validate_actionline): Use skip_spaces.
10383 (encode_actions_1): Likewise.
10384 (trace_find_range_command): Likewise.
10385 (trace_find_outside_command): Likewise.
10386 (trace_dump_actions): Likewise.
10387
ac91cd70
PA
103882013-03-07 Pedro Alves <palves@redhat.com>
10389
10390 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10391 * expprint.c (print_subexp_standard): Likewise.
10392 * utils.c (host_char_to_target): Likewise.
10393 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10394 * varobj.c (value_get_print_value): Change type of local to char*.
10395 Cast it gdb_byte * in call to language printer.
10396
2898e560
PA
103972013-03-07 Pedro Alves <palves@redhat.com>
10398
10399 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10400 gdb_byte *'.
10401 (make_wchar_iterator): Remove cast to char*.
10402 (wchar_iterate): Change type of local.
10403
a09b4448
PA
104042013-03-07 Pedro Alves <palves@redhat.com>
10405
10406 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10407 for 'regcache->register_status'.
10408
20ced3e4
PA
104092013-03-07 Pedro Alves <palves@redhat.com>
10410
c2d6a675 10411 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10412 int.
10413
fe106009
PA
104142013-03-07 Pedro Alves <palves@redhat.com>
10415
10416 * stap-probe.c (handle_stap_probe): Add cast to char*.
10417
8ac2c12b
PA
104182013-03-07 Pedro Alves <palves@redhat.com>
10419
10420 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10421 RECORD_MSGRCV>: Pass a signed variable to
10422 regcache_raw_read_signed, instead of an unsigned one.
10423
99f0a309
PA
104242013-03-07 Pedro Alves <palves@redhat.com>
10425
10426 * remote-notif.c (notif_debug): Change type to int.
10427 * remote-notif.h (notif_debug): Likewise.
10428
964b8317
PA
104292013-03-07 Pedro Alves <palves@redhat.com>
10430
10431 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10432
f0cc8ad4
PA
104332013-03-07 Pedro Alves <palves@redhat.com>
10434
10435 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10436 * remote.h (hex2bin, bin2hex): ... here.
10437 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10438
77dec115
EZ
104392013-03-07 Eli Zaretskii <eliz@gnu.org>
10440
10441 * utils.c (initialize_utils): Improve doc strings of "set/show
10442 width", "set/show height", and "set/show pagination".
10443
741d92cf
KS
104442013-03-06 Keith Seitz <keiths@redhat.com>
10445
10446 * ax-gdb.c (gen_printf): Make FORMAT const.
10447 * ax-gdb.h (gen_printf): Likewise.
10448 * ax-general.c (ax_string): Make STR const.
10449 * ax.h (ax_string): Likewise.
10450
7b6c814e
DE
104512013-03-06 Doug Evans <dje@google.com>
10452
10453 * elfread.c (elf_symfile_read): Move debugging printf to more
10454 logical location.
10455
634334ab
PA
104562013-03-06 Pedro Alves <palves@redhat.com>
10457
10458 * python/py-utils.c (target_string_to_unicode): Delete function.
10459 * python/python-internal.h (target_string_to_unicode): Delete
10460 declaration.
10461
e482a1a7
PM
104622013-03-06 Pierre Muller <muller@sourceware.org>
10463
10464 * linespec.c (get_current_search_block): ARI fix, use (void)
10465 for empty parameter list.
10466
4eeaa230
DE
104672013-03-05 Doug Evans <dje@google.com>
10468
10469 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10470 of old ada_lookup_symbol_list. In !full_search case, don't
10471 search superblocks.
10472 (ada_lookup_symbol_list): Delete arg full_search, all callers
10473 updated. Call ada_lookup_symbol_list_worker.
10474 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10475 * ada-lang.h (ada_lookup_symbol_list): Update.
10476 * language.h (language_defn): Update comment for
10477 la_iterate_over_symbols.
10478 * linespec.c (iterate_over_file_blocks): New function.
10479 (iterate_over_all_matching_symtabs): Call it.
10480 (lookup_prefix_sym): Ditto.
10481 (get_current_search_block): New function.
10482 (get_search_block): Delete.
10483 (find_label_symbols): Call get_current_search_block.
10484 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10485 * symtab.c (iterate_over_symbols): Don't search superblocks.
10486
b69b1fb1
YQ
104872013-03-05 Yao Qi <yao@codesourcery.com>
10488
10489 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10490 parameter VAR's type from "unsigned int" to "int".
10491 * command.h (var_zuinteger_unlimited): Update its comments.
10492 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10493
3c095f49
CV
104942013-03-05 Corinna Vinschen <vinschen@redhat.de>
10495
10496 * NEWS: Mention new target x86_64-*-cygwin*.
10497
b5b0b0af
CV
104982013-03-05 Corinna Vinschen <vinschen@redhat.de>
10499
10500 * configure.host: Add x86_64-*-cygwin* as host.
10501 * configure.tgt: Add x86_64-*-cygwin* as target.
10502 * config/i386/cygwin64.mh: New file.
10503
f6f99966
JK
105042013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10505
10506 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10507
33f448b1
JK
105082013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10509
10510 * linespec.c (struct linespec_canonical_name): New.
10511 (struct linespec_state): Change canonical_names type to it.
10512 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10513 xrealloc element size. Initialize the different CANONICAL fields.
10514 (canonical_to_fullform): New.
10515 (filter_results): Use it. Add variables canonical, fullform and
10516 cleanup.
10517 (struct decode_line_2_item, decode_line_2_compare_items): New.
10518 (decode_line_2): Remove variables iter and item_names, add variables
10519 items and items_count. Modify the code for these new variables.
10520
feb14725
CV
105212013-03-04 Corinna Vinschen <vinschen@redhat.com>
10522
10523 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10524 calling do_cleanup.
10525
e83b17ba
HZ
105262013-03-04 Luis Machado <lgustavo@codesourcery.com>
10527
10528 * tracepoint.c (build_traceframe_info): Add code for byte order.
10529
a2d13a0d
KB
105302013-03-02 Kevin Buettner <kevinb@redhat.com>
10531
8dddcae8
KB
10532 * v850-tdep.c: (v850e2_register_name): Revise system register
10533 names to match current V850E2M architecture specifications.
10534 Update register number enum comments too.
f5aee5ee 10535
d79e58d8
JW
105362013-03-01 Jiong Wang <jiwang@tilera.com>
10537 Pedro Alves <palves@redhat.com>
10538
10539 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10540 to END_ADDR.
10541 (tilegx_skip_prologue): Limit prologue analysis to section end.
10542
c4be5165
JK
105432013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10544
10545 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10546 use it.
10547
e362b510
PA
105482013-03-01 Pedro Alves <palves@redhat.com>
10549
10550 Use gdb_byte for bytes from the program being debugged.
10551
10552 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10553 Change type of local 'buf' to gdb_byte.
10554 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10555 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10556 * cris-tdep.c (cris_sigcontext_addr)
10557 (cris_sigtramp_frame_unwind_cache): Likewise.
10558 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10559 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10560 Likewise.
10561 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10562 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10563 (hppa32_hpux_search_dummy_call_sequence)
10564 (hppa_hpux_supply_save_state): Likewise.
10565 * hppa-linux-tdep.c (insns_match_pattern)
10566 (hppa_linux_find_global_pointer): Likewise.
10567 * hppa-tdep.c (hppa_in_function_epilogue_p)
10568 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10569 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10570 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10571 (i386fbsd_collect_uthread): Likewise.
10572 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10573 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10574 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10575 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10576 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10577 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10578 (ia64_libunwind_frame_prev_register)
10579 (ia64_libunwind_sigtramp_frame_this_id)
10580 (ia64_find_global_pointer_from_dynamic_section)
10581 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10582 (ia64_unwind_pc): Likewise.
10583 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10584 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10585 (m68hc11_extract_return_value): Likewise.
10586 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10587 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10588 (mep_get_insn, mep_push_dummy_call): Likewise.
10589 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10590 (mips_linux_in_dynsym_stub): Likewise.
10591 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10592 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10593 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10594 to gdb_byte.
10595 * remote-mips.c (mips_set_register): Likewise.
10596 * remote-sim.c (gdbsim_fetch_register): Likewise.
10597 * score-tdep.c (score7_fetch_inst): Change type of parameter
10598 'memblock' and local 'buf' to gdb_byte.
10599 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10600 Change type of local 'buf' to gdb_byte. Adjust.
10601 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10602 to gdb_byte**.
10603 (score7_analyze_prologue): Change type of 'memblock' and
10604 'memblock_ptr' locals to gdb_byte*.
10605 * sh64-tdep.c (sh64_extract_return_value)
10606 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10607 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10608 * solib-pa64.c (pa64_solib_create_inferior_hook)
10609 (pa64_open_symbol_file_object): Remove local 'buf'.
10610 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10611 (som_open_symbol_file_object): Likewise.
10612 * solib-spu.c (spu_current_sos): Likewise.
10613 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10614 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10615 (spu_store_registers): Likewise.
10616 * target.c (debug_print_register): Likewise.
10617 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10618 * xstormy16-tdep.c (xstormy16_store_return_value)
10619 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10620 (xstormy16_find_jmp_table_entry): Likewise.
10621
75cc61ca 106222013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10623
10624 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10625 (tilegx_gdbarch_init): Install it.
10626
ddb08e9c
TT
106272013-02-28 Tom Tromey <tromey@redhat.com>
10628
10629 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10630 PyLong_Check.
10631
62d7fb51
DE
106322013-02-28 Doug Evans <dje@google.com>
10633
10634 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10635 * python/python.c (gdbpy_find_pc_line): Ditto.
10636
c4a9e8b4
TT
106372013-02-28 Tom Tromey <tromey@redhat.com>
10638
10639 * contrib/excheck.py: New file.
10640 * contrib/exsummary.py: New file.
10641 * contrib/gcc-with-excheck: New file.
10642
7f6a5dde
TT
106432013-02-28 Tom Tromey <tromey@redhat.com>
10644
10645 * python/python.c (gdbpy_print_stack): Call begin_line and
10646 fprintf_filtered inside TRY_CATCH.
10647
9e974e55
TT
106482013-02-28 Tom Tromey <tromey@redhat.com>
10649
10650 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10651 inside TRY_CATCH.
10652
dd5fa3e7
TT
106532013-02-28 Tom Tromey <tromey@redhat.com>
10654
10655 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10656 frame_object_to_frame_info inside TRY_CATCH.
10657
86a3263f
TT
106582013-02-28 Tom Tromey <tromey@redhat.com>
10659
10660 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10661 TRY_CATCH.
10662
81b52a3a
TT
106632013-02-28 Tom Tromey <tromey@redhat.com>
10664
10665 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10666
d50a0ce2
CV
106672013-02-27 Corinna Vinschen <vinschen@redhat.com>
10668
10669 * windows-nat.c: Throughout, fix format strings and casts of
10670 printf-like functions to avoid type related warnings on all
10671 platforms.
10672 (handle_output_debug_string): Fetch context information address
10673 from debug string using string_to_core_addr.
10674
e1f58301
JW
106752013-02-27 Jiong Wang <jiwang@tilera.com>
10676
10677 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10678 * regformats/reg-tilegx32.dat: New.
10679
4fcd89fc
JW
106802013-02-27 Jiong Wang <jiwang@tilera.com>
10681
10682 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10683
748d24e6
JW
106842013-02-27 Jiong Wang <jiwang@tilera.com>
10685
10686 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10687
6c8e944d
YQ
106882013-02-27 Yao Qi <yao@codesourcery.com>
10689 Pedro Alves <palves@redhat.com>
10690
10691 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10692 pc/tp/range/outside, look for the next trace frame instead of
10693 always starting from frame 0.
6c8e944d 10694
acd7db30
AG
106952013-02-26 Anthony Green <green@moxielogic.com>
10696
10697 * configure.tgt: Add support for moxie-*-rtems* target.
10698
025e6dce
PA
106992013-02-25 Pedro Alves <palves@redhat.com>
10700
10701 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10702 warning text.
10703
ca9c94ef
MR
107042013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10705
10706 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10707 if $fp is used as the virtual frame pointer.
10708
24c274a1
AM
107092013-02-23 Alan Modra <amodra@gmail.com>
10710
10711 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10712 symbol size.
10713 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10714 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10715 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10716 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10717
bfada189
JK
107182013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10719
10720 Code cleanup.
10721 * elfread.c (build_id_bfd_get): Make the return type const.
10722 (build_id_verify): Make the check parameter const.
10723 (build_id_to_debug_filename): Make the build_id parameter and variable
10724 data const.
10725 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10726
c0355132
AM
107272013-02-21 Alan Modra <amodra@gmail.com>
10728
10729 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10730
9f44fbc0
SCR
107312013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10732
10733 Add a new method 'disassemble' to gdb.Architecture class.
10734 * python/py-arch.c (archpy_disassmble): Implementation of the
10735 new method gdb.Architecture.disassemble.
10736 (arch_object_methods): Add entry for the new method.
10737
b74ea3eb
JW
107382013-02-20 Jiong Wang <jiwang@tilera.com>
10739
10740 * MAINTAINERS (Write After Approval): Add myself to the list.
10741
61a672f1
PA
107422013-02-19 Pedro Alves <palves@redhat.com>
10743
10744 Garbage collect 'struct monitor_ops'::load_routine.
10745
10746 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10747 * monitor.c (monitor_load): No longer call
10748 current_monitor->load_routine.
10749 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10750 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10751 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10752
40e397df
PA
107532013-02-19 Pedro Alves <palves@redhat.com>
10754
10755 PR gdb/15161
10756
10757 Harmonize with generic_load.
10758
10759 * monitor.c: Include "readline/readline.h".
10760 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10761 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10762 long/strtol for the 'load_offset' local. Error out if no argument
10763 is given or if too many arguments are given. Tilde expand the
10764 passed in file name.
10765
f698ca8e
KT
107662013-02-19 Kai Tietz <ktietz@redhat.com>
10767
10768 PR gdb/15161
10769 * symfile.c (load_section_data): Change type of load_offset
10770 to CORE_ADDR.
10771 (generic_load): User strtoulst instead of strtoul for conversion
10772 of load_offset.
10773
3361b059
WL
107742013-02-19 Jiong Wang <jiwang@tilera.com>
10775
10776 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10777 for return address, "lr" register, saved on stack.
10778 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10779 after we invoke tilegx_analyze_prologue.
10780
3e9d5130
WL
107812013-02-19 Jiong Wang <jiwang@tilera.com>
10782
bb1bcd86
WL
10783 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10784
3361b059 107852013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10786
b74ea3eb 10787 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10788
4aaf2503
WL
107892013-02-19 Jiong Wang <jiwang@tilera.com>
10790
b74ea3eb 10791 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10792 (tilegx_write_pc): New function.
10793 (tilegx_cannot_reference_register): Return zero if REGNO
10794 is TILEGX_FAULTNUM_REGNUM.
10795 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10796 (tilegx_register_name): Add handling of "faultnum" register.
10797 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10798 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10799 handling of TILEGX_FAULTNUM_REGNUM.
10800 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10801
bc23a956
WL
108022013-02-19 Jiong Wang <jiwang@tilera.com>
10803
10804 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10805 should be aligned to 64bit.
bc23a956 10806
42f45f1a
KT
108072013-02-19 Kai Tietz <ktietz@redhat.com>
10808
10809 * windows-nat.c (windows_xfer_memory): Fix debug-output
10810 for LLP64.
10811
6ce4c112
LL
108122013-02-19 Lei Liu <lei.liu2@windriver.com>
10813
10814 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10815 Don't check DSP register number if HAVE_DSP is not set.
10816
30e8ee25
AM
108172013-02-19 Alan Modra <amodra@gmail.com>
10818
10819 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10820 throughout file instead.
10821 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10822 Don't xmalloc return value.
10823 (build_id_verify): Similarly. Don't xfree.
10824 (build_id_to_debug_filename): Update.
10825 (find_separate_debug_file_by_buildid): Update, don't xfree.
10826
4c9ad8c2
TT
108272013-02-18 Tom Tromey <tromey@redhat.com>
10828
10829 PR gdb/15102:
10830 * dwarf2read.c (read_subrange_type): Use result of
10831 'check_typedef'.
10832
983dc440
YQ
108332013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10834
10835 * frame.c: Remove one extra white space after #include
10836 directive.
10837
7fb2b84a
JK
108382013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10839
10840 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10841
edceb2a9
JK
108422013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10843
10844 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10845 and dir commands into an if block.
10846
e81b7af8
TT
108472013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10848
10849 * python/py-breakpoint (struct pybp_code): Use int instead of
10850 enum type_code.
10851
f5911ea1
HAQ
108522013-02-15 Pedro Alves <pedro@codesourcery.com>
10853 Hafiz Abid Qadeer <abidh@codesourcery.com>
10854
10855 * NEWS: Mention new field "trace-file".
10856 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10857 (tfile_open): Record the trace file's filename in the trace
10858 status.
10859 (tfile_files_info): Mention the name of the trace file.
10860 Check the "filename" field explicitely.
10861 (trace_status_command): Explicitely check "filename" field.
10862 (trace_find_command): Ditto.
10863 (trace_find_pc_command): Ditto.
10864 (trace_find_tracepoint_command): Ditto.
10865 (trace_find_line_command): Ditto.
10866 (trace_find_range_command): Ditto.
10867 (trace_find_outside_command): Ditto.
10868 * tracepoint.h (struct trace_status) <from_file>: Rename it
10869 to "filename" and make it hold the trace file's filename
10870 instead of a boolean.
10871 * remote.c (remote_get_trace_status): Initialize "filename"
10872 field with NULL instead of 0.
10873
796cb314
YQ
108742013-02-15 Yao Qi <yao@codesourcery.com>
10875
10876 * remote.c: Fix a typo.
10877
42e79b1d
PM
108782013-02-14 Pierre Muller <muller@sourceware.org>
10879
10880 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10881
baea0dae
PA
108822013-02-14 Pedro Alves <palves@redhat.com>
10883
10884 * utils.c (savestring): Don't #undef it. Move function to
10885 common/common-utils.c.
10886 * common/common-utils.c: Include gdb_string.h.
10887 (savestring): Move here from utils.c.
10888 * common/common-utils.h (savestring): Declare.
10889
57c3b6ed
PA
108902013-02-14 Pedro Alves <palves@redhat.com>
10891
10892 * utils.c (savestring): Rename parameter 'size' to 'len'.
10893
d6c44983
YZ
108942013-02-14 Pedro Alves <palves@redhat.com>
10895 Yufeng Zhang <yufeng.zhang@arm.com>
10896
10897 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10898 (aarch64_inferior_data, struct aarch64_inferior_data):
10899 Delete.
10900 (struct aarch64_process_info): New.
10901 (aarch64_process_list): New global.
10902 (aarch64_find_process_pid, aarch64_add_process)
10903 (aarch64_process_info_get): New functions.
10904 (aarch64_inferior_data_get): Delete.
10905 (aarch64_process_info_get): New function.
10906 (aarch64_forget_process): New function.
10907 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10908 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10909 aarch64_get_debug_reg_state.
10910 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10911 instead of linux_nat_iterate_watchpoint_lwps.
10912 (aarch64_linux_new_fork): New function.
10913 (aarch64_linux_child_post_startup_inferior): Use
10914 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10915 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10916 (aarch64_linux_remove_hw_breakpoint)
10917 (aarch64_handle_aligned_watchpoint)
10918 (aarch64_handle_unaligned_watchpoint)
10919 (aarch64_linux_insert_watchpoint)
10920 (aarch64_linux_remove_watchpoint)
10921 (aarch64_linux_stopped_data_address): Adjust to pass the current
10922 process id to aarch64_debug_reg_state.
10923 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10924 linux_nat_new_fork hook, and aarch64_forget_process as
10925 linux_nat_forget_process hook; remove the call to
10926 register_inferior_data_with_cleanup.
10927
4819b3f8
PA
109282013-02-14 Pedro Alves <palves@redhat.com>
10929
10930 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10931 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10932 lval_memory.
10933
1773c82c
HAQ
109342013-02-14 Pedro Alves <pedro@codesourcery.com>
10935 Hafiz Abid Qadeer <abidh@codesourcery.com>
10936
10937 * tracepoint.h (validate_trace_state_variable_name): Declare.
10938 * tracepoint.c (validate_trace_state_variable_name): New.
10939 (trace_variable_command): Parse the trace state variable's name
10940 without using parse_expression. Do several validations.
10941 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10942 trace state variable's name with parse_expression. Validate it.
10943
53778a97
YQ
109442013-02-14 Yao Qi <yao@codesourcery.com>
10945
10946 * infcmd.c (breakpoint_proceeded): Remove it.
10947
7b3ae3a6
YQ
109482013-02-14 Yao Qi <yao@codesourcery.com>
10949
10950 * tracepoint.c (end_actions_pseudocommand): Make it static.
10951 (while_stepping_pseudocommand): Likewise.
10952 * tracepoint.h (end_actions_pseudocommand): Remove the
10953 declaration.
10954 (while_stepping_pseudocommand): Likewise.
10955
64580925
YQ
109562013-02-14 Yao Qi <yao@codesourcery.com>
10957
10958 * cli/cli-decode.c (help_cmd): Remove the declaration of
10959 "cmdlist".
10960 (help_all): Likewise.
10961
26cb8b7c
PA
109622013-02-13 Pedro Alves <palves@redhat.com>
10963
10964 * amd64-linux-nat.c (update_debug_registers_callback):
10965 Update comment.
10966 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10967 iterate_over_lwps.
10968 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10969 i386_debug_reg_state.
10970 (amd64_linux_new_fork): New function.
10971 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10972 linux_nat_new_fork hook, and i386_forget_process as
10973 linux_nat_forget_process hook.
10974 * i386-linux-nat.c (update_debug_registers_callback):
10975 Update comment.
a8256ea1 10976 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10977 iterate_over_lwps.
10978 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10979 i386_debug_reg_state.
10980 (i386_linux_new_fork): New function.
10981 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10982 linux_nat_new_fork hook, and i386_forget_process as
10983 linux_nat_forget_process hook.
10984 * i386-nat.c (i386_init_dregs): Delete.
10985 (i386_inferior_data, struct i386_inferior_data):
10986 Delete.
10987 (struct i386_process_info): New.
10988 (i386_process_list): New global.
10989 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10990 New functions.
10991 (i386_inferior_data_get): Delete.
10992 (i386_process_info_get): New function.
10993 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10994 (i386_forget_process): New function.
10995 (i386_cleanup_dregs): Rewrite.
10996 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10997 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10998 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10999 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11000 to i386_debug_reg_state.
11001 (i386_use_watchpoints): Don't register inferior data.
11002 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11003 adjust comment.
11004 (i386_forget_process): Declare.
11005 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11006 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11007 New static globals.
11008 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11009 (add_initial_lwp): New, factored out from ...
11010 (add_lwp): ... this. Don't check the number of lwps before
11011 calling linux_nat_new_thread.
11012 (linux_nat_iterate_watchpoint_lwps): Delete.
11013 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11014 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11015 forks and vforks.
11016 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11017 initial lwp.
11018 (linux_nat_kill, linux_nat_mourn_inferior): Call
11019 linux_nat_forget_process.
11020 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11021 (linux_nat_forget_process): New functions.
11022 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11023 type.
11024 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11025 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11026 types.
11027 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11028 (linux_nat_forget_process): New declarations.
11029
11030 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11031 (amd64fbsd_mourn_inferior): New function.
11032 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11033 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11034
5befea72
MS
110352013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11036
55015247
YQ
11037 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11038 Adding _().
5befea72 11039
1d3ffd6b
MS
110402013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11041
11042 * aarch64-linux-nat.c (debug_reg_change_callback)
11043 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11044 %s and phex().
11045
6eb04473
MS
110462013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11047
11048 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11049 with LONGEST.
11050
a016fc87
HAQ
110512013-02-13 Pedro Alves <palves@redhat.com>
11052 Hafiz Abid Qadeer <abidh@codesourcery.com>
11053
11054 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11055
e234dfaf
TT
110562013-02-12 Tom Tromey <tromey@redhat.com>
11057
11058 PR symtab/11464:
11059 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11060 NAME return.
11061 (classify_inner_name): Remove 'first_name' argument, add
11062 'context'. Remove unused variable.
11063 (yylex): Explicitly maintain the context type. Exit loop earlier
11064 if NAME result is seen.
11065
0b1afbb3
PA
110662013-02-12 Pedro Alves <palves@redhat.com>
11067
11068 * amd64-darwin-tdep.c: Add (C) after Copyright.
11069 * cli/cli-cmds.h: Ditto.
11070 * cli/cli-decode.c: Ditto.
11071 * cli/cli-decode.h: Ditto.
11072 * cli/cli-dump.c: Ditto.
11073 * cli/cli-dump.h: Ditto.
11074 * cli/cli-interp.c: Ditto.
11075 * cli/cli-logging.c: Ditto.
11076 * cli/cli-script.c: Ditto.
11077 * cli/cli-script.h: Ditto.
11078 * cli/cli-setshow.c: Ditto.
11079 * cli/cli-setshow.h: Ditto.
11080 * cli/cli-utils.c: Ditto.
11081 * cli/cli-utils.h: Ditto.
11082 * config/alpha/nm-osf3.h: Ditto.
11083 * config/djgpp/djconfig.sh: Ditto.
11084 * config/i386/nm-fbsd.h: Ditto.
11085 * config/i386/nm-i386gnu.h: Ditto.
11086 * config/nm-linux.h: Ditto.
11087 * config/nm-nto.h: Ditto.
11088 * config/rs6000/nm-rs6000.h: Ditto.
11089 * config/sparc/nm-sol2.h: Ditto.
11090 * darwin-nat-info.c: Ditto.
11091 * dfp.c: Ditto.
11092 * dfp.h: Ditto.
11093 * gdb-demangle.h: Ditto.
11094 * i386-darwin-nat.c: Ditto.
11095 * i386-darwin-tdep.c: Ditto.
11096 * linux-fork.h: Ditto.
11097 * m32c-tdep.c: Ditto.
11098 * microblaze-linux-tdep.c: Ditto.
11099 * microblaze-rom.c: Ditto.
11100 * microblaze-tdep.c: Ditto.
11101 * microblaze-tdep.h: Ditto.
11102 * mips-linux-tdep.h: Ditto.
11103 * ppc-ravenscar-thread.c: Ditto.
11104 * ppc-ravenscar-thread.h: Ditto.
11105 * prologue-value.c: Ditto.
11106 * prologue-value.h: Ditto.
11107 * ravenscar-thread.c: Ditto.
11108 * ravenscar-thread.h: Ditto.
11109 * sparc-ravenscar-thread.c: Ditto.
11110 * sparc-ravenscar-thread.h: Ditto.
11111 * tilegx-linux-tdep.c: Ditto.
11112 * unwind_stop_reasons.def: Ditto.
11113 * windows-nat.h: Ditto.
11114 * xtensa-linux-tdep.c: Ditto.
11115 * xtensa-xtregs.c: Ditto.
11116 * regformats/regdat.sh: Ditto.
11117 * regformats/regdef.h: Ditto.
11118
6c01dd94
PA
111192013-02-12 Pedro Alves <palves@redhat.com>
11120
11121 * break-catch-sig.c: Update copyright years.
11122
b65a2bd9
SCR
111232013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11124
11125 Add support for a destructor for ui_out data and use it to
11126 provide a ui_out destructor.
11127 * ui-out.h: Declare the new ui_out destructor.
11128 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11129 * ui-out.c (default_data_destroy): Add a default data destructor
11130 which does nothing.
11131 (default_ui_out_impl): Set the new data_destroy field to
11132 default_data_destroy
11133 (uo_data_destroy): Local function which invokes the data
11134 destructor if present.
11135 (clear_table): Local function which clears the table data of a
11136 ui_out object.
11137 (ui_out_destroy): Public function which frees a ui_out object.
11138 (ui_out_table_end): Use the new clear_table function.
11139 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11140 NULL.
11141 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11142 to NULL.
11143
c2792f5a
DE
111442013-02-11 Doug Evans <dje@google.com>
11145
11146 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11147 (printf_decfloat): New function. Broken out from ui_printf.
11148 Remove unnecessary code to shift the entire format string down.
11149 (printf_pointer): New function.
11150 (ui_printf): Code to print C strings, wide C strings, decfloats,
11151 and pointers moved to separate functions.
11152
d9e98382
SDJ
111532013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11154
11155 * valops.c (value_assign): Handling bitfield offset in
11156 `lval_internalvar_component' case.
11157
4ff3ce77
DE
111582013-02-08 Doug Evans <dje@google.com>
11159
11160 * common/format.c (parse_format_string): Fix whitespace.
11161
901900c4
MGD
111622013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11163
11164 * stack.c (return_command): Work around uninitialized variable
11165 warning.
11166
b5dbc8d4
YZ
111672013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11168
11169 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11170 number of the registers from 36 to 34.
11171
51d66578
MS
111722013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11173
11174 * NEWS: Mention new AArch64 native and target support.
11175
176b1c95
MS
111762013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11177
11178 * MAINTAINERS (Write After Approval): Add myself.
11179
9d19df75
MS
111802013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11181 Marcus Shawcroft <marcus.shawcroft@arm.com>
11182 Nigel Stephens <nigel.stephens@arm.com>
11183 Yufeng Zhang <yufeng.zhang@arm.com>
11184
11185 * aarch64-linux-nat.c: New file.
11186 * config/aarch64/linux.mh: New file.
11187 * configure.host: Add AArch64.
11188 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11189
7e1e0340
DE
111902013-02-07 Doug Evans <dje@google.com>
11191
11192 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11193 disassemble command.
11194
45e25a36
MS
111952013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11196
11197 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11198 set_gdbarch_fetch_tls_load_module_address.
11199
bbfdfe1c
DM
112002013-02-06 David S. Miller <davem@davemloft.net>
11201
11202 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11203 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11204 * value.c (struct_return_convention): New function.
11205 (using_struct_return): Implement in terms of struct_return_convention.
11206 * value.h (struct_return_convention): Declare.
11207 * stack.c (return_command): Allow successful overriding of the return
11208 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11209
bc9abe4a
TT
112102013-02-06 Tom Tromey <tromey@redhat.com>
11211
11212 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11213 outside of TRY_CATCH.
11214
134a2066
YQ
112152013-02-06 Yao Qi <yao@codesourcery.com>
11216
11217 * mi/mi-interp.c: Include "tracepoint.h".
11218 (mi_tsv_modified): Declare.
11219 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11220 (mi_interpreter_init): Call observer_attach_tsv_modified.
11221 (mi_tsv_modified): New.
11222 (mi_tsv_created, mi_tsv_deleted): Update.
11223 * tracepoint.c (trace_variable_command): Call
11224 observer_notify_tsv_modified if the initial value of tsv is
11225 changed.
11226 (delete_trace_state_variable): Call
11227 observer_notify_tsv_deleted earlier.
11228 (trace_variable_command): Caller update.
11229 (create_tsv_from_upload): Likewise.
11230 * observer.sh: Declare "struct trace_state_variable".
11231
11232 * NEWS: Mention the new MI notification "=tsv-modified".
11233
59be2b6a
DE
112342013-02-05 Doug Evans <dje@google.com>
11235
11236 * completer.c (location_completer): Fix typo in comment.
11237
d30113d4
JK
112382013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11239
11240 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11241 ADDRESS sorted.
11242
14ac654f
MS
112432013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11244
11245 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11246 Refactor if statement to avoid trailing || operator.
11247
543bf33d
AT
112482013-02-05 Andreas Tobler <andreast@fgznet.ch>
11249
11250 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11251
dc18f110
AT
112522013-02-04 Andreas Tobler <andreast@fgznet.ch>
11253
11254 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11255 * configure.host: Add powerpc*-*-freebsd* target.
11256 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11257 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11258 * config/powerpc/fbsd.mh: New file.
11259
b3ac9c77
SDJ
112602013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11261 Denys Vlasenko <dvlasenk@redhat.com>
11262 Pedro Alves <palves@redhat.com>
11263
11264 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11265 (struct elf_internal_linux_prpsinfo): Forward declare.
11266 * gdbarch.h, gdbarch.c: Regenerate.
11267 * linux-tdep.c: Include `cli/cli-utils.h'.
11268 (linux_fill_prpsinfo): New function.
11269 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11270 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11271 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11272 depending on gdbarch pointer bitness.
11273 * ppc-linux-tdep.c: Include elf-bfd.h.
11274 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11275 on 32-bit.
11276
176eb98c
MS
112772013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11278 Marcus Shawcroft <marcus.shawcroft@arm.com>
11279 Nigel Stephens <nigel.stephens@arm.com>
11280 Yufeng Zhang <yufeng.zhang@arm.com>
11281
11282 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11283
cf0dbd6f
MS
112842013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11285 Marcus Shawcroft <marcus.shawcroft@arm.com>
11286 Nigel Stephens <nigel.stephens@arm.com>
11287 Yufeng Zhang <yufeng.zhang@arm.com>
11288
11289 * aarch64-newlib-tdep.c: New file.
11290 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11291 aarch64*-*-elf.
11292 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11293 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11294 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11295 * osabi.c (gdb_osabi_names): Add "Newlib".
11296
1ae3db19
MS
112972013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11298 Marcus Shawcroft <marcus.shawcroft@arm.com>
11299 Nigel Stephens <nigel.stephens@arm.com>
11300 Yufeng Zhang <yufeng.zhang@arm.com>
11301
11302 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11303 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11304 * aarch64-linux-tdep.c: New file.
11305 * aarch64-linux-tdep.h: New file.
11306 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11307 * configure.tgt: Add aarch64-none-linux-gnu.
11308
07b287a0
MS
113092013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11310 Marcus Shawcroft <marcus.shawcroft@arm.com>
11311 Nigel Stephens <nigel.stephens@arm.com>
11312 Yufeng Zhang <yufeng.zhang@arm.com>
11313
11314 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11315 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11316 (ALLDEPFILES): Add aarch64-tdep.c.
11317 * aarch64-tdep.c: New file.
11318 * aarch64-tdep.h: New file.
11319 * configure.tgt: Add AArch64.
11320 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11321 (aarch64-expedite): New definition.
11322 * features/aarch64-core.xml: New file.
11323 * features/aarch64-fpu.xml: New file.
11324 * features/aarch64-without-fpu.c: New file (generated).
11325 * features/aarch64-without-fpu.xml: New file.
11326 * features/aarch64.c: New file (generated).
11327 * features/aarch64.xml: New file.
11328 * regformats/aarch64-without-fpu.dat: New file (generated).
11329 * regformats/aarch64.dat: New file (generated).
11330
0f1b18ab
JK
113312013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11332
11333 * contrib/expect-read1.c: New file.
11334 * contrib/expect-read1.sh: New file.
11335
233d95b5
JK
113362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11337
11338 * dwarf2read.c (file_file_name): New function with code from
11339 file_full_name.
11340 (file_full_name): Move most of the code to file_file_name.
11341 (macro_start_file): Rename variable full_name to file_name and use
11342 file_file_name for it. Add comp_dir parameter to new_macro_table.
11343 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11344 macro_source_file->filename access by macro_source_fullname call.
11345 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11346 caller.
11347 * macrotab.c (struct macro_table): New field comp_dir.
11348 (macro_include): New variables link_fullname and source_fullname.
11349 Replace any macro_source_file->filename access by macro_source_fullname
11350 call.
11351 (macro_lookup_inclusion): Remove the partial filenames checking code.
11352 (check_for_redefinition): New variables source_fullname and
11353 found_key_fullname. Replace any macro_source_file->filename access by
11354 macro_source_fullname call.
11355 (macro_undef): New variables source_fullname and key_fullname. Replace
11356 any macro_source_file->filename access by macro_source_fullname call.
11357 (macro_lookup_definition): New variables retval and source_fullname.
11358 Replace any macro_source_file->filename access by macro_source_fullname
11359 call.
11360 (foreach_macro): New variable key_fullname. Replace any
11361 macro_source_file->filename access by macro_source_fullname call.
11362 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11363 macro_source_file->filename access by macro_source_fullname call.
11364 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11365 (macro_source_fullname): New function.
11366 * macrotab.h (struct macro_source_file): Extent the filename field
11367 comment.
11368 (new_macro_table): New parameter comp_dir, add a comment for it.
11369 (macro_source_fullname): new declaration.
11370
da235a7c
JK
113712013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11372
11373 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11374 this_real_name to outer block. Use it also for
11375 compare_filenames_for_search.
11376 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11377 with dw2_get_real_path for file_matcher, considering also
11378 BASENAMES_MAY_DIFFER.
11379 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11380
fbd9ab74
JK
113812013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11382
11383 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11384 to the file_matcher parameter. Pass 0 to it.
11385 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11386 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11387 NULL psymtab_to_fullname result.
11388 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11389 an expected filename instead.
11390 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11391 file_matcher parameter. Call also psymtab_to_fullname, after newly
11392 considering BASENAMES_MAY_DIFFER.
11393 * source.c (rewrite_source_path): Remove static.
11394 * source.h (rewrite_source_path): New declaration.
11395 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11396 the expand_symtabs_matching field. Comment it.
11397 * symtab.c (file_matches): New function comment. Add parameter
11398 basenames, implement it.
11399 (search_symbols_file_matches): Add basenames parameter. Update the
11400 file_matches caller.
11401 (search_symbols): Match FILES also against symtab_to_fullname.
11402 Optimize it for BASENAMES_MAY_DIFFER.
11403
56d397a3
JK
114042013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11405
11406 * source.c (print_source_lines_base): Print for TUI also "fullname".
11407 * tui/tui-data.c (init_content_element): Change tui_locator_element
11408 field to full_name.
11409 * tui/tui-data.h (struct tui_locator_element): Likewise.
11410 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11411 tui_update_locator_filename calls to tui_update_locator_fullname.
11412 Replace symtab->filename refererence by symtab_to_fullname call.
11413 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11414 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11415 field to full_name. Replace symtab->filename refererence by
11416 symtab_to_fullname call.
11417 (tui_show_symtab_source): Rename parameter to fullname. Change
11418 tui_locator_element field to full_name.
11419 * tui/tui-stack.c: Include source.h.
11420 (tui_set_locator_filename): Rename the declaration to ...
11421 (tui_set_locator_fullname): ... here. Rename its parameter to
11422 fullname, updates its comment.
11423 (tui_set_locator_info): Rename its parameter to fullname.
11424 (tui_set_locator_filename): Rename the definition to ...
11425 (tui_set_locator_fullname): ... here. Rename its parameter to
11426 fullname, updates its comment. Change tui_locator_element field to
11427 full_name.
11428 (tui_set_locator_info): Rename its parameter to fullname.
11429 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11430 (tui_update_locator_filename): Rename to ...
11431 (tui_update_locator_fullname): ... here. Rename callee to
11432 tui_set_locator_fullname.
11433 (tui_show_frame_info): Replace symtab->filename refererence by
11434 symtab_to_fullname call.
11435 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11436 (tui_update_locator_fullname): ... here.
11437 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11438 tui_update_locator_fullname. Replace symtab->filename refererence by
11439 symtab_to_fullname call.
11440 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11441 Rename the callee to tui_update_locator_fullname.
11442 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11443
05cba821
JK
114442013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11445
11446 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11447 by symtab_to_filename_for_display calls.
11448 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11449 (clear_command): New variable sal_fullname, initialize it. Replace
11450 compare_filenames_for_search by filename_cmp with sal_fullname.
11451 (say_where, update_static_tracepoint): Replace symtab->filename
11452 refererences by symtab_to_filename_for_display calls.
11453 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11454 Likewise.
11455 * dwarf2read.c: Include source.h.
11456 (fixup_go_packaging): Replace symtab->filename refererences by
11457 symtab_to_filename_for_display calls.
11458 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11459 Replace symtab->filename refererences by symtab_to_filename_for_display
11460 calls.
11461 (create_sals_line_offset, convert_linespec_to_sals): New variable
11462 fullname, initialize it, replace symtab->filename reference by the
11463 variable.
11464 * linux-fork.c: Include source.h.
11465 (info_checkpoints_command): Replace symtab->filename refererences by
11466 symtab_to_filename_for_display calls.
11467 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11468 by symtab_to_filename_for_display calls.
11469 * mdebugread.c: Include source.h.
11470 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11471 symtab_to_filename_for_display calls.
11472 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11473 (mi_cmd_file_list_exec_source_files): Likewise.
11474 * printcmd.c: Include source.h.
11475 (build_address_symbolic): Replace symtab->filename refererences by
11476 symtab_to_filename_for_display calls.
11477 * psymtab.c (partial_map_symtabs_matching_filename)
11478 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11479 with psymtab_to_fullname.
11480 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11481 by symtab_to_filename_for_display calls.
11482 (stpy_get_filename): New variable filename, initialize it, use instead
11483 of symtab->filename refererences.
11484 (salpy_str): Make variable filename const char *. Replace
11485 symtab->filename refererences by symtab_to_filename_for_display calls.
11486 * skip.c: Include source.h and filenames.h.
11487 (skip_file_command): Remove const from the symtab variable. Replace
11488 symtab->filename refererences by symtab_to_fullname call.
11489 (function_name_is_marked_for_skip): New variables searched_for_fullname
11490 and fullname. Use them to search also with symtab's fullname.
11491 * source.c (find_source_lines): Replace symtab->filename refererences
11492 by symtab_to_filename_for_display calls.
11493 (print_source_lines_base): New variable filename, use it instead of
11494 symtab->filename. Replace symtab->filename refererences by
11495 symtab_to_filename_for_display calls.
11496 (line_info, forward_search_command): Replace symtab->filename
11497 refererences by symtab_to_filename_for_display calls.
11498 (reverse_search_command): Replace symtab->filename refererences by
11499 symtab_to_filename_for_display calls. New variable filename for it.
11500 * stack.c (frame_info): Likewise.
11501 * symmisc.c: Include source.h.
11502 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11503 (maintenance_info_symtabs): Replace symtab->filename refererences by
11504 symtab_to_filename_for_display calls.
11505 * symtab.c (iterate_over_some_symtabs): Call
11506 compare_filenames_for_search also with symtab_to_fullname.
11507 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11508 symtab->filename refererences by symtab_to_filename_for_display calls.
11509 (find_line_symtab): Replace symtab->filename refererences by
11510 symtab_to_filename_for_display calls.
11511 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11512 (print_symbol_info): Make the last parameter const char *. New
11513 variable s_filename. Use it in the function.
11514 (symtab_symbol_info): Make the last_filename variable const char *.
11515 Replace symtab->filename refererences by symtab_to_filename_for_display
11516 calls.
11517 (rbreak_command): New variable fullname. Use it. Replace
11518 symtab->filename refererence by symtab_to_filename_for_display call.
11519 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11520 (print_one_static_tracepoint_marker): Replace symtab->filename
11521 refererences by symtab_to_filename_for_display calls.
11522 * tui/tui-source.c (tui_set_source_content): New variables filename and
11523 s_filename. Replace symtab->filename refererences by this variable.
11524 Replace other symtab->filename refererences by
11525 symtab_to_filename_for_display calls.
11526
1b56eb55
JK
115272013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11528 Jan Kratochvil <jan.kratochvil@redhat.com>
11529
11530 Add a new variable that controls a way in which filenames are
11531 displayed.
11532 * NEWS (set filename-display): New entry.
11533 * source.c (filename_display_basename, filename_display_relative)
11534 (filename_display_absolute, filename_display_kind_names)
11535 (filename_display_string, show_filename_display_string)
11536 (symtab_to_filename_for_display): New.
11537 (_initialize_source): Added initialization of 'filename-display'
11538 variable.
11539 * source.h (symtab_to_filename_for_display): Added declaration.
11540 * stack.c (print_frame): Added new variable and calling of a new
11541 function and condition with this variable. Changed third argument of
11542 calling of a function.
11543
aa079c93
JK
115442013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11545
11546 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11547 Rename field reference filename to fullname.
11548 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11549 fullname. New comment for it.
11550 * tui/tui-source.c (tui_set_source_content): Rename field reference
11551 filename to fullname. Initialize field by symtab_to_fullname now.
11552 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11553 reference filename to fullname. Use symtab_to_fullname during
11554 comparison.
11555
652a8996
JK
115562013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11557
11558 Code cleanup.
11559 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11560 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11561 filename to fullname. Rename variable this_name to this_fullname.
11562 Lowercase FILENAME_CMP call.
11563 (dw2_find_symbol_file): New comment for the returned string.
11564 (dwarf2_gdb_index_functions): Rename the function to
11565 dw2_expand_symtabs_with_fullname.
11566 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11567 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11568 fullname.
11569 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11570 * symfile.h (struct quick_symbol_functions): Rename field
11571 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11572 parameter filename to fullname. Document returned string meaning for
11573 find_symbol_file.
11574 * symtab.c (find_line_symtab): Rename the called function to
11575 expand_symtabs_with_fullname.
11576
af529f8f
JK
115772013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11578
11579 Code cleanup.
11580 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11581 call of filename_cmp with compare_filenames_for_search.
11582 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11583 is_abs, unify the call of FILENAME_CMP with
11584 compare_filenames_for_search. New gdb_asserts for real_path and name.
11585 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11586 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11587 * symfile.h (struct quick_symbol_functions): Extend the comment for
11588 map_symtabs_matching_filename.
11589 * symtab.c (compare_filenames_for_search): Remove the function comment
11590 relative path requirement. Handle absolute filenames, with a comment.
11591 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11592 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11593 real_path and name. Unify the call of compare_filenames_for_search
11594 with FILENAME_CMP.
11595 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11596
2f202fde
JK
115972013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11598
11599 Code cleanup.
11600 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11601 source_file references by symtab field references. Remove variables
11602 sal and fullname.
11603 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11604 (clear_command, say_where): Replace bp_location field source_file
11605 references by symtab field references.
11606 (bp_location_dtor): Remove the source_file reference.
11607 (update_static_tracepoint): Replace bp_location field source_file
11608 references by symtab field references.
11609 (breakpoint_free_objfile): New function.
11610 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11611 Replace the field source_file by field symtab, extend its comment.
11612 (breakpoint_free_objfile): New declaration.
11613 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11614 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11615 field source_file references by symtab field references.
11616
f5b95b50
JK
116172013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11618
11619 Replace xfullpath calls by gdb_realpath calls.
11620 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11621 function comment.
11622 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11623 Remove it from the iterate_over_some_symtabs call.
11624 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11625 Remove it from the dw2_map_expand_apply calls, remove a block handling
11626 it.
11627 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11628 Remove it from the iterate_over_some_symtabs call.
11629 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11630 Remove it from the partial_map_expand_apply calls, remove a block
11631 handling it. Drop gdb_realpath call and cleanups from the real_path
11632 handling.
11633 * source.c (openp): Drop the comment part about xfullpath. Replace
11634 xfullpath calls by gdb_realpath calls.
11635 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11636 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11637 from method map_symtabs_matching_filename and its comment.
11638 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11639 gdb_realpath call.
11640 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11641 remove it also from the function comment, remove a block handling it.
11642 Drop gdb_realpath call and cleanups from the real_path handling.
11643 (iterate_over_symtabs): Drop variable full_path and its use.
11644 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11645 * utils.c (xfullpath): Remove.
11646 * utils.h (xfullpath): Remove.
11647
d78489bf
AT
116482013-02-01 Andreas Tobler <andreast@fgznet.ch>
11649
11650 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11651 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11652 (ALLDEPFILES): Add ppc64-tdep.c.
11653 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11654 ppc64-tdep.o to gdb_target_obs.
11655 * ppc64-tdep.h: New file.
11656 * ppc64-tdep.c: New file.
11657 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11658 ppc-linux-tdep.c to here.
11659 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11660 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11661 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11662 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11663 from ppc-linux-tdep.c to here.
11664 (ppc64_convert_from_func_ptr_addr): Rename from
11665 ppc64_linux_convert_from_func_ptr_addr to
11666 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11667 here.
11668 * rs6000-tdep.c:
11669 (read_insn): Move from ppc-linux-tdep.c to here.
11670 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11671 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11672 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11673 Removed above functions.
11674 (ppc_linux_init_abi): Adjust.
11675
8db60374
AR
116762013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11677
11678 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11679
f2e5f4ce
AR
116802013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11681
11682 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11683
c1f7d745
PA
116842013-02-01 Pedro Alves <palves@redhat.com>
11685
11686 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11687 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11688
8a92335b
JK
116892013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11690
11691 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11692 files with no separate debug info.
11693 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11694 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11695 only for files with no separate debug info.
11696
8eacb197
TT
116972013-01-31 Tom Tromey <tromey@redhat.com>
11698
11699 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11700 change type.
11701 (struct jit_program_space_data): Rename from jit_inferior_data.
11702 Update comments.
11703 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11704 Change return type. Attach data to program space.
11705 (jit_program_space_data_cleanup): Rename from
11706 jit_inferior_data_cleanup; change argument type.
11707 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11708 change type.
11709 (jit_register_code): Update.
11710 (jit_update_inferior_cache): Remove.
11711 (jit_breakpoint_deleted): Get jit data from the location's program
11712 space.
11713 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11714 'ps_data', change type.
11715 (jit_inferior_init, jit_breakpoint_re_set_internal)
11716 (jit_event_handler): Update.
11717 (free_objfile_data): Get data from objfile's program space.
11718 (_initialize_jit): Update.
11719
f25c0135
TT
117202013-01-31 Tom Tromey <tromey@redhat.com>
11721
11722 PR gdb/13987:
11723 * jit.c (struct jit_inferior_data) <cached_code_address,
11724 jit_breakpoint>: New fields.
11725 (jit_breakpoint_re_set_internal): Fix logging. Only create
11726 breakpoint if cached address has changed.
11727 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11728 functions.
11729 (_initialize_jit): Register breakpoint deleted observer.
11730
974a734b
AR
117312013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11732
11733 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11734 (save_infcall_suspend_state): Ifdef out unused inf.
11735 (restore_infcall_suspend_state): Ifdef out unused inf.
11736 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11737 (jit_frame_sniffer): Remove unused inf_data.
11738
df54f8eb
AR
117392013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11740
11741 * c-exp.y (classify_inner_name): Remove unused type.
11742 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11743 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11744 need_escape.
11745 (c_get_string): Remove unused kind.
11746 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11747
5799c0b9
AR
117482013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11749
11750 * charset.c (intermediate_encoding): Remove unused i.
11751 * completer.c (signal_completer): Remove unused i.
11752 * continuations.c (discard_my_continuations_1): Remove unused
11753 continuation_ptr.
11754 * corelow.c (core_close): Remove unuseD name.
11755 (get_core_siginfo): Remove unused pid.
11756 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11757 i, cps.
11758 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11759 (loclist_describe_location): Remove unused first.
11760 * event-top.c (command_line_handler): Remove unused got_eof.
11761 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11762 (resize_section_table): Remove unused old_value.
11763 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11764 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11765 * i386-tdep.c (i386_process_record): Remove unused rex.
11766 * infcmd.c (get_return_value): Remove unused uiout.
11767 * jv-lang.c (type_from_class): Remove unused is_array.
11768 * jv-valprint.c (java_val_print): Remove unused i.
11769 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11770 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11771 * m2-typeprint.c (m2_print_type): Remove unused code.
11772 * macroexp.c (get_character_constant): Remove unused body_start.
11773 (macro_stringify): Remove unused result.
11774 * objc-lang.c (find_methods): Remove unused gdbarch.
11775 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11776 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11777 * stack.c (print_frame_args): Remove unused summary.
11778 * thread.c (thread_apply_command): Remove unused p.
11779 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11780 * valops.c (search_struct_method): Remove unused skip.
11781 * valprint.c (generic_val_print): Remove unused byte_order.
11782 * varobj.c (varobj_update): Remove unused changed.
11783 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11784 (alias_command): Remove unused c.
11785 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11786 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11787 format.
11788 (mi_cmd_data_write_memory): Remove unused word_format.
11789 (mi_cmd_data_write_memory_bytes): Remove unused r.
11790 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11791 p_start, p_end.
11792 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11793 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11794 line_width.
11795
c656bca5
AR
117962013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11797
11798 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11799 * symtab.c (iterate_over_symtabs): Remove unused s.
11800 (find_pc_sect_symtab): Remove unused pspAce.
11801 (find_pc_sect_line): Remove unused alt_symtab.
11802 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11803 (completion_list_add_name): Remove unused newsize.
11804
7078baeb
TT
118052013-01-31 Tom Tromey <tromey@redhat.com>
11806
11807 PR c++/14998:
11808 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11809 TYPE_CODE_FUNC.
11810
c2e8b827
AR
118112013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11812
11813 * target.c (target_read_string): Remove unused origlen.
11814
0e43993a
AR
118152013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11816
11817 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11818 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11819 * ax-general.c (ax_print): Remove unused is_float.
11820 * blockframe.c (block_innermost_frame): Remove unused start, end.
11821 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11822
765a97ab
AR
118232013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11824
11825 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11826 (svr4_read_so_list): Remove unused lmo.
11827 * solib-target.c (solib_target_relocate_section_addresses): Remove
11828 unused flags.
11829
a99dad3d
TT
118302013-01-30 Tom Tromey <tromey@redhat.com>
11831
11832 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11833
3bff1ecd
TT
118342013-01-30 Tom Tromey <tromey@redhat.com>
11835
11836 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11837 * utils.c (gnu_debuglink_crc32): Remove.
11838 * utils.h (gnu_debuglink_crc32): Don't declare.
11839
7d455152
TT
118402013-01-30 Tom Tromey <tromey@redhat.com>
11841
11842 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11843 (read_structure_type, read_enumeration_type): Remove cast.
11844
abee88f2
TT
118452013-01-30 Tom Tromey <tromey@redhat.com>
11846
11847 * dwarf2read.c (read_namespace_type): Remove cast.
11848 (read_typedef): Likewise.
11849
8d9878a4
TT
118502013-01-29 Tom Tromey <tromey@redhat.com>
11851
11852 * dwarf2read.c (free_dwo_file): Remove assert.
11853
a543d2a9
TT
118542013-01-29 Tom Tromey <tromey@redhat.com>
11855
11856 * value.c (deprecated_set_value_modifiable): Remove.
11857 * value.h (deprecated_set_value_modifiable): Remove.
11858
bed911e5
DE
118592013-01-28 Doug Evans <dje@google.com>
11860
11861 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11862 to addresses from dwo files.
11863
28c64fc2
SCR
118642013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11865
11866 * valops.c (find_overload_match): Remove unused argument 'lax'.
11867 * value.h: Remove unused argument 'lax' from the declaration of
11868 find_overload_match.
11869 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11870 to find_overload_match.
11871 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11872 argument to find_overload_match.
11873
4d4ec4e5
TT
118742013-01-25 Tom Tromey <tromey@redhat.com>
11875
11876 * dwarf2read.c (processing_has_namespace_info): Remove.
11877 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11878 (process_die, read_func_scope, dwarf2_start_symtab)
11879 (new_symbol_full): Update.
11880
195a3f6c
TT
118812013-01-25 Tom Tromey <tromey@redhat.com>
11882
11883 * cp-namespace.c (cp_set_block_scope): Remove.
11884 * cp-support.h (cp_set_block_scope): Remove.
11885 * dbxread.c: Include block.h.
11886 (cp_set_block_scope): New function.
11887 (process_one_symbol): Update.
11888 * dwarf2read.c (read_func_scope): Use block_set_scope.
11889
8ba0730a
PA
118902013-01-25 Pedro Alves <palves@redhat.com>
11891
11892 * remote.c (add_current_inferior_and_thread): Tweak comment.
11893
12aaed36
TT
118942013-01-25 Tom Tromey <tromey@redhat.com>
11895
11896 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11897 (cp_add_using_directive): Add 'copy_names' argument.
11898 * cp-support.h (cp_add_using_directive): Update.
11899 (struct using_direct) <import_src, import_dest, alias,
11900 declaration>: Now const.
11901 * dwarf2read.c (read_import_statement): Use obconcat.
11902 Don't copy names passed to cp_add_using_directive.
11903
7fc75ca7
TT
119042013-01-25 Tom Tromey <tromey@redhat.com>
11905
11906 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11907
3405876a
PA
119082013-01-25 Pedro Alves <palves@redhat.com>
11909
11910 * remote.c (stop_reply_extract_thread): New.
11911 (add_current_inferior_and_thread): New parameter 'wait_status'.
11912 Handle it.
11913 (remote_start_remote): Pass wait status to
11914 add_current_inferior_and_thread.
11915 (extended_remote_run): Update comment.
11916 (extended_remote_create_inferior_1): Pass wait status to
11917 add_current_inferior_and_thread.
11918
8954db33
AB
119192013-01-25 Andrew Burgess <aburgess@broadcom.com>
11920 Ulrich Weigand <uweigand@de.ibm.com>
11921
11922 * valarith.c (value_vector_widen): New function for replicating a
11923 scalar into a vector.
11924 (value_binop): Use value_vector_widen to widen scalar to vector
11925 rather than casting, this better matches gcc C behaviour.
11926 * valops.c (value_casst): Update logic for casting between vector
11927 types, and for casting from scalar to vector, try to match gcc C
11928 behaviour.
11929 * value.h (value_vector_widen): Declare.
11930 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11931 function, handle special case for casting scalar to vector.
11932 (opencl_relop): Use opencl_value_cast.
11933 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11934 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11935 in order to use opencl_value_cast.
11936
843b20dc
YQ
119372013-01-25 Yao Qi <yao@codesourcery.com>
11938
11939 * event-loop.c: Include "queue.h".
11940 (gdb_event_p): New typedef.
11941 (DECLARE_QUEUE_P): Use.
11942 (DEFINE_QUEUE_P): Use.
11943 (async_queue_event): Remove.
11944 (gdb_event_xfree): New.
11945 (initialize_event_loop): New.
11946 (process_event): Use QUEUE macros.
11947 (event_queue): Remove.
11948 (gdb_wait_for_event): Caller update.
11949 (check_async_event_handlers): Likewise.
11950 (poll_timers): Likewise.
11951 * event-loop.h (initialize_event_loop): Declare.
11952 * event-loop.c (gdb_event_xfree): New.
11953 * top.c (gdb_init): Call initialize_event_loop.
11954
20ad8856
YQ
119552013-01-25 Yao Qi <yao@codesourcery.com>
11956
11957 * event-loop.c (async_queue_event): Remove one parameter
11958 'position'. Remove code handling 'position' == TAIL.
11959 (gdb_wait_for_event): Caller update.
11960 (check_async_event_handlers): Caller update.
11961 (poll_timers): Caller update.
11962 * event-loop.h (enum queue_position): Remove.
11963
3bbbe775
MK
119642013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11965
11966 * MAINTAINERS: Update my email.
11967
a87d9ac4
YQ
119682013-01-25 Yao Qi <yao@codesourcery.com>
11969
11970 * main.c (print_gdb_help): Remove "--epoch" from the help
11971 message.
11972
2077afdd
TD
119732013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11974
11975 * symtab.c (skip_prologue_using_sal): Consider a file
11976 change the same as an increased line number
11977
63da4037
TD
119782013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11979
30e8ee25 11980 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11981
45e6c716
TT
119822013-01-24 Tom Tromey <tromey@redhat.com>
11983
11984 * ada-lang.h (ada_decode_symbol): Make return type const.
11985 * ada-lang.c (ada_decode_symbol): Likewise.
11986
b1ae631a
DE
119872013-01-23 Doug Evans <dje@google.com>
11988
11989 * linespec.c (find_linespec_symbols): Make static.
11990
55a78401
SDJ
119912013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11992
11993 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11994 type on float conversion for complex type.
11995
bea883fd
SCR
119962013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11997
11998 Add a new class gdb.Architecture which exposes GDB's
11999 internal representation of architecture via GDB Python API.
12000 * Makefile.in: Add entries corresponding to the new file
12001 python/py-arch.c.
12002 * NEWS (Python Scripting): Add entries for the new class
12003 gdb.Architecture and the new method gdb.Frame.architecture.
12004 * python/py-arch.c: Implement gdb.Architecture class.
12005 * python/py-frame.c (frapy_arch): Implement the method
12006 gdb.Frame.architecture().
12007 (frame_object_methods): Add 'architecture' to the method table.
12008 * python/python-internal.h: Add declarations of new utility
12009 functions.
12010 * python/python.c (_initialize_python): Initialize
12011 gdb.Architecture class.
12012
796a7ff8
DE
120132013-01-23 Doug Evans <dje@google.com>
12014
12015 Work around binutils/15021.
12016 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12017 type_unit_group out of union s. All uses updated.
12018 (read_index_from_section): Watch for index version 8.
12019 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12020 an imported symtab.
12021 (write_psymtabs_to_index): Increment version number to 8.
12022
0928e93d
PA
120232013-01-22 Pedro Alves <palves@redhat.com>
12024
12025 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12026 user-visible.
12027
9c97429f
PA
120282013-01-22 Pedro Alves <palves@redhat.com>
12029
12030 * annotate.c (annotate_breakpoints_changed): Rename to ...
12031 (annotate_breakpoints_invalid): ... this. Make static.
12032 (breakpoint_changed): Adjust.
12033 (_initialize_annotate): Always install the observers. Install a
12034 "breakpoint_created" observer.
12035 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12036 * breakpoint.c (set_breakpoint_condition)
12037 (breakpoint_set_commands, do_map_commands_command)
12038 (init_raw_breakpoint, clear_command, set_ignore_count)
12039 (enable_breakpoint_disp): No longer call
12040 annotate_breakpoints_changed.
12041
bd00c694
PA
120422013-01-22 Pedro Alves <palves@redhat.com>
12043
12044 * annotate.c: Include "inferior.h".
12045 (frames_invalid_emitted)
12046 (breakpoints_invalid_emitted): New globals.
12047 (async_background_execution_p): New function.
12048 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12049 emitting the annotation if it has already been emitted.
12050 (annotate_display_prompt): New function.
12051 * annotate.h (annotate_display_prompt): New declaration.
12052 * event-top.c: Include annotate.h.
12053 (display_gdb_prompt): Call annotate_display_prompt.
12054
187d10dd
PA
120552013-01-22 Pedro Alves <palves@redhat.com>
12056
12057 * annotate.c (ignore_count_changed): Delete.
12058 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12059 (annotate_ignore_count_change): Delete.
12060 (annotate_stopped): Don't emit a delayed breakpoints-changed
12061 annotation.
12062 * annotate.h (annotate_ignore_count_change): Delete.
12063 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12064 annotate_ignore_count_change.
12065
d84cf7eb
TT
120662013-01-22 Tom Tromey <tromey@redhat.com>
12067
12068 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12069 require_rvalue for a register location.
12070
8f1d5693
MK
120712013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12072
12073 * breakpoint.c (print_one_breakpoint_location): Add MI
12074 field 'thread-groups' when printing a breakpoint.
12075 (output_thread_groups): New function.
12076
aa6199c6
SCR
120772013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12078
12079 * python/lib/gdb/commands/explore.py
12080 (CompoundExplorer.explore_expr): Correct the name of a method
12081 being invoked.
12082 (ExploreTypeCommand.invoke): Add a missing 'return'.
12083
d2afef13
TT
120842013-01-21 Tom Tromey <tromey@redhat.com>
12085
12086 * gdb_obstack.h (obconcat): Move declaration here, from...
12087 * symfile.h (obconcat): ... here.
12088 * gdb_obstack.c: New file.
12089 (obconcat): Move from...
12090 * symfile.c (obconcat): ... here.
12091 * Makefile.in (SFILES): Add gdb_obstack.c.
12092 (COMMON_OBS): Add gdb_obstack.o.
12093
10f0c4bb
TT
120942013-01-21 Tom Tromey <tromey@redhat.com>
12095
12096 * symfile.h (obsavestring): Don't declare.
12097 * symfile.c (obsavestring): Remove.
12098 * ada-exp.y: Use obstack_copy0, not obsavestring.
12099 * ada-lang.c: Use obstack_copy0, not obsavestring.
12100 * coffread.c: Use obstack_copy0, not obsavestring.
12101 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12102 * dbxread.c: Use obstack_copy0, not obsavestring.
12103 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12104 * jit.c: Use obstack_copy0, not obsavestring.
12105 * mdebugread.c: Use obstack_copy0, not obsavestring.
12106 * psymtab.c: Use obstack_copy0, not obsavestring.
12107 * stabsread.c: Use obstack_copy0, not obsavestring.
12108 * xcoffread.c: Use obstack_copy0, not obsavestring.
12109
86f62fd7
TT
121102013-01-21 Tom Tromey <tromey@redhat.com>
12111
12112 * dwarf2read.c (fixup_go_packaging): Save package name
12113 on objfile obstack.
12114 * gdbtypes.c (init_type): Don't copy name.
12115
15d034d0
TT
121162013-01-21 Tom Tromey <tromey@redhat.com>
12117
12118 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12119 const.
12120 (struct attribute) <u.str>: Now const.
12121 (struct fnfieldlist) <name>: Now const.
12122 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12123 (partial_die_parent_scope): Make return type const.
12124 (partial_die_full_name, add_partial_symbol): Update.
12125 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12126 'name' const.
12127 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12128 (read_file_scope, read_func_scope, dwarf2_add_field)
12129 (dwarf2_add_member_fn, read_structure_type)
12130 (process_enumeration_scope, read_array_type, read_module_type)
12131 (read_base_type, read_subrange_type): Update.
12132 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12133 (new_symbol_full, guess_full_die_structure_name): Update.
12134 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12135 (dwarf2_name): Return const type.
12136 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12137 const.
12138
748e18ae
TT
121392013-01-21 Tom Tromey <tromey@redhat.com>
12140
12141 * gdbtypes.c (init_type): Make 'name' const.
12142 * gdbtypes.h (init_type): Update.
12143
46212e0b
TT
121442013-01-21 Tom Tromey <tromey@redhat.com>
12145
12146 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12147 (start_symtab): Make 'name' and 'dirname' const. Use
12148 set_last_source_file.
12149 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12150 (last_source_file): Define. Now static.
12151 (set_last_source_file, get_last_source_file): New functions.
12152 * buildsym.h (last_source_file): Don't declare.
12153 (start_symtab): Update.
12154 (set_last_source_file, get_last_source_file): Declare.
12155 * coffread.c (complete_symtab): Use set_last_source_file.
12156 (coff_end_symtab): Likewise.
12157 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12158 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12159 set_last_source_file.
12160 (process_one_symbol): Use get_last_source_file.
12161 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12162 (psymtab_to_symtab_1): Use get_last_source_file.
12163 * xcoffread.c (process_linenos): Use get_last_source_file.
12164 (complete_symtab): Use set_last_source_file.
12165 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12166 (scan_xcoff_symtab): Use set_last_source_file.
12167
9d2ceabe
TT
121682013-01-21 Tom Tromey <tromey@redhat.com>
12169
12170 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12171 (symbol_set_names): Remove casts. Handle field const-ness.
12172
cfc594ee
TT
121732013-01-21 Tom Tromey <tromey@redhat.com>
12174
12175 * dwarf2read.c (new_symbol_full): Remove cast.
12176 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12177 * symtab.h (symbol_set_demangled_name): Update.
12178
5484b13a
TT
121792013-01-21 Tom Tromey <tromey@redhat.com>
12180
12181 * main.c (captured_main): Call bfd_init.
12182
1605ef26
TT
121832013-01-21 Tom Tromey <tromey@redhat.com>
12184
12185 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12186 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12187 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12188 * NEWS: Update.
12189
3b74cdc3
JK
121902013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12191
12192 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12193
5a352474
JK
121942013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12195
12196 Fix gdb.fortran/common-block.exp crash in PIE mode.
12197 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12198 LOC_COMMON_BLOCK.
12199 * f-valprint.c (info_common_command_for_block): Expect
12200 LOC_COMMON_BLOCK in gdb_assert.
12201 * symtab.h (struct general_symbol_info): Update comment for the
12202 common_block member.
12203 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12204 (enum address_class): New member LOC_COMMON_BLOCK.
12205
c60797fd
DB
122062013-01-18 David Blaikie <dblaikie@gmail.com>
12207
12208 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12209
46f35228
TT
122102013-01-18 Tom Tromey <tromey@redhat.com>
12211
12212 PR c++/14999:
12213 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12214 Call require_rvalue.
12215
257e7a09
YQ
122162013-01-18 Yao Qi <yao@codesourcery.com>
12217
12218 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12219 (dbx_read_symtab): New declaration.
12220 (dbx_psymtab_to_symtab): Delete.
12221 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12222 Rename parameter PST to SELF. Exchanged two parameters.
12223 (start_psymtab): Caller update.
12224 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12225 (dwarf2_read_symtab): New declaration.
12226 (dwarf2_psymtab_to_symtab): Delete.
12227 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12228 Rename parameter PST to SELF. Exchanged two parameters.
12229 (create_partial_symtab): Caller update.
12230 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12231 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12232 Rename parameter PST to SELF. Exchanged two parameters.
12233 (parse_partial_symbols, new_psymtab): Caller update.
12234 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12235 two parameters.
12236 * psymtab.c (psymtab_to_symtab): Caller update.
12237 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12238 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12239 Rename parameter PST to SELF. Exchanged two parameters.
12240 (xcoff_start_psymtab): Caller update.
12241
0de5618e
YQ
122422013-01-18 Yao Qi <yao@codesourcery.com>
12243
12244 * infrun.c (proceed): Rename local variable 'oneproc' to
12245 'force_step'.
12246
5c04624b
DE
122472013-01-17 Doug Evans <dje@google.com>
12248
848e3e78
DE
12249 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12250 (dw2_build_type_unit_groups): Delete. All uses updated.
12251
5c04624b
DE
12252 * symtab.h (struct symbol_search): Add comment.
12253
d84fca2c
JK
122542013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12255
12256 * symtab.c (compare_filenames_for_search): New comment for
12257 HAS_DRIVE_SPEC.
12258
6108433d
TT
122592013-01-17 Tom Tromey <tromey@redhat.com>
12260
12261 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12262
c89ffd86
JK
122632013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12264
12265 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12266 initialize it by existing make_cleanup. Call new do_cleanups.
12267
db2b2972
TT
122682013-01-17 Tom Tromey <tromey@redhat.com>
12269
12270 * cp-abi.c (cp_abi_completer): New function.
12271 (_initialize_cp_abi): Set completer for "set cp-abi".
12272
be7d37a2
TT
122732013-01-17 Tom Tromey <tromey@redhat.com>
12274
12275 * mem-break.c: Remove obsolete comment.
12276 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12277
c9fb1240
SD
122782012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12279
12280 * jit.c (jit_reader_load_command): Interpret the jit reader name
12281 as an absolute path if it begins with a forward slash.
12282
db334a01
SD
122832012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12284
12285 PR gdb/14550
12286
12287 * jit.c (finalize_symtab): Ensure that only the global block has a
12288 NULL superblock.
12289
7d928dac
PA
122902013-01-17 Pedro Alves <palves@redhat.com>
12291
12292 * acinclude.m4: Include ../config/plugins.m4,
12293 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12294 * Makefile.in (aclocal_m4_deps): Update.
12295 * aclocal.m4: Renegerate.
12296
fb8cf7c5
DE
122972013-01-16 Doug Evans <dje@google.com>
12298
12299 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12300
ab04a2af
TT
123012013-01-16 Pedro Alves <palves@redhat.com>
12302 Tom Tromey <tromey@redhat.com>
12303
12304 PR cli/7221:
12305 * NEWS: Add "catch signal".
12306 * breakpoint.c (base_breakpoint_ops): No longer static.
12307 (bpstat_explains_signal): New function.
12308 (init_catchpoint): No longer static.
12309 (base_breakpoint_explains_signal): New function.
12310 (base_breakpoint_ops): Initialize new field.
12311 * breakpoint.h (enum bpstat_signal_value): New.
12312 (struct breakpoint_ops) <explains_signal>: New field.
12313 (bpstat_explains_signal): Remove macro, declare as function.
12314 (base_breakpoint_ops, init_catchpoint): Declare.
12315 * break-catch-sig.c: New file.
12316 * inferior.h (signal_catch_update): Declare.
12317 * infrun.c (signal_catch): New global.
12318 (handle_syscall_event): Update for change to
12319 bpstat_explains_signal.
12320 (handle_inferior_event): Likewise. Always handle random signals
12321 via bpstats.
12322 (signal_cache_update): Check signal_catch.
12323 (signal_catch_update): New function.
12324 (_initialize_infrun): Initialize signal_catch.
12325 * Makefile.in (SFILES): Add break-catch-sig.c.
12326 (COMMON_OBS): Add break-catch-sig.o.
12327
8ac3646f
TT
123282013-01-16 Tom Tromey <tromey@redhat.com>
12329
12330 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12331 (print_one_catch_solib, print_one_catch_syscall)
12332 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12333 "catch-type".
12334
5a18e302
YQ
123352013-01-16 Yao Qi <yao@codesourcery.com>
12336
12337 * printcmd.c (current_display_number): Make it static.
12338
3f01d0d0
YQ
123392013-01-16 Yao Qi <yao@codesourcery.com>
12340
12341 * infcmd.c (step_once): Don't check '!single_inst' as it was
12342 checked before.
12343
1ed59174
JK
123442013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12345
12346 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12347
44478ab3
TT
123482013-01-14 Tom Tromey <tromey@redhat.com>
12349
12350 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12351 set command.
12352 * command.h (add_setshow_string_noescape_cmd): Update.
12353 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12354 (complete_set_gnutarget): New function.
12355 (_initialize_core): Set the "set gnutarget" completer.
12356
06d66ee9
TT
123572013-01-14 Tom Tromey <tromey@redhat.com>
12358
12359 PR symtab/14442:
12360 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12361 (c_type_print_modifier): Likewise.
12362 * dwarf2read.c (read_tag_restrict_type): New function.
12363 (read_type_die_1): Handle DW_TAG_restrict_type.
12364 * gdbtypes.c (make_restrict_type): New function.
12365 (recursive_dump_type): Handle TYPE_RESTRICT.
12366 * gdbtypes.h (enum type_flag_values): Renumber.
12367 (enum type_instance_flag_value): Add
12368 TYPE_INSTANCE_FLAG_RESTRICT.
12369 (TYPE_RESTRICT): New macro.
12370 (make_restrict_type): Declare.
12371
c9bf0622
TT
123722013-01-14 Tom Tromey <tromey@redhat.com>
12373
12374 PR symtab/14931:
12375 * psymtab.c (struct psymtab_state): New.
12376 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12377 functions.
12378 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12379 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12380
44d594fd
PA
123812013-01-14 Richard Sharman <richard_sharman@mitel.com>
12382 Pedro Alves <palves@redhat.com>
12383
12384 PR remote/14786
12385
12386 * remote.c (remote_threads_info): Make a copy of the reply from
12387 qfThreadInfo and use that instead of rs->buf.
12388
442e4d9c
YQ
123892013-01-14 Yao Qi <yao@codesourcery.com>
12390
12391 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12392 (dbx_psymtab_to_symtab): Likewise.
12393 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12394 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12395 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12396
5b12a61c
JK
123972013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12398
12399 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12400 make_cleanup_restore_current_language. Call set_language. Move
12401 OLD_CHAIN and INNER_CHAIN cleanups.
12402 * utils.c (do_restore_current_language)
12403 (make_cleanup_restore_current_language): New functions.
12404 * utils.h (make_cleanup_restore_current_language): New declaration.
12405
f0a4b570
JK
124062013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12407
12408 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12409 non-existing files.
12410
57b3c00c
JK
12411 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12412 non-existing files if FILENAME is already absolute.
12413
daefa854
JK
124142013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12415
12416 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12417 fputs_filtered. Append trailing newline.
12418
ca9c6ee2
YQ
124192013-01-11 Yao Qi <yao@codesourcery.com>
12420 Stan Shebs <stan@codesourcery.com>
12421
12422 * psymtab.c (init_psymbol_list): Clarify the comment.
12423
f28045c2
YQ
124242013-01-11 Yao Qi <yao@codesourcery.com>
12425
12426 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12427 (update_dprintf_command_list): Assert that 'printf_line' is
12428 non-null. Remove condition check.
12429
da5132d3
JK
124302013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12431
12432 Code cleanup.
12433 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12434 type const char *.
12435 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12436 const char *.
12437 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12438
843e694d
AG
124392013-01-09 Anthony Green <green@moxielogic.com>
12440
12441 * cp-abi.c (cplus_print_vtable): Don't return value from void
12442 function.
12443 * ada-lang.c (re_set_catch_assert): Ditto.
12444
da51c347
DE
124452013-01-09 Doug Evans <dje@google.com>
12446
12447 * symfile.h (quick_symbol_functions): Delete member
12448 pre_expand_symtabs_matching. All uses removed.
12449 * dwarf2read.c (dw2_lookup_symbol): Implement.
12450 (dw2_do_expand_symtabs_matching): Delete.
12451 (dw2_pre_expand_symtabs_matching): Delete.
12452 (struct dw2_symtab_iterator): New type.
12453 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12454 (dw2_expand_symtabs_for_function): Rewrite.
12455 (dwarf2_gdb_index_functions): Update.
12456 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12457 (psym_functions): Update.
12458
b2259038
TT
124592013-01-09 Tom Tromey <tromey@redhat.com>
12460
12461 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12462 * configure: Rebuild.
12463 * configure.ac: Add somread.o to the build if BFD has SOM
12464 support.
12465 * somread.c: Include som/aout.h, not syms.h.
12466 (som_symtab_read): Use som_external_symbol_dictionary_record.
12467 Unpack records manually.
12468 (_initialize_somread): Declare.
12469
bdad4180
MF
124702012-01-08 Mike Frysinger <vapier@gentoo.org>
12471
12472 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12473 Cast return_address to 64bits.
12474
03cdf680
HZ
124752013-01-08 Hui Zhu <hui_zhu@mentor.com>
12476
12477 * printcmd.c: Remove define of function output_command.
12478 * tracepoint.c: Remove extern of function output_command.
12479 * valprint.h: (output_command): New extern.
12480
8a808554
TT
124812013-01-07 Tom Tromey <tromey@redhat.com>
12482
12483 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12484 Remove.
12485 (objc_language_defn): Use c_printchar, c_printstr,
12486 c_emit_char.
12487
e93a8774
TT
124882013-01-07 Tom Tromey <tromey@redhat.com>
12489
12490 PR cli/7719:
12491 * NEWS: Update.
12492 * ada-valprint.c (printstr, print_field_values): Remove
12493 "inspect_it" code.
12494 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12495 code.
12496 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12497 code.
12498 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12499 * main.c (captured_main): Remove "epoch" argument.
12500 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12501 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12502 * p-valprint.c (pascal_object_print_value_fields): Remove
12503 "inspect_it" code.
12504 * printcmd.c (print_command_1): Remove 'inspect' argument.
12505 (print_command, call_command): Update.
12506 (inspect_command): Remove.
12507 (_initialize_printcmd): Make "inspect" an alias for "print".
12508 * top.c (epoch_interface): Remove.
12509 * top.h (epoch_interface): Remove.
12510 * valprint.c (user_print_options): Update.
12511 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12512 * valprint.h (struct value_print_options) <inspect_it>: Remove
12513 field.
12514
125152013-01-04 Tom Tromey <tromey@redhat.com>
12516
12517 * valprint.h (read_string): Add 'extern'.
12518
b967eb24
JB
125192013-01-07 Joel Brobecker <brobecker@adacore.com>
12520
12521 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12522 used to decide whether to define darwin_read_dyld_info or not.
12523
78a8b30e
PM
125242013-01-03 Pierre Muller <muller@sourceware.org>
12525
12526 * main.c (relocate_gdb_directory): Avoid calling stat function
12527 if DIR is empty.
12528
50da2f25
YQ
125292013-01-03 Yao Qi <yao@codesourcery.com>
12530
12531 * psymtab.c (fixup_psymbol_section): Update declaration.
12532 (fixup_psymbol_section): Remove code returning value.
12533
e7e8980f
YQ
125342013-01-03 Yao Qi <yao@codesourcery.com>
12535
12536 * symtab.h: Remove some out of date comments.
12537 (enum exception_event_kind): Move it ...
12538 * breakpoint.c: ... here.
12539
569283d4
MF
125402013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12541
9f9d9a96 12542 PR gdb/14405
569283d4
MF
12543 * darwin-nat.c (darwin_read_dyld_info): Only build if
12544 TASK_DYLD_INFO_COUNT is defined.
12545 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12546 TASK_DYLD_INFO_COUNT is defined.
12547
2e36fbea
TT
125482013-01-02 Tom Tromey <tromey@redhat.com>
12549
12550 * symfile.h (struct ecoff_debug_hack): Remove.
12551 * objfiles.c: Don't include mdebugread.h.
12552
4f05add4
TT
125532013-01-02 Tom Tromey <tromey@redhat.com>
12554
12555 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12556 * configure.ac: Check for Mach-O support in BFD. Update
12557 CONFIG_OBS.
12558 * configure: Rebuild.
12559
def63ff0
TT
125602013-01-02 Tom Tromey <tromey@redhat.com>
12561
12562 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12563 * configure.ac: Use GDB_AC_CHECK_BFD.
12564 * configure: Rebuild.
12565
60c5dd93
MK
125662013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12567
12568 * MAINTAINERS: Update my email.
12569
6e58437e
JB
125702013-01-01 Joel Brobecker <brobecker@adacore.com>
12571
12572 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12573
627fe805
JB
125742013-01-01 Joel Brobecker <brobecker@adacore.com>
12575
12576 * rs6000-nat.c (bss_data_overlap): New function.
12577 (vmap_symtab): Use it to adjust the .bss section's offset.
12578
28e7fd62
JB
125792013-01-01 Joel Brobecker <brobecker@adacore.com>
12580
12581 Update year range in copyright notice of all files.
12582
e93a8774 125832013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12584
12585 * top.c (print_gdb_version): Update copyright year.
12586
72b20e9c 12587For older changes see ChangeLog-2012.
c906108c
SS
12588\f
12589Local Variables:
12590mode: change-log
12591left-margin: 8
12592fill-column: 74
12593version-control: never
57da7796 12594coding: utf-8
c906108c 12595End:
This page took 2.031226 seconds and 4 git commands to generate.