GDB perf test on single step
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a12361b9
DE
12013-11-23 Doug Evans <xdje42@gmail.com>
2
3 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
4 superfluous.
5
1e1d6920
DE
62013-11-23 Doug Evans <xdje42@gmail.com>
7
8 * python/py-frame.c (frapy_block): Fix error message text.
9
1e9c71b8
DE
102013-11-23 Doug Evans <xdje42@gmail.com>
11
12 * cli/cli-script.c (multi_line_command_p): New function.
13 (recurse_read_control_structure, read_command_lines_1): Call it.
14 (execute_control_command): Consistently have a blank line between
15 each case.
16
f380848e
SA
172013-11-22 Sterling Augustine <saugustine@google.com>
18
38e1f2a7 19 PR gdb/16196:
f380848e
SA
20 * valprint.c (read_string): Set new variable fetchlen based on
21 fetchlimit and size. Use it in call to partial_memory_read.
22 Update comment.
23
da2b2fdf
TT
242013-11-22 Tom Tromey <tromey@redhat.com>
25
26 PR backtrace/16155:
27 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
28 the return address column is unspecified.
29
6eeee81c
TT
302013-11-22 Tom Tromey <tromey@redhat.com>
31 Pedro Alves <palves@redhat.com>
32
33 PR backtrace/16155
34 * value.c (value_fetch_lazy): Internal error if
35 get_frame_register_value returns the same register.
36
194cca41
PA
372013-11-22 Pedro Alves <palves@redhat.com>
38 Tom Tromey <tromey@redhat.com>
39
40 * frame.c (frame_stash_add): Now returns whether a frame with the
41 same ID was already known.
42 (compute_frame_id): New function, factored out from get_frame_id.
43 (get_frame_id): No longer lazilly compute the frame id here.
44 (get_prev_frame_if_no_cycle): New function. Detects wider stack
45 cycles.
46 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
47 and checking for stack cycles here.
48
33f8fe58
PA
492013-11-22 Pedro Alves <palves@redhat.com>
50
51 PR 16155
52 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
53 this frame and the new previous frame, not between this frame and
54 the next frame.
55
1ec56e88
PA
562013-11-22 Pedro Alves <palves@redhat.com>
57
58 PR 16155
59 * dwarf2-frame.c (struct dwarf2_frame_cache)
60 <checked_tailcall_bottom, entry_cfa_sp_offset,
61 entry_cfa_sp_offset_p>: New fields.
62 (dwarf2_frame_cache): Adjust to use the new cache fields instead
63 of locals. Don't call dwarf2_tailcall_sniffer_first here.
64 (dwarf2_frame_prev_register): Call it here, but only once.
65
ca092b61
DE
662013-11-21 Doug Evans <xdje42@gmail.com>
67
68 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
69 (type_equality_entry): Move here from python/py-type.c.
70 (type_equality_entry_d): Ditto.
71 (compare_maybe_null_strings, check_types_equal): Ditto.
72 (check_types_worklist, types_deeply_equal): Ditto.
73 * gdbtypes.h (types_deeply_equal): Declare.
74 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
75 (typy_richcompare): Update.
76
7c245c24
JB
772013-11-20 Joel Brobecker <brobecker@adacore.com>
78
79 * python/py-value.c (is_intlike): Delete.
80 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
81 by use of is_integral_type.
82 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
83 by use of is_integral_type and check for TYPE_CODE_PTR.
84
8986e351
TT
852013-11-20 Tom Tromey <tromey@redhat.com>
86
87 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
88 strerror module.
89 * gnulib/aclocal.m4: Update.
90 * gnulib/config.in: Update.
91 * gnulib/configure: Update.
92 * gnulib/import/Makefile.am: Update.
93 * gnulib/import/Makefile.in: Update.
94 * gnulib/import/errno.in.h: Remove.
95 * gnulib/import/intprops.h: Remove.
96 * gnulib/import/m4/errno_h.m4: Remove.
97 * gnulib/import/m4/gnulib-cache.m4: Update.
98 * gnulib/import/m4/gnulib-comp.m4: Update.
99 * gnulib/import/m4/strerror.m4: Remove.
100 * gnulib/import/m4/sys_socket_h.m4: Remove.
101 * gnulib/import/strerror-override.c: Remove.
102 * gnulib/import/strerror-override.h: Remove.
103 * gnulib/import/strerror.c: Remove.
104 * gnulib/update-gnulib.sh: Update.
105
6b1141e3
YQ
1062013-11-20 Yao Qi <yao@codesourcery.com>
107
108 * target-dcache.c (target_dcache_get_or_init): Call
109 set_address_space_data if 'dcache' is NULL.
110
60650f2e
WT
1112013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
112
113 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
114
09748966
WT
1152013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
116
117 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
118 * data-directory/Makefile.in: Copy bond_register.py to the right path
119 to be initialized at gdb startup.
09748966 120
e43e105e
WT
1212013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
122
123 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
124 Add MPX registers.
125 (amd64_linux_read_description): Add initialization for MPX and
126 AVX independently.
127 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
128 (amd64_linux_gregset_reg_offset): Add MPX registers.
129 (amd64_linux_core_read_description): Add initialization for MPX
130 registers.
131 (_initialize_amd64_linux_tdep): Initialize MPX targets.
132 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
133 register on the list.
134 (tdesc_amd64_mpx_linux) Add new target for MPX.
135 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
136 (amd64_mpx_names): MPX register names.
137 (amd64_init_abi): Add MPX register while initializing the ABI.
138 (_initialize_amd64_tdep): Initialize MPX targets.
139 * amd64-tdep.h (amd64_regnum): Add MPX registers.
140 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
141
1dbcd68c
WT
1422013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
143
144 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
145 registers on the range of registers to be read from
146 xsave buffer.
147 (i386_linux_read_description): Add case for MPX.
148 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
149 (i386_linux_gregset_reg_offset): Add MPX registers.
150 (i386_linux_core_read_description): Initialize also MPX.
151 (_initialize_i386_linux_tdep): Add mpx initialization.
152 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
153 mpx_register_names.
154 (i386_regnum): Add MPX registers.
155 (I386_MPX_NUM_REGS): New macro.
156 (i386_bnd_regnum_p): New function.
157 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
158 number of registers to be the number of BNDSTATUS.
159 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
160 * i386-tdep.c: Include features/i386/i386-mpx.c.
161 (i386_mpx_names): Add MPX register names array.
162 (i386_bnd_names): Add bnd pseudo register names array.
163 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
164 registers.
165 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
166 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
167 registers.
168 (i386_bnd_type): New function.
169 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
170 register types.
171 (i386_pseudo_register_read_into_value): Add bnd case.
172 (i386_pseudo_register_write): Add bnd pseudo registers.
173 (i386_register_reggroup_p): Add MPX register to the group all.
174 (i386_validate_tdesc_p): Add MPX to the target description
175 validation.
176 (i386_pseudo_register_name): Add bnd pseudo registers.
177 (i386_gdbarch_init): Add MPX for architecture initialization.
178 (_initia_initialize_i386_tdep): Add mpx initialization.
179 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
180 XSAVE buffer.
181 (XSAVE_MPX_ADDR): New macro.
182 (i387_supply_xsave): Add MPX case.
183 (i387_collect_xsave): Add MPX case.
184 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
185 (I387_BNDCFGU_REGNUM): New macro.
186 (I387_NUM_MPX_REGS): New macro.
187 (I387_NUM_BND_REGS): New macro.
188 (I387_NUM_MPX_CTRL_REGS): New macro.
189 (I387_MPXEND_REGNUM): New macro.
190 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
191 (I386_XSTATE_BNDCFG): Likewise.
192 (I386_XSTATE_MPX_MASK): Likewise.
193 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
194 (I386_XSTATE_BNDREGS_SIZE): New macro.
195 (I386_XSTATE_BNDCFG_SIZE): Likewise.
196 (I386_XSTATE_SIZE): Adapt for MPX.
197 (I386_XSTATE_MAX_SIZE): Likewise.
198
ccc42043
WT
1992013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
200
201 * features/i386/Makefile: Adapts for using MPX registers.
202 * features/i386/32bit-mpx.xml: New file.
203 * features/i386/64bit-mpx.xml: Likewise.
204 * features/i386/amd64-mpx-linux.c: Likewise.
205 * features/i386/amd64-mpx-linux.xml: Likewise.
206 * features/i386/amd64-mpx.c: Likewise.
207 * features/i386/amd64-mpx.xml: Likewise.
208 * features/i386/i386-mpx-linux.c: Likewise.
209 * features/i386/i386-mpx-linux.xml: Likewise.
210 * features/i386/i386-mpx.c: Likewise.
211 * features/i386/i386-mpx.xml: Likewise.
212 * regformats/i386/amd64-mpx-linux.dat: New file.
213 * regformats/i386/amd64-mpx.dat: Likewise.
214 * regformats/i386/i386-mpx-linux.dat: Likewise.
215 * regformats/i386/i386-mpx.dat: Likewise.
216
57803a3c
WT
2172013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
218
219 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
220 Modified logic of creating a bitfield to be in sync with
221 tdesc_gdb_type.
222
2b59118e
WN
2232013-11-20 Will Newton <will.newton@linaro.org>
224
225 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
226 error message.
227
b26dfc9a
YQ
2282013-11-20 Yao Qi <yao@codesourcery.com>
229
230 * progspace.h (struct address_space_data): Declare.
231 * target-dcache.c: Include "progspace.h".
232 (target_dache): Remove.
233 (target_dcache_aspace_key): New.
234 (target_dcache_cleanup): New function.
235 (target_dcache_init_p): Get data through
236 target_dcache_aspace_key.
237 (target_dcache_invalidate): Likewise.
238 (target_dcache_get): Likewise.
239 (target_dcache_get_or_init): Likewise.
240 (_initialize_target_dcache): Initialize
241 target_dcache_aspace_key.
242
3a8356ff
YQ
2432013-11-20 Yao Qi <yao@codesourcery.com>
244
245 * progspace.c (struct address_space): Update comments.
246 <REGISTRY_FIELDS>: New fields.
247 DEFINE_REGISTRY for address_space.
248 (new_address_space): Call address_space_alloc_data.
249 (free_address_space): Call address_space_free_data.
250 * progspace.h: Use DECLARE_REGISTRY.
251
68c765e2
YQ
2522013-11-20 Yao Qi <yao@codesourcery.com>
253
254 * Makefile.in (SFILES):Add target-dcache.c.
255 (HFILES_NO_SRCDIR): Add target-dcache.h.
256 (COMMON_OBS): Add target-dcache.o.
257 * dcache.c: Remove inclusion to "target.h". Include
258 "target-dcache.h".
259 * memattr.c: Include "target-dcache.h".
260 * top.c: Likewise.
261 * tracepoint.c: Likewise.
262 * target.c: (stack_cache_enabled_p_1): Move to
263 target-dcache.c.
264 (stack_cache_enabled_p): Likewise.
265 (set_stack_cache_enabled_p): Likewise.
266 (show_stack_cache_enabled_p): Likewise.
267 (target_dcache, target_dcache_init_p): Likewise.
268 (target_dcache_invalidate): Likewise.
269 (target_dcache_get, target_dcache_get_or_init): Likewise.
270 (memory_xfer_partial_1): Call function stack_cache_enabled.
271 (initialize_target): Move code to target-dcache.c.
272 * target.h (target_dcache_invalidate): Move to
273 target-dcache.h.
274 (target_dcache_get): Likewise.
275 * target-dcache.c: New.
276 * target-dcache.h: New.
277
f2de9785
YQ
2782013-11-20 Yao Qi <yao@codesourcery.com>
279
280 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
281 it is initialized.
282
2a2f9fe4
YQ
2832013-11-20 Yao Qi <yao@codesourcery.com>
284
285 * dcache.c (last_cache): Remove.
286 (dcache_free, dcache_init): Update.
287 (dcache_update):
288 (dcache_print_line): Add parameter 'dcache'. Replace
289 'target_dcache' with 'dcache'.
290 (dcache_info): Move code to dcache_info_1. Call
291 'dcache_info_1'.
292 (dcache_info_1): New function.
293 (set_dcache_size): Call target_dcache_invalidate.
294 (set_dcache_line_size): Call target_dcache_invalidate.
295 * target.c (target_dcache_init_p): New function.
296 (target_dcache_invalidate): Check target_dcache_init_p first.
297 (target_dcache_get, target_dcache_get_or_init): New function.
298 (memory_xfer_partial_1): Adjust.
299 (initialize_target): Don't initialize 'target_dcache'.
300 * target.h (struct dcache_struct): Declare.
301 (target_dcache_get): Declare.
302
8ab91b96
YQ
3032013-11-19 Yao Qi <yao@codesourcery.com>
304
305 * varobj.c (varobj_get_type): Fix typo.
306
df7752b0
JB
3072013-11-19 Joel Brobecker <brobecker@adacore.com>
308
309 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
310
4a0a886a
JB
3112013-11-19 Joel Brobecker <brobecker@adacore.com>
312
313 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
314 "stat.h".
315
53ce3c39
TT
3162013-11-18 Tom Tromey <tromey@redhat.com>
317
318 * common/gdb_stat.h: Remove.
319 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
320 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
321 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
322 * corefile.c: Use sys/stat.h, not gdb_stat.h.
323 * ctf.c: Use sys/stat.h, not gdb_stat.h.
324 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
325 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
326 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
327 * exec.c: Use sys/stat.h, not gdb_stat.h.
328 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
329 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
330 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
331 * jit.c: Use sys/stat.h, not gdb_stat.h.
332 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
333 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
334 * main.c: Use sys/stat.h, not gdb_stat.h.
335 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
336 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
337 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
338 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
339 * procfs.c: Use sys/stat.h, not gdb_stat.h.
340 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
341 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
342 * remote.c: Use sys/stat.h, not gdb_stat.h.
343 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
344 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
345 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
346 * source.c: Use sys/stat.h, not gdb_stat.h.
347 * symfile.c: Use sys/stat.h, not gdb_stat.h.
348 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
349 * symtab.c: Use sys/stat.h, not gdb_stat.h.
350 * top.c: Use sys/stat.h, not gdb_stat.h.
351 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
352
09607c9e
TT
3532013-11-18 Tom Tromey <tromey@redhat.com>
354
355 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
356 sys_stat.
357 * gnulib/aclocal.m4: Update.
358 * gnulib/config.in: Update.
359 * gnulib/configure: Update.
360 * gnulib/import/Makefile.am: Update.
361 * gnulib/import/Makefile.in: Update.
362 * gnulib/import/m4/gnulib-cache.m4: Update.
363 * gnulib/import/m4/gnulib-comp.m4: Update.
364 * gnulib/import/m4/sys_stat_h.m4: New.
365 * gnulib/import/m4/time_h.m4: New.
366 * gnulib/import/sys_stat.in.h: New.
367 * gnulib/import/time.in.h: New.
368
4ff70b84
TT
3692013-11-18 Tom Tromey <tromey@redhat.com>
370
371 * configure: Rebuild.
372 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
373
3447c057
TT
3742013-11-18 Tom Tromey <tromey@redhat.com>
375
376 * configure: Rebuild.
377 * configure.ac: Don't check for unistd.h.
378
0080a2f6
TT
3792013-11-18 Tom Tromey <tromey@redhat.com>
380
381 * configure: Rebuild.
382 * configure.ac: Don't check for stdlib.h
383 * defs.h: Include stdlib.h unconditionally.
384
161d1bec
TT
3852013-11-18 Tom Tromey <tromey@redhat.com>
386
387 * config.in: Rebuild.
388 * configure: Rebuild.
389 * configure.ac: Don't check for stddef.h.
390 * defs.h: Unconditionally include stddef.h. Remove duplicate
391 inclusion.
392
2978b111
TT
3932013-11-18 Tom Tromey <tromey@redhat.com>
394
395 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
396 * common/gdb_dirent.h: Remove.
397 * common/filestuff.c: Use dirent.h.
398 * common/linux-osdata.c: Use dirent.h.
399 (NAMELEN): Define.
400 * config.in: Rebuild.
401 * configure: Rebuild.
402 * configure.ac: Don't use AC_HEADER_DIRENT.
403 * linux-fork.c: Use dirent.h
404 * linux-nat.c: Use dirent.h.
405 * nto-procfs.c: Use dirent.h.
406 * procfs.c: Use dirent.h.
407
e26b6bb0
TT
4082013-11-18 Tom Tromey <tromey@redhat.com>
409
410 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
411 * gnulib/aclocal.m4: Update.
412 * gnulib/config.in: Update.
413 * gnulib/configure: Update.
414 * gnulib/import/Makefile.am: Update.
415 * gnulib/import/Makefile.in: Update.
416 * gnulib/import/dirent.in.h: New.
417 * gnulib/import/m4/dirent_h.m4: New.
418 * gnulib/import/m4/gnulib-cache.m4: Update.
419 * gnulib/import/m4/gnulib-comp.m4: Update.
420
a3d08894
TT
4212013-11-18 Tom Tromey <tromey@redhat.com>
422
423 * configure: Rebuild.
424 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
425 strings.h.
426
0e9f083f
TT
4272013-11-18 Tom Tromey <tromey@redhat.com>
428
429 * common/gdb_string.h: Remove.
430 * aarch64-tdep.c: Use string.h, not gdb_string.h.
431 * ada-exp.y: Use string.h, not gdb_string.h.
432 * ada-lang.c: Use string.h, not gdb_string.h.
433 * ada-lex.l: Use string.h, not gdb_string.h.
434 * ada-typeprint.c: Use string.h, not gdb_string.h.
435 * ada-valprint.c: Use string.h, not gdb_string.h.
436 * aix-thread.c: Use string.h, not gdb_string.h.
437 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
438 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
439 * alpha-nat.c: Use string.h, not gdb_string.h.
440 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
441 * alpha-tdep.c: Use string.h, not gdb_string.h.
442 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
443 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
444 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
445 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
446 * amd64-nat.c: Use string.h, not gdb_string.h.
447 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
448 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
449 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
450 * arch-utils.c: Use string.h, not gdb_string.h.
451 * arm-linux-nat.c: Use string.h, not gdb_string.h.
452 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
453 * arm-tdep.c: Use string.h, not gdb_string.h.
454 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
455 * armbsd-tdep.c: Use string.h, not gdb_string.h.
456 * armnbsd-nat.c: Use string.h, not gdb_string.h.
457 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
458 * armobsd-tdep.c: Use string.h, not gdb_string.h.
459 * avr-tdep.c: Use string.h, not gdb_string.h.
460 * ax-gdb.c: Use string.h, not gdb_string.h.
461 * ax-general.c: Use string.h, not gdb_string.h.
462 * bcache.c: Use string.h, not gdb_string.h.
463 * bfin-tdep.c: Use string.h, not gdb_string.h.
464 * breakpoint.c: Use string.h, not gdb_string.h.
465 * build-id.c: Use string.h, not gdb_string.h.
466 * buildsym.c: Use string.h, not gdb_string.h.
467 * c-exp.y: Use string.h, not gdb_string.h.
468 * c-lang.c: Use string.h, not gdb_string.h.
469 * c-typeprint.c: Use string.h, not gdb_string.h.
470 * c-valprint.c: Use string.h, not gdb_string.h.
471 * charset.c: Use string.h, not gdb_string.h.
472 * cli-out.c: Use string.h, not gdb_string.h.
473 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
474 * cli/cli-decode.c: Use string.h, not gdb_string.h.
475 * cli/cli-dump.c: Use string.h, not gdb_string.h.
476 * cli/cli-interp.c: Use string.h, not gdb_string.h.
477 * cli/cli-logging.c: Use string.h, not gdb_string.h.
478 * cli/cli-script.c: Use string.h, not gdb_string.h.
479 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
480 * cli/cli-utils.c: Use string.h, not gdb_string.h.
481 * coffread.c: Use string.h, not gdb_string.h.
482 * common/common-utils.c: Use string.h, not gdb_string.h.
483 * common/filestuff.c: Use string.h, not gdb_string.h.
484 * common/linux-procfs.c: Use string.h, not gdb_string.h.
485 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
486 * common/signals.c: Use string.h, not gdb_string.h.
487 * common/vec.h: Use string.h, not gdb_string.h.
488 * core-regset.c: Use string.h, not gdb_string.h.
489 * corefile.c: Use string.h, not gdb_string.h.
490 * corelow.c: Use string.h, not gdb_string.h.
491 * cp-abi.c: Use string.h, not gdb_string.h.
492 * cp-support.c: Use string.h, not gdb_string.h.
493 * cp-valprint.c: Use string.h, not gdb_string.h.
494 * cris-tdep.c: Use string.h, not gdb_string.h.
495 * d-lang.c: Use string.h, not gdb_string.h.
496 * dbxread.c: Use string.h, not gdb_string.h.
497 * dcache.c: Use string.h, not gdb_string.h.
498 * demangle.c: Use string.h, not gdb_string.h.
499 * dicos-tdep.c: Use string.h, not gdb_string.h.
500 * disasm.c: Use string.h, not gdb_string.h.
501 * doublest.c: Use string.h, not gdb_string.h.
502 * dsrec.c: Use string.h, not gdb_string.h.
503 * dummy-frame.c: Use string.h, not gdb_string.h.
504 * dwarf2-frame.c: Use string.h, not gdb_string.h.
505 * dwarf2loc.c: Use string.h, not gdb_string.h.
506 * dwarf2read.c: Use string.h, not gdb_string.h.
507 * elfread.c: Use string.h, not gdb_string.h.
508 * environ.c: Use string.h, not gdb_string.h.
509 * eval.c: Use string.h, not gdb_string.h.
510 * event-loop.c: Use string.h, not gdb_string.h.
511 * exceptions.c: Use string.h, not gdb_string.h.
512 * exec.c: Use string.h, not gdb_string.h.
513 * expprint.c: Use string.h, not gdb_string.h.
514 * f-exp.y: Use string.h, not gdb_string.h.
515 * f-lang.c: Use string.h, not gdb_string.h.
516 * f-typeprint.c: Use string.h, not gdb_string.h.
517 * f-valprint.c: Use string.h, not gdb_string.h.
518 * fbsd-nat.c: Use string.h, not gdb_string.h.
519 * findcmd.c: Use string.h, not gdb_string.h.
520 * findvar.c: Use string.h, not gdb_string.h.
521 * fork-child.c: Use string.h, not gdb_string.h.
522 * frame.c: Use string.h, not gdb_string.h.
523 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
524 * frv-tdep.c: Use string.h, not gdb_string.h.
525 * gdb.c: Use string.h, not gdb_string.h.
526 * gdb_bfd.c: Use string.h, not gdb_string.h.
527 * gdbarch.c: Use string.h, not gdb_string.h.
528 * gdbtypes.c: Use string.h, not gdb_string.h.
529 * gnu-nat.c: Use string.h, not gdb_string.h.
530 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
531 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
532 * go-exp.y: Use string.h, not gdb_string.h.
533 * go-lang.c: Use string.h, not gdb_string.h.
534 * go32-nat.c: Use string.h, not gdb_string.h.
535 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
536 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
537 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
538 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
539 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
540 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
541 * i386-linux-nat.c: Use string.h, not gdb_string.h.
542 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
543 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
544 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
545 * i386-tdep.c: Use string.h, not gdb_string.h.
546 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
547 * i386gnu-nat.c: Use string.h, not gdb_string.h.
548 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
549 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
550 * i387-tdep.c: Use string.h, not gdb_string.h.
551 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
552 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
553 * inf-child.c: Use string.h, not gdb_string.h.
554 * inf-ptrace.c: Use string.h, not gdb_string.h.
555 * inf-ttrace.c: Use string.h, not gdb_string.h.
556 * infcall.c: Use string.h, not gdb_string.h.
557 * infcmd.c: Use string.h, not gdb_string.h.
558 * inflow.c: Use string.h, not gdb_string.h.
559 * infrun.c: Use string.h, not gdb_string.h.
560 * interps.c: Use string.h, not gdb_string.h.
561 * iq2000-tdep.c: Use string.h, not gdb_string.h.
562 * irix5-nat.c: Use string.h, not gdb_string.h.
563 * jv-exp.y: Use string.h, not gdb_string.h.
564 * jv-lang.c: Use string.h, not gdb_string.h.
565 * jv-typeprint.c: Use string.h, not gdb_string.h.
566 * jv-valprint.c: Use string.h, not gdb_string.h.
567 * language.c: Use string.h, not gdb_string.h.
568 * linux-fork.c: Use string.h, not gdb_string.h.
569 * linux-nat.c: Use string.h, not gdb_string.h.
570 * lm32-tdep.c: Use string.h, not gdb_string.h.
571 * m2-exp.y: Use string.h, not gdb_string.h.
572 * m2-typeprint.c: Use string.h, not gdb_string.h.
573 * m32c-tdep.c: Use string.h, not gdb_string.h.
574 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
575 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
576 * m32r-rom.c: Use string.h, not gdb_string.h.
577 * m32r-tdep.c: Use string.h, not gdb_string.h.
578 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
579 * m68k-tdep.c: Use string.h, not gdb_string.h.
580 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
581 * m68klinux-nat.c: Use string.h, not gdb_string.h.
582 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
583 * m88k-tdep.c: Use string.h, not gdb_string.h.
584 * macrocmd.c: Use string.h, not gdb_string.h.
585 * main.c: Use string.h, not gdb_string.h.
586 * mdebugread.c: Use string.h, not gdb_string.h.
587 * mem-break.c: Use string.h, not gdb_string.h.
588 * memattr.c: Use string.h, not gdb_string.h.
589 * memory-map.c: Use string.h, not gdb_string.h.
590 * mep-tdep.c: Use string.h, not gdb_string.h.
591 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
592 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
593 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
594 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
595 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
596 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
597 * mi/mi-console.c: Use string.h, not gdb_string.h.
598 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
599 * mi/mi-interp.c: Use string.h, not gdb_string.h.
600 * mi/mi-main.c: Use string.h, not gdb_string.h.
601 * mi/mi-parse.c: Use string.h, not gdb_string.h.
602 * microblaze-rom.c: Use string.h, not gdb_string.h.
603 * microblaze-tdep.c: Use string.h, not gdb_string.h.
604 * mingw-hdep.c: Use string.h, not gdb_string.h.
605 * minidebug.c: Use string.h, not gdb_string.h.
606 * minsyms.c: Use string.h, not gdb_string.h.
607 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
608 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
609 * mips-tdep.c: Use string.h, not gdb_string.h.
610 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
611 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
612 * mipsread.c: Use string.h, not gdb_string.h.
613 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
614 * mn10300-tdep.c: Use string.h, not gdb_string.h.
615 * monitor.c: Use string.h, not gdb_string.h.
616 * moxie-tdep.c: Use string.h, not gdb_string.h.
617 * mt-tdep.c: Use string.h, not gdb_string.h.
618 * nbsd-tdep.c: Use string.h, not gdb_string.h.
619 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
620 * nto-procfs.c: Use string.h, not gdb_string.h.
621 * nto-tdep.c: Use string.h, not gdb_string.h.
622 * objc-lang.c: Use string.h, not gdb_string.h.
623 * objfiles.c: Use string.h, not gdb_string.h.
624 * opencl-lang.c: Use string.h, not gdb_string.h.
625 * osabi.c: Use string.h, not gdb_string.h.
626 * osdata.c: Use string.h, not gdb_string.h.
627 * p-exp.y: Use string.h, not gdb_string.h.
628 * p-lang.c: Use string.h, not gdb_string.h.
629 * p-typeprint.c: Use string.h, not gdb_string.h.
630 * parse.c: Use string.h, not gdb_string.h.
631 * posix-hdep.c: Use string.h, not gdb_string.h.
632 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
633 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
634 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
635 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
636 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
637 * printcmd.c: Use string.h, not gdb_string.h.
638 * procfs.c: Use string.h, not gdb_string.h.
639 * prologue-value.c: Use string.h, not gdb_string.h.
640 * python/py-auto-load.c: Use string.h, not gdb_string.h.
641 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
642 * ravenscar-thread.c: Use string.h, not gdb_string.h.
643 * regcache.c: Use string.h, not gdb_string.h.
644 * registry.c: Use string.h, not gdb_string.h.
645 * remote-fileio.c: Use string.h, not gdb_string.h.
646 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
647 * remote-mips.c: Use string.h, not gdb_string.h.
648 * remote-sim.c: Use string.h, not gdb_string.h.
649 * remote.c: Use string.h, not gdb_string.h.
650 * reverse.c: Use string.h, not gdb_string.h.
651 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
652 * ser-base.c: Use string.h, not gdb_string.h.
653 * ser-go32.c: Use string.h, not gdb_string.h.
654 * ser-mingw.c: Use string.h, not gdb_string.h.
655 * ser-pipe.c: Use string.h, not gdb_string.h.
656 * ser-tcp.c: Use string.h, not gdb_string.h.
657 * ser-unix.c: Use string.h, not gdb_string.h.
658 * serial.c: Use string.h, not gdb_string.h.
659 * sh-tdep.c: Use string.h, not gdb_string.h.
660 * sh64-tdep.c: Use string.h, not gdb_string.h.
661 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
662 * skip.c: Use string.h, not gdb_string.h.
663 * sol-thread.c: Use string.h, not gdb_string.h.
664 * solib-dsbt.c: Use string.h, not gdb_string.h.
665 * solib-frv.c: Use string.h, not gdb_string.h.
666 * solib-osf.c: Use string.h, not gdb_string.h.
667 * solib-spu.c: Use string.h, not gdb_string.h.
668 * solib-target.c: Use string.h, not gdb_string.h.
669 * solib.c: Use string.h, not gdb_string.h.
670 * somread.c: Use string.h, not gdb_string.h.
671 * source.c: Use string.h, not gdb_string.h.
672 * sparc-nat.c: Use string.h, not gdb_string.h.
673 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
674 * sparc-tdep.c: Use string.h, not gdb_string.h.
675 * sparc64-tdep.c: Use string.h, not gdb_string.h.
676 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
677 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
678 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
679 * spu-linux-nat.c: Use string.h, not gdb_string.h.
680 * spu-multiarch.c: Use string.h, not gdb_string.h.
681 * spu-tdep.c: Use string.h, not gdb_string.h.
682 * stabsread.c: Use string.h, not gdb_string.h.
683 * stack.c: Use string.h, not gdb_string.h.
684 * std-regs.c: Use string.h, not gdb_string.h.
685 * symfile.c: Use string.h, not gdb_string.h.
686 * symmisc.c: Use string.h, not gdb_string.h.
687 * symtab.c: Use string.h, not gdb_string.h.
688 * target.c: Use string.h, not gdb_string.h.
689 * thread.c: Use string.h, not gdb_string.h.
690 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
691 * tilegx-tdep.c: Use string.h, not gdb_string.h.
692 * top.c: Use string.h, not gdb_string.h.
693 * tracepoint.c: Use string.h, not gdb_string.h.
694 * tui/tui-command.c: Use string.h, not gdb_string.h.
695 * tui/tui-data.c: Use string.h, not gdb_string.h.
696 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
697 * tui/tui-file.c: Use string.h, not gdb_string.h.
698 * tui/tui-layout.c: Use string.h, not gdb_string.h.
699 * tui/tui-out.c: Use string.h, not gdb_string.h.
700 * tui/tui-regs.c: Use string.h, not gdb_string.h.
701 * tui/tui-source.c: Use string.h, not gdb_string.h.
702 * tui/tui-stack.c: Use string.h, not gdb_string.h.
703 * tui/tui-win.c: Use string.h, not gdb_string.h.
704 * tui/tui-windata.c: Use string.h, not gdb_string.h.
705 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
706 * typeprint.c: Use string.h, not gdb_string.h.
707 * ui-file.c: Use string.h, not gdb_string.h.
708 * ui-out.c: Use string.h, not gdb_string.h.
709 * user-regs.c: Use string.h, not gdb_string.h.
710 * utils.c: Use string.h, not gdb_string.h.
711 * v850-tdep.c: Use string.h, not gdb_string.h.
712 * valarith.c: Use string.h, not gdb_string.h.
713 * valops.c: Use string.h, not gdb_string.h.
714 * valprint.c: Use string.h, not gdb_string.h.
715 * value.c: Use string.h, not gdb_string.h.
716 * varobj.c: Use string.h, not gdb_string.h.
717 * vax-tdep.c: Use string.h, not gdb_string.h.
718 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
719 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
720 * windows-nat.c: Use string.h, not gdb_string.h.
721 * xcoffread.c: Use string.h, not gdb_string.h.
722 * xml-support.c: Use string.h, not gdb_string.h.
723 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
724 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
725
63ce7108
TT
7262013-11-18 Tom Tromey <tromey@redhat.com>
727
728 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
729 and strstr.
730 * gnulib/aclocal.m4: Update.
731 * gnulib/config.in: Update.
732 * gnulib/configure: Update.
733 * gnulib/import/Makefile.am: Update.
734 * gnulib/import/Makefile.in: Update.
735 * gnulib/import/errno.in.h: New.
736 * gnulib/import/intprops.h: New.
737 * gnulib/import/m4/errno_h.m4: New.
738 * gnulib/import/m4/gnulib-cache.m4: Update.
739 * gnulib/import/m4/gnulib-comp.m4: Update.
740 * gnulib/import/m4/strerror.m4: New.
741 * gnulib/import/m4/strstr.m4: New.
742 * gnulib/import/m4/sys_socket_h.m4: New.
743 * gnulib/import/strerror-override.c: New.
744 * gnulib/import/strerror-override.h: New.
745 * gnulib/import/strerror.c: New.
746 * gnulib/import/strstr.c: New.
747
a7c11ee1
TT
7482013-11-18 Tom Tromey <tromey@redhat.com>
749
750 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
751 multiple lines.
752
d0b5971a
JM
7532013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
754
755 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
756 * sparc-tdep.h: And its prototype.
757
758 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
759 function.
760 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
761
4b4589ad
PA
7622013-11-18 Pedro Alves <palves@redhat.com>
763
764 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
765 use unpack_pointer.
766
422ad5c2
JB
7672013-11-18 Joel Brobecker <brobecker@adacore.com>
768
769 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
770 to -list-features output.
771
b1370418
JB
7722013-11-17 Joel Brobecker <brobecker@adacore.com>
773
774 * dwarf2expr.h (struct dwarf_expr_context_funcs)
775 <read_addr_from_reg>: Renames "read_reg".
776 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
777 Adjust comment.
778 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
779 Use read_addr_from_reg in place of read_reg.
780 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
781 in place of read_reg.
782 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
783 dwarf_expr_read_reg.
784 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
785 with dwarf_expr_read_addr_from_reg.
786 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
787 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
788 needs_frame_read_addr_from_reg.
789
6ea71545
JK
7902013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
791
792 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
793
19a1b230
AA
7942013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
795
796 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
797 NULL.
798
805e1f19
TT
7992013-11-15 Tom Tromey <tromey@redhat.com>
800
801 PR c++/16117:
802 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
803 (classify_name): Likewise. Prefer a field of "this" over a
804 filename.
805 (classify_inner_name, yylex): Update.
806
0acf8b65
JB
8072013-11-15 Joel Brobecker <brobecker@adacore.com>
808
809 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
810 Extend the documentation a bit.
811 <get_reg_value>: New field.
812 * dwarf2loc.c (dwarf_expr_get_reg_value)
813 (needs_frame_get_reg_value): New functions.
814 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
815 callback.
816 * dwarf2-frame.c (get_reg_value): New function.
817 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
818 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
819 Use new callback to compute result_val.
820
ef1bc9e7
AM
8212013-11-15 Alan Modra <amodra@gmail.com>
822
823 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
824 (ppc64_desc_entry_point): ..this. Update comments here and at
825 call points.
826 (ppc64_standard_linkage1, ppc64_standard_linkage2,
827 ppc64_standard_linkage3): Update comments.
828 (ppc64_standard_linkage4, ppc64_standard_linkage5,
829 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
830 patterns.
831 (ppc64_standard_linkage4_target): New function.
832 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
833 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
834 nop match. Fix comment wrap.
835
36fa8042
PA
8362013-11-14 Pedro Alves <palves@redhat.com>
837
838 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
839 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
840
4f5d7f63
PA
8412013-11-14 Pedro Alves <palves@redhat.com>
842
843 * infrun.c (struct execution_control_state)
844 <stepped_after_stopped_by_watchpoint>: New field.
845 (get_inferior_stop_soon): New function.
846 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
847 moved to struct execution_control_state -- adjust. Use
848 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
849 new function.
850 (handle_signal_stop): New function, factored out from
851 handle_inferior_event.
852
47591c29
PA
8532013-11-14 Pedro Alves <palves@redhat.com>
854
855 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
856 return a boolean.
857 * breakpoint.c (bpstat_explains_signal): Adjust to return a
858 boolean.
859 (explains_signal_watchpoint, base_breakpoint_explains_signal):
860 Adjust to return a boolean.
861 * breakpoint.h (enum bpstat_signal_value): Delete.
862 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
863 (bpstat_explains_signal): Likewise.
864 * infrun.c (handle_inferior_event) <random signal checks>:
865 bpstat_explains_signal now returns a boolean - adjust. No longer
866 consider hiding signals.
867
bac7d97b
PA
8682013-11-14 Pedro Alves <palves@redhat.com>
869
870 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
871 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
872 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
873 BPSTAT_SIGNAL_HIDE.
874 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
875 instead of BPSTAT_SIGNAL_HIDE.
876 * infrun.c (handle_inferior_event): Rework random signal checks.
877
ce12b012
PA
8782013-11-14 Pedro Alves <palves@redhat.com>
879
880 * infrun.c (struct execution_control_state): Remove
881 'random_signal' field.
882 (handle_syscall_event): Use bpstat_causes_stop instead of
883 bpstat_explains_signal. Don't set ecs->random_signal.
884 (handle_inferior_event): New 'random_signal' local.
885 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
886 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
887 bpstat_explains_signal. Don't set ecs->random_signal.
888 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
889 ecs->random_signal.
890
05ba8510
PA
8912013-11-14 Pedro Alves <palves@redhat.com>
892
893 * infrun.c (handle_inferior_event): Move comment from the
894 function's body to the function's description, adjusted.
895
5c09a2c5
PA
8962013-11-14 Pedro Alves <palves@redhat.com>
897
898 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
899 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
900 Assert we never fall through out of the TARGET_WAITKIND_LOADED
901 case.
902
91822956
TT
9032013-11-14 Tom Tromey <tromey@redhat.com>
904
905 * python/py-linetable.c (ltpy_has_line)
906 (ltpy_get_all_source_lines): Fix loop termination condition.
907
403cb6b1
JB
9082013-11-14 Joel Brobecker <brobecker@adacore.com>
909
910 * mi/mi-parse.h (struct mi_parse) <language>: New field.
911 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
912 PARSE->LANGUAGE during command execution, if set.
913 * mi/mi-parse.c: Add "language.h" #include.
914 (mi_parse): Add parsing of "--language" command option.
915
916 * NEWS: Add entry mentioning the new "--language" command option.
917
b5be8ce0
JB
9182013-11-14 Pedro Alves <palves@redhat.com>
919 Joel Brobecker <brobecker@adacore.com>
920
921 * cli/cli-utils.h (extract_arg_const): Add declaration.
922 * cli/cli-utils.c (extract_arg_const): New function.
923 (extract_arg): Reimplement using extract_arg_const.
924
671afef6
JB
9252013-11-14 Joel Brobecker <brobecker@adacore.com>
926
927 * language.h: Add "symtab.h" #include.
928
6c1b0f7b
DE
9292013-11-13 Doug Evans <xdje42@gmail.com>
930
931 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
932 specific breakpoints, don't evaluate breakpoint condition if
933 different thread.
934
74921315
KS
9352013-11-13 Keith Seitz <keiths@redhat.com>
936
248ace2e 937 PR c++/7935
74921315
KS
938 PR c++/10541
939 * cp-support.c (insepct_type): Add support for substituting
940 namespace aliases, too.
941 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
942 for DW_TAG_imported_declaration.
943 (add_partial_symbol): Likewise.
944 (process_die): Handle namespace aliases with
945 read_namespace_alias.
946 (die_needs_namespace): Add DW_TAG_imported_declaration.
947 (read_namespace_alias): New function.
948 (load_partial_dies): Load DW_TAG_imported_declaration, too.
949 (new_symbol_full): Handle DW_TAG_imported_declaration.
950
793156e6
KS
9512013-11-13 Keith Seitz <keiths@redhat.com>
952
953 * p-exp.y (uptok): Make first parameter const.
954 (yylex): Make `tokstart' and `tokptr' const.
955 Don't copy the lexer input to a temporary buffer.
956 Make `p' const.
957 Remove const workaround for parse_escape.
958 Create a temporary buffer for a convenience variable instead
959 of doing in-place modification of the input.
960 If a match is found with a different case from the input,
961 do not change the input at all.
962 Use `tmp' to construct the resultant stoken instead of
963 `tokstart'.
964
c42bd95a
DE
9652013-11-13 Doug Evans <xdje42@gmail.com>
966
967 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
968
93973826
JB
9692013-11-13 Joel Brobecker <brobecker@adacore.com>
970
971 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
972 entry with "ada-exceptions".
973
846060df
JB
9742013-11-13 Joel Brobecker <brobecker@adacore.com>
975
976 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
977 after re-initialization of OBJFILE's obstack.
978
5efd1b2b 9792013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
980
981 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
982 bs->stop != 0 on entry. Update function comment. Simplify early
983 exit for frame mismatch. Reindent rest of function.
984
ee7615e1
AA
9852013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
986
987 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
988 NULL.
989
8943b874
DE
9902013-11-12 Doug Evans <dje@google.com>
991
992 Work around gold/15646.
993 * dwarf2read.c (read_index_from_section): Update comment.
994 (struct dw2_symtab_iterator): New member global_seen.
995 (dw2_symtab_iter_init): Initialize it.
996 (dw2_symtab_iter_next): Skip duplicate global symbols.
997 (dw2_expand_symtabs_matching): Ditto.
998
a8a9844d
JB
9992013-11-12 Joel Brobecker <brobecker@adacore.com>
1000
1001 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1002 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1003 command.
1004 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1005 (mi_cmd_info_ada_exceptions): New function.
1006 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1007
778865d3
JB
10082013-11-12 Joel Brobecker <brobecker@adacore.com>
1009
1010 * ada-lang.h: #include "vec.h".
1011 (struct ada_exc_info): New.
1012 (ada_exc_info): New typedef.
1013 (DEF_VEC_O(ada_exc_info)): New vector.
1014 (ada_exceptions_list): Add declaration.
1015 * ada-lang.c (ada_is_exception_sym)
1016 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1017 (sort_remove_dups_ada_exceptions_list)
1018 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1019 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1020 (ada_exceptions_list_1, ada_exceptions_list)
1021 (info_exceptions_command): New function.
1022 (_initialize_ada_language): Add "info exception" command.
1023
bc79de95
PM
10242013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1025
1026 PR python/15629
1027 * NEWS: Add linetable feature.
1028 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1029 * python/py-linetable.c: New file.
1030 * python/py-symtab.c (stpy_get_linetable): New function.
1031 * python/python-internal.h (symtab_to_linetable_object): Declare.
1032 (gdbpy_initialize_linetable): Ditto.
1033 * python/python.c (_initialize_python): Call
1034 gdbpy_initialize_linetable.
1035
2df4d1d5
JB
10362013-11-11 Joel Brobecker <brobecker@adacore.com>
1037
1038 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1039 the documentation of fields "except_string" and "condition".
1040 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1041 CONDITION on the heap before passing it to
1042 create_ada_exception_catchpoint.
1043 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1044 CONDITION.
1045
99c1d451
TT
10462013-11-11 Tom Tromey <tromey@redhat.com>
1047
1048 * config.in, configure: Rebuild.
1049 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1050
8ca5801b
JB
10512013-11-11 Joel Brobecker <brobecker@adacore.com>
1052
1053 * remote-sim.c (gdbsim_detach): Break declaration into
1054 shorter lines. No code change.
1055
7a06d430
EBM
10562013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1057
1058 * remote-sim.c (gdbsim_detach): Fix prototype.
1059
73be47f5
DE
10602013-11-08 Doug Evans <dje@google.com>
1061
1062 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1063 (create_debug_types_hash_table): Only print debugging messages for
1064 each TU if dwarf2-read >= 2.
1065 (process_queue): Ditto.
1066 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1067 Update doc string.
1068
a18d8f10
TT
10692013-11-08 Tom Tromey <tromey@redhat.com>
1070
1071 * configure: Rebuild.
1072 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1073
9467110b
TT
10742013-11-08 Tom Tromey <tromey@redhat.com>
1075
1076 * configure, config.in: Rebuild.
1077 * configure.ac: Remove unused configury.
1078
69706679
TT
10792013-11-08 Tom Tromey <tromey@redhat.com>
1080
1081 * m32c-tdep.c: Use gdb_string.h.
1082
9b4bea72
TT
10832013-11-08 Tom Tromey <tromey@redhat.com>
1084
1085 * configure, config.in: Rebuild.
1086 * configure.ac: Remove all link.h-related checks.
1087
3266f10b
TT
10882013-11-08 Tom Tromey <tromey@redhat.com>
1089
1090 * acinclude.m4: Include common.m4.
1091 * common/common.m4: New file.
1092 * configure, config.in: Rebuild.
1093 * configure.ac: Use GDB_AC_COMMON.
1094
db0fec5c
DE
10952013-11-08 Doug Evans <dje@google.com>
1096
1097 * NEWS: Mention that "set debug symtab-create" now accepts a
1098 verbosity level.
1099 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1100 to set the symtab's primary flag.
1101 * jit.c (finalize_symtab): Ditto.
1102 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1103 * symfile.c (allocate_symtab): Only print debugging messages for
1104 symtab_create_debug levels 2 and higher.
1105 * symtab.c (symtab_create_debug): Change type to unsigned int.
1106 (set_symtab_primary): New function.
1107 (_initialize_symtab): Change "set debug symtab-create" to a
1108 zuinteger option.
1109 * symtab.h (set_symtab_primary): Declare.
1110 (symtab_create_debug): Update decl.
1111
52554a0e
TT
11122013-11-08 Tom Tromey <tromey@redhat.com>
1113
1114 * aix-thread.c (aix_thread_detach): Update.
1115 * corelow.c (core_detach): Update.
1116 * darwin-nat.c (darwin_detach): Update.
1117 * dec-thread.c (dec_thread_detach): Update.
1118 * gnu-nat.c (gnu_detach): Update.
1119 * go32-nat.c (go32_detach): Update.
1120 * inf-ptrace.c (inf_ptrace_detach): Update.
1121 * inf-ttrace.c (inf_ttrace_detach): Update.
1122 * linux-fork.c (linux_fork_detach): Update.
1123 * linux-fork.h (linux_fork_detach): Update.
1124 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1125 local for const-correctness.
1126 * linux-thread-db.c (thread_db_detach): Update.
1127 * monitor.c (monitor_detach): Update.
1128 * nto-procfs.c (procfs_detach): Update.
1129 * procfs.c (procfs_detach): Update.
1130 * record.c (record_detach): Update.
1131 * record.h (record_detach): Update.
1132 * remote-m32r-sdi.c (m32r_detach): Update.
1133 * remote-mips.c (mips_detach): Update.
1134 * remote-sim.c (gdbsim_detach): Update.
1135 * remote.c (remote_detach_1, remote_detach)
1136 (extended_remote_detach): Update.
1137 * sol-thread.c (sol_thread_detach): Update.
1138 * target.c (target_detach): Make "args" const.
1139 (init_dummy_target): Update.
1140 * target.h (struct target_ops) <to_detach>: Make argument const.
1141 (target_detach): Likewise.
1142 * windows-nat.c (windows_detach): Update.
1143
204b5331
DE
11442013-11-07 Doug Evans <dje@google.com>
1145
1146 PR 11786
1147 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1148 and align fields for PT_GNU_RELRO segments.
1149
92e32e33
PM
11502013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1151
ef1bc9e7
AM
1152 PR python/15747
1153 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1154
f76c27b5
PM
11552013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1156
1157 * NEWS: Document Python temporary breakpoint support.
1158 * python/py-breakpoint.c (bppy_get_temporary): New function.
1159 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1160 to temporary if True.
1161
d52cd232
JM
11622013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1163
1164 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1165 removed to allow analyzing unconditional branch instructions
1166 with PC-relative offsets of zero.
1167
fa4d0c40
YQ
11682013-11-07 Yao Qi <yao@codesourcery.com>
1169
1170 * mi/mi-cmd-var.c: Include "language.h".
1171 (mi_cmd_var_info_expression): Get language name from
1172 language_defn.
1173 * varobj.c (varobj_language_string): Remove.
1174 (variable_language): Remove declaration.
1175 (languages): Remove.
1176 (varobj_get_language): Change the type of return value.
1177 (variable_language): Remove.
1178 * varobj.h (enum varobj_languages): Remove.
1179 (varobj_language_string): Remove declaration.
1180 (varobj_get_language): Update declaration.
1181
6abde28f
YQ
11822013-11-07 Yao Qi <yao@codesourcery.com>
1183
1184 * language.h (struct language_defn) <la_natural_name>: New
1185 field.
1186 * ada-lang.c (ada_language_defn): Initialize field
1187 'la_natural_name'.
1188 * c-lang.c (c_language_defn): Likewise.
1189 (cplus_language_defn, asm_language_defn): Likewise.
1190 * d-lang.c (d_language_defn): Likewise.
1191 * f-lang.c (f_language_defn): Likewise.
1192 * go-lang.c (go_language_defn): Likewise.
1193 * jv-lang.c (java_language_defn): Likewise.
1194 * language.c (unknown_language_defn ): Likewise.
1195 (auto_language_defn): Likewise.
1196 * m2-lang.c (m2_language_defn): Likewise.
1197 * objc-lang.c (objc_language_defn): Likewise.
1198 * opencl-lang.c (opencl_language_defn): Likewise.
1199 * p-lang.c (pascal_language_defn): Likewise.
1200
27cd387b
YQ
12012013-11-07 Yao Qi <yao@codesourcery.com>
1202
1203 * language.c (language_str): Return const char *.
1204 (add_language): Add const to 'language_names'
1205 * language.h (struct language_defn) <la_name>: Add const.
1206 (language_str: Update declaration.
1207
6682d959
AA
12082013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1209
1210 * s390-linux-nat.c (s390_read_description): Consider the TE field
1211 in the HWCAP for determining 'have_regset_tdb'.
1212
b9502d3f
WN
12132013-11-06 Will Newton <will.newton@linaro.org>
1214
1215 PR gdb/12866
1216 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1217 values. (read_partial_die): Likewise.
1218
840da61a
MB
12192013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1220
1221 PR cli/16122
1222 * top.c (command_line_input): Unify interactivity tests to use
1223 input_from_terminal_p.
1224 * event-top.c (command_line_handler): Likewise.
1225
7636ccf9
YQ
12262013-11-06 Yao Qi <yao@codesourcery.com>
1227
1228 * Makefile.in (check-perf): New target.
1229
12b27276
WN
12302013-11-05 Will Newton <will.newton@linaro.org>
1231
1232 PR gdb/7670
1233 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1234 (arm_print_float_info): Likewise.
1235
67c059c2
AB
12362013-11-04 Anton Blanchard <anton@samba.org>
1237
1238 * target.c (memory_xfer_partial): Cap write to 4KB.
1239
0569175e
TSD
12402013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1241
1242 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1243 probe scan even when the arch provides no get_longjmp_target.
1244
b18e90f5
PA
12452013-10-31 Pedro Alves <palves@redhat.com>
1246
1247 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1248 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1249 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1250 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1251 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1252 <bpstat handling>: If the bpstat chain wants the signal to be
1253 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1254 GDB_SIGNAL_TRAP.
1255
638aa5a1
AB
12562013-10-31 Andrew Burgess <aburgess@broadcom.com>
1257
1258 * breakpoint.c (update_watchpoint): Update error message and add
1259 an additional error message.
1260
0e5fae36
UW
12612013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1262
1263 * s390-tdep.h: Rename to...
1264 * s390-linux-tdep.h: ...here.
1265 * s390-tdep.c: Rename to...
1266 * s390-linux-tdep.c: ...here. Adjust #include.
1267 * s390-nat.c: Rename to...
1268 * s390-linux-nat.c: ...here. Adjust #include.
1269 * config/s390/s390.mh: Rename to...
1270 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1271 s390-linux-nat.o.
1272 * configure.host: Reflect host rename "s390" -> "linux".
1273 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1274 * Makefile.in (ALL_TARGET_OBS): Likewise.
1275 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1276 s390-linux-tdep.h.
1277 (ALLDEPFILES): Reflect rename of .c files.
1278
34201ae3
UW
12792013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1280
1281 * s390-nat.c: Whitespace cleanup.
1282 * s390-tdep.c: Likewise.
1283 * s390-tdep.h: Remove empty line at end of file.
1284
e17aaa33
MR
12852013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1286
1287 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1288 siginfo_size.
1289
aee17e42
TT
12902013-10-29 Tom Tromey <tromey@redhat.com>
1291
1292 * utils.c (reg): Move undefinition...
1293 * gdb_curses.h: ... here. Update comment to mention AIX.
1294
9ac69859
NB
12952013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1296
1297 * exec.h (add_target_sections_of_objfile): New declaration.
1298 * exec.c (add_target_sections_of_objfile): New function.
1299 * symfile.c (add_symbol_file_command): Update current target sections.
1300 (remove_symbol_file_command): New command.
1301 (symfile_free_objfile): New function.
1302 (_initialize_symfile): Register observer for free_objfile events.
1303 * NEWS: Add description of the remove-symbol-file command.
1304 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1305 * objfiles.c (free_objfile): Notify free_objfile.
1306 (is_addr_in_objfile): New function.
1307 * objfiles.h (is_addr_in_objfile): New declaration.
1308 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1309 events instead of solib_unloaded events.
1310 (_initialize_printcmd): Register observer for free_objfile instead
1311 of solib_unloaded notifications.
1312 * solib.c (remove_user_added_objfile): New function.
1313 (_initialize_symfile): Add remove-symbol-file.
1314
f69d9aef
AB
13152013-10-29 Andrew Burgess <aburgess@broadcom.com>
1316
1317 * infcmd.c (default_print_one_register_info): Use val_print to
1318 print all values even optimized out or unavailable ones. Don't
1319 try to print a raw form of optimized out or unavailable values.
1320
487ad57c
YQ
13212013-10-29 Yao Qi <yao@codesourcery.com>
1322
1323 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1324 parameter 'arg' instead of from program_space_data.
1325 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1326 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1327 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1328 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1329 * inflow.c (inflow_inferior_data_cleanup): Get data from
1330 parameter 'arg' instead of inferior_data.
1331 * registry.h: Add comments.
1332
3c4797ba
PA
13332013-10-28 Pedro Alves <palves@redhat.com>
1334
1335 * breakpoint.c (watchpoints_triggered)
1336 <!target_stopped_data_address>: Hardcode return 1.
1337
cdaa5b73
PA
13382013-10-28 Pedro Alves <palves@redhat.com>
1339
1340 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1341 level and reindent.
1342
94c57d6a
PA
13432013-10-28 Pedro Alves <palves@redhat.com>
1344
1345 * infrun.c (process_event_stop_test): New function, factored out
1346 from handle_inferior_event.
1347 (handle_inferior_event): 'process_event_stop_test' is now a
1348 function instead of a goto label -- adjust.
1349
fcf3daef
PA
13502013-10-28 Pedro Alves <palves@redhat.com>
1351
1352 * infrun.c (handle_inferior_event): Move process_event_stop_test
1353 goto label to the else branch of the ecs->random_signal check,
1354 along with FRAME and GDBARCH re-fetching.
1355
c447ac0b
PA
13562013-10-28 Pedro Alves <palves@redhat.com>
1357
1358 * infrun.c (switch_back_to_stepped_thread): New function, factored
1359 out from handle_inferior_event.
1360 (handle_inferior_event): Adjust to call
1361 switch_back_to_stepped_thread. Call it also at the tail of the
1362 random signal handling, and return, instead of also handling
1363 random signals just before the stepping tests.
1364
f05e4c11
PA
13652013-10-28 Pedro Alves <palves@redhat.com>
1366
1367 * infrun.c (clear_stop_func): Delete.
1368 (handle_inferior_event): Don't call clear_stop_func and don't
1369 clear 'ecs->random_signal'.
1370
ca20d462
YQ
13712013-10-27 Yao Qi <yao@codesourcery.com>
1372
1373 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1374 (varobj_create, varobj_get_path_expr): Update.
1375 (varobj_value_has_mutated, varobj_update): Likewise.
1376 (create_child_with_value, new_root_variable): Likewise.
1377 (number_of_children, name_of_variable): Likewise.
1378 (value_of_child, my_value_of_variable): Likewise.
1379 (varobj_value_is_changeable_p): Likewise.
1380
a53b64ea
YQ
13812013-10-25 Yao Qi <yao@codesourcery.com>
1382
1383 * language.h (struct lang_varobj_ops): Declare.
1384 (struct language_defn) <la_varobj_ops>: New field.
1385 * ada-lang.c: Include "varobj.h"
1386 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1387 ada_varobj_ops.
1388 * c-lang.c: Include "varobj.h"
1389 (c_language_defn): Initialize field 'la_varobj_ops' with
1390 c_varobj_ops.
1391 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1392 cplus_varobj_ops.
1393 (asm_language_defn): Initialize field 'la_varobj_ops' with
1394 default_varobj_ops.
1395 (minimal_language_defn): Likewise.
1396 * d-lang.c (d_language_defn): Likewise.
1397 * f-lang.c (f_language_defn): Likewise.
1398 * go-lang.c (go_language_defn): Likewise.
1399 * m2-lang.c (m2_language_defn): Likewise.
1400 * objc-lang.c (objc_language_defn): Likewise.
1401 * opencl-lang.c (opencl_language_defn): Likewise.
1402 * p-lang.c (pascal_language_defn): Likewise.
1403 * language.c (unknown_language_defn): Likewise.
1404 (auto_language_defn): Likewise.
1405 (local_language_defn): Likewise.
1406 * jv-lang.c (java_language_defn): Initialize field
1407 'la_varobj_ops' with java_varobj_ops.
1408 * varobj.c (varobj_create): Update.
1409 * varobj.h (default_varobj_ops): Define macro.
1410
686d4def
PA
14112013-10-25 Pedro Alves <palves@redhat.com>
1412
1413 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1414 static field value.
1415 (cp_print_static_field): If the value is entirely optimized out,
1416 print <optimized out> here.
1417 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1418 static field value.
1419 * p-valprint.c (pascal_object_print_static_field): If the value is
1420 entirely optimized out, print <optimized out> here.
1421 * valops.c (do_search_struct_field)
1422 (value_struct_elt_for_reference): No longer handle a NULL static
1423 field value.
1424 * value.c (value_static_field): Return an optimized out value
1425 instead of NULL.
1426
6c177e28
YQ
14272013-10-25 Yao Qi <yao@codesourcery.com>
1428
1429 * remote.c (remote_traceframe_info): Return early if
1430 traceframe is not selected.
1431
98322bfa
YQ
14322013-10-25 Yao Qi <yao@codesourcery.com>
1433
1434 * tracepoint.c (traceframe_fun): Remove.
1435 (traceframe_sal): Remove.
1436 (set_traceframe_context): Add local variables.
1437
6ba1f115
JB
14382013-10-25 Joel Brobecker <brobecker@adacore.com>
1439
1440 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1441 and parameter name.
1442
bbe769cc
MR
14432013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1444
1445 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1446 failure from register information collection.
1447
72ee4495 14482013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1449
1450 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1451 member.
1452 (linux_corefile_thread_callback): Update accordingly.
1453 (linux_make_corefile_notes): Likewise.
1454
98882a26
PA
14552013-10-24 Pedro Alves <palves@redhat.com>
1456
1457 * NEWS (New options): Mention set/show startup-with-shell.
1458 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1459 instead of 3.
1460 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1461 startup-with-shell'.
1462 (show_startup_with_shell): New function.
1463 (_initialize_fork_child): Register the set/show startup-with-shell
1464 commands.
1465 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1466 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1467 * procfs.c (procfs_init_inferior): Remove comment.
1468 * infcmd.c (startup_with_shell): New global.
1469 * inferior.h (startup_with_shell): Declare global.
1470 (STARTUP_WITH_SHELL): Delete.
1471 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1472
c9737c08
PA
14732013-10-23 Pedro Alves <palves@redhat.com>
1474
1475 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1476 * common/signals.c: Include "gdb_assert.h".
1477 (signals): New field 'symbol'.
1478 (SET): Use the 'symbol' parameter.
1479 (gdb_signal_to_symbol_string): New function.
1480 * infrun.c (handle_inferior_event) <random signal>: In debug
1481 output, print the random signal enum as string in addition to its
1482 number.
1483 * target/waitstatus.c (target_waitstatus_to_string): Print the
1484 signal's enum value as string instead of the (POSIX) signal name.
1485
f60db4f0
GB
14862013-10-23 Gary Benson <gbenson@redhat.com>
1487
1488 PR 16013
1489 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1490 from 32 to 18. Adjusted fscanf format string accordingly.
1491 (Avoids leaving cmd unterminated.)
1492 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1493 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1494 that local_address and remote_address will not overflow.
1495 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1496 leaving dependencies unterminated. Parse size as "%u" to match
1497 definition.
1498
6d3e7a94
PA
14992013-10-22 Pedro Alves <palves@redhat.com>
1500
1501 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1502 set ecs->random signal.
1503
42ec045f
PA
15042013-10-22 Pedro Alves <palves@redhat.com>
1505
1506 * infrun.c (keep_going): Update comments.
1507
15082013-10-22 Pedro Alves <palves@redhat.com>
1509
1510 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1511 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1512
15132013-10-22 Pedro Alves <palves@redhat.com>
1514
1515 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1516 GDB_EXC_BAD_ACCESS.
1517 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1518 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1519 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1520 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1521 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1522 (GDB_SIGNAL_LAST): Change description string.
1523 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1524 Adjust to signal renaming.
1525 * darwin-nat.c (darwin_decode_message): Likewise.
1526
c8fde1b1
JM
15272013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1528
1529 * MAINTAINERS (Write After Approval): Add myself to the list.
1530
e8369a73
AB
15312013-10-18 Andrew Burgess <aburgess@broadcom.com>
1532
1533 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1534 forced off, downgrade them to software watchpoints if possible,
1535 and error out if not possible.
1536 (watch_command_1): Move watchpoint type selection closer to
1537 watchpoint creation, and extend the comments.
1538
776f04fa
PA
15392013-10-18 Pedro Alves <palves@redhat.com>
1540
1541 PR gdb/16062
1542 * infrun.c (handle_inferior_event): Keep going if we got a random
1543 signal we should not stop for, instead of falling through to the
1544 step tests.
1545
0c6faab5
YQ
15462013-10-18 Yao Qi <yao@codesourcery.com>
1547
1548 * c-varobj.c (cplus_number_of_children): Fix indentation.
1549
50b34a18
TT
15502013-10-17 Tom Tromey <tromey@redhat.com>
1551
1552 PR gdb/15995:
1553 * printcmd.c (printcmd): Call gdb_flush.
1554
5c4c8a59
TT
15552013-10-17 Tom Tromey <tromey@redhat.com>
1556
1557 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1558 (elf_locate_sections): Update.
1559
c4124bf1
YQ
15602013-10-17 Yao Qi <yao@codesourcery.com>
1561
1562 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1563 * ada-varobj.c: Remove the include of ada-varobj.h.
1564 (ada_varobj_get_number_of_children): Declare.
1565 (ada_varobj_get_name_of_child): Make it static.
1566 (ada_varobj_get_path_expr_of_child): Likewise.
1567 (ada_varobj_get_value_of_child): Likewise.
1568 (ada_varobj_get_type_of_child): Likewise.
1569 (ada_varobj_get_value_of_array_variable): Likewise.
1570 * ada-varobj.h: Remove.
1571
99ad9427
YQ
15722013-10-17 Yao Qi <yao@codesourcery.com>
1573
1574 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1575 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1576 * ada-varobj.c: Include "varobj.h".
1577 (ada_number_of_children): New. Moved from varobj.c.
1578 (ada_name_of_variable, ada_name_of_child): Likewise.
1579 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1580 (ada_type_of_child, ada_value_of_variable): Likewise.
1581 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1582 (ada_varobj_ops): New.
1583 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1584 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1585 * gdbtypes.h (get_target_type): Declare.
1586 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1587 "ada-lang.h".
1588 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1589 (ANONYMOUS_UNION_NAME): Likewise.
1590 (get_type, get_value_type, get_target_type): Remove declarations.
1591 (value_get_print_value, varobj_value_get_print_value): Likewise.
1592 (c_number_of_children, c_name_of_variable): Likewise.
1593 (c_name_of_child, c_path_expr_of_child): Likewise.
1594 (c_value_of_child, c_type_of_child): Likewise.
1595 (c_value_of_variable, cplus_number_of_children): Likewise.
1596 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1597 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1598 (cplus_value_of_child, cplus_type_of_child): Likewise.
1599 (cplus_value_of_variable, java_number_of_children): Likewise.
1600 (java_name_of_variable, java_name_of_child): Likewise.
1601 (java_path_expr_of_child, java_value_of_child): Likewise.
1602 (java_type_of_child, java_value_of_variable): Likewise.
1603 (ada_number_of_children, ada_name_of_variable): Likewise.
1604 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1605 (ada_value_of_child, ada_type_of_child): Likewise.
1606 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1607 (ada_value_has_mutated): Likewise.
1608 (struct language_specific): Move it to varobj.h.
1609 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1610 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1611 Callers update.
1612 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1613 Make it extern.
1614 (is_anonymous_child): Move it to c-varobj.c and rename to
1615 varobj_is_anonymous_child. Caller update.
1616 (get_type): Move it to c-varobj.c.
1617 (get_value_type): Rename it varobj_get_value_type. Make it
1618 extern.
1619 (get_target_type): Move it gdbtypes.c.
1620 (varobj_formatted_print_options): New function.
1621 (value_get_print_value): Rename it to
1622 varobj_value_get_print_value and make it extern.
1623 (varobj_value_is_changeable_p): Make it extern.
1624 (adjust_value_for_child_access): Move it to c-varobj.c.
1625 (default_value_is_changeable_p): Rename it to
1626 varobj_default_value_is_changeable_p. Make it extern.
1627 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1628 (c_name_of_child, c_path_expr_of_child): Likewise.
1629 (c_value_of_child, c_type_of_child): Likewise.
1630 (c_value_of_variable, cplus_number_of_children): Likewise.
1631 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1632 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1633 (cplus_value_of_child, cplus_type_of_child): Likewise.
1634 (cplus_value_of_variable): Likewise.
1635 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1636 (java_name_of_child, java_path_expr_of_child): Likewise.
1637 (java_value_of_child, java_type_of_child): Likewise.
1638 (java_value_of_variable): Likewise.
1639 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1640 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1641 (ada_value_of_child, ada_type_of_child): Likewise.
1642 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1643 (ada_value_has_mutated): Likewise.
1644 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1645 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1646 (c_varobj_ops, cplus_varobj_ops): Declare.
1647 (java_varobj_ops, ada_varobj_ops): Declare.
1648 (varobj_default_value_is_changeable_p): Declare.
1649 (varobj_value_is_changeable_p): Declare.
1650 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1651 (varobj_get_path_expr_parent): Declare.
1652 (varobj_value_get_print_value): Declare.
1653 (varobj_formatted_print_options): Declare.
1654 (varobj_restrict_range): Declare.
1655
c8a62302
LM
16562013-10-17 Luis Machado <lgustavo@codesourcery.com>
1657
1658 * target/waitstatus.h (target_waitkind): Remove spurious
1659 character from the comments.
1660
eade6471
JB
16612013-10-17 Joel Brobecker <brobecker@adacore.com>
1662
1663 * gdbarch.sh (get_longjmp_target): Add method documentation.
1664 * gdbarch.h: Regenerate.
1665
5411b26c
TT
16662013-10-16 Tom Tromey <tromey@redhat.com>
1667
1668 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1669 label.
1670
87326c87
LM
16712013-10-16 Luis Machado <lgustavo@codesourcery.com>
1672
1673 * gcore.in: Call GDB using the full path to the gcore script.
1674 Error out if the GDB binary is not found.
1675
fd0a4d76
SDJ
16762013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1677
1678 PR gdb/16014
1679 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1680 sizeof.
1681
d92f7ee3
SDJ
16822013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1683
1684 PR gdb/16042
1685 * target.c (target_disable_btrace): Fix invalid return value for
1686 void function.
1687 (target_teardown_btrace): Likewise.
1688
bb5ce47a
YQ
16892013-10-14 Yao Qi <yao@codesourcery.com>
1690
1691 * varobj.c (struct varobj): Move most of the fields to
1692 varobj.h.
1693 (struct varobj_dynamic): New struct.
1694 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1695 (varobj_has_more): Likewise.
1696 (dynamic_varobj_has_child_method): Likewise.
1697 (update_dynamic_varobj_children): Likewise.
1698 (varobj_get_num_children): Likewise.
1699 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1700 (install_new_value_visualizer): Likewise.
1701 (install_new_value_visualizer, install_new_value): Likewise.
1702 (varobj_update, new_variable, free_variable): Likewise.
1703 (my_value_of_variable, value_get_print_value): Likewise.
1704 (install_visualizer): Change the type of parameter 'var' to
1705 'struct varobjd_dynamic *'. Callers update.
1706 * varobj.h (struct varobj): Moved from varobj.c.
1707 (struct varobj) <dynamic>: New field.
1708
0b76b0ce
SL
17092013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1710
1711 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1712 as the preferred name of r30.
1713 * nios2-linux-tdep.c (reg_offsets): Likewise.
1714 * features/nios2-cpu.xml: Likewise.
1715 * features/nios2-linux.c: Regenerated.
1716 * features/nios2.c: Regenerated.
1717 * regformats/nios2-linux.dat: Regenerated.
1718
4856b6bc
JK
17192013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1720
1721 Canonicalize directories for EXEC_FILENAME.
1722 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1723 exec_filename.
1724 * utils.c (gdb_realpath_keepfile): New function.
1725 * utils.h (gdb_realpath_keepfile): New declaration.
1726
9b557b58
DE
17272013-10-11 Doug Evans <dje@google.com>
1728
1729 * Makefile.in (GDBFLAGS): New variable.
1730 (run): New rule.
1731
ce13fade
JB
17322013-10-11 Joel Brobecker <brobecker@adacore.com>
1733
1734 * NEWS: Add entry documenting the new "-catch-assert" and
1735 "-catch-exception" GDB/MI commands.
1736
349774ef
JB
17372013-10-11 Joel Brobecker <brobecker@adacore.com>
1738
1739 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1740 "enabled".
1741 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1742 "enabled". Set B->ENABLE_STATE accordingly.
1743 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1744 ada-lang.c.
1745 (create_ada_exception_catchpoint): Add declaration.
1746 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1747 (create_ada_exception_catchpoint): Make non-static. Add new
1748 parameter "disabled". Use it in call to
1749 init_ada_exception_breakpoint.
1750 (catch_ada_exception_command): Add parameter "enabled" in call
1751 to create_ada_exception_catchpoint.
1752 (catch_assert_command): Likewise.
1753
1754 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1755 Add declarations.
1756 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1757 "catch-exception" commands.
1758 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1759 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1760
761269c8
JB
17612013-10-11 Joel Brobecker <brobecker@adacore.com>
1762
1763 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1764 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1765 of all its enumerates with "ada_". Update the rest of this
1766 file throughout.
1767
b4a5b78b
JB
17682013-10-11 Joel Brobecker <brobecker@adacore.com>
1769
1770 * ada-lang.c (ada_decode_exception_location): Delete.
1771 (create_ada_exception_catchpoint): Remove arguments "sal",
1772 "addr_string" and "ops". Add argument "ex_kind" instead.
1773 Adjust implementation accordingly, calling ada_exception_sal
1774 to get the entities it no longer gets passed as arguments.
1775 Document the function's arguments.
1776 (catch_ada_exception_command): Use catch_ada_exception_command_split
1777 instead of ada_decode_exception_location, and update call to
1778 create_ada_exception_catchpoint.
1779 (catch_ada_assert_command_split): Renames
1780 ada_decode_assert_location. Remove parameters "addr_string" and
1781 "ops", and now returns void. Adjust implementation accordingly.
1782 Update the function documentation.
1783 (catch_assert_command): Use catch_ada_assert_command_split
1784 instead of ada_decode_assert_location. Update call to
1785 create_ada_exception_catchpoint.
1786
7ad1d32c 17872013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1788
1789 * utils.h (perror_warning_with_name): Add declaration.
1790 * utils.c (perror_warning_with_name): New function.
1791 * cli/cli-cmds.c (source_script_with_search): Add call to
1792 perror_warning_with_name if from_tty is nul.
1793
7ad1d32c 17942013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1795
1796 * utils.c (perror_string): New function, extracted out of
1797 throw_perror_with_name.
1798 (throw_perror_with_name): Rework to use perror_string.
1799
bcc75809
YQ
18002013-10-11 Yao Qi <yao@codesourcery.com>
1801
1802 * remote.c (discard_pending_stop_replies_in_queue): Update
1803 declaration.
1804 (struct stop_reply) <rs>: New field.
1805 (remove_stop_reply_of_remote_state): New function.
1806 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1807 Callers update. Pass remove_stop_reply_of_remote_state to
1808 QUEUE_iterate.
1809 (remote_parse_stop_reply): Initialize field 'rs'.
1810
05feb193
WN
18112013-10-10 Will Newton <will.newton@linaro.org>
1812
1813 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1814 linux_init_abi.
1815
0d12017b
JB
18162013-10-10 Joel Brobecker <brobecker@adacore.com>
1817
1818 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1819 serial_baud_show_cmd.
1820 (_initialize_cli_cmds): Delete the code creating the
1821 "set/show remotebaud" commands.
1822 * serial.c (baud_rate): Move here from top.c.
1823 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1824 (_initialize_serial): Create "set/show serial baud" commands.
1825 Add "set/show remotebaud" command aliases.
1826 * top.c (baud_rate): Moved to serial.c.
1827 * NEWS: Document the new "set/show serial baud" commands,
1828 replacing "set/show remotebaud".
1829
578d3588
PA
18302013-10-09 Pedro Alves <palves@redhat.com>
1831
1832 * breakpoint.c (insert_bp_location): Use memory_error_message to
1833 build the memory error string.
1834 * c-lang.c: Include "gdbcore.h".
1835 (c_get_string): Use memory_error to throw error.
1836 (target_xfer_memory_error): Delete.
1837 (memory_error_message): New, factored out from
1838 target_xfer_memory_error.
1839 (memory_error): Change parameter type to target_xfer_error.
1840 Rewrite.
1841 (read_memory): Use memory_error instead of
1842 target_xfer_memory_error.
1843 * gdbcore.h: Include "target.h".
1844 (memory_error): Change parameter type to target_xfer_error.
1845 (memory_error_message): Declare function.
1846 * target.c (target_read_memory, target_read_stack)
1847 (target_write_memory, target_write_raw_memory): Return
1848 TARGET_XFER_E_IO on error. Adjust comments.
1849 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1850 instead of EIO.
1851 * target.h (target_read, target_insert_breakpoint)
1852 (target_remove_breakpoint): Adjust comments.
1853 * valprint.c (partial_memory_read): Rename parameter, and adjust
1854 comment.
1855 (val_print_string): Use memory_error_message to build the memory
1856 error string.
1857
c74e1ccf
JK
18582013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1859
1860 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1861 result variable. Rename variable fopen_e_ever_failed to
1862 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1863
915215be
PA
18642013-10-09 Pedro Alves <palves@redhat.com>
1865
1866 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1867 (monitor_write_memory_longlongs, monitor_write_memory_block):
1868 Constify 'myaddr' parameter.
1869 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1870 helper.
1871 (monitor_xfer_partial): New function.
1872 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1873 hook. Install a to_xfer_partial hook.
1874
acd13123
TT
18752013-10-09 Tom Tromey <tromey@redhat.com>
1876
1877 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1878 bfd_get_alt_debug_link_info.
1879
40135bb1
JK
18802013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1881
1882 New flag OBJF_NOT_FILENAME.
1883 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1884 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1885 allocate_objfile.
1886 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1887 symbol_file_add_from_bfd.
1888 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1889 allocate_objfile.
1890 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1891 NULL.
1892 * objfiles.h (OBJF_NOT_FILENAME): New.
1893
dc294be5
TT
18942013-10-08 Tom Tromey <tromey@redhat.com>
1895
1896 * Makefile.in (SFILES): Add build-id.c.
1897 (HFILES_NO_SRCDIR): Add build-id.h.
1898 * build-id.c: New file, largely from elfread.c. Modified
1899 most functions.
1900 * build-id.h: New file.
1901 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1902 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1903 Search for dwz file using build-id.
1904 * elfread.c (build_id_bfd_get, build_id_verify)
1905 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1906
db230ce3
JB
19072013-10-08 Joel Brobecker <brobecker@adacore.com>
1908
1909 * ada-lang.c (compare_names_with_case): Renamed from
1910 compare_names, adding a new parameter "casing" and its handling.
1911 New function documentation.
1912 (compare_names): New function, implemented using
1913 compare_names_with_case.
1914
6501c98a
JB
19152013-10-08 Joel Brobecker <brobecker@adacore.com>
1916
1917 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1918
84a1243b
TT
19192013-10-07 Tom Tromey <tromey@redhat.com>
1920
1921 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1922 demangled_names_hash.
1923 (free_objfile): Don't delete the demangled_names_hash.
1924 * objfiles.h (struct objfile_per_bfd_storage)
1925 <demangled_names_hash>: New field.
1926 (struct objfile) <demangled_names_hash>: Move to
1927 objfile_per_bfd_storage.
1928 * symfile.c (reread_symbols): Don't delete the
1929 demangled_names_hash.
1930 * symtab.c (create_demangled_names_hash): Update.
1931 (symbol_set_names): Update.
1932
1da77581
TT
19332013-10-07 Tom Tromey <tromey@redhat.com>
1934
1935 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1936 needs_relocations>: New fields.
1937 (gdb_bfd_requires_relocations): New function.
1938 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1939 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1940 the BFD needs relocations applied.
1941
46ecd527
PA
19422013-10-07 Pedro Alves <palves@redhat.com>
1943
1944 PR breakpoints/11568
1945 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1946 the thread list" instead of "gone".
1947
0c557179
SDJ
19482013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1949
1950 * NEWS: Mention new convenience variable $_exitsignal.
1951 * corelow.c (core_open): Reset exit convenience variables. Set
1952 $_exitsignal to the uncaught signal which generated the corefile.
1953 * infrun.c (handle_inferior_event): Reset exit convenience
1954 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1955 (clear_exit_convenience_vars): New function.
1956 * inferior.h (clear_exit_convenience_vars): New prototype.
1957
1cc47d81
YQ
19582013-10-06 Yao Qi <yao@codesourcery.com>
1959
1960 * varobj.h: Add comments to enum varobj_languages.
1961
73869dc2
DE
19622013-10-04 Doug Evans <dje@google.com>
1963
1964 Add support for DWP file format version 2.
1965 * NEWS: Mention support for DWP file format version 2.
1966 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1967 union of asection, containing_section. New fields virtual_offset
1968 and is_virtual. Change type of readin filed from int to char.
1969 (dwo_sections, dwo_file): Tweak comments.
1970 (dwp_v2_section_ids): New enum.
1971 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1972 str_offsets, types.
1973 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1974 All uses updated.
1975 (virtual_v2_dwo_sections): New struct.
1976 (dwp_hash_table): New fields version, nr_columns. Change type of
1977 section_pool field to a union.
1978 (dwp_file): New field version.
1979 (dwarf2_has_info): Check for virtual sections.
1980 (get_containing_section): New function.
1981 (get_section_bfd_owner, get_section_bfd_section): Call it.
1982 (dwarf2_locate_sections): Update.
1983 (dwarf2_section_empty_p): Update.
1984 (dwarf2_read_section): Handle virtual sections.
1985 (locate_dwz_sections): Update.
1986 (create_dwp_hash_table): Document and handle V2 format.
1987 (locate_v1_virtual_dwo_sections): Renamed from
1988 locate_virtual_dwo_sections and update. All callers updated.
1989 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1990 Delete arg htab. Rename arg section_index to unit_index.
1991 All callers updated.
1992 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1993 All uses updated.
1994 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1995 (lookup_dwo_unit_in_dwp): Add V2 support.
1996 (dwarf2_locate_dwo_sections): Update.
1997 (dwarf2_locate_common_dwp_sections): Renamed from
1998 dwarf2_locate_dwp_sections and update. All callers updated.
1999 (dwarf2_locate_v2_dwp_sections): New function.
2000 (open_and_init_dwp_file): Add V2 support.
2001 (read_str_index): New locals str_section, str_offsets_section.
2002
9a2c3737
PA
20032013-10-04 Pedro Alves <palves@redhat.com>
2004
2005 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2006 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2007 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2008 describing comments with references to ptid.h.
2009 * common/ptid.h: Remove intro description of constructors,
2010 accessors and predicates.
2011 (struct ptid): Reformat.
2012 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2013 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2014 describing comments.
2015
f5371440
JB
20162013-10-04 Joel Brobecker <brobecker@adacore.com>
2017
2018 * aix-thread.c (sync_threadlists): Add missing ')' in call
2019 to ptid_build.
2020
793e1c06
JB
20212013-10-04 Joel Brobecker <brobecker@adacore.com>
2022
2023 * procfs.c (procfs_init_inferior): Fix typo causing the build
2024 to fail.
2025
26f0edc1
JB
20262013-10-04 Joel Brobecker <brobecker@adacore.com>
2027
2028 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2029
5713b9b5
JB
20302013-10-04 Joel Brobecker <brobecker@adacore.com>
2031
2032 * mi/mi-main.c (run_one_inferior): Add function description.
2033 Make ARG a pointer to an integer whose value determines whether
2034 we should "run" or "start" the program.
2035 (mi_cmd_exec_run): Add handling of the "--start" option.
2036 Reject all other command-line options.
2037 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2038
f48ff2a7
YQ
20392013-10-04 Yao Qi <yao@codesourcery.com>
2040
2041 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2042 (struct notif_client) <pending_event>: Moved
2043 to struct remote_notif_state.
2044 <id>: New field.
2045 (struct remote_notif_state) <pending_event>: New field.
2046 (notif_event_xfree): Declare.
2047 * remote-notif.c (handle_notification): Adjust.
2048 (notif_event_xfree): New function.
2049 (do_notif_event_xfree): Call notif_event_xfree.
2050 (remote_notif_state_xfree): Call notif_event_xfree to free
2051 each element in field pending_event.
2052 * remote.c (discard_pending_stop_replies): Remove declaration.
2053 (discard_pending_stop_replies_in_queue): Declare.
2054 (remote_close): Call discard_pending_stop_replies_in_queue
2055 instead of discard_pending_stop_replies.
2056 (remote_start_remote): Adjust.
2057 (stop_reply_xfree): Call notif_event_xfree.
2058 (notif_client_stop): Adjust initialization.
2059 (remote_notif_remove_all): Rename it to ...
2060 (remove_stop_reply_for_inferior): ... this. Update comments.
2061 Don't check INF is NULL.
2062 (discard_pending_stop_replies): Return early if notif_state is
2063 NULL. Adjust. Don't check INF is NULL.
2064 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2065 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2066 (remote_wait_ns): Likewise.
2067
5965e028
YQ
20682013-10-04 Yao Qi <yao@codesourcery.com>
2069
2070 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2071 (notif_queue): Remove.
2072 (remote_notif_process): Add one parameter 'notif_queue'.
2073 Update comments. Callers update.
2074 (remote_async_get_pending_events_token): Remove.
2075 (remote_notif_register_async_event_handler): Remove.
2076 (remote_notif_unregister_async_event_handler): Remove.
2077 (handle_notification): Add parameter 'notif_queue'. Update
2078 comments. Callers update.
2079 (notif_xfree): Remove.
2080 (remote_notif_state_allocate): New function.
2081 (remote_notif_state_xfree): New function.
2082 (_initialize_notif): Remove code to allocate queue.
2083 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2084 (struct remote_notif_state): New.
2085 (handle_notification): Update declaration.
2086 (remote_notif_process): Likewise.
2087 (remote_notif_register_async_event_handler): Remove.
2088 (remote_notif_unregister_async_event_handler): Remove.
2089 (remote_notif_state_allocate): Declare.
2090 (remote_notif_state_xfree): Declare.
2091 * remote.c (struct remote_state) <notif_state>: New field.
2092 (remote_close): Don't call
2093 remote_notif_unregister_async_event_handler. Call
2094 remote_notif_state_xfree.
2095 (remote_open_1): Don't call
2096 remote_notif_register_async_event_handler. Call
2097 remote_notif_state_allocate.
2098
5e5ac9a5
YQ
20992013-10-04 Yao Qi <yao@codesourcery.com>
2100
2101 * varobj.c (create_child_with_value): Remove 'const' from the
2102 type of parameter 'name'.
2103 (varobj_add_child): Likewise.
2104 (install_dynamic_child): Remove 'const' from the type of
2105 parameter 'name'.
2106 (varobj_add_child): Likewise.
2107 (create_child_with_value): Likewise. Update comments. Don't
2108 duplicate 'name'.
2109 (update_dynamic_varobj_children): Duplicate 'name'
2110 and pass it to install_dynamic_child.
2111
06ab7b19
PM
21122013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2113
2114 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2115 conversion logic to occur after PyLong_Check. Comment on order
2116 change significance.
2117 * python/py-arch.c (archpy_disassemble): Comment on order of
2118 conversion for integers and longs.
2119
8ae377e8
PA
21202013-10-03 Pedro Alves <palves@redhat.com>
2121
2122 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2123 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2124 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2125 PTRACE_O_TRACEFORK is not supported.
2126 (linux_test_for_tracesysgood): New function.
2127 (linux_test_for_tracefork): New function, factored out from
2128 linux_check_ptrace_features, and also don't kill child_pid here.
2129
b1328b1b
TG
21302013-10-03 Tristan Gingold <gingold@adacore.com>
2131
2132 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2133 Remove verbose error reporting. Use detected state to
2134 thread_set_state call.
2135 (i386_darwin_dr_get): Fix return type. Remove verbose error
2136 report.
2137 Remove trailing spaces.
2138
901461f8
PA
21392013-10-02 Pedro Alves <palves@redhat.com>
2140
2141 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2142 val_print_optimized_out.
2143 * jv-valprint.c (java_print_value_fields): Likewise.
2144 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2145 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2146 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2147 new optimized out value.
2148 * findvar.c (address_from_register): Likewise.
2149 * frame.c (put_frame_register): Tweak error string to say the
2150 register was not saved, rather than optimized out.
2151 * infcmd.c (default_print_one_register_info): Adjust call to
2152 val_print_optimized_out. Use value_of_register instead of
2153 get_frame_register_value.
2154 * mi/mi-main.c (output_register): Use value_of_register instead of
2155 get_frame_register_value.
2156 * valprint.c (valprint_check_validity): Likewise.
2157 (val_print_optimized_out): New value parameter. If the value is
2158 lval_register, print <not saved> instead.
2159 (value_check_printable, val_print_scalar_formatted): Adjust calls
2160 to val_print_optimized_out.
2161 * valprint.h (val_print_optimized_out): New value parameter.
2162 * value.c (struct value) <optimized_out>: Extend comment.
2163 (error_value_optimized_out): New function.
2164 (require_not_optimized_out): Use it. Use a different string for
2165 lval_register values.
2166 * value.h (error_value_optimized_out): New declaration.
2167 * NEWS: Mention <not saved>.
2168
042a84d9
JB
21692013-10-02 Joel Brobecker <brobecker@adacore.com>
2170
2171 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2172 strcmp to compare two symtab filenames.
2173
6b9780fb
JB
21742013-10-02 Joel Brobecker <brobecker@adacore.com>
2175
2176 * symtab.c (search_symbols_equal): Delete.
2177 (sort_search_symbols_remove_dups): Replace call to
2178 search_symbols_equal by call to compare_search_syms,
2179 adjusting as necessary.
2180
751e7549
PM
21812013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2182
2183 PR python/15579
751e7549
PM
2184 * python/python.c: Document gdb.execute command in Python help.
2185
1efd7661
PM
21862013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2187
2188 * python/py-frame.c (frame_info_to_frame_object): Use
2189 gdbpy_convert_exception. Clean up Python object on failure.
2190
562fc849
PM
21912013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2192
2193 * python/lib/gdb/command/frame_filters.py
2194 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2195 (ShowFrameFilterPriority.invoke): Ditto.
2196
d7561cbb
KS
21972013-10-01 Keith Seitz <keiths@redhat.com>
2198
2199 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2200 (parse_linespec): Make 'argptr' const.
2201 Remove temporary cast of 'argptr' to const char **.
2202 (decode_line_full): Pass const pointer to parse_linespec.
2203 (decode_line_1): Likewise.
2204 (decode_objc): Make local variable 'new_argptr' const.
2205 (find_function_symbols): Remove temporary cast to char *
2206 to find_imps.
2207 * objc-lang.c (find_imps): Make argument 'method' const.
2208 Return const.
2209 * objc-lang.h (find_imps): Likewise.
2210
22112013-10-01 Keith Seitz <keiths@redhat.com>
2212
2213 * completer.c (skip_quoted_chars): Make all arguments const.
2214 Return const.
2215 (skip_quoted): Likewise.
2216 * completer.h (skip_quoted_chars): Likewise.
2217 (skip_quoted): Likewise.
2218 * defs.h (skip_quoted): Remove duplicate declaration.
2219 * jv-exp.y: Include completer.h.
2220 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2221 * p-exp.y: Include completer.h.
2222
22232013-10-01 Keith Seitz <keiths@redhat.com>
2224
2225 * c-exp.y (parse_number): Make first argument const.
2226 Make a copy of the input to manipulate.
2227 (c_parse_escape): Make first argument const.
2228 Make local variable 'tokptr' const.
2229 (parse_string_or_char): Make first two arguments const.
2230 (macro_original_text): Make const.
2231 (lex_one_token): Make local variable 'tokstart' const.
2232 Likewise for local variables named 'p'.
2233 Cast away const for struct stoken (temporary).
2234 * c-lang.h (c_parse_escpae): Make first argument const.
2235 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2236 const.
2237 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2238 var_string case.
2239 * f-exp.y (parse_number): Make first argument const.
2240 (match_string_literal): Make local variable 'tokstart'
2241 const.
2242 (yylex): Make local variable 'p' const.
2243 Cast away const for struct stoken (temporary).
2244 * go-exp.y (parse_number): Make first argument const.
2245 (parse_string_or_char): Likewise.
2246 Make local variable 'tokstart' const.
2247 (lex_one_token): Likewise for numerous locals called 'p'.
2248 Cast away const for struct stoken (temporary).
2249 * jv-exp.y (parse_number): Make first argument const.
2250 Make local variables 'tokstart' and 'tokptr' const.
2251 Cast away const for call to skip_quoted (temporary).
2252 (yylex): Make local variable 'p' const.
2253 Cast away const for struct stoken (temporary).
2254 * m2-exp.y (parse_number): Make local variable 'p' const.
2255 (yylex): Likewise for 'tokstart'.
2256 Cast away const for struct stoken (temporary).
2257 Make local variable 'p' const.
2258 * macroexp.c (get_character_constant): Pass a const string
2259 to c_parse_escape.
2260 (get_string_literal): Likewise.
2261 (macro_expand_next): Make first argument const.
2262 Cast away const for init_shared_buffer.
2263 * macroexp.h (macro_expand_next): Make first argument const.
2264 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2265 Pass a const string to c_parse_escape.
2266 Make local variables 'p' and 'namestart' const.
2267 * parse.c (lexptr): Make const.
2268 (prev_lexptr): Likewise.
2269 (find_template_name_end): Return const.
2270 Make argument const, too.
2271 (parse_exp_in_context): Make first argument const.
2272 Remove the entire const_hack.
2273 (parse_exp_in_context_1): Make first argument const.
2274 * parser-defs.h (find_template_name_end): Return const.
2275 Make argument const, too.
2276 (lexptr): Make const.
2277 (prev_lexptr): Likewise.
2278 * utils.c (parse_escape): Make second argument const.
2279 * utils.h (parse_escape): Likewise.
2280
22812013-10-01 Keith Seitz <keiths@redhat.com>
2282
2283 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2284 is now const.
2285 (block_lookup): Make 'raw_name' and 'name' const.
2286 * ada-lex.l (processString): Update for struct stoken.ptr.
2287 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2288 (operator_stoken): Likewise.
2289 (lex_one_token): Remove temporary cast to char * for
2290 'yylval.sval.ptr'.
2291 * f-exp.y (yylex): Likewise.
2292 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2293 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2294 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2295 'yylval.sval.ptr'.
2296 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2297 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2298 * linespec.c (struct ls_parser): Make 'stream' const.
2299 (find_parameter_list_end): Make argument 'input' and local
2300 variable 'p' const.
2301 (linespec_lexer_lex_string): Make local variables 'start' and
2302 'p' const.
2303 Use skip_spaces_const instead of skip_spaces.
2304 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2305 const.
2306 (parse_linespec): Temporarily cast 'argptr' to const for
2307 'parser->lexer.stream'.
2308 * m2-exp.y (yylex): Remove temporary cast to char * for
2309 'yylval.sval.ptr'.
2310 * objc-lang.c (add_msglist): Make local variable 'p' const.
2311 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2312 (exp : STRING): Make 'sp' const.
2313 (parse_number): Make argument 'p' const.
2314 * parser-defs.h (struct stoken): Make 'ptr' const.
2315
193a8eac
DE
23162013-10-01 Doug Evans <dje@google.com>
2317
2318 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2319
2213e2be
YQ
23202013-10-01 Yao Qi <yao@codesourcery.com>
2321
2322 * varobj.c (c_value_of_root): Remove declaration.
2323 (cplus_value_of_root, java_value_of_root): Likewise.
2324 (ada_value_of_root): Likewise.
2325 (struct language_specific) <value_of_root>: Remove.
2326 (languages): Update initialization.
2327 (check_scope): Move earlier.
2328 (c_value_of_root): Move earlier and rename to ...
2329 (value_of_root_1): ... this.
2330 (value_of_root): Caller update.
2331 (cplus_value_of_root, java_value_of_root): Remove.
2332 (ada_value_of_root): Remove.
2333
c573f273
YQ
23342013-10-01 Yao Qi <yao@codesourcery.com>
2335
2336 * varobj.c (varobj_format_string): Remove "unknown".
2337 (languages): Remove the first element.
2338 * varobj.h (enum varobj_languages): Remove vlang_c.
2339
56250258
YQ
23402013-10-01 Yao Qi <yao@codesourcery.com>
2341
2342 * varobj.c (struct language_specific) <language>: Remove.
2343 (languages): Update the initialization.
2344
29f9ebfa
YQ
23452013-10-01 Yao Qi <yao@codesourcery.com>
2346
2347 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2348 "solib-target.h". Include "windows-tdep.h".
2349 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2350 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2351 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2352 windows-tdep.o to gdb_target_obs.
2353
64870a42
YQ
23542013-10-01 Yao Qi <yao@codesourcery.com>
2355
2356 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2357 "solib-target.h".
2358 (amd64_windows_init_abi): Don't call set_solib_ops and
2359 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2360 windows_init_abi instead.
2361 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2362 "solib-target.h".
2363 (i386_cygwin_init_abi): Don't call set_solib_ops,
2364 set_gdbarch_has_dos_based_file_system and
2365 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2366 windows_init_abi instead.
2367 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2368 (windows_init_abi): New function.
2369 (windows_iterate_over_objfiles_in_search_order): Make it
2370 static.
2371 * windows-tdep.h (windows_init_abi): Declare.
2372 (windows_iterate_over_objfiles_in_search_order): Remove
2373 declaration.
2374
0aebdefa
JB
23752013-10-01 Jerome Guitton <guitton@adacore.com>
2376
2377 Checked in by Joel Brobecker <brobecker@adacore.com>
2378 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2379 incomplete dictionnary instead of None in case of missing
2380 environment variables.
2381 (elinos_init): in case of an incomplete environment, best
2382 effort to load system libraries instead of abort.
2383
1c8e84b0
JB
23842013-10-01 Joel Brobecker <brobecker@adacore.com>
2385
2386 * ada-lang.c (ada_has_this_exception_support): Ignore
2387 mst_solib_trampoline minimal symbols.
2388
61d82a0d
TG
23892013-09-30 Tristan Gingold <gingold@adacore.com>
2390
2391 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2392 hardware watchpoint.
2393 (i386_darwin_dr_set): Support 32 and 64 bit states.
2394 (i386_darwin_dr_get): Likewise.
2395 (i386_darwin_dr_set_control): Make static.
2396 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2397 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2398
dfd4cc63
LM
23992013-09-30 Luis Machado <lgustavo@codesourcery.com>
2400
2401 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2402 Replace TIDGET with ptid_get_lwp.
2403 Replace GET_LWP with ptid_get_lwp.
2404 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2405 Replace BUILD_THREAD with ptid_build.
2406 Replace BUILD_LWP with ptid_build.
2407 Replace PIDGET with ptid_get_pid.
2408 Replace TIDGET with ptid_get_lwp.
2409 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2410 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2411 Replace TIDGET with ptid_get_lwp.
2412 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2413 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2414 Replace TIDGET with ptid_get_lwp.
2415 Replace GET_LWP with ptid_get_lwp.
2416 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2417 * auxv.c: Likewise.
2418 * breakpoint.c: Likewise.
2419 * common/ptid.c (ptid_is_pid): Condense check for
2420 null_ptid and minus_one_ptid.
2421 (ptid_lwp_p): New function.
2422 (ptid_tid_p): New function.
2423 * common/ptid.h: Update comments for accessors.
2424 (ptid_lwp_p): New prototype.
2425 (ptid_tid_p): New prototype.
2426 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2427 * gcore.c: Replace PIDGET with ptid_get_pid.
2428 * gdbthread.h: Likewise.
2429 * gnu-nat.c: Likewise.
2430 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2431 Replace TIDGET with ptid_get_lwp.
2432 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2433 * hppanbsd-nat.c: Likewise.
2434 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2435 Replace TIDGET with ptid_get_lwp.
2436 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2437 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2438 * infcmd.c: Likewise.
2439 * inferior.h: Likewise.
2440 * inflow.c: Likewise.
2441 * infrun.c: Likewise.
2442 * linux-fork.c: Likewise.
2443 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2444 Replace GET_PID with ptid_get_pid.
2445 Replace is_lwp with ptid_lwp_p.
2446 Replace GET_LWP with ptid_get_lwp.
2447 Replace BUILD_LWP with ptid_build.
2448
5b4e221c
MF
24492013-09-28 Mike Frysinger <vapier@gentoo.org>
2450
2451 * common/linux-btrace.c: Move sys/syscall.h out of the
2452 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2453 Also check for SYS_perf_event_open before attempting to buid.
2454
57d63ce2
DE
24552013-09-27 Doug Evans <dje@google.com>
2456
19ac8c2e
DE
2457 * dwarf2read.c (dwarf2_section_info): Add comment.
2458 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2459 All uses updated.
2460 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2461 (dwarf2_read_section): Delete unused local "header". Add section
2462 name to error message.
2463 (create_dwo_in_dwp): Tweak comment.
2464 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2465
a32a8923
DE
2466 * dwarf2read.c (die_reader_specs): Tweak comment.
2467 (get_section_bfd_owner, get_section_bfd_section): New functions.
2468 (get_section_name, get_section_file_name): New functions.
2469 (get_section_id, get_section_flags): New functions.
2470 (*): Use new functions to access section fields.
2471
57d63ce2
DE
2472 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2473 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2474 arg "htab". All callers updated.
2475 (create_debug_types_hash_table): Remove redundant copy of
2476 abbrev_section.
2477 (create_dwo_in_dwp): Tweak comments.
2478 (read_str_index): Tweak comment. Record dwarf form name in static
2479 local.
2480
3736004f
PA
24812013-09-27 Pedro Alves <palves@redhat.com>
2482
2483 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2484 (remote_filename_p): Add comment.
2485 * remote.c (remote_filename_p): Adjust to use
2486 REMOTE_SYSROOT_PREFIX.
2487 * solib.c (solib_find): When deciding whether we need to add a
2488 directory separator, check whether the sysroot is "remote:"
2489 instead of checking whether the patch has a drive spec. Add
2490 comments.
2491
5b5596ff
PA
24922013-09-27 Pedro Alves <palves@redhat.com>
2493
2494 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2495 Delete fields.
2496 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2497 directly.
2498
b5eef7aa
JK
24992013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2500
2501 Fix set debug frame output.
2502 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2503 SENTINEL_FRAME entry lower to match enum frame_type order.
2504
5b856f36
PM
25052013-09-26 Pierre Muller <muller@sourceware.org>
2506
2507 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2508 AMD64_R15_REGNUM when a register index is expected.
2509 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2510 Substitute in array.
2511 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2512 (amd64_push_arguments): Substitute in integer_regnum array.
2513
ade7ed9e
DE
25142013-09-25 Doug Evans <dje@google.com>
2515
d3e81981
DE
2516 * objfiles.c (allocate_objfile): Move comment to better place.
2517
8fb8eb5c
DE
2518 New option "set debug symfile on".
2519 * NEWS: Mention "set debug symfile".
2520 * Makefile.in (SFILES): Add symfile-debug.c.
2521 (COMMON_OBS): Add symfile-debug.o.
2522 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2523 objfile's symbol functions.
2524 * objfiles.h (objfile_set_sym_fns): Declare.
2525 * symfile-debug.c: New file.
2526 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2527 objfile's symbol functions.
2528 (reread_symbols): Ditto.
2529
c256e171
DE
2530 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2531 All uses updated.
2532 (add_symtab_fns): Update prototype.
2533 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2534 (registered_sym_fns): ... this.
2535 (symtab_fns): Update.
2536 (add_symtab_fns): New arg "flavour". All callers updated.
2537 (find_sym_fns): Rewrite to use new sym_fns registry.
2538
f56ce883
DE
2539 * symfile.h (struct sym_fns): Add "objfile" argument to
2540 sym_read_linetable. All uses updated.
2541
20c681d1
DE
2542 * symtab.c (domain_name, search_domain_name): New functions.
2543 * symtab.h (domain_name, search_domain_name): Declare.
2544
ade7ed9e
DE
2545 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2546 map_matching_symbols so objfile is first. All uses updated.
2547 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2548 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2549
7d760051
UW
25502013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2551
2552 PR shlibs/8882
2553 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2554 link map entries.
2555
020f7036
DE
25562013-09-24 Doug Evans <dje@google.com>
2557
2558 * objfiles.c (free_objfile): Move comment.
2559
598402f0
JB
25602013-09-24 Joel Brobecker <brobecker@adacore.com>
2561
2562 * ada-exp.y (string_to_operator): Delete.
2563 (dummy_string_to_ada_operator): Delete.
2564
bf4d6c1c
JB
25652013-09-24 Joel Brobecker <brobecker@adacore.com>
2566
2567 Revert:
2568 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2569 amd64-tdep.c.
2570 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2571 call_dummy_integer_regs, and classify.
2572 * amd64-tdep.h (amd64_classify): Add declaration.
2573 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2574 (amd64_reg_class): Delete, moved to i386-tdep.h.
2575 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2576 Replace call to amd64_classify by call to tdep->classify.
2577 (amd64_push_arguments): Get the list of registers to use for
2578 passing integer parameters from the gdbarch tdep structure,
2579 rather than using a hardcoded one. Replace calls to amd64_classify
2580 by calls to tdep->classify.
2581 (amd64_push_dummy_call): Get the register number used for
2582 the "hidden" argument from tdep->call_dummy_integer_regs.
2583 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2584 and tdep->call_dummy_integer_regs. Set tdep->classify.
2585
849e9755
JB
25862013-09-24 Joel Brobecker <brobecker@adacore.com>
2587
2588 Revert:
2589 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2590 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2591 where tdep->memory_args_by_pointer is non-zero.
2592
c1459fd6
JB
25932013-09-24 Joel Brobecker <brobecker@adacore.com>
2594
2595 Revert:
2596 * i386-tdep.h (struct gdbarch_tdep): Add new field
2597 integer_param_regs_saved_in_caller_frame.
2598 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2599 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2600
20c2e3e0
JB
26012013-09-24 Joel Brobecker <brobecker@adacore.com>
2602
874440b8 2603 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2604 (amd64_windows_classify): Delete.
2605 (amd64_windows_passed_by_integer_register)
2606 (amd64_windows_passed_by_xmm_register)
2607 (amd64_windows_passed_by_pointer)
2608 (amd64_windows_adjust_args_passed_by_pointer)
2609 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2610 (amd64_windows_push_dummy_call): New functions.
2611 (amd64_windows_init_abi): Remove setting of
2612 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2613 tdep->classify, tdep->memory_args_by_pointer and
2614 tdep->integer_param_regs_saved_in_caller_frame.
2615 Add call to set_gdbarch_push_dummy_call.
2616
82bf32bc
JK
26172013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2618
2619 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2620 objfile->original_name.
2621
24ba069a
JK
26222013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2623
2624 Pass down original filename for objfile.
2625 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2626 * elfread.c (elf_symfile_read): Likewise.
2627 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2628 longer set ORIGINAL_NAME.
2629 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2630 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2631 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2632 symbol_file_add_from_bfd call.
2633 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2634 (macho_check_dsym): Add parameter filenamep. Change function comment.
2635 Set *filenamep.
2636 (macho_symfile_read): New variable dsym_filename. Update
2637 macho_check_dsym call. Use it for symbol_file_add_separate.
2638 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2639 it. Use it for objfile->original_name.
2640 (objfile_name): Return OBFD's filename, if available.
2641 * objfiles.h (allocate_objfile): Add new parameter name.
2642 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2643 * symfile-mem.c (symbol_file_add_from_memory): Update
2644 symbol_file_add_from_bfd call.
2645 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2646 comment for it.
2647 (symbol_file_add_with_addrs): New parameter name, add function comment
2648 for it. Remove variable name. Update allocate_objfile call.
2649 (symbol_file_add_separate): New parameter name, add function comment
2650 for it. Update symbol_file_add_with_addrs call.
2651 (symbol_file_add_from_bfd): New parameter name. Update
2652 symbol_file_add_with_addrs call.
2653 (symbol_file_add): Update symbol_file_add_from_bfd call.
2654 (reread_symbols): New variable original_name. Save
2655 objfile->original_name by it.
2656 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2657 second parameter.
2658
4262abfb
JK
26592013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2660
2661 Code cleanup: Add objfile_name accessor function.
2662 * ada-lang.c (is_known_support_routine): Use objfile_name.
2663 * auto-load.c (source_gdb_script_for_objfile)
2664 (auto_load_objfile_script): Likewise.
2665 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2666 * dbxread.c (dbx_symfile_read): Likewise.
2667 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2668 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2669 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2670 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2671 (lookup_dwp_signatured_type, lookup_dwo_unit)
2672 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2673 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2674 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2675 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2676 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2677 (read_subrange_type, load_partial_dies, read_partial_die)
2678 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2679 (die_containing_type, build_error_marker_type, lookup_die_type)
2680 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2681 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2682 (get_DW_AT_signature_type, write_psymtabs_to_index)
2683 (save_gdb_index_command): Likewise.
2684 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2685 Likewise.
2686 * expprint.c (dump_subexp_body_standard): Likewise.
2687 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2688 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2689 original_name.
2690 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2691 obj_name, use objfile_name for it, use the variable.
2692 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2693 Use objfile_name.
2694 * machoread.c (macho_symtab_read, macho_check_dsym)
2695 (macho_symfile_relocate): Likewise.
2696 * maint.c (maintenance_translate_address): Likewise.
2697 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2698 * minsyms.c (install_minimal_symbols): Likewise.
2699 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2700 original_name.
2701 (filter_overlapping_sections): Use objfile_name.
2702 (objfile_name): New function.
2703 * objfiles.h (struct objfile): Rename field name to original_name.
2704 (objfile_name): New prototype.
2705 * printcmd.c (sym_info, address_info): Use objfile_name.
2706 * probe.c (parse_probes, collect_probes, compare_probes)
2707 (info_probes_for_ops): Likewise.
2708 * progspace.c (clone_program_space): Likewise.
2709 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2710 (maintenance_info_psymtabs): Likewise.
2711 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2712 (source_section_scripts): Likewise.
2713 * python/py-objfile.c (objfpy_get_filename): Likewise.
2714 * python/py-progspace.c (pspy_get_filename): Likewise.
2715 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2716 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2717 * solib.c (solib_read_symbols): Likewise.
2718 * stabsread.c (scan_file_globals): Likewise.
2719 * stap-probe.c (handle_stap_probe): Likewise.
2720 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2721 (find_separate_debug_file_by_debuglink): Likewise.
2722 (reread_symbols): Likewise. Use the objfile field name renamed to
2723 original_name.
2724 (allocate_symtab): Use objfile_name.
2725 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2726 (dump_objfile, dump_msymbols, dump_symtab_1)
2727 (maintenance_print_msymbols, maintenance_print_objfiles)
2728 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2729 * target.c (target_translate_tls_address, target_info): Likewise.
2730 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2731 objfile_name.
2732
4721dc18
JK
27332013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2734
2735 Code cleanup.
2736 * probe.c (parse_probes): Rename variable objfile_name to
2737 objfile_namestr.
2738
a61d6db8
JK
27392013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2740
2741 Remove solib-sunos.c.
2742 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2743 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2744 * objfiles.c (rt_common_objfile): Remove.
2745 (free_objfile): Remove rt_common_objfile comparison.
2746 * objfiles.h (rt_common_objfile): Remove.
2747 * solib-sunos.c: Remove.
2748 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2749
2659903b
JK
27502013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2751
2752 Remove a.out NetBSD and OpenBSD hosts.
2753 * NEWS (Removed native configurations): New.
2754 * config/arm/nbsdaout.mh: Remove.
2755 * config/i386/nbsdaout.mh: Remove.
2756 * config/i386/obsdaout.mh: Remove.
2757 * config/m68k/nbsdaout.mh: Remove.
2758 * config/sparc/nbsdaout.mh: Remove.
2759 * config/vax/nbsdaout.mh: Remove.
2760 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2761 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2762 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2763 error.
2764 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2765 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2766 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2767
f60e2d5c
TT
27682013-09-23 Tom Tromey <tromey@redhat.com>
2769
2770 * linespec.c (struct minsym_and_objfile): Remove.
2771 (minsym_and_objfile_d): Remove.
2772 (struct linespec, struct collect_info, linespec_parse_basic)
2773 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2774 (compare_msymbols, find_method, find_function_symbols)
2775 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2776 (add_minsym, search_minsyms_for_name): Update.
2777
d3eaaf66
AB
27782013-09-23 Andrew Burgess <aburgess@broadcom.com>
2779
2780 * regcache.c: Add include of valprint.h.
2781 (dump_endian_bytes): Delete.
2782 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2783
2cc762b5
AB
27842013-09-23 Andrew Burgess <aburgess@broadcom.com>
2785
2786 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2787
96181529
PA
27882013-09-19 Pedro Alves <palves@redhat.com>
2789
2790 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2791 breakpoints.
2792
9b3f3ee6
TS
27932013-09-19 Pedro Alves <palves@redhat.com>
2794 Thomas Schwinge <thomas@codesourcery.com>
2795 Yue Lu <hacklu.newborn@gmail.com>
2796
2797 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2798 Take a gdb_byte pointer instead of a char pointer.
2799
2800 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2801 gnu_xfer_partial helper.
2802 (gnu_xfer_partial): New function.
2803 (gnu_target): Don't install a deprecated_xfer_memory hook.
2804 Install a to_xfer_partial hook.
2805
69150c3d
JK
28062013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2807
2808 Constification.
2809 * main.c (captured_main): Replace catch_command_errors by
2810 catch_command_errors_const. Twice.
2811 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2812 (symbol_file_add): Make name parameter const.
2813 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2814 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2815 variable name. Change their usage accordingly.
2816 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2817 const.
2818 (symbol_file_add_main): Make args parameter const.
2819
086850b2
UW
28202013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2821 Ulrich Weigand <uweigand@de.ibm.com>
2822
2823 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2824 of c_value member.
2825 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2826
ca08a94c 28272013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2828 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2829
2830 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2831 (gnu_create_inferior)
2832 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2833 (set_sig_thread_cmd): Use the lwpid field of ptids to
2834 store/extract thread ids instead of the tid field.
2835 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2836
e4c6a2c4
AB
28372013-09-18 Andrew Burgess <aburgess@broadcom.com>
2838
2839 * infcmd.c (default_print_one_register_info): Add detection of
2840 optimized out values.
2841 (default_print_registers_info): Switch to using
2842 get_frame_register_value.
2843
58c48e72
MM
28442013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2845
2846 * infrun.c (handle_inferior_event): Check if we know the
2847 function start address before setting a resume breakpoint.
2848
c8d37639
PA
28492013-09-18 Pedro Alves <palves@redhat.com>
2850
2851 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2852 minus_one_ptid instead of looking at the ptid's tid field and
2853 comparing that to -1.
2854
71926e28
AB
28552013-09-18 Andrew Burgess <aburgess@broadcom.com>
2856
2857 * main.h (get_gdb_program_name): Remove extra whitespace.
2858
c88a1531
AB
28592013-09-18 Andrew Burgess <aburgess@broadcom.com>
2860
2861 * main.h (get_gdb_program_name): Add declaration.
2862 * main.c (get_gdb_program_name): Add definition.
2863
4390d890
DE
28642013-09-17 Doug Evans <dje@google.com>
2865
2866 * dwarf2read.c: Move definitions of complaint functions to after
2867 forward declarations of local functions.
2868
49fa26b0
PA
28692013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2870 Pedro Alves <palves@redhat.com>
2871
2872 PR gdb/11568
2873 * breakpoint.c (remove_threaded_breakpoints): New function.
2874 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2875 as thread_exit observer.
2876
08d72866
PA
28772013-09-17 Pedro Alves <palves@redhat.com>
2878
2879 PR gdb/15911
2880 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2881 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2882 * corelow.c (core_open):
2883 * frame.h (print_stack_frame, print_frame_info): New
2884 'set_current_sal' parameter.
2885 * infcmd.c (finish_command, kill_command): Adjust call to
2886 print_stack_frame.
2887 * inferior.c (inferior_command): Likewise.
2888 * infrun.c (normal_stop): Likewise.
2889 * linux-fork.c (linux_fork_context): Likewise.
2890 * record-full.c (record_full_goto_entry, record_full_restore):
2891 Likewise.
2892 * remote-mips.c (common_open): Likewise.
2893 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2894 Use it.
2895 (print_frame_info): New 'set_current_sal' parameter. Set the last
2896 displayed sal depending on the new paremeter instead of looking at
2897 print_what.
2898 (backtrace_command_1, select_and_print_frame, frame_command)
2899 (current_frame_command, up_command, down_command): Adjust call to
2900 print_stack_frame.
2901 * thread.c (print_thread_info, restore_selected_frame)
2902 (do_captured_thread_select): Adjust call to print_stack_frame.
2903 * tracepoint.c (tfind_1): Likewise.
2904 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2905 (mi_cmd_stack_info_frame): Likewise.
2906 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2907 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2908
6bc305f5
SDJ
29092013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2910
2911 * value.c (isvoid_internal_fn): Replace "parameter" with
2912 "argument".
2913
0a7cfe2c
SS
29142013-09-16 Stan Shebs <stan@codesourcery.com>
2915
2916 * README: Update references to writing code for GDB.
2917 * configure.ac (build_warnings): Remove obsolete comment.
2918 * configure: Regenerate.
2919 * gdbarch.sh: Remove references to gdbint.texinfo.
2920 * gdbarch.h: Regenerate.
2921 * gdbtypes.c (objfile_type): Remove comments referencing internals
2922 manual and D10V.
2923
a280dbd1
SDJ
29242013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2925
2926 * NEWS: Mention new convenience function $_isvoid.
2927 * value.c (isvoid_internal_fn): New function.
2928 (_initialize_values): Add new convenience function $_isvoid.
2929
04a83fee
PM
29302013-09-16 Pierre Muller <muller@sourceware.org>
2931
2932 * arm-linux-tdep.c: Add "elf/common.h" header.
2933 Remove AT_HWCAP macro definintion as it is provided in
2934 added include file.
2935 * s390-tdep.c: Remove system header <elf.h>
2936 Add "elf/common.h" header for AT_HWCAP definition.
2937 (s390_core_read_description): Use correct CORE_ADDR
2938 for hwcap local variable used as third parameter
2939 of function target_auxv_search.
2940
88505fac
PM
29412013-09-14 Pierre Muller <muller@sourceware.org>
2942 Tom Tromey <tromey@redhat.com>
2943 Pedro Alves <palves@redhat.com>
2944
2945 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2946 mode if operating system doesn't know O_CLOEXEC.
2947
d3846e71
JK
29482013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2949
2950 Code cleanup.
2951 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2952 inner block.
2953
4ac33720
UW
29542013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2955
2956 * NEWS: Mention TDB support.
2957 * features/s390-tdb.xml: New file.
2958 * features/s390-te-linux64.xml: New file.
2959 * features/s390x-te-linux64.xml: New file.
2960 * features/Makefile (WHICH): Add new tdescs above.
2961 (s390-te-linux64-expedite): Set.
2962 (s390x-te-linux64-expedite): Set.
2963 * features/s390-te-linux64.c: New file (generated).
2964 * features/s390x-te-linux64.c: New file (generated).
2965 * regformats/s390-te-linux64.dat: New file (generated).
2966 * regformats/s390x-te-linux64.dat: New file (generated).
2967 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2968 (HWCAP_S390_TE): Likewise.
2969 (S390_TDB_DWORD0_REGNUM): Likewise.
2970 (S390_TDB_DWORD0_REGNUM): Likewise.
2971 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2972 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2973 (S390_TDB_ATIA_REGNUM): Likewise.
2974 (S390_TDB_R0_REGNUM): Likewise.
2975 (S390_TDB_R1_REGNUM): Likewise.
2976 (S390_TDB_R2_REGNUM): Likewise.
2977 (S390_TDB_R3_REGNUM): Likewise.
2978 (S390_TDB_R4_REGNUM): Likewise.
2979 (S390_TDB_R5_REGNUM): Likewise.
2980 (S390_TDB_R6_REGNUM): Likewise.
2981 (S390_TDB_R7_REGNUM): Likewise.
2982 (S390_TDB_R8_REGNUM): Likewise.
2983 (S390_TDB_R9_REGNUM): Likewise.
2984 (S390_TDB_R10_REGNUM): Likewise.
2985 (S390_TDB_R11_REGNUM): Likewise.
2986 (S390_TDB_R12_REGNUM): Likewise.
2987 (S390_TDB_R13_REGNUM): Likewise.
2988 (S390_TDB_R14_REGNUM): Likewise.
2989 (S390_TDB_R15_REGNUM): Likewise.
2990 (S390_NUM_REGS): Increase.
2991 (S390_IS_TDBREGSET_REGNUM): New macro.
2992 (s390_regmap_tdb): Declare.
2993 (s390_sizeof_tdbregset): Define.
2994 (tdesc_s390_te_linux64): Declare.
2995 (tdesc_s390x_te_linux64): Likewise.
2996 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2997 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2998 (s390_regmap_tdb): New regmap.
2999 (s390_supply_tdb_regset): New function.
3000 (s390_tdb_regset): New regset.
3001 (s390_linux64v2_regset_sections): Add TDB regset to list.
3002 (s390x_linux64v2_regset_sections): Likewise.
3003 (s390_regset_from_core_section): Recognize TDB core note section.
3004 (s390_core_read_description): If HWCAP indicates TE support,
3005 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3006 (s390_gdbarch_init): Handle TDB regset.
3007 (_initialize_s390_tdep): Initialize new tdescs.
3008 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3009 (have_regset_tdb): New variable.
3010 (s390_native_supply): Support register invalidation.
3011 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3012 (check_regset): Treat ENODATA as "regset exists".
3013 (s390_linux_fetch_inferior_registers): Add TDB.
3014 (s390_read_description): Check for TDB existence and select
3015 appropriate tdesc.
3016 * gdbserver/Makefile.in (clean): Add removal of new makefile
3017 targets.
3018 (s390-te-linux64.c): New makefile target.
3019 (s390x-te-linux64.c): Likewise.
3020 * gdbserver/configure.srv (srv_regobj): Append new objects
3021 s390-te-linux64.o and s390x-te-linux64.o.
3022 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3023 s390x-te-linux64.xml, and s390-tdb.xml.
3024 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3025 declaration.
3026 (tdesc_s390_te_linux64): Likewise.
3027 (init_registers_s390x_te_linux64): Likewise.
3028 (tdesc_s390x_te_linux64): Likewise.
3029 (s390_check_regset): Treat ENODATA as "regset exists".
3030 (s390_arch_setup): Add TDB regset support.
3031 (initialize_low_arch): Initialize registers for new tdescs.
3032
2ccd1468
UW
30332013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3034
3035 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3036 (S390_IS_FPREGSET_REGNUM): New macro.
3037 * s390-tdep.c (s390_dwarf_regmap): Make const.
3038 (regnum_is_gpr_full): New function for replacing repeated code.
3039 (s390_pseudo_register_name): Use it.
3040 (s390_pseudo_register_type): Likewise.
3041 (s390_pseudo_register_read): Likewise.
3042 (s390_pseudo_register_write): Likewise.
3043 (s390_unwind_pseudo_register): Likewise.
3044 (s390_regmap_gregset): New format for regmap.
3045 (s390x_regmap_gregset): Likewise.
3046 (s390_regmap_fpregset): Likewise.
3047 (s390_regmap_upper): Likewise.
3048 (s390_regmap_last_break): Likewise.
3049 (s390_regmap_system_call): Likewise.
3050 (s390_supply_regset): Adjust to new regmap format.
3051 (s390_collect_regset): Likewise.
3052 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3053 (s390_native_collect): Likewise.
3054 (supply_gregset): Likewise.
3055 (fill_gregset): Likewise.
3056 (supply_fpregset): Likewise.
3057 (fill_fpregset): Likewise.
3058 (fetch_regset): Likewise.
3059 (store_regset): Likewise.
3060 (s390_linux_fetch_inferior_registers): Likewise.
3061 (s390_linux_fetch_inferior_registers): Likewise.
3062
1aa4cd77
AP
30632013-09-12 Andrew Pinski <apinski@cavium.com>
3064
3065 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3066
d91fab15
UW
30672013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3068
3069 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3070
5a5d8ead
AB
30712013-09-09 Andrew Burgess <aburgess@broadcom.com>
3072
3073 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3074
1385f66c
PA
30752013-09-06 Pedro Alves <palves@redhat.com>
3076
3077 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3078 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3079 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3080 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3081 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3082 gdb_stdlog.
3083
146ec4db
PA
30842013-09-06 Pedro Alves <palves@redhat.com>
3085
3086 * remote-sim.c (dump_mem): Constify buf parameter.
3087 gdbsim_xfer_inferior_memory): Rename to ...
3088 (gdbsim_xfer_memory): ... this. Adjust interface as
3089 target_xfer_partial helper.
3090 (gdbsim_xfer_partial): New function.
3091 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3092 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3093
fcde0081
PA
30942013-09-06 Pedro Alves <palves@redhat.com>
3095
3096 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3097 host_address_to_string, and send debug output to gdb_stdlog.
3098
749c8b38
RW
30992013-09-06 Ricard Wanderlof <ricardw@axis.com>
3100
3101 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3102 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3103 gdb_target_obs for cris target.
3104 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3105 (cris_gdbarch_init): Move calls to
3106 set_gdbarch_fetch_tls_load_module_address and
3107 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3108 Add call to gdbarch_init_osabi.
3109 * cris-linux-tdep.c: New file.
3110 * cris-tdep.h: New file.
3111
43df09d9
AB
31122013-09-06 Andrew Burgess <aburgess@broadcom.com>
3113
3114 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3115 to deprecated_init_ui_hook.
3116
4d09c5b4
AB
31172013-09-06 Andrew Burgess <aburgess@broadcom.com>
3118
3119 * cli/cli-interp.c (_initialize_cli_interp): Add a
3120 command_loop_proc to interp_procs.
3121 * event-top.c (cli_command_loop): Change signature to match
3122 interp_command_loop_ftype.
3123 * event-top.h (cli_command_loop): Same.
3124 * interps.c (interp_new): Require every interpreter to have a
3125 command_loop_proc.
3126 (current_interp_command_loop): Just call the command_loop_proc on
3127 the current interpreter.
3128 * tui/tui-interp.c (_initialize_tui_interp): Add a
3129 command_loop_proc to interp_procs.
3130
8eb3d7b6
RW
31312013-09-06 Ricard Wanderlof <ricardw@axis.com>
3132
3133 * cris-tdep.c (cris_gdbarch_init): Add call to
3134 get_gdbarch_fetch_tls_load_module_address.
3135
18b3c2f5
RW
31362013-09-06 Ricard Wanderlof <ricardw@axis.com>
3137
3138 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3139 (cris_elf_gregset_t): Rename from elf_gregset_t.
3140 (crisv32_elf_gregset_t): Adjust.
3141 (cris_supply_gregset, fetch_core_registers): Adjust.
3142
dc8636ef
RW
31432013-09-06 Ricard Wanderlof <ricardw@axis.com>
3144
3145 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3146
257e6d53
AB
31472013-09-05 Andrew Burgess <aburgess@broadcom.com>
3148
1581d8a7 3149 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3150 references in comments.
1581d8a7 3151 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3152 deprecated_command_loop_hook.
3153 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3154 setup.
1581d8a7 3155 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3156
7c33b57c
PA
31572013-09-05 Pedro Alves <palves@redhat.com>
3158
3159 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3160 local is now int instead of ULONGEST. Print it with %d
3161 instead of paddress.
3162
9f8edbd5
TG
31632013-09-05 Tristan Gingold <gingold@adacore.com>
3164
3165 * MAINTAINERS: Remove avr maintainership.
3166
d5b495b4
PA
31672013-09-05 Pedro Alves <palves@redhat.com>
3168
3169 * findvar.c (value_of_register): Rework in terms of
3170 value_of_register_lazy.
3171
40b91786
MB
31722013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3173
3174 * symfile.c (add_symbol_file_command): Remove trailing
3175 whitespaces and blank line after comment.
3176
6eed1678
PA
31772013-09-05 Pedro Alves <palves@redhat.com>
3178
3179 * tui/tui-regs.c (tui_register_format): Don't look at the
3180 register's name here. Return string representing register
3181 value instead of storing it in the data element.
3182 (tui_get_register): Compare register string representations
3183 instead of register value states and contents.
3184
8eb6bda2
PA
31852013-09-05 Pedro Alves <palves@redhat.com>
3186
3187 PR tui/15933
3188 * tui/tui-regs.c (tui_show_registers): Show registers of the
3189 selected frame, not the current frame.
3190
48b1f08c
RW
31912013-09-05 Ricard Wanderlof <ricardw@axis.com>
3192
3193 * MAINTAINERS (Write After Approval): Add myself to the list.
3194
89e63ee4
DE
31952013-09-04 Doug Evans <dje@google.com>
3196
3197 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3198 (queue_and_load_dwo_tu): New function.
3199 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3200 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3201 Make dependent_cu optional.
3202 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3203 and an older .gdb_index is in use, queue and load all its TUs too.
3204
492c0ab7
JK
32052013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3206
3207 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3208 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3209 variable search_flags.
3210 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3211 (OPF_RETURN_REALPATH): ... here.
3212 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3213 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3214 call. Twice.
3215 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3216 openp call.
3217 * solib.c (solib_find): Likewise. Four times.
3218 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3219 in the function comment and for the realpath_fptr variable.
3220 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3221 (find_and_open_source): Likewise. Twice.
3222 * symfile.c (symfile_bfd_open): Likewise, also twice.
3223
23a44de8
DE
32242013-09-04 Doug Evans <dje@google.com>
3225
3226 * progspace.c (save_current_space_and_thread): Remove unnecessary
3227 call to save_current_inferior.
3228
47061676
AB
32292013-09-04 Andrew Burgess <aburgess@broadcom.com>
3230
3231 * sh64-tdep.c (sh64_do_register): Return after printing message
3232 about unavailable register contents.
3233
41dc8db8
MB
32342013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3235 Pedro Alves <palves@redhat.com>
3236
3237 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3238 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3239 options and collapse into single conditional branch.
41dc8db8 3240
07107ca6
LM
32412013-09-03 Luis Machado <lgustavo@codesourcery.com>
3242
a7ea61cf 3243 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3244 detach_fork.
3245 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3246 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3247 * inferior.h (detach_fork): Remove.
3248 * infrun.c (detach_fork): Adjust comment and make it
3249 static.
3250 (follow_fork): Pass detach_fork parameter to
3251 target_follow_fork.
3252 * linux-nat.c (linux_child_follow_fork): New parameter
3253 detach_fork.
3254 * target.c (target_follow_fork): New parameter detach_fork.
3255 Pass detach_fork as parameter and print its value.
3256 * target.h (struct target_ops) <to_follow_fork>: New int
3257 parameter.
3258 (target_follow_fork): New parameter detach_fork.
3259
3bec2768
JB
32602013-09-03 Joel Brobecker <brobecker@adacore.com>
3261
3262 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3263 Replace sec->bfd by sec->the_bfd_section->owner.
3264
c01cbb3d
YQ
32652013-09-03 Yao Qi <yao@codesourcery.com>
3266
3267 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3268 from linux_has_shared_address_space.
3269 (linux_has_shared_address_space): Call linux_is_uclinux.
3270 * linux-tdep.h (linux_is_uclinux): Declare.
3271 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3272 linux_is_uclinux.
3273
7b00db47
YQ
32742013-09-03 Yao Qi <yao@codesourcery.com>
3275
3276 * config/djgpp/fnchange.lst: Remove entry of
3277 i386-interix-nat.c and i386-interix-tdep.c.
3278 * configure.ac: Remove '*-*-interix*'.
3279 * configure: Re-generated.
3280 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3281 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3282 obsolete comments.
3283 * osabi.c (gdb_osabi_names): Remove "Interix".
3284
0f9741f2
YQ
32852013-09-03 Yao Qi <yao@codesourcery.com>
3286
3287 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3288
1e038f67
MM
32892013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3290
3291 * record.h (record_print_flag) <record_print_src_line,
3292 record_print_insn_range>: Rename into ...
3293 (record_print_flag) <record_print_src_line,
3294 record_print_insn_range>: ... this. Update all users.
3295
9e52adf9
PM
32962013-09-02 Pierre Muller <muller@sourceware.org>
3297
3298 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3299 error code.
3300
a2388568
PM
33012013-09-02 Pierre Muller <muller@sourceware.org>
3302
3303 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3304 by use of plongest function.
3305
9058cc3a
TG
33062013-09-02 Tristan Gingold <gingold@adacore.com>
3307
3308 * NEWS: Add entry mentioning support for native Windows x64
3309 SEH data.
3310
3311 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3312 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3313 (struct amd64_windows_frame_cache): New struct.
3314 (amd64_windows_w2gdb_regnum): New global.
3315 (pc_in_range, amd64_windows_frame_decode_epilogue)
3316 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3317 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3318 (amd64_windows_frame_this_id): New functions.
3319 (amd64_windows_frame_unwind): New static global.
3320 (amd64_windows_skip_prologue): New function.
3321 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3322 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3323 with amd64_windows_skip_prologue.
3324
3161820b 33252013-08-30 Joel Brobecker <brobecker@adacore.com>
3326
3327 GDB 7.6.1 released.
3328
02457c76
PA
33292013-08-30 Pedro Alves <palves@redhat.com>
3330
3331 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3332 SRC_AND_LOC.
3333
e0162910
PA
33342013-08-30 Pedro Alves <palves@redhat.com>
3335
3336 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3337 warning text.
3338
6391ce51
PA
33392013-08-30 Pedro Alves <palves@redhat.com>
3340
3341 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3342 Adjust arguments to print_stack_frame.
3343
d1da0587
PA
33442013-08-30 Pedro Alves <palves@redhat.com>
3345
3346 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3347
adfd8245
PA
33482013-08-30 Pedro Alves <palves@redhat.com>
3349
3350 * frame.h (show_and_print_stack_frame): Delete declaration.
3351
96d9056e
PM
33522013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3353
3354 PR python/15461
96d9056e
PM
3355 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3356 (archpy_name): Check for valid architecture.
3357 (archpy_disassemble): Ditto.
3358
11cb8762
JB
33592013-08-29 Joel Brobecker <brobecker@adacore.com>
3360
3361 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3362 instead of "long long" in call to ptrace64.
3363
1af12a7d
AB
33642013-08-29 Andrew Burgess <aburgess@broadcom.com>
3365
3366 * mi/mi-interp.c (mi_command_loop): Change signature to match
3367 interp_command_loop_ftype.
3368 (mi1_command_loop): Remove.
3369 (mi2_command_loop): Remove.
3370 (mi3_command_loop): Remove.
3371 (mi_interpreter_resume): Remove setting of
3372 deprecated_command_loop_hook.
3373 (_initialize_mi_interp): Set mi_command_loop as the command loop
3374 callback.
3375
acc900c2
SA
33762013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3377
3378 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3379 value_type.
3380
548b762d
SA
33812013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3382
3383 * value.c (allocate_value_contents): Make static.
3384 * value.h (allocate_value_contents): Remove prototype.
3385
08039c9e
SA
33862013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3387
3388 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3389 of assembling value via allocate_value_lazy and attribute setter.
3390 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3391 assembling value via allocate_value_lazy and attribute setter.
3392 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3393 assembling value via allocate_value_lazy and attribute setter.
3394
314c7de9
SA
33952013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3396
3397 * value.c (value_from_contents_and_address): Replace allocate_value and
3398 memcpy with value_from_contents.
3399
8f28f522
PM
34002013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3401
3402 * python/py-framefilter.c (py_print_frame): Remove usage of
3403 PyString_AsString. Use python_string_to_host_string instead.
3404 Refactor function to work with a string as a new allocation
3405 instead of a pointer.
3406 (py_print_frame): Ditto.
3407 * python/lib/gdb/frames.py (return_list): Cain iterators together
3408 instead of adding them as a list.
3409 (_sort_list): Call return_list, and remove duplicate code.
3410 (execute_frame_filters): Convert iterator to a list with list().
3411 * python/lib/gdb/command/frame_filters.py
3412 (SetFrameFilterPriority._set_filter_priority): Convert priority
3413 attribute to an integer.
3414 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3415 wrapper function __next__.
3416 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3417 define as "str".
3418
8ee002df
PM
34192013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3420
3421 PR python/15752
8ee002df
PM
3422 * python/py-framefilter.c (apply_frame_filter): Check
3423 gdb_python_initialized. Exit if the Python frame-filter code
3424 cannot be initialized.
3425
af4c453a
PM
34262013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3427
3428 PR cli/15842
af4c453a
PM
3429 * top.c (print_gdb_version): Remove erroneous newline after help
3430 text.
3431
bf8793bb
YQ
34322013-08-29 Yao Qi <yao@codesourcery.com>
3433
3434 * varobj.c (install_dynamic_child): Remove trailing space.
3435 Add one blank line after variable declaration.
3436
1f0c4988
JK
34372013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3438
3439 PR gdb/15415
3440 * corefile.c (get_exec_file): Use exec_filename.
3441 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3442 * exec.c (exec_close): Free EXEC_FILENAME.
3443 (exec_file_attach): New variable canonical_pathname. Use
3444 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3445 EXEC_FILENAME.
3446 * exec.h (exec_filename): New.
3447 * inferior.c (print_inferior, inferior_command): Use
3448 PSPACE_EXEC_FILENAME.
3449 * mi/mi-main.c (print_one_inferior): Likewise.
3450 * progspace.c (clone_program_space, print_program_space): Likewise.
3451 * progspace.h (struct program_space): New field pspace_exec_filename.
3452 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3453 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3454
59ee9f94
WN
34552013-08-28 Will Newton <will.newton@linaro.org>
3456
3457 * common/linux-ptrace.c: Include stdint.h unconditionally.
3458
c8a2a419
JK
34592013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3460
3461 Code cleanup.
3462 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3463
ffa4ac95
YQ
34642013-08-28 Yao Qi <yao@codesourcery.com>
3465 Pedro Alves <palves@redhat.com>
3466
3467 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3468 instead of stdio_fileopen.
3469 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3470 .Call stderr_fileopen instead of stdio_fileopen.
3471 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3472 [__MINGW32__] (stderr_file_fputs): New function.
3473 (stderr_fileopen): New function.
3474 * ui-file.h (stderr_fileopen): Declare.
3475
69d751e3
DE
34762013-08-27 Doug Evans <dje@google.com>
3477
3478 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3479 (struct dwarf2_per_cu_data): Ditto.
3480 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3481 (process_imported_unit_die): Ditto.
3482 (follow_die_sig_1): Simplify assert.
3483
44f38867
PA
34842013-08-27 Pedro Alves <palves@redhat.com>
3485
3486 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3487 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3488 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3489 windows_xfer_memory directly.
3490 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3491
d28d46b5
PA
34922013-08-27 Pedro Alves <palves@redhat.com>
3493
3494 * darwin-nat.c (darwin_xfer_memory): Delete.
3495 (_initialize_darwin_inferior): Don't install a
3496 deprecated_xfer_memory method.
3497
6211c335
YQ
34982013-08-27 Pedro Alves <pedro@codesourcery.com>
3499 Yao Qi <yao@codesourcery.com>
3500
3501 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3502 (parse_no_frames_option): Remove.
3503 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3504 (mi_cmd_stack_list_args): Adjust.
3505 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3506 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3507 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3508 Caller update.
3509 (list_args_or_locals): New parameter 'skip_unavailable'.
3510 Handle it.
3511 * valprint.c (scalar_type_p): Rename to ...
3512 (val_print_scalar_type_p): ... this. Make extern.
3513 (val_print, value_check_printable): Adjust.
3514 * valprint.h (val_print_scalar_type_p): Declare.
3515 * value.c (value_entirely_unavailable): New function.
3516 * value.h (value_entirely_unavailable): Declare.
3517
3518 * NEWS: Mention the new option "--skip-unavailable" to MI
3519 commands '-stack-list-locals', '-stack-list-arguments' and
3520 '-stack-list-variables'.
3521
242f1fd7
YQ
35222013-08-27 Yao Qi <yao@codesourcery.com>
3523
3524 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3525 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3526 options.
3527 * mi/mi-getopt.c (mi_getopt): Remove.
3528 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3529 'error_on_unknown'.
3530 (mi_getopt): Call mi_getopt_1.
3531 (mi_getopt_silent): New.
3532 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3533
260b681b
DE
35342013-08-26 Doug Evans <dje@google.com>
3535
779bd270
DE
3536 PR symtab/15885
3537 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3538 .gdb_index is in use.
3539 * symfile.c (reread_symbols): Reset objfile->sf.
3540
52e260a3
DE
3541 * NEWS: Document "mt print objfiles" now takes optional regexp.
3542 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3543 regexp of objfiles to print.
3544 (_initialize_symmisc): Update doc string for "mt print objfiles".
3545
260b681b
DE
3546 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3547 missing debug info checks.
3548
a85c52f2
UW
35492013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3550 Ulrich Weigand <uweigand@de.ibm.com>
3551
3552 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3553 line tables generated by XLC compiled binaries.
3554
4f00dda3
DE
35552013-08-23 Doug Evans <dje@google.com>
3556
db68bbae
DE
3557 * symmisc.c (dump_symtab): Delete prototype.
3558 (dump_msymbols, dump_objfile): Ditto.
3559 (maintenance_info_symtabs): Mark as dont_repeat.
3560 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3561
4f00dda3
DE
3562 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3563 debugging printf to better location.
3564
23d577b0
PA
35652013-08-23 Pedro Alves <palves@redhat.com>
3566
3567 * target.c (target_read_live_memory): Change type of 'ret' local
3568 to LONGEST.
3569
00d84524
PA
35702013-08-23 Pedro Alves <palves@redhat.com>
3571
3572 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3573 (remote_read_bytes): Change return type to LONGEST, and adjust to
3574 return a target_xfer_error on error.
3575 (remote_xfer_memory): Delete.
3576 (remote_flash_write): Change type of 'ret' local to LONGEST.
3577 (remote_xfer_partial, remote_xfer_partial): Adjust.
3578 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3579
1ed3ee94
PM
35802013-08-23 Pierre Muller <muller@sourceware.org>
3581
3582 ARI fix: Push # directives to start of line.
3583 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3584
9eaabc75
MW
35852013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3586
3587 PR gdb/15501
3588 * breakpoint.c (enable_command, disable_command): Iterate over
3589 all specified breakpoint locations.
3590
101158d9
LM
35912013-08-22 Luis Machado <lgustavo@codesourcery.com>
3592
3593 * common/linux-ptrace.c (linux_fork_to_function): Push #
3594 directives to the start of the line.
3595 (linux_check_ptrace_features): Fix warning message to use
3596 the "_" markup.
3597
96d7229d
LM
35982013-08-22 Luis Machado <lgustavo@codesourcery.com>
3599
3600 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3601 nat/linux-waitpid.h.
3602 (linux-waitpid.o): New object file rule.
3603 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3604 (current_ptrace_options): Moved from linux-nat.c.
3605 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3606 parameters.
3607 (linux_fork_to_function): New function.
3608 (linux_grandchild_function): Likewise.
3609 (linux_child_function): Likewise.
3610 (linux_check_ptrace_features): New function, heavily
3611 based on linux-nat.c:linux_test_for_tracefork.
3612 (linux_enable_event_reporting): New function.
3613 (ptrace_supports_feature): Likewise.
3614 (linux_supports_tracefork): Likewise.
3615 (linux_supports_traceclone): Likewise.
3616 (linux_supports_tracevforkdone): Likewise.
3617 (linux_supports_tracesysgood): Likewise.
3618 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3619 gdbserver/linux-low.c.
3620 (linux_enable_event_reporting): New declaration.
3621 (linux_supports_tracefork): Likewise.
3622 (linux_supports_traceclone): Likewise.
3623 (linux_supports_tracevforkdone): Likewise.
3624 (linux_supports_tracesysgood): Likewise.
3625 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3626 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3627 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3628 * config/arm/linux.mh (NATDEPFILES): Likewise.
3629 * config/i386/linux.mh (NATDEPFILES): Likewise.
3630 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3631 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3632 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3633 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3634 * config/mips/linux.mh (NATDEPFILES): Likewise.
3635 * config/pa/linux.mh (NATDEPFILES): Likewise..
3636 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3637 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3638 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3639 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3640 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3641 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3642 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3643 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3644 ptrace's 4th argument's types.
3645 Check the type of PTRACE_TYPE_ARG4.
3646 * configure: Regenerate.
3647 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3648 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3649 (linux_supports_tracefork_flag): Remove.
3650 (linux_supports_tracesysgood_flag): Likewise.
3651 (linux_supports_tracevforkdone_flag): Likewise.
3652 (current_ptrace_options): Moved to
3653 common/linux-ptrace.c.
3654 (linux_tracefork_child): Remove.
3655 (my_waitpid): Remove.
3656 (linux_test_for_tracefork): Renamed to
3657 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3658 (linux_test_for_tracesysgood): Remove.
3659 (linux_supports_tracesysgood): Remove.
3660 (linux_supports_tracefork): Remove.
3661 (linux_supports_tracevforkdone): Remove.
3662 (linux_enable_tracesysgood): Remove.
3663 (linux_enable_event_reporting): Remove.
3664 (linux_init_ptrace): New function.
3665 (linux_child_post_attach): Call linux_init_ptrace.
3666 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3667 (linux_child_follow_fork): Call linux_supports_tracefork
3668 and linux_supports_tracevforkdone.
3669 (linux_child_insert_fork_catchpoint): Call
3670 linux_supports_tracefork.
3671 (linux_child_insert_vfork_catchpoint): Likewise.
3672 (linux_child_set_syscall_catchpoint): Call
3673 linux_supports_tracesysgood.
3674 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3675 * nat/linux-nat.h: New file.
3676 * nat/linux-waitpid.c: New file.
3677 * nat/linux-waitpid.h: New file.
3678
9f948660
SDJ
36792013-08-22 Samuel Bronson <naesten@gmail.com>
3680
3681 ARM Linux support for `catch syscall'.
3682 * syscalls/arm-linux.py: New file.
3683 * syscalls/arm-linux.xml: Likewise.
3684 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3685 (arm_linux_init_abi): Register the new function and syscall xml file.
3686 * data-directory/Makefile.in: Install the new syscall xml file.
3687 * NEWS: Brag about this.
3688
6be7b56e
PA
36892013-08-22 Pedro Alves <palves@redhat.com>
3690
3691 PR gdb/15871
3692 * corefile.c (target_xfer_memory_error): New function.
3693 (memory_error): Defer EIO to target_memory_error.
3694 (read_memory): Use target_xfer_partial, and handle finer-grained
3695 target xfer errors.
3696 * target.c (target_xfer_error_to_string): New function.
3697 (memory_xfer_partial_1): If memory is known to be
3698 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3699 (target_xfer_partial): Make extern.
3700 * target.h (enum target_xfer_error): New enum.
3701 (target_xfer_error_to_string): Declare function.
3702 (target_xfer_partial): Declare function.
3703 (struct target_ops) <xfer_partial>: Adjust describing comment.
3704
bcbec14e
AM
37052013-08-22 Alan Modra <amodra@gmail.com>
3706
3707 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3708 * configure.tgt: Likewise as targets.
3709
fc474241
DE
37102013-08-20 Doug Evans <dje@google.com>
3711
3712 * buildsym.c (subfile_stack): Move here from buildsym.h.
3713 (pending_macros): Ditto.
3714 (get_macro_table): New function.
3715 (buildsym_init): Initialize subfile_stack.
3716 * coffread.c (type_vector,type_vector_length): Moved here from
3717 buildsym.h.
3718 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3719 (coff_symtab_read): Use it.
3720 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3721 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3722 with call to get_macro_table.
3723 * stabsread.c (type_vector,type_vector_length): Moved here from
3724 buildsym.h.
3725 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3726 * buildsym.h (get_macro_table): Declare.
3727
bec71544
TT
37282013-08-20 Tom Tromey <tromey@redhat.com>
3729
3730 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3731 Update.
3732 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3733
0002ad5f
DE
37342013-08-20 Doug Evans <dje@google.com>
3735
3736 * blockframe.c: Remove #include "psymtab.h".
3737 * cp-support.c: Ditto.
3738 * source.c: Ditto.
3739 * stack.c: Ditto.
3740
df302446
TT
37412013-08-20 Tom Tromey <tromey@redhat.com>
3742
3743 PR python/15816:
3744 * exceptions.h (return_mask): Now an enum.
3745 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3746 enum constants.
3747
df6d5441
TT
37482013-08-20 Tom Tromey <tromey@redhat.com>
3749
3750 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3751 get_objfile_arch.
3752 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3753 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3754 * jit.c (jit_object_close_impl): Update.
3755 * jv-lang.c (get_dynamics_objfile): Update.
3756 * linespec.c (add_minsym): Use get_dynamics_objfile.
3757 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3758 (allocate_objfile): Don't initialize 'gdbarch' field.
3759 (get_objfile_arch): Update.
3760 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3761 moved from...
3762 (struct objfile) <gdbarch>: ... here. Remove.
3763 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3764 get_objfile_arch.
3765 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3766
f5aee5ee
AM
37672013-08-20 Alan Modra <amodra@gmail.com>
3768
3769 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3770 for IBM long double nan and inf.
3771 (floatformat_is_negative, floatformat_classify,
3772 floatformat_mantissa): Similarly.
3773 (floatformat_ieee_single, floatformat_ieee_double,
3774 floatformat_ieee_quad, floatformat_arm_ext,
3775 floatformat_ia64_spill): Delete unused vars.
3776 (_initialize_doublest): Delete unused function.
3777 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3778 little-endian variants of floatformat_ibm_long_double.
3779
33b60d58 37802013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3781
33b60d58
LM
3782 * Makefile.in (SFILES): Remove common/target-common.c and
3783 add target/waitstatus.c.
3784 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3785 target/resume.h, target/wait.h and target/waitstatus.h.
3786 (COMMON_OBS): Remove target-common.o and add
3787 waitstatus.o.
3788 (target-common.o): Remove.
3789 (waitstatus.o): New target object file.
3790 * common/target-common.c: Move contents to
3791 target/waitstatus.c and remove.
3792 * common/target-common.h: Move contents to other files and
3793 remove.
3794 (enum resume_kind: Move to target/resume.h.
3795 (TARGET_WNOHANG): Move to target/wait.h.
3796 (enum target_waitkind): Move to target/waitstatus.h.
3797 (struct target_waitstatus): Likewise.
3798 * target.h: Do not include target-common.h and
3799 include target/resume.h, target/wait.h and
3800 target/waitstatus.h.
3801 * target/resume.h: New file.
3802 * target/wait.h: New file.
3803 * target/waitstatus.h: New file.
3804 * target/waitstatus.c: New file.
3805
12696c10
PA
38062013-08-19 Pedro Alves <palves@redhat.com>
3807
3808 * linux-nat.c (linux_test_for_tracefork)
3809 (linux_test_for_tracesysgood, linux_child_follow_fork)
3810 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3811 (linux_nat_wait_1): Extend comment.
3812 (linux_async_pipe): Add comment.
3813
ba89f962
KB
38142013-08-15 Kevin Buettner <kevinb@redhat.com>
3815
3816 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3817 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3818 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3819 Update to account for fact that PC is now a pseudo-register.
3820 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3821 cases for RL78_PC_REGNUM.
3822
35ab155d
MB
38232013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3824
3825 PR cli/15841
3826 * top.c (quit_force): Skip writing history file
3827 if input is not from terminal.
3828
0d031856
TT
38292013-08-14 Tom Tromey <tromey@redhat.com>
3830
3831 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3832 resultthreadlist>: New fields.
3833 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3834 (remote_get_threadlist, remote_threadlist_iterator): Use
3835 new fields. Remove static variables.
3836
ee154bee
TT
38372013-08-14 Tom Tromey <tromey@redhat.com>
3838
3839 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3840 remote_watch_data_address>: New fields.
3841 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3842 (process_stop_reply, remote_wait_as)
3843 (remote_check_watch_resources, remote_stopped_data_address): Update.
3844
88b496c3
TT
38452013-08-14 Tom Tromey <tromey@redhat.com>
3846
3847 * remote.c (struct remote_state) <async_client_callback,
3848 async_client_context>: New fields.
3849 (async_client_callback, async_client_context): Remove.
3850 (remote_async_serial_handler, remote_async): Update.
3851
2f65bcb7
TT
38522013-08-14 Tom Tromey <tromey@redhat.com>
3853
3854 * remote.c (sizeof_pkt): Remove.
3855 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3856
b80fafe3
TT
38572013-08-14 Tom Tromey <tromey@redhat.com>
3858
3859 * remote.c (struct remote_state) <use_threadinfo_query,
3860 use_threadextra_query>: New fields.
3861 (remote_threads_info, remote_threads_extra_info)
3862 (remote_open_1): Update.
3863
8e88304f
TT
38642013-08-14 Tom Tromey <tromey@redhat.com>
3865
3866 * remote.c (struct remote_state) <finished_object,
3867 finished_annex, finished_offset>: New fields.
3868 (remote_read_qxfer): Use remote_state fields; remove static
3869 variables.
3870
280ceea3
TT
38712013-08-14 Tom Tromey <tromey@redhat.com>
3872
3873 * remote.c (struct remote_state) <last_sent_step>:
3874 New field.
3875 (last_sent_step): Remove.
3876 (remote_resume, remote_wait_as): Update.
3877
b73be471
TT
38782013-08-14 Tom Tromey <tromey@redhat.com>
3879
3880 * remote.c (struct remote_state) <last_sent_signal>:
3881 New field.
3882 (last_sent_signal): Remove.
3883 (new_remote_state, remote_resume, remote_wait_as): Update.
3884
5e4a05c4
TT
38852013-08-14 Tom Tromey <tromey@redhat.com>
3886
3887 * remote.c (struct remote_state) <last_program_signals_packet>:
3888 New field.
3889 (last_program_signals_packet): Remove.
3890 (remote_program_signals, remote_open_1): Update.
3891
747dc59d
TT
38922013-08-14 Tom Tromey <tromey@redhat.com>
3893
3894 * remote.c (struct remote_state) <last_pass_packet>:
3895 New field.
3896 (last_pass_packet): Remove.
3897 (remote_pass_signals, remote_open_1): Update.
3898
262e1174
TT
38992013-08-14 Tom Tromey <tromey@redhat.com>
3900
3901 * remote.c (struct remote_state) <remote_traceframe_number>:
3902 New field.
3903 (remote_traceframe_number): Remove.
3904 (new_remote_state, remote_open_1, set_remote_traceframe)
3905 (remote_trace_find): Update.
3906
47f8a51d
TT
39072013-08-14 Tom Tromey <tromey@redhat.com>
3908
3909 * remote.c (struct remote_state) <general_thread, continue_thread>:
3910 New fields.
3911 (general_thread, continue_thread): Remove.
3912 (record_currthread, set_thread, set_general_process)
3913 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3914 (extended_remote_mourn_1): Update.
3915
5d93a237
TT
39162013-08-14 Tom Tromey <tromey@redhat.com>
3917
3918 * remote.c (struct remote_state) <remote_desc>: New field.
3919 (remote_desc): Remove.
3920 (remote_threads_info, remote_threads_extra_info, remote_close)
3921 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3922 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3923 (remote_hostio_send_command, remote_file_put, remote_file_get)
3924 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3925 (remote_async, remote_new_objfile, set_range_stepping): Update.
3926
cf792862
TT
39272013-08-14 Tom Tromey <tromey@redhat.com>
3928
3929 * remote.c (remote_state): Now a pointer.
3930 (get_remote_state_raw): Update.
3931 (new_remote_state): New function.
3932 (_initialize_remote): Use new_remote_state.
3933
dc473cfb
TT
39342013-08-14 Tom Tromey <tromey@redhat.com>
3935
3936 * remote.c (remote_protocol_features): Now const.
3937
85ec6ce7
TT
39382013-08-14 Tom Tromey <tromey@redhat.com>
3939
3940 * remote.c (crc32_table, crc32): Remove.
3941 (remote_verify_memory): Use xcrc32.
3942
73033f12
SDJ
39432013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3944
3945 * value.h (create_internalvar_type_lazy): Adjust prototype
3946 declaration.
3947
5c30d39a
AB
39482013-08-13 Andrew Burgess <aburgess@broadcom.com>
3949
3950 * common/format.c (parse_format_string): Don't allow '#' flag for
3951 pointer arguments in format string.
3952
1a66331e
PM
39532013-08-13 Pierre Muller <muller@sourceware.org>
3954
fde605f3 3955 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3956 if rl_get_screen_size did not return useful values.
3957
b4013987
AA
39582013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3959
3960 PR breakpoints/15117
3961 * linespec.c (linespec_parse_basic): Check for convenience
3962 variable or history value while parsing.
3963
959b6a66
SDJ
39642013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3965
3966 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3967 AVR.
3968 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3969 different signals between the generic Linux kernel implementation
3970 and AVR's.
3971 (avr_linux_gdb_signal_from_target): Delete.
3972 (avr_linux_gdb_signal_to_target): Delete.
3973 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3974
24a55014
DE
39752013-08-09 Doug Evans <dje@google.com>
3976
3977 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3978 entries.
3979
eb14d406
SDJ
39802013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3981
3982 * linux-tdep.c: Define enum with generic signal numbers.
3983 (linux_gdb_signal_from_target): New function.
3984 (linux_gdb_signal_to_target): Likewise.
3985 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3986 methods to the functions above.
3987 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3988 (linux_gdb_signal_to_target): Likewise.
3989 * alpha-linux-tdep.c: Define new enum with signals different
3990 from generic Linux kernel.
3991 (alpha_linux_gdb_signal_from_target): New function.
3992 (alpha_linux_gdb_signal_to_target): Likewise.
3993 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3994 with the functions mentioned above.
3995 * avr-tdep.c: Define enum with differences between Linux kernel
3996 and AVR signals.
3997 (avr_linux_gdb_signal_from_target): New function.
3998 (avr_linux_gdb_signal_to_target): Likewise.
3999 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4000 the functions mentioned above.
4001 * sparc-linux-tdep.c: Define enum with differences between SPARC
4002 and generic Linux kernel signal numbers.
4003 (sparc32_linux_gdb_signal_from_target): New function.
4004 (sparc32_linux_gdb_signal_to_target): Likewise.
4005 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4006 to the functions defined above.
4007 * xtensa-linux-tdep.c: Define enum with differences between
4008 Xtensa and Linux kernel generic signals.
4009 (xtensa_linux_gdb_signal_from_target): New function.
4010 (xtensa_linux_gdb_signal_to_target): Likewise.
4011 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4012 to the functions defined above.
4013 * mips-linux-tdep.c: Define enum with differences between
4014 signals in MIPS and Linux kernel generic ones.
4015 (mips_gdb_signal_to_target): New function.
4016 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4017 only different signals from the Linux kernel generic.
4018 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4019 the functions defined above.
4020 * mips-linux-tdep.h (enum mips_signals): Remove.
4021
156d08c8
PA
40222013-08-09 Pedro Alves <palves@redhat.com>
4023
4024 * avr-tdep.c (XMALLOC): Delete macro.
4025 * cli/cli-dump.c (XMALLOC): Delete macro.
4026
db229724
PA
40272013-08-09 Pedro Alves <palves@redhat.com>
4028
4029 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4030 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4031 (fopen_with_cleanup, add_dump_command): Make static.
4032 * cli/cli-dump.h: Delete file.
4033 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4034 cli/cli-dump.h.
4035
3f12a589
PA
40362013-08-09 Pedro Alves <palves@redhat.com>
4037
4038 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4039 error message.
4040
c718be47
PA
40412013-08-09 Pedro Alves <palves@redhat.com>
4042
156d08c8 4043 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4044 error message.
4045
1e351ed1
PA
40462013-08-09 Pedro Alves <palves@redhat.com>
4047
4048 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4049 (gcore_command): Use tilde_expand here, and when showing the
4050 filename to the user, show the expanded version.
4051
1ed8d800
YQ
40522013-08-09 Yao Qi <yao@codesourcery.com>
4053
4054 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4055 'entryval' is set.
4056
47ecca85
PA
40572013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4058
4059 * gcore.c (create_gcore_bfd): Use tilde_expand.
4060
82a0a75f
YQ
40612013-08-08 Yao Qi <yao@codesourcery.com>
4062
4063 * frame.h (read_frame_local): Declare.
4064 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4065 read_frame_local.
4066 * stack.c (read_frame_local): New.
4067
5c4aa40b
YQ
40682013-08-08 Yao Qi <yao@codesourcery.com>
4069
4070 * mi/mi-cmd-stack.c: Update comments to function
4071 list_args_or_locals.
4072
b93601f3
TT
40732013-08-07 Tom Tromey <tromey@redhat.com>
4074
4075 PR symtab/15028:
4076 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4077 (process_psymtab_comp_unit_reader): Use it.
4078 (process_psymtab_comp_unit): Update. Add "pretend_language"
4079 argument.
4080 (dwarf2_build_psymtabs_hard): Update.
4081 (scan_partial_symbols): Pass CU's language to
4082 process_psymtab_comp_unit.
4083
fa760f46
TT
40842013-08-07 Tom Tromey <tromey@redhat.com>
4085
4086 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4087 (dwarf2_gdb_index_functions): Update.
4088 * psymtab.c (find_symbol_file_from_partial): Remove.
4089 (psym_functions): Update.
4090 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4091 Remove.
4092
bf6d8a91
TT
40932013-08-07 Tom Tromey <tromey@redhat.com>
4094
4095 * symfile.c (set_initial_language): Look up "main" symbol
4096 and use its language.
4097 * symtab.c (find_main_filename): Remove.
4098 * symtab.h (find_main_filename): Remove.
4099
f9125b6c
TT
41002013-08-07 Tom Tromey <tromey@redhat.com>
4101
4102 * dwarf2read.c (recursively_compute_inclusions): Add
4103 "immediate_parent" argument. Set symtab's "user" field
4104 if not set.
4105 (compute_symtab_includes): Update.
4106
fdbb204b
TT
41072013-08-07 Tom Tromey <tromey@redhat.com>
4108
4109 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4110 when adding label symbols.
4111
49de1690
UW
41122013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4113 Ulrich Weigand <uweigand@de.ibm.com>
4114
4115 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4116 * configure.host (powerpc64-*-aix*): Likewise.
4117
b08ee99f
UW
41182013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4119 Ulrich Weigand <uweigand@de.ibm.com>
4120
4121 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4122 is defined.
4123 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4124 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4125 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4126 * configure.ac: Check for ptrace64.
4127 * configure, config.in: Regenerate.
4128
fecf803e
UW
41292013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4130 Ulrich Weigand <uweigand@de.ibm.com>
4131
4132 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4133 Call ptrace64 instead of ptrace if defined.
4134 Add macro addr_ptr to take care of ptrace address argument.
4135 (pdc_read_regs): Likewise.
4136 (pdc_write_regs): Likewise.
4137 (aix_thread_resume): Likewise.
4138 (fetch_regs_kernel_thread): Likewise.
4139 (store_regs_kernel_thread): Likewise.
4140
3bb5e4a8
AB
41412013-08-07 Anton Blanchard <anton@samba.org>
4142
4143 * MAINTAINERS: Add myself to Write After Approval.
4144
12070676
TT
41452013-08-05 Tom Tromey <tromey@redhat.com>
4146
4147 * aix-thread.c (_initialize_aix_thread): Use
4148 complete_target_initialization.
4149 * bsd-uthread.c (_initialize_bsd_uthread): Use
4150 complete_target_initialization.
4151 * dec-thread.c (_initialize_dec_thread): Use
4152 complete_target_initialization.
4153 * ravenscar-thread.c (_initialize_ravenscar): Use
4154 complete_target_initialization.
4155 * sol-thread.c (_initialize_sol_thread): Use
4156 complete_target_initialization.
4157 * spu-multiarch.c (_initialize_spu_multiarch): Use
4158 complete_target_initialization.
4159
7c7b6655
TT
41602013-08-05 Tom Tromey <tromey@redhat.com>
4161
4162 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4163 * ada-lang.c (ada_lookup_simple_minsym): Return
4164 bound_minimal_symbol.
4165 * ada-lang.h (ada_lookup_simple_minsym): Update.
4166 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4167 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4168 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4169 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4170 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4171 * minsyms.c (msymbol_objfile): Remove.
4172 (lookup_minimal_symbol_internal): New function, from
4173 lookup_minimal_symbol.
4174 (lookup_minimal_symbol): Rewrite using
4175 lookup_minimal_symbol_internal.
4176 (lookup_bound_minimal_symbol): New function.
4177 * minsyms.h (msymbol_objfile): Remove.
4178 (lookup_bound_minimal_symbol): Declare.
4179 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4180 * parse.c (write_exp_msymbol): Change parameter to a
4181 bound_minimal_symbol.
4182 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4183 * parser-defs.h (write_exp_msymbol): Update.
4184 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4185 * symfile.c (simple_read_overlay_table): Use
4186 lookup_bound_minimal_symbol.
4187 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4188 (search_symbols): Likewise.
4189 (print_msymbol_info): Take a bound_minimal_symbol argument.
4190 (symtab_symbol_info, rbreak_command): Update.
4191 * symtab.h (struct symbol_search) <msymbol>: Change type
4192 to bound_minimal_symbol.
4193 * valops.c (find_function_in_inferior): Use
4194 lookup_bound_minimal_symbol.
4195 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4196
934b9bac
JK
41972013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4198
4199 Code cleanup.
4200 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4201 to ...
4202 (async_cleanup_sigint_signal_handler): ... this.
4203 (initialize_sigint_signal_handler): Remove declaration.
4204 (handle_remote_sigint): Rename the declaration to ...
4205 (async_handle_remote_sigint): ... this.
4206 (handle_remote_sigint_twice): Rename the declaration to ...
4207 (async_handle_remote_sigint_twice): ... this.
4208 (async_remote_interrupt, async_remote_interrupt_twice)
4209 (remote_interrupt): Remove the declarations.
4210 (remote_interrupt_twice): Rename the declaration ...
4211 (sync_remote_interrupt_twice): ... this.
4212 (sigint_remote_twice_token): Rename the variable to ...
4213 (async_sigint_remote_twice_token): ... this.
4214 (sigint_remote_token): Rename the variable to ...
4215 (async_sigint_remote_token): ... this.
4216 (initialize_sigint_signal_handler): Rename the function to ...
4217 (async_initialize_sigint_signal_handler): ... this. Update the name
4218 inside.
4219 (handle_remote_sigint): Rename the function to ...
4220 (async_handle_remote_sigint): ... this. Update the names inside.
4221 (handle_remote_sigint_twice): Rename the function to ...
4222 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4223 (cleanup_sigint_signal_handler): Rename the function to ...
4224 (async_cleanup_sigint_signal_handler): ... this.
4225 (remote_interrupt): Rename the function to ...
4226 (sync_remote_interrupt): this. Update the names inside.
4227 (remote_interrupt_twice): Rename the function to ...
4228 (sync_remote_interrupt_twice): this. Update the names inside.
4229 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4230 (_initialize_remote): Update the names inside.
4231
3a1115a0
TT
42322013-08-02 Tom Tromey <tromey@redhat.com>
4233
4234 PR symtab/15719:
4235 * breakpoint.c (update_watchpoint, watchpoint_check)
4236 (watch_command_1): Update.
4237 * eval.c (fetch_subexp_value): Add "preserve_errors"
4238 parameter.
4239 * ppc-linux-nat.c (check_condition): Update.
4240 * value.h (fetch_subexp_value): Update.
4241
58b19776
AB
42422013-08-02 Andrew Burgess <aburgess@broadcom.com>
4243
4244 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4245 add_file_handler.
4246
ec94af83
DE
42472013-08-01 Doug Evans <dje@google.com>
4248
7ee85ab1
DE
4249 PR symtab/15691
4250 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4251 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4252 Add assert of sig_entry->dwo_unit == NULL.
4253 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4254 had already been read.
4255 (read_signatured_type): Set per_cu.tu_read.
4256
b846d303
DE
4257 PR symtab/15695
4258 * valops.c (value_struct_elt): Add missing call to check_typedef.
4259 (value_find_oload_method_list): Ditto.
4260
b52109bc
DE
4261 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4262 effectively, struct symbol_search **.
4263 (make_cleanup_free_search_symbols): Change arg to struct
4264 symbol_search **. All callers updated.
4265 (compare_search_syms): Compare symtab file name and block as well.
4266 (search_symbols_equal): New function.
4267 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4268 New args new_head, new_tail. Result is now void. Remove dups after
4269 sorting the symbols.
4270 (search_symbols): Sort all found symbols once, after all have been
4271 found, and remove duplicates. Simplify cleanup tracking of result.
4272 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4273
ec94af83
DE
4274 Further workarounds for binutils/15021.
4275 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4276 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4277 Watch for duplicate symtabs coming from type units.
4278 (compute_symtab_includes): Update call to
4279 recursively_compute_inclusions. Build vector of included symtabs
4280 instead of per_cus.
4281 * symtab.h (symtab_ptr): New typedef.
4282 (DEF_VEC_P (symtab_ptr)): New VEC type.
4283 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4284 instead.
4285
b2ae85cf
AB
42862013-08-01 Andrew Burgess <aburgess@broadcom.com>
4287
4288 * cli/cli-script.c (script_from_file): Remove use of
4289 error_pre_print.
4290 * main.c (captured_main): Remove use of error_pre_print and
4291 quit_pre_print.
4292 * utils.c (error_pre_print, quit_pre_print): Remove.
4293 * utils.h (error_pre_print, quit_pre_print): Likewise.
4294
645eab03
YQ
42952013-08-01 Yao Qi <yao@codesourcery.com>
4296
4297 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4298 with mi_getopt.
4299 (mi_cmd_stack_list_variables): Likewise.
4300
16f92dd4
AB
43012013-07-31 Andrew Burgess <aburgess@broadcom.com>
4302
4303 * exceptions.c (deprecated_throw_reason): Remove.
4304 * exceptions.h (deprecated_throw_reason): Remove.
4305
13f78033
AB
43062013-07-31 Andrew Burgess <aburgess@broadcom.com>
4307
4308 * remote-mips.c (mips_error): Replace use of
4309 deprecated_throw_reason with throw_verror. Use the error message
4310 passed to mips_error as the error message for throw_verror.
4311
039e3c22
AB
43122013-07-31 Andrew Burgess <aburgess@broadcom.com>
4313
4314 * monitor.c (monitor_interrupt_query): Replace use of
4315 deprecated_throw_reason with quit.
4316 * nto-procfs.c (interrupt_query): Likewise.
4317 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4318 * remote-mips.c (mips_kill): Likewise.
4319 * remote.c (interrupt_query): Likewise.
4320
8150913b
AB
43212013-07-31 Andrew Burgess <aburgess@broadcom.com>
4322
4323 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4324 with call to fatal.
4325
de74e63a
YQ
43262013-07-31 Pedro Alves <pedro@codesourcery.com>
4327 Yao Qi <yao@codesourcery.com>
4328
4329 * tracepoint.c (trace_dump_command): Select the current frame.
4330
247f5c4f
DE
43312013-07-30 Doug Evans <dje@google.com>
4332
4333 * dwarf2read.c (process_queue): Add type signature to debug output.
4334
11b4b7cc
AB
43352013-07-30 Andrew Burgess <aburgess@broadcom.com>
4336
4337 * value.c (value_fetch_lazy): Mark optimized out values as such
4338 rather than raising an error.
4339
b0c54aa5
AB
43402013-07-30 Andrew Burgess <aburgess@broadcom.com>
4341
4342 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4343 before checking which bits of the parent, not the child, value are
4344 valid.
4345
97c85fc6
MB
43462013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4347
4348 PR gdb/15715
4349 * top.c: Include "filenames.h".
4350 (set_history_filename): New function.
4351 (init_main): Install it as set hook of the "set history filename"
4352 command.
4353
ff39bb5e
SA
43542013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4355
4356 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4357 attribute parameter.
4358 (dwarf2_const_value_data): Constify struct attribute parameter.
4359 (dwarf2_const_value): Constify struct attribute parameter.
4360 (dwarf2_const_value_attr): Constify struct attribute parameter.
4361 (lookup_die_type): Constify struct attribute parameter.
4362 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4363 (follow_die_ref_or_sig): Constify struct attribute parameter.
4364 (follow_die_ref): Constify struct attribute parameter.
4365 (follow_die_sig): Constify struct attribute parameter.
4366 (get_DW_AT_signature_type): Constify struct attribute parameter.
4367 (get_type_unit_group): Constify struct attribute parameter.
4368 (fill_in_loclist_baton): Constify struct attribute parameter.
4369 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4370 (type_unit_group): Constify struct attribute parameter.
4371
6e5a29e1
SA
43722013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4373
4374 * dwarf2read.c (attr_form_is_block): Make argument const.
4375 (attr_form_is_section_offset): Make argument const.
4376 (attr_form_is_constant): Make argument const.
4377 (attr_form_is_ref): Make argument const.
4378
7771576e
SA
43792013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4380
4381 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4382 All uses updated.
4383 (attr_form_is_ref): Moved below attr_form_is_constant.
4384
a94e8645
DE
43852013-07-29 Doug Evans <dje@google.com>
4386
bb5291d0
DE
4387 * main.c (captured_command_loop): Tweak comment.
4388
b5419e49
DE
4389 * target.c (target_async_permitted_1): Fix comment.
4390
b2d23133
DE
4391 * symtab.c (iterate_over_some_symtabs): Add comment.
4392
a94e8645
DE
4393 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4394
7a60ad40
YQ
43952013-07-27 Yao Qi <yao@codesourcery.com>
4396
4397 * NEWS: Mention that GDBserver now supports hardware
4398 watchpoints on the MIPS GNU/Linux target.
4399
aaee2056
YQ
44002013-07-27 Yao Qi <yao@codesourcery.com>
4401
4402 * Makefile.in (HFILES_NO_SRCDIR): Add
4403 common/mips-linux-watch.h.
4404 (mips-linux-watch.o): New rule.
4405 * common/mips-linux-watch.c: New.
4406 * common/mips-linux-watch.h: New.
4407 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4408 * mips-linux-nat.c: Include mips-linux-watch.h.
4409 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4410 to common/mips-linux-watch.h.
4411 (MAX_DEBUG_REGISTER): Likewise.
4412 (enum pt_watch_style): Likewise.
4413 (struct mips32_watch_regs): Likewise.
4414 (struct mips64_watch_regs): Likewise.
4415 (struct pt_watch_regs): Likewise.
4416 (struct mips_watchpoint): Likewise.
4417 (mips_linux_watch_get_irw_mask): Move to
4418 common/mips-linux-watch.c.
4419 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4420 (mips_linux_watch_get_watchlo): Likewise.
4421 (mips_linux_watch_set_watchlo): Likewise.
4422 (mips_linux_watch_get_watchhi): Likewise.
4423 (mips_linux_watch_set_watchhi): Likewise.
4424 (mips_linux_read_watch_registers): Likewise.
4425 (mips_linux_watch_type_to_irw): Likewise.
4426 (mips_linux_stopped_data_address, fill_mask): Likewise.
4427 (mips_linux_watch_try_one_watch): Likewise.
4428 (mips_linux_watch_populate_regs): Likewise.
4429
b3436450
YQ
44302013-07-27 Yao Qi <yao@codesourcery.com>
4431
4432 * mips-linux-nat.c (get_irw_mask): Rename to ...
4433 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4434 'set' to 'n'. Update function comment. All callers changed.
4435 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4436 function comment. All callers changed.
4437 (get_num_valid): Rename to ...
4438 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4439 'set' to 'n'. Update function comment. All callers changed.
4440 (get_watchlo): Rename to ...
4441 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4442 'set' to 'n'. Update function comment. All callers changed.
4443 (set_watchlo): Rename to ...
4444 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4445 'set' to 'n'. Update function comment. All callers changed.
4446 (get_watchhi): Rename to ...
4447 (mips_linux_watch_get_watchhi): ... this. Update function
4448 comment. All callers changed.
4449 (set_watchhi): Rename to ...
4450 (mips_linux_watch_set_watchhi): ... this. Update function
4451 comment. All callers changed.
4452 (mips_linux_read_watch_registers): Update function comment.
4453 Add new parameters 'lwpid', 'watch_readback', and
4454 'watch_readback_valid'. Update.
4455 (type_to_irw): Rename to ...
4456 (mips_linux_watch_type_to_irw): ... this. Update function
4457 comment. All callers changed.
4458 (fill_mask): Update function comment.
4459 (try_one_watch): Rename to ...
4460 (mips_linux_watch_try_one_watch): ... this. Change the type
4461 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4462 (populate_regs_from_watches): Rename to ...
4463 (mips_linux_watch_populate_regs): ... this. Add parameter
4464 'current_watches'. All callers changed.
4465
9be14b81
YQ
44662013-07-27 Yao Qi <yao@codesourcery.com>
4467
4468 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4469 the code.
4470 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4471 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4472 (struct pt_watch_regs): Likewise.
4473 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4474 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4475 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4476 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4477 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4478
de6f69ad
YQ
44792013-07-27 Yao Qi <yao@codesourcery.com>
4480
4481 * breakpoint.h: Include break-common.h.
4482 (enum target_hw_bp_type): Move to ...
4483 * common/break-common.h: ... here. New.
4484
6f64ef53
PA
44852013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4486
4487 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4488 process group regardless of having tty on stdin.
4489
6107e809
DE
44902013-07-25 Doug Evans <dje@google.com>
4491
4492 * linux-fork.h (detach_fork): Delete.
4493
7fdc1521
TT
44942013-07-25 Tom Tromey <tromey@redhat.com>
4495
4496 PR remote/15256, PR remote/15266:
4497 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4498 * monitor.c (monitor_detach): Use unpush_target.
4499 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4500 * remote-mips.c (mips_detach): Use unpush_target. Don't
4501 call mips_close.
4502 * remote-sim.c (gdbsim_detach): Use unpush_target.
4503 * target.c (pop_target): Remove.
4504 (pop_all_targets_above): Don't call target_close.
4505 (target_close): Assert that the target is unpushed.
4506 * target.h (pop_target): Don't declare.
4507 * tracepoint.c (tfile_open): Use unpush_target.
4508
c22a2b88
TT
45092013-07-25 Tom Tromey <tromey@redhat.com>
4510
4511 * linux-thread-db.c (init_thread_db_ops): Call
4512 complete_target_initialization.
4513 (_initialize_thread_db): Don't call add_target.
4514 * target.c (complete_target_initialization): New function.
4515 (add_target_with_completer): Call it.
4516 * target.h (complete_target_initialization): Declare.
4517
cbb6aada
MK
45182013-07-25 Mark Kettenis <kettenis@gnu.org>
4519
4520 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4521 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4522 (HPPANBSD_SIZEOF_GREGS): New define.
4523 (hppaobsd_supply_gregset): Handle additional registers.
4524 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4525 we provide more registers now.
4526 (hppabsd_supply_gregset): Supply additional registers.
4527 (hppabsd_collect_gregset): Collect additional registers.
4528
17767988
MK
45292013-07-25 Mark Kettenis <kettenis@gnu.org>
4530
4531 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4532 (hppabsd_dwarf2_frame_init_reg): New function.
4533 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4534
fdc8aae8
AB
45352013-07-25 Andrew Burgess <aburgess@broadcom.com>
4536
4537 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4538 'z' format code. Remove error for optimized out values, standard
4539 code will handle these fine.
4540
6fbe845e
AB
45412013-07-25 Andrew Burgess <aburgess@broadcom.com>
4542
4543 * NEWS: Mention new 'z' formatter.
4544 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4545 (_initialize_printcmd): Mention 'z' formatter in help text of the
4546 'x' command.
4547
3373342d
MR
45482013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4549
4550 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4551 formatting.
4552
25f9533e
SDJ
45532013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4554
4555 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4556 interface can evaluate arguments. Fallback to the old mode if it
4557 cannot.
4558 (create_exception_master_breakpoint): Likewise.
4559 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4560 (struct sym_probe_fns elf_probe_fns): Export function above to the
4561 probe interface.
4562 * probe.c (can_evaluate_probe_arguments): New function.
4563 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4564 function pointer.
4565 (can_evaluate_probe_arguments): New function prototype.
4566 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4567 probe interface can evaluate arguments. Fallback to the old mode
4568 if it cannot.
4569 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4570 interface can evaluate arguments. Warning the user if it cannot.
4571 (stap_can_evaluate_probe_arguments): New function.
4572 (struct probe_ops stap_probe_ops): Export function above to the
4573 probe interface.
4574 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4575 New function pointer.
4576
3360c0bf
LM
45772013-07-24 Luis Machado <lgustavo@codesourcery.com>
4578
4579 * Makefile.in (SFILES): Add common/target-common.c.
4580 Add common/target-common.h to headers.
4581 (COMMON_OBS): Add target-common.o.
4582 (target-common.o): New target.
4583 * linux-nat.h (resume_kind): Move to common/target-common.h.
4584 * target.c (target_waitstatus_to_string): Move to
4585 common/target-common.c.
4586 * target.h: Include target-common.h.
4587 (target_waitkind): Move to common/target-common.h.
4588 (target_waitstatus): Likewise.
4589 (TARGET_WNOHANG): Likewise.
4590 * common/target-common.c: New file.
4591 * common/target-common.h: New file.
4592
6656a72d
DE
45932013-07-24 Doug Evans <dje@google.com>
4594
4595 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4596 a warning.
4597
6df81a63
YQ
45982013-07-23 Yao Qi <yao@codesourcery.com>
4599
4600 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4601 parameter 'gdbarch'.
4602 (i386_stack_tramp_frame_sniffer): Caller update.
4603 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4604 parameter 'gdbarch' and 'target'.
4605 (i386_linux_core_read_description): Caller update.
4606 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4607 Likewise.
4608 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4609 declaration.
4610
365156ad
TT
46112013-07-23 Tom Tromey <tromey@redhat.com>
4612
4613 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4614 2013-07-22.
4615
046ac79f
JK
46162013-07-22 Doug Evans <dje@google.com>
4617
4618 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4619 * exec.c (exec_close): Update call to remove_target_sections.
4620 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4621 * solib.c (update_solib_list): Ditto.
4622 (reload_shared_libraries_1): Ditto.
4623 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4624 * target.h (struct target_section): Rename key to owner.
4625 All uses updated.
046ac79f 4626
29b2cc46
TT
46272013-07-22 Tom Tromey <tromey@redhat.com>
4628
4629 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4630
d1160018
TT
46312013-07-22 Tom Tromey <tromey@redhat.com>
4632
4633 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4634 Simplify cleanup handling.
4635
2f324bf6
TT
46362013-07-22 Tom Tromey <tromey@redhat.com>
4637
4638 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4639 on all return paths.
4640
e23b9d6e
UW
46412013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4642
4643 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4644 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4645 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4646
1cf55f60
PM
46472013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4648
4649 * top.c (print_gdb_version): Add help, apropos description and
4650 url to online documentation.
4651
fa876972
HZ
46522013-07-19 Hui Zhu <hui@codesourcery.com>
4653
4654 PR gdb/15692
4655 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4656
1527aea8
YQ
46572013-07-19 Yao Qi <yao@codesourcery.com>
4658
4659 * target.c (update_current_target): Change the default action
4660 of 'to_traceframe_info' from tcomplain to return_zero.
4661 * target.h (struct target_ops) <to_traceframe_info>: Add more
4662 comments.
4663 * valops.c (read_value_memory): Call
4664 traceframe_available_memory unconditionally.
4665
886f230e
YQ
46662013-07-18 Yao Qi <yao@codesourcery.com>
4667
4668 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4669 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4670 symbol without prefix. If found, set its type to
4671 'mst_solib_trampoline'.
4672
16419bae
DE
46732013-07-17 Doug Evans <dje@google.com>
4674
e7045703
DE
4675 * NEWS: Mention "set print raw frame-arguments".
4676 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4677 * stack.c (print_raw_frame_arguments): New static global.
4678 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4679 (_initialize_stack): New command "set/show print raw frame-arguments".
4680 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4681 (set_print_raw, show_print_raw): New functions.
4682 (_initialize_valprint): New prefix command "set/show print raw".
4683 * valprint.h (value_print_options): Improve comments.
4684
453e48a5
DE
4685 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4686 of all *list variables.
4687
16419bae
DE
4688 * gdbcmd.h (togglelist): Delete.
4689 * cli/cli-cmds.c (togglelist): Delete.
4690 (init_cmd_lists): Update.
4691 * cli/cli-cmds.h (togglelist): Delete.
4692
626f2d1c
TT
46932013-07-17 Tom Tromey <tromey@redhat.com>
4694
4695 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4696 dwarf2_per_objfile.
4697
57e6060e
DE
46982013-07-16 Doug Evans <dje@google.com>
4699
4700 * nto-tdep.c (nto_relocate_section_addresses): Update,
4701 target_section.bfd deleted.
4702 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4703 * s390-tdep.c (s390_load): Ditto.
4704 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4705
5ea5559b
AB
47062013-07-16 Andrew Burgess <aburgess@broadcom.com>
4707
4708 * common/format.c (parse_format_string): Add checks for NULL
4709 character before calling strchr.
4710
2b2848e2
DE
47112013-07-16 Doug Evans <dje@google.com>
4712
2c571006
DE
4713 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4714 temp_pathname argument.
4715 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4716 when opening the file fails.
4717
2b2848e2
DE
4718 * target.h (struct target_section): Delete member bfd.
4719 All users updated to use the_bfd_section->owner instead.
4720 * exec.c (add_to_section_table): Assert bfd is expected value.
4721 Remove initialization of target_section.bfd.
4722 (remove_target_sections): Update.
4723 (section_table_available_memory): Update.
4724 (section_table_xfer_memory_partial): Update.
4725 (print_section_info): Update.
4726 (exec_set_section_address): Update.
4727 * record-full.c (record_full_core_xfer_partial): Update.
4728 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4729 * solib-target.c (solib_target_relocate_section_addresses): Update.
4730 * symfile.c (build_section_addr_info_from_section_table): Update.
4731 * target.c (memory_xfer_live_readonly_partial): Update.
4732 (memory_xfer_partial_1): Update.
4733
926bf92d
UW
47342013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4735
4736 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4737 now available for embedded (BookE) and server (BookS) processors,
4738 correct mentions of 'booke' and adjust comments accordingly in order to
4739 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4740 (have_ptrace_booke_interface): Rename function and variable
4741 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4742 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4743 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4744 'hwdebug_point_cmp'. Update all uses.
4745 (booke_find_thread_points_by_tid): Rename function
4746 'booke_find_thread_points_by_tid' to
4747 'hwdebug_find_thread_points_by_tid'. Update all uses.
4748 (booke_insert_point): Rename function 'booke_insert_point' to
4749 'hwdebug_insert_point'. Update all uses.
4750 (booke_remove_point): Rename function 'booke_remove_point' to
4751 'hwdebug_remove_point'. Update all uses.
4752
d929bc19
MR
47532013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4754
4755 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4756 numbers with enum values.
4757
054e8d9e
AA
47582013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4759
4760 PR threads/13217
4761 * thread.c (thread_apply_all_command): Check for valid threads
4762 and thread count.
4763 (thread_array_cleanup): New struct.
4764 (set_thread_refcount): New function.
4765
cf006359
AB
47662013-07-11 Andrew Burgess <aburgess@broadcom.com>
4767
4768 * infcmd.c (default_print_one_register_info): Reuse function
4769 print_hex_chars.
4770
94e36acc
TT
47712013-07-10 Tom Tromey <tromey@redhat.com>
4772
4773 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4774 (ada-exp.o): New target.
4775
915dd369
SDJ
47762013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4777
4778 * mt-tdep.c (mt_registers_info): Call
4779 get_no_prettyformat_print_options instead of
4780 get_raw_print_options (regression by last patch from Doug
4781 Evans).
4782
eca07816
JB
47832013-07-09 Pedro Alves <palves@redhat.com>
4784
4785 Checked in by Joel Brobecker <brobecker@adacore.com>.
4786 * ada-lang.c (coerce_unspec_val_to_type): Use
4787 value_optimized_out_const.
4788 * value.c (value_optimized_out_const): New function.
4789 * value.h (value_optimized_out_const): New declaration.
4790
2a998fc0
DE
47912013-07-09 Doug Evans <dje@google.com>
4792
4793 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4794 Enum values rename as well. All uses updated.
4795 * valprint.h (value_print_options): Rename member pretty to
4796 pretty format. Rename member prettyprint_arrays to
4797 prettyformat_arrays. Rename member prettyprint_structs to
4798 prettyformat_structs. All uses updated.
4799 (get_no_prettyformat_print_options): Renamed from
4800 get_raw_print_options.
4801 * valprint.c (get_no_prettyformat_print_options): Renamed from
4802 get_raw_print_options. All callers updated.
4803 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4804 All callers updated.
4805 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4806 All callers updated.
4807 (_initialize_valprint): Improve help text for "set print pretty" and
4808 "set print arrays".
4809
466c1fca
AB
48102013-07-09 Andrew Burgess <aburgess@broadcom.com>
4811
4812 * value.c (value_bits_valid): Revert previous change, and change
4813 by Pedro on 2013-07-04, due to regressions in
4814 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4815
ad0f0303
AB
48162013-07-08 Andrew Burgess <aburgess@broadcom.com>
4817 Pedro Alves <palves@redhat.com>
4818
4819 * value.c (value_bits_valid): If the value is not lval_computed
4820 or has no check validity handler then the answer is the
4821 optimized_out flag, otherwise defer to the handler.
4822
b187bec1
EZ
48232013-07-06 Eli Zaretskii <eliz@gnu.org>
4824
48d1d6f5
EZ
4825 * top.c (print_gdb_configuration): Explain in output of
4826 --configuration what does "relocatable" mean.
4827
b187bec1
EZ
4828 * main.c (print_gdb_help): Regroup options in the --help text.
4829 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4830 the relevant discussions.
4831
52d361e1
YQ
48322013-07-06 Yao Qi <yao@codesourcery.com>
4833
4834 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4835 Remove parameter 'lsal'.
4836 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4837 to inner block. Caller update.
4838 (base_breakpoint_create_breakpoints_sal): Update.
4839 (bkpt_create_breakpoints_sal): Likewise.
4840 (tracepoint_create_breakpoints_sal): Likewise.
4841 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4842 element 0 of vector 'canonical->sals'.
4843
e1ec1b42
LM
48442013-07-05 Luis Machado <lgustavo@codesourcery.com>
4845
4846 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4847 register number instead of the pseudo register one.
4848 (rs6000_dwarf2_reg_to_regnum): Likewise.
4849
7195e6f0
PA
48502013-07-04 Pedro Alves <palves@redhat.com>
4851
4852 * findvar.c (value_of_register): Use allocate_optimized_out_value
4853 if the register has been optimized out, instead of
4854 set_value_optimized_out.
4855 * frame-unwind.c (frame_unwind_got_optimized): Use
4856 allocate_optimized_out_value.
4857
58722cac
PA
48582013-07-04 Pedro Alves <palves@redhat.com>
4859
4860 * value.c (value_bits_valid): If the value is not lval_computed,
4861 or doesn't have a check_validity hook, assume the value is entirely
4862 valid.
4863
691a26f5
AB
48642013-07-04 Andrew Burgess <aburgess@broadcom.com>
4865
4866 * stack.c (read_frame_arg): No longer fetch lazy values.
4867 * value.c (value_optimized_out): If the value is not already
4868 marked optimized out, and is lazy then fetch it.
4869 (value_primitive_field): Move optimized out check to later in the
4870 function, after we have loaded any lazy values.
4871 (value_fetch_lazy): Use optimized out flag directly rather than
4872 calling optimized_out method.
4873
a58e2656
AB
48742013-07-04 Andrew Burgess <aburgess@broadcom.com>
4875
4876 * valops.c: Don't include "user-regs.h".
4877 (value_fetch_lazy): Moved to value.c.
4878 * value.c: Include "user-regs.h".
4879 (value_fetch_lazy): Moved from valops.c.
4880
bd885420
YQ
48812013-07-04 Yao Qi <yao@codesourcery.com>
4882
4883 Revert:
4884 2013-06-27 Yao Qi <yao@codesourcery.com>
4885
4886 * common/create-version.sh: Update comments. Handle the case
4887 that TARGET_ALIAS is empty.
4888
17ef446e
PA
48892013-07-03 Pedro Alves <palves@redhat.com>
4890
4891 * Makefile.in (config.status): Depend on development.sh.
4892 (aclocal_m4_deps): Add libmcheck.m4.
4893 * acinclude.m4: Include libmcheck.m4.
4894 * configure.ac: Source development.sh instead of setting
4895 'development' here. --enable-libmcheck/--disable-libmcheck code
4896 factored out to GDB_AC_LIBMCHECK. Run it.
4897 * development.sh: New file.
4898 * libmcheck.m4: New file.
4899 * configure: Regenerate.
4900
ac6dd50f
TT
49012013-07-02 Tom Tromey <tromey@redhat.com>
4902
4903 * contrib/ari/update-web-ari.sh: Update for version.in change.
4904
bd1df410
TT
49052013-07-02 Tom Tromey <tromey@redhat.com>
4906
4907 * common/ptid.h: Comment fixes.
4908
4db1a1dc
TT
49092013-07-01 Tom Tromey <tromey@redhat.com>
4910
4911 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4912 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4913 (dwarf2_read_index, create_all_comp_units): Update.
4914
dd9aa048
TT
49152013-07-01 Tom Tromey <tromey@redhat.com>
4916
4917 * configure.ac (build_warnings): Add -Wold-style-definition.
4918 * configure: Rebuild.
4919 * machoread.c (_initialize_machoread): Use "(void)".
4920 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4921 use "(void)".
4922
44d100c3
TT
49232013-07-01 Tom Tromey <tromey@redhat.com>
4924
4925 * configure.ac (build_warnings): Add -Wold-style-declaration.
4926 * configure: Rebuild.
4927 * dsrec.c (make_srec): Use "static const", not "const static".
4928 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4929 not "const static".
4930 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4931 Use "static const", not "const static".
4932 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4933 not "const static".
4934 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4935 not "const static".
4936 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4937 not "const static".
4938 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4939 not "const static".
4940 (v850_dbtrap_breakpoint_from_pc): Likewise.
4941 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4942 not "const static".
4943
2945b807
TT
49442013-07-01 Tom Tromey <tromey@redhat.com>
4945
4946 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4947 * configure: Rebuild.
4948
d8d2a3ee
PA
49492013-07-01 Pedro Alves <palves@redhat.com>
4950
4951 * defs.h: Include "pathmax.h".
4952 * utils.c: Don't include sys/param.h.
4953 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4954 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4955 instead of MAXPATHLEN.
4956 * solib-sunos.c: Don't include sys/param.h.
4957 * xcoffread.c: Don't include sys/param.h.
4958 * bsd-kvm.c: Don't include sys/param.h.
4959 * darwin-nat.c: Don't include sys/param.h.
4960 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4961 * darwin-nat-info.c: Don't include sys/param.h.
4962 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4963 MAXPATHLEN.
4964 * i386obsd-nat.c: Don't include sys/param.h.
4965 * inf-child.c: Don't include sys/param.h.
4966 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4967 * linux-fork.c: Don't include sys/param.h.
4968 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4969 * linux-nat.c: Don't include sys/param.h.
4970 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4971 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4972 * m68klinux-nat.c: Don't include sys/param.h.
4973 * nbsd-nat.c: Don't include sys/param.h.
4974 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4975 * ppc-linux-nat.c: Don't include sys/param.h.
4976 * rs6000-nat.c: Don't include sys/param.h.
4977 * spu-linux-nat.c. Don't include sys/param.h.
4978 * windows-nat.c: Don't include sys/param.h.
4979 * xtensa-linux-nat.c: Don't include sys/param.h.
4980 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4981
38ec2207
PA
49822013-07-01 Pedro Alves <palves@redhat.com>
4983
4984 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4985 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4986 * gnulib/aclocal.m4: Regenerate.
4987 * gnulib/config.in: Regenerate.
4988 * gnulib/configure: Regenerate.
4989 * gnulib/import/pathmax.h: New file.
4990 * gnulib/import/Makefile.am: Regenerate.
4991 * gnulib/import/Makefile.in: Regenerate.
4992 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4993 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4994 * gnulib/import/m4/pathmax.m4: New file.
4995
e655c1a2
PA
49962013-07-01 Pedro Alves <palves@redhat.com>
4997
4998 * configure.ac (GDBINIT): Define, depending on host.
4999 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5000 * top.c (PATH_MAX): Delete fallback definition.
5001 (GDBINIT_FILENAME): Delete.
5002 (gdbinit): Reimplement as const char array set to the GDBINIT
5003 string constant.
5004 * top.h (gdbinit): Make const.
5005 * configure, config.in: Regenerate.
5006
50dd9793
PA
50072013-07-01 Pedro Alves <palves@redhat.com>
5008
5009 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5010 * cli/cli-cmds.h (source_script): Likewise.
5011 * exceptions.c (catch_command_errors_const): New function.
5012 * exceptions.h (catch_command_errors_const): Declare.
5013 * main.c (get_init_files): Make parameters const, and adjust.
5014 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5015 'local_gdbinit' locals const. Adjust to use
5016 catch_command_errors_const.
5017 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5018 'local_gdbinit' locals const.
5019
bc7dea8d
PA
50202013-07-01 Pedro Alves <palves@redhat.com>
5021
5022 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5023 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5024 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5025 <unistd.h>.
5026
8839a007
PA
50272013-07-01 Pedro Alves <palves@redhat.com>
5028
5029 Import the "unistd" gnulib module.
5030 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5031 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5032 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5033 import/m4/unistd_h.m4.
5034 * gnulib/aclocal.m4: Renenerate.
5035 * gnulib/config.in: Renenerate.
5036 * gnulib/configure: Renenerate.
5037 * gnulib/import/Makefile.am: Renenerate.
5038 * gnulib/import/Makefile.in: Renenerate.
5039 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5040 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5041 * gnulib/import/m4/off_t.m4: New file.
5042 * gnulib/import/m4/ssize_t.m4: New file.
5043 * gnulib/import/m4/sys_types_h.m4: New file.
5044 * gnulib/import/m4/unistd_h.m4: New file.
5045 * gnulib/import/sys_types.in.h: New file.
5046 * gnulib/import/unistd.c: New file.
5047 * gnulib/import/unistd.in.h: New file.
5048
8c0da261
PA
50492013-07-01 Pedro Alves <palves@redhat.com>
5050
5051 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5052 defined instead of checking HAVE_UNISTD_H.
5053
3574124b
PA
50542013-07-01 Pedro Alves <palves@redhat.com>
5055
5056 Reimport gnulib from scratch.
5057 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5058 import/m4/onceonly.m4.
5059 * gnulib/aclocal.m4: Renegerate.
5060 * gnulib/config.in: Renegerate.
5061 * gnulib/configure: Renegerate.
5062 * gnulib/import/Makefile.in: Renegerate.
5063 * gnulib/import/extra/update-copyright: Renegerate.
5064 * gnulib/import/m4/onceonly.m4: Delete.
5065
702dc4fd
PA
50662013-07-01 Pedro Alves <palves@redhat.com>
5067
5068 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5069
47e1ce27
JK
50702013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5071
5072 Code cleanup.
5073 * remote.c (async_remote_interrupt_twice): Make it static.
5074 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5075
e82839d4
SDJ
50762013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5077
5078 * ia64-linux-tdep.c: Include <ctype.h>.
5079 (ia64_linux_stap_is_single_operand): New function.
5080 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5081
d6c2da54
TT
50822013-06-28 Tom Tromey <tromey@redhat.com>
5083
5084 * Makefile.in (version.c): Use version.in, not
5085 common/version.in.
5086 * common/create-version.sh: Likewise.
5087 * common/version.in: Move...
5088 * version.in: ...here.
5089
74da6f00
PA
50902013-06-28 Pedro Alves <palves@redhat.com>
5091
5092 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5093 here.
5094 * utils.h (pagination_enabled): Declare.
5095
d32dc48e
PA
50962013-06-28 Pedro Alves <palves@redhat.com>
5097
5098 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5099 Move higher up in file.
5100
0edd9e3b
TT
51012013-06-28 Tom Tromey <tromey@redhat.com>
5102
5103 * tracepoint.c (deprecated_readline_begin_hook)
5104 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5105 declare.
5106
4eb59108
PA
51072013-06-28 Pedro Alves <palves@redhat.com>
5108
5109 PR tui/14880
5110 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5111 checking if they're available.
5112 * value.c (value_available_contents_eq): Change comment.
5113 * value.h (value_available_contents_eq): Expand comment.
5114
97b17156
TT
51152013-06-27 Tom Tromey <tromey@redhat.com>
5116
5117 * target.c (find_run_target): Remove.
5118 * target.h (find_run_target): Remove.
5119
6a3bfc5c
TT
51202013-06-27 Tom Tromey <tromey@redhat.com>
5121
5122 * corelow.c (core_gdbarch): Now static.
5123
c9ef825d
TT
51242013-06-27 Tom Tromey <tromey@redhat.com>
5125
5126 * target.c (target_struct_index): Remove.
5127
e5823f1c
PA
51282013-06-27 Pedro Alves <palves@redhat.com>
5129
5130 * infrun.c: Remove comment describing the 'stepping over runtime
5131 loader dynamic symbol resolution code' mechanism; moved to
5132 gdbint.texinfo.
5133
97f8dd09
PA
51342013-06-27 Pedro Alves <palves@redhat.com>
5135
5136 * exceptions.c (catch_command_errors): Remove spurious space.
5137 * exceptions.h (catch_command_errors): Second parameter is "arg",
5138 not "command".
5139
02b1871e
YQ
51402013-06-27 Yao Qi <yao@codesourcery.com>
5141
5142 * common/create-version.sh: Update comments. Handle the case
5143 that TARGET_ALIAS is empty.
5144
bb1b1cf1
PA
51452013-06-26 Pedro Alves <palves@redhat.com>
5146
5147 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5148 comment.
5149
7b624e71
PA
51502013-06-26 Pedro Alves <palves@redhat.com>
5151
5152 * infrun.c: Update comments on stepping over runtime loader
5153 dynamic symbol resolution code.
5154
74e5a346
SDJ
51552013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5156
5157 * ax-gdb.h (union exp_element): Forward declare.
5158 * parser-defs.h: Include expression.h.
5159
a2fb2cee
MR
51602013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5161
5162 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5163
cdba14e0
DK
51642013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5165
5166 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5167
f30aa5af
DK
51682013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5169
5170 Fix trace-status to output proper start-time and stop-time.
5171 * tracepoint.c (trace_status_command): Fix type of printf arg to
5172 prevent improper type conversion.
5173 (trace_status_mi): Likewise.
5174
1aee363c
MR
51752013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5176
5177 * mips-tdep.c (mips_next_pc): Fix a typo.
5178
3356937a
MR
51792013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5180
5181 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5182
dc673c81
YQ
51832013-06-26 Pedro Alves <pedro@codesourcery.com>
5184 Yao Qi <yao@codesourcery.com>
5185
5186 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5187 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5188 * mi/mi-main.c (print_variable_or_computed): New function.
5189 (mi_cmd_trace_frame_collected): New function.
5190 * tracepoint.c (find_trace_state_variable_by_number): New.
5191 (struct traceframe_info): Move to tracepoint.h
5192 (struct collection_list): Likewise.
5193 (do_collect_symbol): Include locals and arguments in the
5194 collected variables list.
5195 (clear_collection_list): Clear wholly collected variables list
5196 and computed variables list.
5197 (append_exp): New function.
5198 (encode_actions_1): Include variables in the wholly
5199 collected variables list. Include memory ranges and
5200 full-fledged expressions in the computed expressions list.
5201 (encode_actions): Move some code to ...
5202 Return the cleanup chain.
5203 (encode_actions_rsp): ... here. New function.
5204 (get_traceframe_location, get_traceframe_info): Remove static.
5205 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5206 (struct collection_list): Moved from tracepoint.c. Add two
5207 new fields 'wholly_collected' and 'computed'.
5208 (find_trace_state_variable_by_number): Declare.
5209 (encode_actions): Adjust declaration.
5210 (encode_actions_rsp): Declare.
5211 (get_traceframe_info, get_traceframe_location): Declare.
5212
5213 * NEWS: Mention new MI command -trace-frame-collected.
5214
28a93511
YQ
52152013-06-26 Pedro Alves <pedro@codesourcery.com>
5216 Yao Qi <yao@codesourcery.com>
5217
5218 * ctf.c (ctf_traceframe_info): Push trace state variables
5219 present in the trace data into the traceframe info object.
5220 * breakpoint.c (DEF_VEC_I): Remove.
5221 * common/filestuff.c (DEF_VEC_I): Likewise.
5222 * dwarf2loc.c (DEF_VEC_I): Likewise.
5223 * mi/mi-main.c (DEF_VEC_I): Likewise.
5224 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5225 * features/traceframe-info.dtd: Add tvar element and its
5226 attributes.
5227 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5228 (build_traceframe_info): Push trace state variables present in
5229 the trace data into the traceframe info object.
5230 (traceframe_info_start_tvar): New function.
5231 (tvar_attributes): New.
5232 (traceframe_info_children): Add "tvar" element.
5233 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5234
5235 * NEWS: Mention the change in GDB and GDBserver.
5236
ddacd3c8
YQ
52372013-06-26 Pedro Alves <pedro@codesourcery.com>
5238 Yao Qi <yao@codesourcery.com>
5239
5240 * tracepoint.c (trace_dump_command): Move code to ...
5241 (get_traceframe_location): ... here. New.
5242
05796b35
YQ
52432013-06-26 Pedro Alves <pedro@codesourcery.com>
5244 Yao Qi <yao@codesourcery.com>
5245
5246 * tracepoint.c (trace_dump_command): GDB emits an error
5247 instead of a warning when a traceframe is not selected.
5248
cbfa3b61
YQ
52492013-06-26 Pedro Alves <pedro@codesourcery.com>
5250 Yao Qi <yao@codesourcery.com>
5251
5252 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5253 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5254 in collection_list.
5255 (do_clear_collection_list, init_collection_list): New.
5256 (encode_actions): Add local variables 'tracepoint_list' and
5257 'stepping_list'. Call init_collection_list and make cleanup
5258 which calls do_clear_collection_list. Don't call
5259 clear_collection_list.
5260 (_initialize_tracepoint): Delete references to
5261 'tracepoint_list' and 'stepping_list'.
5262
6e2048d3
TT
52632013-06-25 Tom Tromey <tromey@redhat.com>
5264
5265 * common/create-version.sh (date): Use "$", not "$$" in sed
5266 expression.
5267
42059f0e
KB
52682013-06-25 Kevin Buettner <kevinb@redhat.com>
5269
5270 * NEWS (New targets): Add entry for TI MSP430.
5271
a0743c90
YQ
52722013-06-25 Yao Qi <yao@codesourcery.com>
5273
5274 * remote.c (remote_start_remote): Move code to upload tsv
5275 earlier.
5276
9d6e6e84
HZ
52772013-06-25 Yao Qi <yao@codesourcery.com>
5278 Hui Zhu <hui@codesourcery.com>
5279 Pedro Alves <palves@redhat.com>
5280
5281 PR breakpoints/15075
5282 PR breakpoints/15434
5283 * breakpoint.c (bpstat_stop_status): Call
5284 b->ops->after_condition_true.
5285 (update_dprintf_command_list): Don't append "continue" command
5286 to the command list of dprintf breakpoint.
5287 (base_breakpoint_after_condition_true): New function.
5288 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5289 (dprintf_after_condition_true): New function.
5290 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5291 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5292
586cf749
KB
52932013-06-24 Kevin Buettner <kevinb@redhat.com>
5294
5295 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5296 (ALLDEPFILES): Add msp430-tdep.c.
5297 * configure.tgt (msp430*-*-elf): New target.
5298 * msp430-tdep.c: New file.
5299
1bbce132
MR
53002013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5301
5302 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5303 microMIPS synthetic symbols.
5304
3e5d3a5a
MR
53052013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5306
5307 * objfiles.h (pc_in_section): New prototype.
5308 (in_plt_section): Remove name argument, replace prototype with
5309 static inline function.
5310 * mips-tdep.h: Include "objfiles.h".
5311 (in_mips_stubs_section): New function.
5312 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5313 in_solib_call_trampoline member.
5314 (hppa_in_solib_call_trampoline): Remove name argument.
5315 * objfiles.c (pc_in_section): New function.
5316 (in_plt_section): Remove function.
5317 * mips-linux-tdep.c: Include "objfiles.h".
5318 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5319 name argument. Return 1 rather than the low 16-bit halfword of
5320 any instruction examined.
5321 (mips_linux_in_dynsym_resolve_code): Update
5322 mips_linux_in_dynsym_stub call accordingly.
5323 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5324 rather than an equivalent hand-coded sequence.
5325 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5326 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5327 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5328 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5329 in_opd_section.
5330 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5331 on call to tdep->in_solib_call_trampoline.
5332 (hppa_in_solib_call_trampoline): Remove name argument, update
5333 according to in_plt_section change.
5334 (hppa_skip_trampoline_code): Update according to in_plt_section
5335 change.
5336 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5337 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5338 Likewise.
5339 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5340 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5341 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5342 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5343 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5344 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5345 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5346 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5347 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5348 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5349 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5350 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5351 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5352
b9b26a16
JB
53532013-06-24 Joel Brobecker <brobecker@adacore.com>
5354
5355 * common/create-version.sh: Fix expansion of $host_alias
5356 and $target_alias in generation of HOST_NAME and TARGET_NAME
5357 (resp.).
5358
01208463
TT
53592013-06-24 Tom Tromey <tromey@redhat.com>
5360
5361 * common/create-version.sh: New file.
5362 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5363 create-version.sh.
5364 (HFILES_NO_SRCDIR): Use common/version.h.
5365 * version.in: Move to ...
5366 * common/version.in: ... here. Replace date with "DATE".
5367 * version.h: Move to ...
5368 * common/version.h: ... here.
5369
bb6b9a5e
JB
53702013-06-21 Joel Brobecker <brobecker@adacore.com>
5371
5372 * gdb/gnulib/Makefile.in: Update date in copyright header.
5373 * gdb/gnulib/configure.ac: Ditto.
5374 * gdb/gnulib/update-gnulib.sh: Ditto.
5375
c3b18ee7
JB
53762013-06-21 Joel Brobecker <brobecker@adacore.com>
5377
5378 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5379 "gdb/gnulib/import".
5380
85d3b769
WN
53812013-06-21 Will Newton <will.newton@linaro.org>
5382
5383 * doublest.c (ldfrexp): Remove function.
5384 (convert_doublest_to_floatformat): Call frexpl instead of
5385 ldfrexp.
5386
88b48903
WN
53872013-06-21 Will Newton <will.newton@linaro.org>
5388
5389 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5390 * gnulib/aclocal.m4: Regenerate.
5391 * gnulib/config.in: Regenerate.
5392 * gnulib/configure: Regenerate.
5393 * gnulib/import/Makefile.am: Update.
5394 * gnulib/import/Makefile.in: Update.
5395 * gnulib/import/m4/gnulib-cache.m4: Update.
5396 * gnulib/import/m4/gnulib-comp.m4: Update.
5397 * gnulib/import/float+.h: Import.
5398 * gnulib/import/float.c: Import.
5399 * gnulib/import/float.in.h: Import.
5400 * gnulib/import/fpucw.h: Import.
5401 * gnulib/import/frexp.c: Import.
5402 * gnulib/import/frexpl.c: Import.
5403 * gnulib/import/isnan.c: Import.
5404 * gnulib/import/isnand-nolibm.h: Import.
5405 * gnulib/import/isnand.c: Import.
5406 * gnulib/import/isnanl-nolibm.h: Import.
5407 * gnulib/import/isnanl.c: Import.
5408 * gnulib/import/itold.c: Import.
5409 * gnulib/import/m4/exponentd.m4: Import.
5410 * gnulib/import/m4/exponentl.m4: Import.
5411 * gnulib/import/m4/float_h.m4: Import.
5412 * gnulib/import/m4/fpieee.m4: Import.
5413 * gnulib/import/m4/frexp.m4: Import.
5414 * gnulib/import/m4/frexpl.m4: Import.
5415 * gnulib/import/m4/isnand.m4: Import.
5416 * gnulib/import/m4/isnanl.m4: Import.
5417 * gnulib/import/m4/math_h.m4: Import.
5418 * gnulib/import/math.c: Import.
5419 * gnulib/import/math.in.h: Import.
5420
4353c9e6
JK
54212013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5422
5423 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5424 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5425 signature_INTEL_edx comparisons.
5426
e3e06db3
DE
54272013-06-20 Doug Evans <dje@google.com>
5428
6ac97d4c
DE
5429 symtab/15652
5430 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5431 All callers updated.
5432 (open_dwp_file): If we can't find the dwp file, search the basename
5433 in debug-file-directory.
5434
93417882
DE
5435 * dwarf2read.c (struct dwp_file): Fix comment.
5436 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5437
e3e06db3
DE
5438 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5439 better.
5440
0878d0fa
YQ
54412013-06-20 Yao Qi <yao@codesourcery.com>
5442
5443 * breakpoint.c (create_breakpoint): Fix code indentation.
5444
023fa29b
YQ
54452013-06-20 Yao Qi <yao@codesourcery.com>
5446
5447 * breakpoint.c (create_breakpoints_sal_default): Remove
5448 parameter 'lsal'. Update declaration.
5449 (bkpt_create_breakpoints_sal): Caller update.
5450 (tracepoint_create_breakpoints_sal): Likewise.
5451
c898adb7
YQ
54522013-06-20 Pedro Alves <pedro@codesourcery.com>
5453 Yao Qi <yao@codesourcery.com>
5454
5455 * NEWS: Mention the new option '--skip-unavailable' of command
5456 -data-list-register-values.
5457 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5458 --skip-unavailable option. Adjust to use output_register.
5459 (output_register): Add new 'skip_unavailable' parameter.
5460 Handle it.
5461
4d157a3d
MF
54622013-06-19 Mike Frysinger <vapier@gentoo.org>
5463
5464 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5465 common/i386-gcc-cpuid.h.
5466 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5467 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5468 Copy the latest version from upstream gcc.
5469 * common/linux-btrace.c: Include i386-cpuid.h.
5470 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5471 call to i386_cpuid.
5472 (cpu_supports_btrace): Likewise.
5473 * go32-nat.c: Include i386-cpuid.h.
5474 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5475
1ce4db08
DE
54762013-06-19 Doug Evans <dje@google.com>
5477
5478 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5479 (get_section_index): Ditto.
5480
0e4777df
TT
54812013-06-19 Tom Tromey <tromey@redhat.com>
5482
5483 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5484 "dprintf" help.
5485
3190f0c6
DE
54862013-06-18 Doug Evans <dje@google.com>
5487
5488 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5489 before using it.
5490 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5491 Move test of cu_index closer to use. Print complaint if cu_index
5492 is bad.
5493
8b89a20a
JB
54942013-06-18 Joel Brobecker <brobecker@adacore.com>
5495
5496 * machoread.c (oso_vector): Delete this global.
5497 (macho_register_oso): Add new parameter "oso_vector_ptr".
5498 Use it instead of the "oso_vector" global.
5499 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5500 (macho_symfile_read): Use a local oso_vector, to be free'ed
5501 at the end of this function, in place of the old "oso_vector"
5502 global. Update various function calls accordingly. Use one
5503 single cleanup chain for the entire function.
5504
59b0c7c1
JB
55052013-06-18 Joel Brobecker <brobecker@adacore.com>
5506
937c708c 5507 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5508 DWARF2_PER_OBJFILE by uses of DATA instead.
5509
427cd150
TT
55102013-06-18 Tom Tromey <tromey@redhat.com>
5511
5512 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5513 argument.
5514 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5515 Special case signals other than GDB_SIGNAL_TRAP.
5516 (explains_signal_watchpoint): New function.
5517 (base_breakpoint_explains_signal): Add 'sig' argument.
5518 (initialize_breakpoint_ops): Set 'explains_signal' method for
5519 watchpoints.
5520 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5521 signal argument.
5522 (bpstat_explains_signal): Likewise.
5523 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5524
2d57700b
TT
55252013-06-18 Tom Tromey <tromey@redhat.com>
5526
5527 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5528
ac475191
TT
55292013-06-18 Tom Tromey <tromey@redhat.com>
5530
5531 * python/python.c (finish_python_initialization): Decref
5532 'pythondir' on failure path as well.
5533
5bd1ef56
TT
55342013-06-18 Tom Tromey <tromey@redhat.com>
5535
5536 PR symtab/15391:
5537 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5538 after taking bits_to_skip into account. Sign extend byte_offset.
5539 * utils.h (gdb_sign_extend): Declare.
5540 * utils.c (gdb_sign_extend): New function.
5541
92fac807
JK
55422013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5543
5544 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5545
2d503272
PM
55462013-06-17 Pierre Muller <muller@sourceware.org>
5547
5548 * corelow.c (core_open): Print GDB signal name instead of target
5549 signal number.
5550
6916fd98
MF
55512013-06-17 Mike Frysinger <vapier@gentoo.org>
5552
5553 * .gitignore: Add /gcore.
5554
9c02c129
DE
55552013-06-13 Doug Evans <dje@google.com>
5556
5557 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5558 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5559
d0548fa2
PM
55602013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5561
5562 * stack.c (backtrace_command_1): Fix indentation.
5563
22128028
JB
55642013-06-11 Joel Brobecker <brobecker@adacore.com>
5565
5566 * window-nat.c (thread_rec): Add missing empty line after
5567 local variable declaration.
5568
2ed3e009
JB
55692013-06-11 Joel Brobecker <brobecker@adacore.com>
5570
5571 * windows-nat.c (thread_rec): Revert format used to print
5572 error code returned by SuspendThread from %d back to %u.
5573
0c3d84be
JB
55742013-06-11 Joel Brobecker <brobecker@adacore.com>
5575
5576 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5577 ID in debug trace.
5578 (get_windows_debug_event): Likewise, for all debug traces.
5579
80e88e1a
JB
55802013-06-11 Joel Brobecker <brobecker@adacore.com>
5581
5582 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5583 warning message.
5584
1edebdbf
YQ
55852013-06-08 Pedro Alves <pedro@codesourcery.com>
5586 Yao Qi <yao@codesourcery.com>
5587
5588 * mi/mi-main.c (get_register): Remove declaration.
5589 (output_register): Declare.
5590 (mi_cmd_data_list_register_values): Remove local variable
5591 'tuple_cleanup'. Move some code into output_register.
5592 (get_register): Renamed to ...
5593 (output_register): ... this. Output the register's
5594 "number" ui_out tuple here.
5595
47d48711
PA
55962013-06-07 Pedro Alves <palves@redhat.com>
5597
5598 * darwin-nat.c: Fix formating in copyright header.
5599 * darwin-nat.h: Likewise.
5600 * gnu-nat.c: Likewise.
5601 * machoread.c: Likewise.
5602
3aee8918
PA
56032013-06-07 Pedro Alves <palves@redhat.com>
5604
5f2b57b5 5605 PR server/14823
3aee8918
PA
5606 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5607 static. Output a global target description pointer.
5608 (init_registers_${name}): Adjust to initialize a
5609 target description structure.
5610
fe8400b4
WN
56112013-06-07 Will Newton <will.newton@linaro.org>
5612
5613 * printcmd.c (build_address_symbolic): Call
5614 gdbarch_addr_bits_remove for text minimal symbols.
5615
20df6206
WN
56162013-06-07 Will Newton <will.newton@linaro.org>
5617
5618 * MAINTAINERS: Add myself to Write After Approval.
5619
aef525cb
YQ
56202013-06-07 Yao Qi <yao@codesourcery.com>
5621
5622 * tracepoint.c (start_tracing): Move code to ...
5623 (trace_reset_local_state): ... here. New.
5624 (disconnect_tracing): Don't call set_current_traceframe,
5625 set_tracepoint_num, and set_traceframe_context. Call
5626 trace_reset_local_state instead.
5627 (tfile_close): Call trace_reset_local_state.
5628 * ctf.c (ctf_close): Likewise.
5629 * remote.c (remote_close): Likewise.
5630 * tracepoint.h (trace_reset_local_state): Declare.
5631
d2415c6c
DE
56322013-06-06 Doug Evans <dje@google.com>
5633
5634 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5635 and fix header docs.
5636
69fc87c2
DE
56372013-06-05 Doug Evans <dje@google.com>
5638 Keith Seitz <keiths@redhat.com>
5639
5640 PR 15519
5641 * cp-namespace.c (find_symbol_in_baseclass): Call
5642 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5643 Check result of call to lookup_symbol_static.
5644 Call lookup_static_symbol_aux unconditionally.
5645 Call check_typedef on base types before accessing them.
5646 (cp_lookup_nested_symbol): Fix comment.
5647
a513d1e8
LM
56482013-06-05 Luis Machado <lgustavo@codesourcery.com>
5649
5650 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5651 minimal symbols pointing to function descriptors.
5652
351a6f02
TT
56532013-06-05 Tom Tromey <tromey@redhat.com>
5654
5655 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5656
5e1b953b 56572013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5658 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5659
5660 * remote.c (remote_wait_as): Restore signal handler before returning
5661 when GDB gets a notification.
5662
f9e14852
GB
56632013-06-04 Gary Benson <gbenson@redhat.com>
5664
8445cbf1 5665 PR 2328
f9e14852
GB
5666 * breakpoint.h (handle_solib_event): Moved function declaration
5667 to solib.h.
5668 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5669 (bpstat_stop_status): Pass new argument to handle_solib_event.
5670 * solib.h (update_solib_breakpoints): New function declaration.
5671 (handle_solib_event): Moved function declaration from
5672 breakpoint.h.
5673 * solib.c (update_solib_breakpoints): New function.
5674 (handle_solib_event): Moved function from breakpoint.c.
5675 Updated to call solib_ops->handle_event if not NULL.
5676 * solist.h (target_so_ops): New fields "update_breakpoints" and
5677 "handle_event".
5678 * infrun.c (set_stop_on_solib_events): New function.
5679 (_initialize_infrun): Use the above for "set
5680 stop-on-solib-events".
5681 (handle_inferior_event): Pass new argument to handle_solib_event.
5682 * solib-svr4.c (probe.h): New include.
5683 (svr4_free_library_list): New forward declaration.
5684 (probe_action): New enum.
5685 (probe_info): New struct.
5686 (probe_info): New static variable.
5687 (NUM_PROBES): New definition.
5688 (svr4_info): New fields "using_xfer", "probes_table" and
5689 "solib_list".
5690 (free_probes_table): New function.
5691 (free_solib_list): New function.
5692 (svr4_pspace_data_cleanup): Free probes table and solib list.
5693 (svr4_copy_library_list): New function.
5694 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5695 (svr4_read_so_list): New parameter "prev_lm".
5696 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5697 (svr4_current_sos): New function.
5698 (probe_and_action): New struct.
5699 (hash_probe_and_action): New function.
5700 (equal_probe_and_action): Likewise.
5701 (register_solib_event_probe): Likewise.
5702 (solib_event_probe_at): Likewise.
5703 (solib_event_probe_action): Likewise.
5704 (solist_update_full): Likewise.
5705 (solist_update_incremental): Likewise.
5706 (disable_probes_interface_cleanup): Likewise.
5707 (svr4_handle_solib_event): Likewise.
5708 (svr4_update_solib_event_breakpoint): Likewise.
5709 (svr4_update_solib_event_breakpoints): Likewise.
5710 (svr4_create_solib_event_breakpoints): Likewise.
5711 (enable_break): Free probes table before creating breakpoints.
5712 Use svr4_create_solib_event_breakpoints to create breakpoints.
5713 (svr4_solib_create_inferior_hook): Free the solib list.
5714 (_initialize_svr4_solib): Initialise
5715 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5716
ced63ec0
GB
57172013-06-04 Gary Benson <gbenson@redhat.com>
5718
5719 * target.h (target_ops): New field
5720 "to_augmented_libraries_svr4_read".
5721 (target_augmented_libraries_svr4_read): New macro.
5722 * target.c (update_current_target): Handle
5723 to_augmented_libraries_svr4_read.
5724 * remote.c (remote_state): New field
5725 "augmented_libraries_svr4_read".
5726 (remote_augmented_libraries_svr4_read_feature): New function.
5727 (remote_protocol_features): Add entry for
5728 "augmented-libraries-svr4-read".
5729 (remote_augmented_libraries_svr4_read): New function.
5730 (init_remote_ops): Initialize
5731 remote_ops.to_augmented_libraries_svr4_read.
5732
7f91dbec
GB
57332013-06-04 Gary Benson <gbenson@redhat.com>
5734
5735 * NEWS: Update.
5736
607ece04
GB
57372013-06-04 Gary Benson <gbenson@redhat.com>
5738
5739 * objfiles.h (inhibit_section_map_updates): New function
5740 declaration.
5741 (resume_section_map_updates): Likewise.
5742 (resume_section_map_updates_cleanup): Likewise.
5743 * objfiles.c (objfile_pspace_info): Removed field
5744 "objfiles_changed_p". New fields "new_objfiles_available",
5745 "section_map_dirty" and "inhibit_updates".
5746 (allocate_objfile): Set new_objfiles_available.
5747 (free_objfile): Set section_map_dirty.
5748 (objfile_relocate1): Likewise.
5749 (in_plt_section): Likewise.
5750 (find_pc_section): Update the conditions under which the
5751 section map will be updated.
5752 (inhibit_section_map_updates): New function.
5753 (resume_section_map_updates): Likewise.
5754 (resume_section_map_updates_cleanup): Likewise.
5755
9ee6a5ac
GB
57562013-06-04 Gary Benson <gbenson@redhat.com>
5757
5758 * probe.h (get_probe_argument_count): New declaration.
5759 (evaluate_probe_argument): Likewise.
5760 * probe.c (get_probe_argument_count): New function.
5761 (evaluate_probe_argument): Likewise.
5762 (probe_safe_evaluate_at_pc): Use the above new functions.
5763
845d4708
AM
57642013-06-04 Alan Modra <amodra@gmail.com>
5765
5766 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5767 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5768 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5769 target mem reads on optional insns.
5770 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5771 ppc_insns_match_pattern calls.
5772 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5773 Add match for power7 thread safety insns, and new order of
5774 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5775 invocation in comment, and update rest of comment.
5776 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5777 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5778 (ppc64_standard_linkage2_target): Update insn offsets.
5779 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5780 stubs first. Update calls.
5781
404e278f
YQ
57822013-06-04 Yao Qi <yao@codesourcery.com>
5783
5784 * solib.c (solib_find): Don't need dir separator if path has
5785 drive spec.
5786
f6aea118
JB
57872013-06-03 Joel Brobecker <brobecker@adacore.com>
5788
5789 Revert (indirectly causes a SIGSEGV):
5790 * machoread.c (macho_symfile_read): Assign first cleanup to
5791 'back_to'.
5792
87967e27
YQ
57932013-06-03 Yao Qi <yao@codesourcery.com>
5794
5795 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5796 mi-parse.c. Make them static.
5797 (mi_all_values): Likewise.
5798 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5799 mi_parse_print_values. Make it external.
5800 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5801 Remove the declarations.
5802 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5803 * mi/mi-parse.h (mi_parse_print_values): Declare.
5804 * mi/mi-cmd-stack.c: Include mi-parse.h.
5805 (parse_print_values): Remove
5806 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5807 of parse_print_values.
5808 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5809
3ca73e0c
YQ
58102013-05-31 Pedro Alves <pedro@codesourcery.com>
5811 Yao Qi <yao@codesourcery.com>
5812
5813 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5814 (encode_actions): Move code to ...
5815 (all_tracepoint_actions_and_cleanup): ... here. New.
5816 (trace_dump_command): Likewise.
5817
4e993a19
TT
58182013-05-30 Tom Tromey <tromey@redhat.com>
5819
5820 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5821
e3b76b4f
TT
58222013-05-30 Tom Tromey <tromey@redhat.com>
5823
5824 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5825 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5826 'old_chain' argument. Add 'parser_result' argument.
5827 (gdb_xml_create_parser_and_cleanup): Remove old version.
5828 (gdb_xml_parse_quick): Update.
5829 (xml_process_xincludes): Update.
5830 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5831 declare.
5832
db26349c
TT
58332013-05-30 Tom Tromey <tromey@redhat.com>
5834
5835 * probe.c (collect_probes): Check arguments for NULL before
5836 calling compile_rx_or_error.
5837 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5838 Remove NULL return.
5839
77f9e713
TT
58402013-05-30 Tom Tromey <tromey@redhat.com>
5841
5842 * infrun.c (adjust_pc_after_break): Introduce an outer null
5843 cleanup.
5844
45475de7
TT
58452013-05-30 Tom Tromey <tromey@redhat.com>
5846
5847 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5848
ac5007fd
TT
58492013-05-30 Tom Tromey <tromey@redhat.com>
5850
5851 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5852 for 'old_chain'. Do not check 'head' before processing
5853 cleanups.
5854
cd82eddc
TT
58552013-05-30 Tom Tromey <tromey@redhat.com>
5856
5857 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5858 "cleanup_tuple".
5859
57cee33a
TT
58602013-05-30 Tom Tromey <tromey@redhat.com>
5861
5862 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5863 inner scope. Unconditionally call do_cleanups.
5864
795d915c
TT
58652013-05-30 Tom Tromey <tromey@redhat.com>
5866
5867 * source.c (find_and_open_source): Call do_cleanups.
5868
1fc3cf4a
TT
58692013-05-30 Tom Tromey <tromey@redhat.com>
5870
5871 * linux-thread-db.c (thread_db_load_search): Unconditionally
5872 call do_cleanups.
5873
e35ac9bf
TT
58742013-05-30 Tom Tromey <tromey@redhat.com>
5875
5876 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5877 for 'cleanup'; instead use a later one.
5878
f3300387
TT
58792013-05-30 Tom Tromey <tromey@redhat.com>
5880
5881 * python/py-breakpoint.c (bppy_get_commands): Use
5882 explicit, unconditional return.
5883 * python/py-frame.c (frapy_read_var): Likewise.
5884 * python/python.c (gdbpy_decode_line): Likewise.
5885
c27e16e3
TT
58862013-05-30 Tom Tromey <tromey@redhat.com>
5887
5888 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5889 do_cleanups on all return paths.
5890
5ae85e44
TT
58912013-05-30 Tom Tromey <tromey@redhat.com>
5892
5893 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5894
73b8d9da
TT
58952013-05-30 Tom Tromey <tromey@redhat.com>
5896
5897 * stabsread.c (read_struct_type): Call do_cleanups along
5898 all return paths.
5899
7d266584
MR
59002013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5901
5902 * mips-linux-tdep.c: Adjust formatting throughout.
5903
0f900f54
TT
59042013-05-30 Tom Tromey <tromey@redhat.com>
5905
5906 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5907 along all return paths.
5908
a991ac28
TT
59092013-05-30 Tom Tromey <tromey@redhat.com>
5910
5911 * symfile.c (find_separate_debug_file): Call do_cleanups
5912 along all return paths.
5913
1abaf042
TT
59142013-05-30 Tom Tromey <tromey@redhat.com>
5915
5916 * symtab.c (search_symbols): Introduce a null cleanup for
5917 'retval_chain'.
5918
edefe1da
TT
59192013-05-30 Tom Tromey <tromey@redhat.com>
5920
5921 * python/py-value.c (valpy_binop): Call do_cleanups before
5922 exiting loop.
5923
54f72dcc
TT
59242013-05-30 Tom Tromey <tromey@redhat.com>
5925
5926 * python/py-prettyprint.c (print_children): Remove extra
5927 do_cleanups call.
5928
af1c6971
TT
59292013-05-30 Tom Tromey <tromey@redhat.com>
5930
5931 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5932 all return paths.
5933
b862ce75
TT
59342013-05-30 Tom Tromey <tromey@redhat.com>
5935
5936 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5937 along all return paths.
5938
e12fefc8
TT
59392013-05-30 Tom Tromey <tromey@redhat.com>
5940
5941 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5942 call do_cleanups.
5943
4867f990
TT
59442013-05-30 Tom Tromey <tromey@redhat.com>
5945
5946 * varobj.c (c_value_of_root): Call do_cleanups along all
5947 return paths.
5948
4fd2d6af
TT
59492013-05-30 Tom Tromey <tromey@redhat.com>
5950
5951 * tracepoint.c (trace_dump_command): Unconditionally call
5952 do_cleanups.
5953
752eb8b4
TT
59542013-05-30 Tom Tromey <tromey@redhat.com>
5955
5956 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5957 do_cleanups earlier.
5958
e42d0aa5
TT
59592013-05-30 Tom Tromey <tromey@redhat.com>
5960
5961 * machoread.c (macho_symfile_read): Assign first cleanup to
5962 'back_to'.
5963
4bbc010a
TT
59642013-05-30 Tom Tromey <tromey@redhat.com>
5965
5966 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5967
b9635925
TT
59682013-05-30 Tom Tromey <tromey@redhat.com>
5969
5970 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5971
25f43500
TT
59722013-05-30 Tom Tromey <tromey@redhat.com>
5973
5974 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5975 call discard_cleanups.
5976 (inf_ptrace_attach): Likewise.
5977
d6a2e54a
TT
59782013-05-30 Tom Tromey <tromey@redhat.com>
5979
5980 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5981 return paths.
5982 (mips_initialize): Likewise.
5983 (common_open): Call do_cleanups.
5984
48be7c1b
TT
59852013-05-30 Tom Tromey <tromey@redhat.com>
5986
5987 * utils.c (internal_vproblem): Call do_cleanups.
5988
e61727ab
TT
59892013-05-30 Tom Tromey <tromey@redhat.com>
5990
5991 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5992
b81b921f
TT
59932013-05-30 Tom Tromey <tromey@redhat.com>
5994
5995 * cli/cli-script.c (setup_user_args): Don't return after error.
5996
fe48dfb1
TT
59972013-05-30 Tom Tromey <tromey@redhat.com>
5998
5999 * somread.c (som_symtab_read): Call do_cleanups.
6000
27833de7
TT
60012013-05-30 Tom Tromey <tromey@redhat.com>
6002
6003 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6004
5b3fca71
TT
60052013-05-30 Tom Tromey <tromey@redhat.com>
6006
6007 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6008 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6009 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6010 * source.c (show_substitute_path_command): Call do_cleanups.
6011 (unset_substitute_path_command, set_substitute_path_command):
6012 Likewise.
6013 * symfile.c (load_command): Call do_cleanups.
6014
af83e3f8
TT
60152013-05-30 Tom Tromey <tromey@redhat.com>
6016
6017 * contrib/cleanup_check.py: New file.
6018 * contrib/gcc-with-excheck: Add option parsing.
6019
564eac42
JB
60202013-05-30 Joel Brobecker <brobecker@adacore.com>
6021
6022 * windows-nat.c (windows_delete_thread): Add missing space
6023 in cast expression.
6024
47902076
HAQ
60252013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6026
6027 * inferior.c (top level): Include tilde.h.
6028 (add_inferior_command): Call tilde_expand on the value of 'exec'
6029 argument.
6030
23da373a
YQ
60312013-05-30 Pedro Alves <pedro@codesourcery.com>
6032 Yao Qi <yao@codesourcery.com>
6033
6034 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6035 Caller update.
6036 (encode_actions): Likewise.
6037 * remote.c (remote_download_tracepoint): Caller update.
6038 * tracepoint.h (encode_actions): Update declaration.
6039
a6e6f791
PA
60402013-05-30 Pedro Alves <palves@redhat.com>
6041
6042 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6043 pointer.
6044
36d25514
YQ
60452013-05-30 Yao Qi <yao@codesourcery.com>
6046
6047 * remote.c (remote_check_symbols): Remove unused parameter
6048 'objfile'.
6049 Declaration update.
6050 (remote_start_remote, remote_new_objfile): Caller update.
6051
62a813cc
YQ
60522013-05-30 Yao Qi <yao@codesourcery.com>
6053
6054 * mi/mi-cmds.c (mi_cmds): Define MI command
6055 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6056 DEF_MI_CMD_CLI.
6057
28439a30
PA
60582013-05-29 Pedro Alves <palves@redhat.com>
6059
6060 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6061 (remote_insert_watchpoint, remote_remove_watchpoint)
6062 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6063 (remote_verify_memory, compare_sections_command)
6064 (remote_search_memory): Set the general process/thread on the
6065 remote side.
6066
6ac1c082
PA
60672013-05-29 Pedro Alves <palves@redhat.com>
6068
6069 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6070 (_initialize_aarch64_tdep): Don't call
6071 initialize_tdesc_aarch64_without_fpu.
6072 * features/Makefile (WHICH): Remove reference to
6073 aarch64-without-fpu.
6074 * features/aarch64-without-fpu.c: Delete file.
6075 * regformats/aarch64-without-fpu.dat: Delete file.
6076
a73e3634
YQ
60772013-05-28 Yao Qi <yao@codesourcery.com>
6078
6079 * tracepoint.c (stringify_collection_list): Remove parameter
6080 'string'.
6081 (encode_actions): Caller update. Remove local variables.
6082
c0ea94eb
YQ
60832013-05-24 Yao Qi <yao@codesourcery.com>
6084
6085 * tracepoint.c (TFILE_PID): Remove.
6086 (tfile_open): Don't add thread and inferior.
6087 (tfile_close): Don't set 'inferior_ptid'. Don't call
6088 exit_inferior_silent.
6089 (tfile_thread_alive): Remove.
6090 (init_tfile_ops): Don't set field 'to_thread_alive' of
6091 tfile_ops.
6092
20d7f211
DE
60932013-05-23 Doug Evans <dje@google.com>
6094
6095 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6096
8658d16d
PA
60972013-05-23 Pedro Alves <palves@redhat.com>
6098
6099 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6100 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6101 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6102 Only define if HAVE_SOCKETS is defined.
6103 * configure.ac: Check for sys/socket.h.
6104 * config.in, configure: Regenerate.
6105
21aa081e
PA
61062013-05-23 Pedro Alves <palves@redhat.com>
6107
6108 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6109 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6110 printing uint32_t variables.
6111
c2d6af84
PA
61122013-05-23 Pedro Alves <palves@redhat.com>
6113
6114 * NEWS: Mention GDBserver range stepping support.
6115
c1e36e3e
PA
61162013-05-23 Yao Qi <yao@codesourcery.com>
6117 Pedro Alves <palves@redhat.com>
6118
6119 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6120 field.
6121 * infcmd.c (step_once, until_next_command): Enable range stepping.
6122 * infrun.c (displaced_step_prepare): Disable range stepping.
6123 (resume): Disable range stepping if stepping over a breakpoint or
6124 we have software watchpoints. If range stepping is enabled,
6125 assert the thread is in the stepping range.
6126 (clear_proceed_status_thread): Clear may_range_step.
6127 (handle_inferior_event): Disable range stepping as soon as we know
6128 the thread that hit the event. Re-enable it whenever we're going
6129 to step with a step range.
6130 * remote.c (struct vCont_action_support) <r>: New field.
6131 (use_range_stepping): New global.
6132 (remote_vcont_probe): Handle 'r' action.
6133 (append_resumption): Append an 'r' action if the thread may range
6134 step.
6135 (show_range_stepping): New function.
6136 (set_range_stepping): New function.
6137 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6138 'set range-stepping' and 'show range-stepping' commands.
6139 * NEWS: Mention range stepping, the new vCont;r action, and the
6140 new "set/show range-stepping" commands.
6141
d458bd84
PA
61422013-05-23 Yao Qi <yao@codesourcery.com>
6143 Pedro Alves <palves@redhat.com>
6144
6145 * remote.c (struct vCont_action_support): New struct.
6146 (struct remote_state) <support_vCont_t>: Remove field.
6147 <vCont_actions_support>: New field.
6148 (remote_vcont_probe, remote_stop_ns): Update.
6149
ce4c476a
PA
61502013-05-23 Yao Qi <yao@codesourcery.com>
6151 Pedro Alves <palves@redhat.com>
6152
6153 * gdbthread.h (pc_in_thread_step_range): New declaration.
6154 * thread.c (pc_in_thread_step_range): New function.
6155 * infrun.c (handle_inferior_event): Use it.
6156
ce70887a
JB
61572013-05-23 Joel Brobecker <brobecker@adacore.com>
6158
6159 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6160 of sprintf.
6161
55b87a52
KS
61622013-05-22 Keith Seitz <keiths@redhat.com>
6163
6164 * ada-lang.c (is_known_support_routine): Add explicit free of
6165 'func_name' from find_frame_funname.
6166 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6167 for func_name from find_frame_funname.
6168 * python/py-frame.c (frapy_name): Add explicit free of
6169 'name' from find_frame_funname.
6170 * stack.c (find_frame_funname): Add comment explaining that
6171 funcp must be freed by the caller.
6172 Return copy of symbol names instead of pointers.
6173 (print_frame): Add a cleanup for 'funname' from
6174 find_frame_funname.
6175 * stack.h (find_frame_funname): Remove "const" from
6176 'funname' parameter.
6177
5f2e6b00
TT
61782013-05-22 Tom Tromey <tromey@redhat.com>
6179
6180 PR c++/15401:
6181 * c-valprint.c (c_value_print): Use value_addr for
6182 references. Convert back to reference type with value_ref.
6183
d85c4847
EZ
61842013-05-22 Eli Zaretskii <eliz@gnu.org>
6185
6186 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6187 unloaded DLL, it will be done by handle_solib_event. See
6188 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6189 details.
6190
54eb231c
PM
61912013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6192
6193 * ui-out.c: Create typedef ui_out_level_p and define vector
6194 operations for that type.
6195 (struct ui_out): Use a vector instead of an array.
6196 (current_level): Return level from a vector.
6197 (push_level): Create a level in a vector.
6198 (pop_level): Delete a level in a vector.
6199 (ui_out_new): Create initial level zero level, and store in a
6200 vector.
6201 (ui_out_destroy): Add vector cleanup.
6202
ac90359c
PA
62032013-05-22 Pedro Alves <palves@redhat.com>
6204
6205 * python/python-internal.h (gdb_Py_DECREF): Tag with
6206 "ARI: editCase function".
6207
6dcc1893
PP
62082013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6209
6210 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6211
c8c735b9
PA
62122013-05-21 Pedro Alves <palves@redhat.com>
6213
6214 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6215 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6216 * python/py-utils.c (py_decref): Don't check for NULL before
6217 calling Py_DECREF.
6218
1915daeb
PA
62192013-05-21 Pedro Alves <palves@redhat.com>
6220
6221 * python/py-utils.c (py_decref): Remove extra braces.
6222 (gdb_pymodule_addobject): Remove extra braces.
6223 * python-internal.h (gdb_Py_DECREF): New static inline function.
6224 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6225
bd9673a4
PW
62262013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6227
6228 * breakpoints.c (detach_breakpoints): Do not
6229 detach breakpoints locations with loc_type bp_loc_other.
6230
ff6009d0
JK
62312013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6232
6233 Workaround Python 2.6.
6234 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6235 a block.
6236
3641da11
JK
62372013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6238
6239 Code cleanup: constification.
6240 * solib.c (solib_ops): Make return type and ops variable type const.
6241 (set_solib_ops): Make the new_ops parameter and ops variable const.
6242 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6243 (solib_add, solib_keep_data_in_core, clear_solib)
6244 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6245 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6246 const.
6247 * solib.h (set_solib_ops): Make the new_ops parameter const.
6248
776af39e
JB
62492013-05-21 Joel Brobecker <brobecker@adacore.com>
6250
6251 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6252 variable.
6253 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6254 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6255 (SYSTEM_GDBINIT_FILES): New variables.
6256 (all): Add stamp-system-gdbinit.
6257 (stamp-system-gdbinit): New rule.
6258 (clean-system-gdbinit, install-system-gdbinit)
6259 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6260 (install-only): Add dependency on install-system-gdbinit.
6261 (uninstall): Add dependency on uninstall-system-gdbinit.
6262 (clean): Add dependency on clean-system-gdbinit.
6263 * system-gdbinit/elinos.py: New file.
6264 * system-gdbinit/wrs-linux.py: New file.
6265
1509e573
JB
62662013-05-21 Joel Brobecker <brobecker@adacore.com>
6267
6268 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6269
c5867ab6
HZ
62702013-05-21 Hui Zhu <hui@codesourcery.com>
6271
6272 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6273 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6274 * mi/mi-cmd-break.c (ctype.h): New include.
6275 (gdb_obstack.h): New include.
6276 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6277 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6278 (mi_cmd_dprintf_insert): New.
6279 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6280 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6281
7d38e38f
TT
62822013-05-20 Tom Tromey <tromey@redhat.com>
6283
6284 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6285
97b77b39
TT
62862013-05-20 Tom Tromey <tromey@redhat.com>
6287
6288 * python/py-value.c (valpy_get_dynamic_type): Simplify
6289 dynamic_type assignment. Use Py_XINCREF.
6290
53e66479
TT
62912013-05-20 Tom Tromey <tromey@redhat.com>
6292
6293 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6294
dcf87832
TT
62952013-05-20 Tom Tromey <tromey@redhat.com>
6296
6297 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6298 (gdbpy_selected_frame): Move object-construction code
6299 out of TRY_CATCH.
6300
aa36459a
TT
63012013-05-20 Tom Tromey <tromey@redhat.com>
6302
6303 * python/py-arch.c (gdbpy_initialize_arch): Use
6304 gdb_pymodule_addobject.
6305 * python/py-block.c (gdbpy_initialize_blocks): Use
6306 gdb_pymodule_addobject.
6307 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6308 gdb_pymodule_addobject.
6309 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6310 gdb_pymodule_addobject.
6311 * python/py-event.c (gdbpy_initialize_event_generic): Use
6312 gdb_pymodule_addobject.
6313 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6314 gdb_pymodule_addobject.
6315 * python/py-evts.c (add_new_registry): Use
6316 gdb_pymodule_addobject.
6317 (gdbpy_initialize_py_events): Likewise.
6318 * python/py-finishbreakpoint.c
6319 (gdbpy_initialize_finishbreakpoints): Use
6320 gdb_pymodule_addobject.
6321 * python/py-frame.c (gdbpy_initialize_frames): Use
6322 gdb_pymodule_addobject.
6323 * python/py-function.c (gdbpy_initialize_functions): Use
6324 gdb_pymodule_addobject.
6325 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6326 gdb_pymodule_addobject.
6327 * python/py-infthread.c (gdbpy_initialize_thread): Use
6328 gdb_pymodule_addobject.
6329 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6330 gdb_pymodule_addobject.
6331 * python/py-param.c (gdbpy_initialize_parameters): Use
6332 gdb_pymodule_addobject.
6333 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6334 gdb_pymodule_addobject.
6335 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6336 gdb_pymodule_addobject.
6337 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6338 gdb_pymodule_addobject.
6339 * python/py-type.c (gdbpy_initialize_types): Use
6340 gdb_pymodule_addobject.
6341 * python/py-utils.c (gdb_pymodule_addobject): New function.
6342 * python/py-value.c (gdbpy_initialize_values): Use
6343 gdb_pymodule_addobject.
6344 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6345 * python/python.c (_initialize_python): Use
6346 gdb_pymodule_addobject.
6347
3d4a3c3e
TT
63482013-05-20 Tom Tromey <tromey@redhat.com>
6349
6350 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6351 * python/py-param.c (get_set_value, get_show_value): Use
6352 explicit decrefs.
6353 * python/python.c (start_type_printers, apply_type_printers):
6354 Use explicit decrefs.
6355
72ff8829
TT
63562013-05-20 Tom Tromey <tromey@redhat.com>
6357
6358 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6359 incref the module.
6360
02146ba5
TT
63612013-05-20 Tom Tromey <tromey@redhat.com>
6362
6363 * python/python.c (gdbpy_run_events): Decref the result
6364 of PyObject_CallObject.
6365
33ee792f
TT
63662013-05-20 Tom Tromey <tromey@redhat.com>
6367
6368 * python/py-symtab.c (set_sal): Use
6369 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6370 (symtab_and_line_to_sal_object): Update.
6371
fcb49fc8
TT
63722013-05-20 Tom Tromey <tromey@redhat.com>
6373
6374 * python/py-param.c (compute_enum_values): Decref 'item'.
6375
0646da15
TT
63762013-05-20 Tom Tromey <tromey@redhat.com>
6377
6378 * mi/mi-main.c: Include python-internal.h.
6379 (mi_cmd_list_features): Check gdb_python_initialized.
6380 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6381 (python_inferior_exit, python_new_objfile, add_thread_object)
6382 (delete_thread_object, py_free_inferior): Check
6383 gdb_python_initialized.
6384 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6385 gdb_python_initialized.
6386 * python/py-type.c (save_objfile_types): Check
6387 gdb_python_initialized.
6388 * python/python-internal.h (gdb_python_initialized): Declare.
6389 * python/python.c (ensure_python_env): Throw exception if
6390 Python not initialized.
6391 (before_prompt_hook, source_python_script_for_objfile)
6392 (start_type_printers, apply_type_printers,
6393 free_type_printers): Check gdb_python_initialized.
6394 * varobj.c (varobj_get_display_hint)
6395 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6396 (install_new_value_visualizer, varobj_set_visualizer)
6397 (value_get_print_value): Check gdb_python_initialized.
6398
999633ed
TT
63992013-05-20 Tom Tromey <tromey@redhat.com>
6400
6401 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6402 Check errors.
6403 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6404 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6405 Check errors.
6406 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6407 Check errors.
6408 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6409 Check errors.
6410 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6411 Check errors.
6412 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6413 init function to return 'int'.
6414 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6415 Return 'int'. Check errors.
6416 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6417 Check errors.
6418 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6419 Return 'int'. Check errors.
6420 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6421 Check errors.
6422 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6423 Check errors.
6424 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6425 Check errors.
6426 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6427 Check errors.
6428 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6429 Check errors.
6430 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6431 Check errors.
6432 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6433 Check errors.
6434 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6435 Check errors.
6436 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6437 Check errors.
6438 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6439 Check errors.
6440 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6441 Check errors.
6442 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6443 Check errors.
6444 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6445 Check errors.
6446 * python/python-internal.h (gdbpy_initialize_auto_load,
6447 gdbpy_initialize_values, gdbpy_initialize_frames,
6448 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6449 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6450 gdbpy_initialize_blocks, gdbpy_initialize_types,
6451 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6452 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6453 gdbpy_initialize_finishbreakpoints,
6454 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6455 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6456 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6457 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6458 gdbpy_initialize_signal_event,
6459 gdbpy_initialize_breakpoint_event,
6460 gdbpy_initialize_continue_event,
6461 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6462 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6463 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6464 * python/python.c (gdb_python_initialized): New global.
6465 (gdbpy_initialize_events): Return 'int'. Check errors.
6466 (_initialize_python): Check errors. Set
6467 gdb_python_initialized.
6468
18868860
TT
64692013-05-20 Tom Tromey <tromey@redhat.com>
6470
6471 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6472 Decref the reslut of PyObject_CallMethod.
6473
9f4ff0c2
TT
64742013-05-20 Tom Tromey <tromey@redhat.com>
6475
6476 * python/py-event.c (gdbpy_initialize_event_generic): Return
6477 early if PyType_Ready fails.
6478
0d3a2e8a
TT
64792013-05-20 Tom Tromey <tromey@redhat.com>
6480
6481 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6482 as 'default' in the switch.
6483
b86af38a
TT
64842013-05-20 Tom Tromey <tromey@redhat.com>
6485
6486 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6487 get_addr_from_python calls out of TRY_CATCH.
6488 (infpy_write_memory, infpy_search_memory): Likewise.
6489 * python/py-utils.c (get_addr_from_python): Return negative
6490 value on error. Use TRY_CATCH.
6491 * python/python-internal.h (get_addr_from_python): Use
6492 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6493
c127ec58
TT
64942013-05-20 Tom Tromey <tromey@redhat.com>
6495
6496 * python/py-event.c (evpy_emit_event): Decref the
6497 result of PyObject_CallFunctionObjArgs.
6498
ba327838
TT
64992013-05-20 Tom Tromey <tromey@redhat.com>
6500
6501 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6502 Correctly decref.
6503
d8191432
TT
65042013-05-20 Tom Tromey <tromey@redhat.com>
6505
6506 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6507
5d153bd1
TT
65082013-05-20 Tom Tromey <tromey@redhat.com>
6509
6510 * python/py-event.h (gdbpy_initialize_event_generic): Use
6511 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6512 * python/py-evts.c (add_new_registry): Use
6513 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6514 * python/python-internal.h
6515 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6516
56cc411c
TT
65172013-05-20 Tom Tromey <tromey@redhat.com>
6518
6519 * python/py-arch.c (archpy_disassemble): Update.
6520 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6521 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6522 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6523 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6524 macro.
6525 (GDB_PY_HANDLE_EXCEPTION): Update.
6526 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6527
8919e174
TT
65282013-05-20 Tom Tromey <tromey@redhat.com>
6529
6530 * python/python-internal.h (events_object_type): Remove.
6531
9b08f225
TT
65322013-05-20 Tom Tromey <tromey@redhat.com>
6533
f5aee5ee
AM
6534 * python/py-event.h (evpy_emit_event): Use
6535 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6536 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6537 New macro.
9b08f225 6538
f04010ff
TT
65392013-05-20 Tom Tromey <tromey@redhat.com>
6540
6541 * py-evtregistry.c (create_event_object): Decref
6542 eventregistry_object if PyList_New fails.
6543
3919fd96
TT
65442013-05-20 Tom Tromey <tromey@redhat.com>
6545
6546 * py-cmd.c (gdbpy_string_to_argv): Check result of
6547 PyList_New.
6548
0430e8cb
TT
65492013-05-20 Tom Tromey <tromey@redhat.com>
6550
6551 * python/python.c (before_prompt_hook): Add cleanup to
6552 decref 'hook'.
6553
764123e4
TT
65542013-05-20 Tom Tromey <tromey@redhat.com>
6555
6556 * python/py-function.c (fnpy_init): Decref result of
6557 PyObject_GetAttrString.
6558
634c58be
TT
65592013-05-20 Tom Tromey <tromey@redhat.com>
6560
6561 * python/py-threadevent.c (get_event_thread): Use
6562 CPYCHECKER_RETURNS_BORROWED_REF.
6563 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6564 New define.
6565 (pspace_to_pspace_object, objfile_to_objfile_object)
6566 (find_thread_object): Use it.
6567
62eec1a5
TT
65682013-05-20 Tom Tromey <tromey@redhat.com>
6569
6570 * python/py-arch.c (arch_object_type): Use
6571 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6572 * python/py-block.c (block_syms_iterator_object_type):
6573 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6574 * python/py-bpevent.c (breakpoint_event_object_type):
6575 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6576 * python/py-cmd.c (cmdpy_object_type): Use
6577 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6578 * python/py-continueevent.c (continue_event_object_type):
6579 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6580 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6581 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6582 * python/py-events.h (thread_event_object_type):
6583 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6584 * python/py-evtregistry.c (eventregistry_object_type): Use
6585 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6586 * python/py-exitedevent.c (exited_event_object_type):
6587 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6588 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6589 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6590 * python/py-function.c (fnpy_object_type): Use
6591 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6592 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6593 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6594 * python/py-infthread.c (thread_object_type): Use
6595 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6596 * python/py-lazy-string.c (lazy_string_object_type):
6597 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6598 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6599 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6600 * python/py-objfile.c (objfile_object_type): Use
6601 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6602 * python/py-param.c (parmpy_object_type):
6603 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6604 * python/py-progspace.c (pspace_object_type):
6605 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6606 * python/py-signalevent.c (signal_event_object_type):
6607 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6608 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6609 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6610 * python/py-type.c (type_object_type, field_object_type)
6611 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6612 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6613 define.
6614 (value_object_type, block_object_type, symbol_object_type)
6615 (event_object_type, stop_event_object_type, breakpoint_object_type)
6616 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6617
81ea8796
AT
66182013-05-20 Andreas Tobler <andreas@fgznet.ch>
6619
6620 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6621 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6622
a2ce51a0
DE
66232013-05-20 Doug Evans <dje@google.com>
6624
6625 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6626 For Fission.
6627 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6628 reading_dwo_directly.
6629 (struct signatured_type): New member dwo_unit.
6630 (struct die_reader_specs): New member comp_dir.
6631 (create_signatured_type_table_from_index): Use malloc for
6632 all_type_units instead of objfile's obstack.
6633 (create_all_type_units): Ditto.
6634 (fill_in_sig_entry_from_dwo_entry): New function.
6635 (add_type_unit): New function.
6636 (lookup_dwo_signatured_type): New function.
6637 (lookup_dwp_signatured_type): New function.
6638 (lookup_signatured_type): New arg cu. All callers updated.
6639 (init_cu_die_reader): Initialize comp_dir.
6640 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6641 Change assert of matching type signatures to call error on mismatch.
6642 (lookup_dwo_unit): Add assert.
6643 (init_tu_and_read_dwo_dies): New function.
6644 (init_cutu_and_read_dies): Call it.
6645 (build_type_unit_groups): Handle case of no type unit groups created.
6646 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6647 (lookup_dwo_cutu): Tweak complaint.
6648 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6649 (dwarf2_per_objfile_free): Free all_type_units.
6650
a25cd31f
JB
66512013-05-20 Joel Brobecker <brobecker@adacore.com>
6652
6653 * windows-nat.c (handle_unload_dll): Add missing empty line.
6654
4d804846
JB
66552013-05-20 Joel Brobecker <brobecker@adacore.com>
6656
6657 * dwarf2read.c (prototyped_function_p): New function.
6658 (read_subroutine_type): Use it.
6659
1c432e72
JB
66602013-05-20 Joel Brobecker <brobecker@adacore.com>
6661
6662 * rs6000-aix-tdep.c: De-indent some example code provided
6663 as a comment.
6664
4feebbdd
EBM
66652013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6666
6667 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6668 region is ok for a hardware watchpoint using the new ptrace interface
6669 on Power servers.
6670
7d0c9981
DE
66712013-05-17 Doug Evans <dje@google.com>
6672
6673 * NEWS: Mention new maintenance commands check-symtabs, and
6674 expand-symtabs, and renamed check-psymtabs.
6675 * psymtab.c (maintenance_check_psymtabs): Renamed from
6676 maintenance_check_symtabs. Only process already-expanded symbol
6677 tables.
6678 (_initialize_psymtab): Update.
6679 * symmisc.c (maintenance_check_symtabs): New function.
6680 (maintenance_expand_name_matcher): New function
6681 (maintenance_expand_file_matcher): New function
6682 (maintenance_expand_symtabs): New function.
6683 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6684 commands.
6685
6cbc7c3d
TT
66862013-05-17 Tom Tromey <tromey@redhat.com>
6687
6688 * python/py-inferior.c (infpy_read_memory): Don't call
6689 PyErr_SetString if PyObject_New fails.
6690 * python/py-frame.c (frame_info_to_frame_object): Don't call
6691 PyErr_SetString if PyObject_New fails.
6692
a48b32c0
L
66932013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6694
6695 * acinclude.m4: Add check for dlopen in libdl.
6696 * configure.ac: Ditto.
6697 * configure: Regenerate.
6698
3de661e6
PM
66992013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6700
6701 * frame.c (frame_stash): Convert to htab.
6702 (frame_addr_hash): New function.
6703 (frame_addr_hash_eq): New function.
6704 (frame_stash_create): Convert function to create
6705 a hash table.
6706 (frame_stash_add): Convert function to add an entry to a hash
6707 table.
6708 (frame_stash_find): Convert function to search the hash table.
6709 (frame_stash_invalidate): Convert function to empty the hash
6710 table.
6711 (get_frame_id): Only add to stash if a frame_id is created.
6712 (_initialize_frame): Call frame_stash_create.
6713
bb4168a9 67142013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6715
6716 * configure.ac: Ensure MIG is available when building for GNU Hurd
6717 hosts.
6718 * configure: Regenerate.
6719
d1be3247
JB
67202013-05-16 Joel Brobecker <brobecker@adacore.com>
6721
6722 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6723
b8fea896
JB
67242013-05-16 Joel Brobecker <brobecker@adacore.com>
6725
6726 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6727 all cleanups are done before returning from this function.
6728
af880d85
JB
67292013-05-15 Joel Brobecker <brobecker@adacore.com>
6730
6731 * utils.h: #include "exceptions.h".
6732 (enum errors): Remove partial declaration.
6733
356a5233
JB
67342013-05-15 Joel Brobecker <brobecker@adacore.com>
6735
6736 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6737 * gdbarch.h, gdbarch.c: Regenerate.
6738 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6739 handling.
6740
6741 * rs6000-aix-tdep.h: New file.
6742 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6743 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6744 "xml-utils.h".
6745 (struct field_info, struct ld_info_desc): New types.
6746 (ld_info32_desc, ld_info64_desc): New static constants.
6747 (struct ld_info): New type.
6748 (rs6000_aix_extract_ld_info): New function.
6749 (rs6000_aix_shared_library_to_xml): Likewise.
6750 (rs6000_aix_ld_info_to_xml): Likewise.
6751 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6752 (rs6000_aix_init_osabi): Add call to
6753 set_gdbarch_core_xfer_shared_libraries_aix.
6754 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6755 Remove "xml-utils.h" include.
6756 (LdInfo): Delete typedef.
6757 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6758 Delete macros.
6759 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6760 Adjust code accordingly.
6761 (rs6000_core_ldinfo): Delete, folded into
6762 rs6000_aix_core_xfer_shared_libraries_aix.
6763 (rs6000_xfer_shared_library): Delete.
6764 (rs6000_xfer_shared_libraries): Reimplement.
6765
742ce053
MM
67662013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6767
6768 * record.c (record_goto_cmdlist): New.
6769 (cmd_record_goto): Split into this ...
6770 (cmd_record_goto_begin): ... this
6771 (cmd_record_goto_end): ... and this.
6772 (_initialize_record): Change "record goto" to prefix command.
6773 Add commands for "record goto begin" and "record goto end".
6774 Add an alias for "record goto start" to "record goto begin".
6775
e93ba630
JK
67762013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6777
6778 * linespec.c (convert_linespec_to_sals): New comment for
6779 SOURCE_FILENAME assignment.
6780
5821aace
JK
67812013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6782
6783 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6784 internal_warning.
6785
a1b8c4cc
TT
67862013-05-14 Tom Tromey <tromey@redhat.com>
6787
6788 * eval.c (parse_and_eval_long): Make 'exp' const.
6789 * value.h (parse_and_eval_long): Update.
6790
23b3a2c3
TT
67912013-05-14 Tom Tromey <tromey@redhat.com>
6792
6793 * ui-file.c (gdb_fopen): Make arguments const.
6794 * ui-file.h (gdb_fopen): Make arguments const.
6795
ca623f82
TT
67962013-05-14 Tom Tromey <tromey@redhat.com>
6797
6798 * remote.c (remote_set_trace_notes): Make arguments const.
6799 * target.c (update_current_target): Update cast.
6800 * target.h (to_set_trace_notes): Make arguments const.
6801
503ebb2c
TT
68022013-05-14 Tom Tromey <tromey@redhat.com>
6803
6804 * go32-nat.c (go32_terminal_info): Make 'args' const.
6805 * inferior.h (child_terminal_info): Update.
6806 * inflow.c (child_terminal_info): Make 'args' const.
6807 * target.c (default_terminal_info): Make 'args' const.
6808 (debug_to_terminal_save_ours): Likewise.
6809 * target.h (struct target_ops) <to_terminal_info>: Make argument
6810 const.
6811
85e1311a
TT
68122013-05-13 Tom Tromey <tromey@redhat.com>
6813
6814 * gcore.c (create_gcore_bfd): Make 'filename' const.
6815 * gcore.h (create_gcore_bfd): Make 'filename' const.
6816 * record-full.c (record_full_save): Make 'recfilename' const.
6817 * target.c (target_save_record): Make 'filename' const.
6818 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6819 const.
6820 (target_save_record): Likewise.
6821
d62bfeaf
TT
68222013-05-13 Tom Tromey <tromey@redhat.com>
6823
f5aee5ee 6824 PR gdb/15338:
d62bfeaf
TT
6825 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6826 ranges section has been read.
6827
ac1ca910
TT
68282013-05-13 Tom Tromey <tromey@redhat.com>
6829
6830 PR exp/15364:
6831 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6832 STRUCTOP_PTR>: Return a not_lval value for
6833 EVAL_AVOID_SIDE_EFFECTS.
6834 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6835 for EVAL_AVOID_SIDE_EFFECTS.
6836
36d1c68c
JB
68372013-05-13 Joel Brobecker <brobecker@adacore.com>
6838
6839 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6840 floating point registers to register type before storing
6841 value.
6842 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6843 Likewise.
6844
21ff4686
TT
68452013-05-10 Joel Brobecker <brobecker@adacore.com>
6846 Tom Tromey <tromey@redhat.com>
6847
6848 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6849 New functions.
6850 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6851 Declare.
6852 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6853 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6854 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6855 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6856
d3685d60
TT
68572013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6858 Tom Tromey <tromey@redhat.com>
6859
6860 PR build/15414:
6861 * configure: Rebuild.
6862 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6863 with -Wno-format.
6864
eb9fe518
PA
68652013-05-10 Pedro Alves <palves@redhat.com>
6866
6867 * remote.c (_initialize_remote): Fix spelling of
6868 qXfer:traceframe-info:read packet in packet config command.
6869
9779ab84
PA
68702013-05-10 David Taylor <dtaylor@emc.com>
6871
6872 PR remote/15455
6873
6874 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6875 "QTro" at start of packet.
6876
060cfbef
JB
68772013-05-10 Joel Brobecker <brobecker@adacore.com>
6878
6879 * solib-aix.c (solib_aix_relocate_section_addresses):
6880 For the .bss section action, apply the same offset as
6881 the .data section.
6882
ab1c4e88
JB
68832013-05-10 Joel Brobecker <brobecker@adacore.com>
6884
6885 * solib-aix.c (solib_aix_relocate_section_addresses):
6886 Remove FIXME comment.
6887
c1357578
JB
68882013-05-10 Joel Brobecker <brobecker@adacore.com>
6889
6890 PR tdep/15420:
6891 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6892 New functions, directly copied from sparc-sol-thread.c.
6893 * sparc-sol-thread.c: Delete.
6894 * configure.ac: Remove code handling sparc-solaris-thread.c.
6895 * configure: Regenerate.
6896
1e611234
PM
68972013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6898
6899 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6900 filter logic.
6901 (backtrace_command): Add "no-filters" option parsing.
6902 (_initialize_stack): Alter help to reflect "no-filters" option.
6903 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6904 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6905 (py-frame.o): Add target
6906 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6907 filter files.
6908 * python/python.h: Add new frame filter constants, and flag enum.
6909 (apply_frame_filter): Add definition.
6910 * python/python.c (apply_frame_filter): New non-Python
6911 enabled function.
6912 * python/py-utils.c (py_xdecref): New function.
6913 (make_cleanup_py_xdecref): Ditto.
6914 * python/py-objfile.c: Declare frame_filters dictionary.
6915 (objfpy_dealloc): Add frame_filters dealloc.
6916 (objfpy_new): Initialize frame_filters attribute.
6917 (objfile_to_objfile_object): Ditto.
6918 (objfpy_get_frame_filters): New function.
6919 (objfpy_set_frame_filters): New function.
6920 * python/py-progspace.c: Declare frame_filters dictionary.
6921 (pspy_dealloc): Add frame_filters dealloc.
6922 (pspy_new): Initialize frame_filters attribute.
6923 (pspacee_to_pspace_object): Ditto.
6924 (pspy_get_frame_filters): New function.
6925 (pspy_set_frame_filters): New function.
6926 * python/py-framefilter.c: New file.
6927 * python/lib/gdb/command/frame_filters.py: New file.
6928 * python/lib/gdb/frames.py: New file.
6929 * python/lib/gdb/__init__.py: Initialize global frame_filters
6930 dictionary
6931 * python/lib/gdb/FrameDecorator.py: New file.
6932 * python/lib/gdb/FrameIterator.py: New file.
6933 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6934 * mi/mi-cmds.h: Declare.
6935 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6936 --no-frame-filter logic, and Python frame filter logic.
6937 (stack_enable_frame_filters): New function.
6938 (parse_no_frame_option): Ditto.
6939 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6940 filter logic.
6941 (mi_cmd_stack_list_locals): Ditto.
6942 (mi_cmd_stack_list_args): Ditto.
6943 (mi_cmd_stack_list_variables): Ditto.
6944 * NEWS: Add frame filter note.
6945
2cb9c859
DE
69462013-05-09 Doug Evans <dje@google.com>
6947
6bf667bb
DE
6948 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6949 All callers updated.
6950 (syms_from_objfile): Ditto. Make static.
6951 (symbol_file_add_with_addrs): Renamed from
6952 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6953 num_offsets. All callers updated.
6954 * symfile.h (syms_from_objfile): Delete.
6955
2cb9c859
DE
6956 * symfile.c (decrement_reading_symtab): Add assert.
6957 (increment_reading_symtab): Ditto.
6958
40aea477
JB
69592013-05-09 Joel Brobecker <brobecker@adacore.com>
6960
6961 * source.c (forward_search_command): Replace call to getc
6962 by call to fgetc.
6963 (reverse_search_command): Likewise.
6964
680d1742
DE
69652013-05-08 Doug Evans <dje@google.com>
6966
6967 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6968 matching test.
6969
17e760ae
JB
69702013-05-08 Joel Brobecker <brobecker@adacore.com>
6971
6972 * sol-thread.c (info_cb): Factorize the code a little.
6973
c0f5f490
JB
69742013-05-08 Joel Brobecker <brobecker@adacore.com>
6975
6976 * sol-thread.c (info_cb): Rework the output of the "maintenance
6977 info sol-threads" command a bit.
6978
5d74e061
JB
69792013-05-08 Joel Brobecker <brobecker@adacore.com>
6980
6981 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6982 Replace ti.ti_startfunc by ti.ti_pc.
6983
814a3ff7
JB
69842013-05-08 Joel Brobecker <brobecker@adacore.com>
6985
6986 * solib-aix.c (solib_aix_free_library_list): New function
6987 for the case where HAVE_LIBEXPAT is not defined.
6988
58ce7251
SDJ
69892013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6990
6991 PR breakpoints/15413:
6992 * breakpoint.c (condition_completer): Simplify the code to
6993 disconsider multiple locations of breakpoints when completing the
6994 "condition" command.
6995
be8b1ea6
PM
69962013-05-07 Pierre Muller <muller@sourceware.org>
6997
6998 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6999 instead of <sys/wait.h>.
7000
1e52bda6
PM
70012013-05-07 Pierre Muller <muller@sourceware.org>
7002
7003 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7004 trailing new line from warning message.
7005
27fd0c6b
PM
70062013-05-07 Pierre Muller <muller@sourceware.org>
7007
7008 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7009 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7010
e228ac87
JB
70112013-05-07 Joel Brobecker <brobecker@adacore.com>
7012
7013 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7014 error message (ARI fix).
7015
70162013-05-07 Joel Brobecker <brobecker@adacore.com>
7017
7018 * features/library-list-aix.dtd: Replace library-list by
7019 library-list-aix.
7020 * rs6000-nat.c: Replace library-list by library-list-aix
7021 throughout.
7022 * solib-aix.c: Likewise.
7023
70242013-05-07 Joel Brobecker <brobecker@adacore.com>
7025
7026 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7027 Renames TARGET_OBJECT_AIX_LIBRARIES.
7028 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7029 TARGET_OBJECT_LIBRARIES_AIX throughout.
7030 * solib-aix.c: Likwise.
7031
26a4dda9
YQ
70322013-05-07 Yao Qi <yao@codesourcery.com>
7033
7034 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7035 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7036
3582629f
YQ
70372013-05-07 Yao Qi <yao@codesourcery.com>
7038
7039 * solib-dsbt.c (enable_break): Declare.
7040 (dsbt_current_sos): Remove call to enable_break2.
7041 (enable_break2): Rename to enable_break. Set solib breakpoint
7042 on '_dl_debug_state'.
7043 (enable_break): Remove.
7044
aacbb8a5
LM
70452013-05-07 Luis Machado <lgustavo@codesourcery.com>
7046
7047 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7048 debug state prior to replicating existing hardware watchpoints or
7049 breakpoints.
7050
0c013353
JK
70512013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7052
7053 * gcore.c (gcore_create_callback): Ignore sections with
7054 separate_debug_objfile_backlink != NULL.
7055
a1217d97
SL
70562013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7057 Andrew Jenner <andrew@codesourcery.com>
7058 Chung-Lin Tang <cltang@codesourcery.com>
7059 Julian Brown <julian@codesourcery.com>
7060
7061 Based on the nios2-elf port from Altera Corporation.
7062
7063 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7064 nios2-linux-tdep.o.
7065 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7066 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7067 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7068 * nios2-tdep.h: New.
7069 * nios2-tdep.c: New.
7070 * nios2-linux-tdep.c: New.
7071 * features/Makefile (WHICH): Add nios2-linux.
7072 (nios2-linux-expedite): Set.
7073 * features/nios2-cpu.xml: New.
7074 * features/nios2.xml: New.
7075 * features/nios2-linux.xml: New.
7076 * features/nios2.c: New (autogenerated).
7077 * features/nios2-linux.c: New (autogenerated).
7078 * regformats/nios2-linux.dat: New (autogenerated).
7079 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7080 and commands.
7081
0892cb63
DE
70822013-05-06 Doug Evans <dje@google.com>
7083
3b7bacac
DE
7084 * symfile.c: Whitespace cleanup.
7085
0892cb63
DE
7086 * solist.h (struct target_so_ops): New member clear_so.
7087 * solib-svr4.c (svr4_clear_so): New function.
7088 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7089 * solib.c (clear_so): Renamed from free_so_symbols.
7090 All callers updated. Call target clear_so if it exists.
7091
40501e00
TT
70922013-05-06 Tom Tromey <tromey@redhat.com>
7093
7094 * ada-lang.c (ada_value_primitive_packed_val): Don't
7095 call value_incref.
7096 * value.c (set_value_parent): Incref the new parent and decref
7097 the old parent.
7098 (value_copy, value_primitive_field): Use set_value_parent.
7099
b6807d98
TT
71002013-05-06 Tom Tromey <tromey@redhat.com>
7101
7102 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7103 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7104 if needed.
7105 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7106 * dwarf2read.c (write_constant_as_bytes)
7107 (dwarf2_fetch_constant_bytes): New functions.
7108
3aef2284
TT
71092013-05-06 Tom Tromey <tromey@redhat.com>
7110
7111 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7112 parameters.
7113 (dwarf2_const_value_attr): Update.
7114
66f65e2b
TT
71152013-05-06 Tom Tromey <tromey@redhat.com>
7116
7117 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7118 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7119 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7120 Remove declaration.
7121
7919a973
TT
71222013-05-06 Tom Tromey <tromey@redhat.com>
7123
7124 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7125 objfile's obstack.
7126
a7bfba49
DE
71272013-05-06 Doug Evans <dje@google.com>
7128
3189cb12
DE
7129 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7130 * stabsread.h (process_one_symbol): Update declaration.
7131 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7132 * elfread.c (elf_symfile_relocate_probe): Ditto.
7133 * psymtab.c (relocate_psymtabs): Ditto.
7134 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7135 (objfile_relocate): Ditto.
7136 * objfiles.h (objfile_relocate): Update declaration.
7137 * symfile.c (relative_addr_info_to_section_offsets): Constify
7138 addrs parameter.
7139 (default_symfile_offsets): Ditto.
7140 (syms_from_objfile_1): Constify offsets parameter.
7141 (syms_from_objfile): Ditto.
7142 (symbol_file_add_with_addrs_or_offsets): Ditto.
7143 (symfile_map_offsets_to_segments): Constify data parameter.
7144 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7145 delta parameters of member relocate.
7146 (struct sym_probe_fns): Constify new_offsets,
7147 delta parameters of member sym_relocate_probe.
7148 (struct sym_fns): Constify section_addr_info parameter of member
7149 sym_offsets.
7150 (relative_addr_info_to_section_offsets): Update declaration.
7151 (default_symfile_offsets): Ditto.
7152 (syms_from_objfile): Ditto.
7153 (symfile_map_offsets_to_segments): Ditto.
7154
a7bfba49
DE
7155 * symfile.c (syms_from_objfile_1): Use correct section count when
7156 objfile->sf == NULL.
7157
5f8e0b8f
MF
71582013-05-06 Mike Frysinger <vapier@gentoo.org>
7159
7160 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7161
ea52d893
DE
71622013-05-06 Doug Evans <dje@google.com>
7163
7164 * psympriv.h (struct partial_symtab): Augment comment for member
7165 section_offsets.
7166
4d1eb6b4
JB
71672013-05-06 Joel Brobecker <brobecker@adacore.com>
7168
7169 Reimplement shared library support on ppc-aix...
7170 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7171 * features/library-list-aix.dtd: New file.
7172 * solib-aix.h, solib-aix.c: New file.
7173 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7174 (rs6000_find_toc_address_hook): Delete.
7175 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7176 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7177 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7178 "xml-utils.h".
7179 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7180 (vmap_symtab, fixup_breakpoints): Delete.
7181 (rs6000_xfer_shared_libraries): New function.
7182 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7183 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7184 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7185 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7186 (rs6000_xfer_shared_library): New function.
7187 (find_toc_address): Delete.
7188 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7189 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7190 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7191 before creating minimal symbol. Adjust function description
7192 accordingly.
7193 (scan_xcoff_symtab): Replace call to
7194 prim_record_minimal_symbol_and_info by call to
7195 record_minimal_symbol.
7196 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7197 around default_symfile_offsets.
7198 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7199 powerpc-aix targets.
7200 * config/rs6000/nm-rs6000.h: Delete.
7201 * config/powerpc/aix.mh (NAT_FILE): Delete.
7202 (NATDEPFILES): Remove xcoffsolib.o.
7203 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7204 (ALL_TARGET_OBS): Add solib-aix.o.
7205 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7206 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7207 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7208 * xcoffsolib.h, xcoffsolib.c: Delete.
7209
7210 * solib.c (reload_shared_libraries): Remove reference to
7211 SOLIB_CREATE_INFERIOR_HOOK.
7212 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7213 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7214 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7215 comment.
7216 * corelow.c (deprecated_core_resize_section_table): Delete.
7217 * exec.c: Remove include of xcoffsolib.h".
7218 (map_vmap, vmap): Delete.
7219 (exec_close_1): Remove references to vmap.
7220 (exec_file_attach): Remove vmap handling code, and reference
7221 to DEPRECATED_IBM6000_TARGET.
7222 (bfdsec_to_vmap): Delete.
7223 (exec_files_info): Remove block of code handling VMAP.
7224 * infcmd.c (post_create_inferior): Remove reference to
7225 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7226 * infrun.c (follow_exec): Remove reference to
7227 SOLIB_CREATE_INFERIOR_HOOK.
7228 * stack.c (print_frame): Remove reference to PC_SOLIB.
7229 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7230 (dsbt_relocate_main_executable): Likewise.
7231 * solib-frv.c (frv_current_sos): Likewise.
7232
0c4f667c
JB
72332013-05-06 Joel Brobecker <brobecker@adacore.com>
7234
7235 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7236 to target_write_memory and target_read_memory.
7237
726ce67c
JB
72382013-05-06 Joel Brobecker <brobecker@adacore.com>
7239
7240 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7241 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7242
c8c9911f
JB
72432013-05-06 Joel Brobecker <brobecker@adacore.com>
7244
7245 * darwin-nat.c: Replace all "%x" instances in format strings
7246 into "0x%x" throughout.
7247
fda184b6
JB
72482013-05-06 Joel Brobecker <brobecker@adacore.com>
7249
7250 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7251 gdb_assert by call to MACH_CHECK_ERROR.
7252 (darwin_attach_pid): Raise an error rather than a failed
7253 assertion when various system calls failed. Report a warning
7254 instead of raising a failed assertion when PREV_NOT is not NULL
7255 after call to mach_port_request_notification.
7256 (darwin_ptrace_me): Raise an error rather than a failed
7257 assertion when read returns nonzero.
7258
d1d69afb
JB
72592013-05-06 Joel Brobecker <brobecker@adacore.com>
7260
7261 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7262
dc90b24d
JK
72632013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7264
7265 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7266
faab9922
JK
72672013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7268
7269 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7270 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7271 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7272 a stale cleanup. Fix double free of NAME.
7273
e0ea48a0
EZ
72742013-05-04 Eli Zaretskii <eliz@gnu.org>
7275
7276 * windows-nat.c (windows_delete_thread): Accept an additional
7277 argument, the thread's exit code, and announce thread death when
7278 print_thread_events is non-zero and we are deleting a thread that
7279 is not the main thread.
7280 (get_windows_debug_event): Pass thread exit code to
7281 windows_delete_thread.
7282
83b2706a
KB
72832013-05-03 Kevin Buettner <kevinb@redhat.com>
7284
7285 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7286 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7287 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7288 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7289 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7290 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7291 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7292 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7293 (gdbarch_tdep): New struct.
7294 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7295 E_NUM_REGS.
7296 (v850e3v5_register_name): New function.
7297 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7298 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7299 code handling the struct return conventions for the RH850 ABI.
7300 Update all callers.
7301 (v850_eight_byte_align_p): New function.
7302 (v850_push_call_dummy): Push structs by value, not by reference
7303 for the RH850 ABI. Add support for eight byte alignment.
7304 (v850_dbtrap_breakpoint_from_pc): New function.
7305 (v850_gdbarch_init): Add ABI detection code. Register
7306 v850e3v5_register_name for the v850e3v5 architecture. Set the
7307 number of registers for v850e3v5. Register
7308 v850_dbtrap_breakpoint_from_pc as appropriate.
7309 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7310
d445b2f6
DE
73112013-05-03 Doug Evans <dje@google.com>
7312
7313 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7314 of bfd_count_sections.
7315 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7316 * symfile.c (default_symfile_offsets): Ditto.
7317 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7318 one entry, not bfd_count_sections entries.
7319
b3ce41ea
KB
73202013-05-03 Kevin Buettner <kevinb@redhat.com>
7321
7322 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7323 `save' and `restore' register groups. Don't include SPL
7324 or SPH in these groups.
7325 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7326 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7327 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7328 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7329 dwarf2_append_unwinders().
7330
96f7d3f1
PW
73312013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7332
7333 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7334 ignore SIGINT and SIGTRAP in case these internal signals are
7335 caught explicitely.
7336
b9dd1947
JB
73372013-05-01 Joel Brobecker <brobecker@adacore.com>
7338
7339 * darwin-nat.c (darwin_read_write_inferior): Change types
7340 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7341 of copy_count to "mach_msg_type_number_t".
7342 (darwin_read_dyld_info): Change type of parameter
7343 rdaddr to "gdb_byte *".
7344
4ca18a63
JB
73452013-05-01 Joel Brobecker <brobecker@adacore.com>
7346
7347 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7348 of &info->load_map from "char *" to "gdb_byte *".
7349
2b692d32
JB
73502013-05-01 Joel Brobecker <brobecker@adacore.com>
7351
7352 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7353 from "char *" to "gdb_byte *".
7354 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7355
a98c29a0
DE
73562013-04-30 Doug Evans <dje@google.com>
7357
6a506a2d
DE
7358 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7359 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7360 DWO stub. If DWO isn't found, just use stub.
7361 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7362
a98c29a0
DE
7363 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7364 calling init_cutu_and_read_dies.
7365
f92b06da
WT
73662013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7367
7368 * target-descriptions.c (maint_print_c_tdesc_cmd):
7369 Add case to parse structures as register types and
7370 bitfields.
7371
95eebdcc
WT
73722013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7373
7374 * MAINTAINERS (Write After Approval): Add myself to the list.
7375
019c1128
JB
73762013-04-30 Joel Brobecker <brobecker@adacore.com>
7377
7378 * sol-thread.c (rw_common): Change type of parameter "buf"
7379 to "gdb_byte *".
7380 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7381 rw_common to "gdb_byte *" instead of "char *".
7382
5812197c
JB
73832013-04-30 Joel Brobecker <brobecker@adacore.com>
7384
7385 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7386 of local variable msym to const struct bound_minimal_symbol.
7387 Adjust use accordingly.
7388 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7389
ecccb813
TS
73902013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7391
7392 * i386gnu-nat.c (CREG_OFFSET): New macro.
7393 (creg_offset): New array.
7394 (CREG_ADDR): Use creg_offset instead of reg_offset.
7395
f1d02dd4 73962013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7397
7398 * mep-tdep.c (mep_write_pc): Delete.
7399 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7400 Add call to set_gdbarch_pc_regnum.
7401
f1d02dd4 74022013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7403
7404 * common/filestuff.c: Replace #include <dirent.h> by
7405 #include "gdb_dirent.h".
7406
f1d02dd4 74072013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7408
7409 * common/filestuff.c: Replace #include <sys/stat.h> by
7410 #include "gdb_stat.h".
7411
b385a60d
PM
74122013-04-29 Pierre Muller <muller@sourceware.org>
7413
7414 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7415 editCase function rule.
7416 (get_DW_AT_signature_type): Likewise.
7417
d27b54ad
JB
74182013-04-29 Joel Brobecker <brobecker@adacore.com>
7419
7420 * m32r-tdep.c (m32r_write_pc): Delete.
7421 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7422 Add call to set_gdbarch_pc_regnum.
7423
47d21dc5
PM
74242013-04-29 Pierre Muller <muller@sourceware.org>
7425
7426 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7427
9056882e
JB
74282013-04-29 Joel Brobecker <brobecker@adacore.com>
7429
7430 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7431
7ee4732a
YQ
74322013-04-28 Yao Qi <yao@codesourcery.com>
7433
7434 * solib-dsbt.c (fetch_loadmap): Re-indent.
7435 (displacement_from_map, enable_break2): Likewise.
7436 (dsbt_relocate_section_addresses): Likewise.
7437
2260af53 74382013-04-26 Joel Brobecker <brobecker@adacore.com>
7439
7440 GDB 7.6 released.
7441
ff546935
TT
74422013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7443
7444 PR corefiles/14983:
7445 * dwarf2read.c (process_full_comp_unit): Always create a static
7446 block.
7447
40fb6c5e
HZ
74482013-04-25 Hui Zhu <hui@codesourcery.com>
7449
7450 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7451 to loc->cmd_bytecode.
7452
74e04d1c
DE
74532013-04-24 Doug Evans <dje@google.com>
7454
7455 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7456
3cf62c1d
KS
74572013-04-22 Keith Seitz <keiths@redhat.com>
7458
7459 * tracepoint.c (trace_save): Call the writer's start method.
7460
bf9e4d0c
MB
74612013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7462
7463 PR gdb/10462
7464 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7465 before argument.
7466
5d71132c
TT
74672013-04-23 Tom Tromey <tromey@redhat.com>
7468
7469 * common/filestuff.c: Check USE_WIN32API before including
7470 sys/socket.h.
7471 (HAVE_F_GETFD): New define.
7472 (mark_cloexec): Check HAVE_F_GETFD.
7473 (gdb_open_cloexec): Change 'mode' to unsigned long.
7474 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7475 (gdb_pipe_cloexec): Check HAVE_PIPE.
7476 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7477 long.
7478
a11cfd87
HZ
74792013-04-23 Hui Zhu <hui@codesourcery.com>
7480
7481 PR gdb/15293
a11cfd87
HZ
7482 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7483
2d9442cc
HZ
74842013-04-23 Hui Zhu <hui@codesourcery.com>
7485
7486 PR gdb/15165
2d9442cc
HZ
7487 * breakpoint.c (dprintf_print_recreate): New.
7488 (save_breakpoints): Let it not save dprintf commands.
7489 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7490
614c279d
TT
74912013-04-22 Tom Tromey <tromey@redhat.com>
7492
7493 PR gdb/7912:
7494 * Makefile.in (SFILES): Add filestuff.c
7495 (COMMON_OBS): Add filestuff.o.
7496 (filestuff.o): New target.
7497 * auto-load.c (auto_load_objfile_script_1): Use
7498 gdb_fopen_cloexec.
7499 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7500 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7501 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7502 * common/agent.c (gdb_connect_sync_socket): Use
7503 gdb_socket_cloexec.
7504 * common/filestuff.c: New file.
7505 * common/filestuff.h: New file.
7506 * common/linux-osdata.c (linux_common_core_of_thread)
7507 (command_from_pid, commandline_from_pid, print_source_lines)
7508 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7509 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7510 gdb_fopen_cloexec.
7511 * common/linux-procfs.c (linux_proc_get_int)
7512 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7513 * config.in, configure: Rebuild.
7514 * configure.ac: Don't check for sys/socket.h. Check for
7515 fdwalk, pipe2.
7516 * corelow.c (core_open): Use gdb_open_cloexec.
7517 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7518 * fork-child.c (fork_inferior): Call close_most_fds.
7519 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7520 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7521 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7522 Use gdb_fopen_cloexec.
7523 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7524 gdb_open_cloexec.
7525 (linux_async_pipe): Use gdb_pipe_cloexec.
7526 * remote-fileio.c (remote_fileio_func_open): Use
7527 gdb_open_cloexec.
7528 * remote.c (remote_file_put, remote_file_get): Use
7529 gdb_fopen_cloexec.
7530 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7531 close_most_fds.
7532 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7533 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7534 * solib.c (solib_find): Use gdb_open_cloexec.
7535 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7536 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7537 (tfile_open): Use gdb_open_cloexec.
7538 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7539 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7540 * xml-support.c (xml_fetch_content_from_file): Use
7541 gdb_fopen_cloexec.
7542 * main.c (captured_main): Call notice_open_fds.
7543
5fda2332
EBM
75442013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7545
7546 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7547 'char *' to 'gdb_byte *'.
7548 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7549 'gdb_byte'.
7550
eb6c553b
YQ
75512013-04-22 Yao Qi <yao@codesourcery.com>
7552
7553 * infrun.c: Fix typo in comment.
7554
9991b207
SDJ
75552013-04-22 Andrew Haley <aph@redhat.com>
7556
7557 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7558 instead of "long".
7559
8b4833e3
YQ
75602013-04-20 Yao Qi <yao@codesourcery.com>
7561
7562 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7563 'char *' to 'gdb_byte *'. Cast the return value of
7564 'bt_ctf_get_char_array' to 'gdb_byte *'.
7565
bd3f3b55
PA
75662013-04-19 Pedro Alves <palves@redhat.com>
7567
7568 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7569 -Wpointer-sign.
7570 * configure: Regenerate.
7571
c49e7f76
PA
75722013-04-19 Pedro Alves <palves@redhat.com>
7573
7574 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7575 'void *'.
7576
12ff8552
PA
75772013-04-19 Pedro Alves <palves@redhat.com>
7578
7579 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7580 Change type of 'myaddr' parameter to gdb_byte pointer.
7581 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7582 to 'long long' pointer instead of to 'unsigned long long'.
7583 (monitor_write_memory_block, monitor_read_memory_single)
7584 (monitor_read_memory): Change type of 'myaddr' parameter to
7585 gdb_byte pointer.
7586
9c37696b
PA
75872013-04-19 Pedro Alves <palves@redhat.com>
7588
7589 * record.c (validate_history_size): Make parameter 'setting'
7590 unsigned.
7591
a398505b
PA
75922013-04-19 Pedro Alves <palves@redhat.com>
7593
7594 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7595 to 'gdb_byte *'.
7596
9f8afa72
PA
75972013-04-19 Pedro Alves <palves@redhat.com>
7598
7599 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7600 local to int.
7601
c714b426
PA
76022013-04-19 Pedro Alves <palves@redhat.com>
7603
7604 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7605 * ada-tasks.c (read_fat_string_value): Likewise.
7606
507a579c
PA
76072013-04-19 Pedro Alves <palves@redhat.com>
7608
7609 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7610 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7611 'offset', and adjust.
7612
f9d83a0b
PA
76132013-04-19 Pedro Alves <palves@redhat.com>
7614
7615 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7616 (read_index_from_section): Add cast to 'char *'.
7617
745eb4fd
PA
76182013-04-19 Pedro Alves <palves@redhat.com>
7619
7620 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7621
db5be46f
PA
76222013-04-19 Pedro Alves <palves@redhat.com>
7623
7624 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7625
0f928d68
PA
76262013-04-19 Pedro Alves <palves@redhat.com>
7627
7628 * record-full.c (record_full_get_bookmark): Change local 'ret'
7629 type to char * and add cast to gdb_byte *.
7630 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7631 string.
7632 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7633
89f6d837
PA
76342013-04-19 Pedro Alves <palves@redhat.com>
7635
7636 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7637 * python/py-prettyprint.c (print_string_repr): Change type of
7638 'output' local to char *. Add cast to gdb_byte * in
7639 LA_PRINT_STRING call.
7640 (print_children): Change type of 'output' local to char *.
7641 * python/py-value.c (valpy_string): Add cast to const char * in
7642 PyUnicode_Decode call.
7643
ce6ec7d8
PA
76442013-04-19 Pedro Alves <palves@redhat.com>
7645
7646 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7647 and change its type to 'const char *'. Adjust.
7648 (mips_send_packet): Add cast to 'char *', and remove cast to
7649 'unsigned char *'.
7650 (mips_receive_packet): Remove cast to 'unsigned char *'.
7651 (mips_load_srec): Use bfd_byte.
7652 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7653 (pmon_checkset): Make 'value' parameter unsigned.
7654
fda0389f
PA
76552013-04-19 Pedro Alves <palves@redhat.com>
7656
7657 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7658
bc20a4af
PA
76592013-04-19 Pedro Alves <palves@redhat.com>
7660
7661 * remote.c (remote_write_bytes_aux, compare_sections_command)
7662 (remote_read_qxfer)
7663 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7664 (remote_hostio_readlink, remote_bfd_iovec_pread)
7665 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7666 binary buffer, and char when buffer is used as string.
7667 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7668 (trace_save, tfile_open, traceframe_walk_blocks)
7669 (tfile_fetch_registers): Likewise.
7670
c628b528
PA
76712013-04-19 Pedro Alves <palves@redhat.com>
7672
7673 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7674 buffer and size_t size. Adjust.
7675 * ser-base.h (ser_base_write): Adjust.
7676 * ser-go32.c (cnts): Change type to size_t.
7677 (dos_write): Change prototype -- take 'void *'
7678 buffer and size_t size. Adjust.
7679 (dos_info): Print elements of 'cnts' as unsigned long.
7680 * serial.c (serial_write): Likewise.
7681 * serial.h (serial_write): Adjust.
7682 (struct serial_ops) <write>: Change prototype -- take 'void *'
7683 buffer and size_t size. Adjust.
7684
51a5cd90
PA
76852013-04-19 Pedro Alves <palves@redhat.com>
7686
7687 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7688 gdb_byte *.
7689 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7690
a9933661
PA
76912013-04-19 Pedro Alves <palves@redhat.com>
7692
7693 * alpha-tdep.c (alpha_extract_return_value): Use
7694 regcache_cooked_read_unsigned to read 'v0'.
7695
19afdd07
PA
76962013-04-19 Pedro Alves <palves@redhat.com>
7697
7698 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7699 parameters 'at', 'as' and 'offset' to uint32_t.
7700
96b32e50
PA
77012013-04-19 Pedro Alves <palves@redhat.com>
7702
7703 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7704 'is64' to signed 'int'.
7705
eb1bd1fb
PA
77062013-04-19 Pedro Alves <palves@redhat.com>
7707
7708 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7709 parameter to int *.
7710
463920bf
PA
77112013-04-19 Pedro Alves <palves@redhat.com>
7712
7713 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7714 'insnbuf' buffer type to unsigned int[].
7715
70242eb1
PA
77162013-04-19 Pedro Alves <palves@redhat.com>
7717
7718 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7719
9d1dd0e2
PA
77202013-04-19 Pedro Alves <palves@redhat.com>
7721
7722 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7723 unsigned long *.
7724
44096aee
PA
77252013-04-19 Pedro Alves <palves@redhat.com>
7726
7727 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7728 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7729 UINT_MAX.
7730 * mips-tdep.c (heuristic_fence_post): Change type to int.
7731 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7732
e4286e57
PA
77332013-04-19 Pedro Alves <palves@redhat.com>
7734
7735 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7736 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7737 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7738
001f13d8
PA
77392013-04-19 Pedro Alves <palves@redhat.com>
7740
7741 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7742 it to get a string view of the byte buffer.
7743 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7744 type to gdb_byte *. Adjust.
7745 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7746 Change local to char *.
7747 * solib-darwin.c (find_program_interpreter): Change return type to
7748 char *. Adjust.
7749 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7750 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7751 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7752 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7753 * solib-svr4.c (find_program_interpreter): Change return type to
7754 char *. Adjust.
7755 (enable_break): Change local 'interp_name' to char *.
7756 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7757 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7758 (spu_pseudo_register_write_spu): Use char for string buffer.
7759 Adjust.
7760 (info_spu_event_command, info_spu_signal_command): Add casts to
7761 'char *'.
7762
948f8e3d
PA
77632013-04-19 Pedro Alves <palves@redhat.com>
7764
7765 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7766 gdb_byte[].
7767 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7768 * ada-lang.c (ada_value_assign): Use gdb_byte.
7769 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7770 (alphanbsd_sigtramp_offset): Use gdb_byte.
7771 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7772 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7773 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7774 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7775 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7776 * arm-tdep.c (arm_stub_unwind_sniffer)
7777 (arm_displaced_init_closure): Use gdb_byte.
7778 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7779 (arm_default_thumb_le_breakpoint)
7780 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7781 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7782 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7783 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7784 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7785 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7786 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7787 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7788 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7789 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7790 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7791 (cris_store_return_value, cris_extract_return_value): Use
7792 gdb_byte.
7793 (constraint): Change type of parameter to char * from signed
7794 char*. Use gdb_byte.
7795 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7796 of local buffer to gdb_byte *.
7797 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7798 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7799 (add_address_entry): Change type of local buffer to gdb_byte[].
7800 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7801 (frv_push_dummy_call): Use gdb_byte.
7802 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7803 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7804 (hppa_hpux_supply_save_state): Use gdb_byte.
7805 * hppa-tdep.c (hppa32_push_dummy_call)
7806 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7807 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7808 (slotN_contents, replace_slotN_contents): Change type of parameter
7809 to gdb_byte *.
7810 (fetch_instruction, ia64_pseudo_register_write)
7811 (ia64_register_to_value, ia64_value_to_register)
7812 (ia64_extract_return_value, ia64_store_return_value)
7813 (ia64_push_dummy_call): Use gdb_byte.
7814 * m32c-tdep.c (m32c_return_value): Remove cast.
7815 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7816 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7817 gdb_byte.
7818 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7819 * mn10300-tdep.c (mn10300_store_return_value)
7820 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7821 gdb_byte.
7822 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7823 (moxie_process_record): Remove casts.
7824 * ppc-ravenscar-thread.c (supply_register_at_address)
7825 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7826 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7827 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7828 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7829 * remote.c (compare_sections_command): Use gdb_byte.
7830 * score-tdep.c (score7_free_memblock): Change type of parameter to
7831 gdb_byte *.
7832 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7833 gdb_byte *. Use gdb_byte.
7834 (sh_push_dummy_call_fpu): Use gdb_byte.
7835 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7836 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7837 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7838 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7839 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7840 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7841 (sh64_store_return_value, sh64_register_convert_to_virtual):
7842 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7843 (sh64_pseudo_register_write): Use gdb_byte.
7844 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7845 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7846 buffer.
7847 (irix_current_sos): Use gdb_byte.
7848 * solib-som.c (som_current_sos): Use gdb_byte.
7849 * sparc-ravenscar-thread.c (supply_register_at_address)
7850 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7851 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7852 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7853 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7854 'gdb_byte *'.
7855 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7856 'gdb_byte *'.
7857 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7858 * xstormy16-tdep.c (xstormy16_extract_return_value)
7859 (xstormy16_store_return_value): Change parameter type to
7860 'gdb_byte *'. Adjust.
7861 (xstormy16_push_dummy_call): Use gdb_byte.
7862 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7863 (call0_analyze_prologue, execute_code): Use gdb_byte.
7864
433730c9
PA
78652013-04-19 Vladimir Kargov <kargov@gmail.com>
7866 Pedro Alves <palves@redhat.com>
7867
7868 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7869 value contents.
7870
ac9ec31b
DE
78712013-04-17 Doug Evans <dje@google.com>
7872
7873 * dwarf2read.c (struct signatured_type): New member type.
7874 (struct attribute): Replace member signatured_type with signature.
7875 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7876 (read_call_site_scope): Call follow_die_ref instead of
7877 follow_die_ref_or_sig.
7878 (read_structure_type): Rewrite handling of signatured types.
7879 (read_enumeration_type): Ditto.
7880 (read_attribute_value): Update.
7881 (build_error_marker_type): New function.
7882 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7883 Don't call error for bad types, just build an error marker type.
7884 (dump_die_shallow): Update.
7885 (follow_die_sig_1): Renamed from follow_die_sig.
7886 Don't call error for bad types, instead return NULL.
7887 (follow_die_sig): New function.
7888 (get_signatured_type, get_DW_AT_signature_type): New functions.
7889
e546e8bb
YZ
78902013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7891
7892 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7893 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7894 function.
e546e8bb 7895
ab116149
YQ
78962013-04-17 Yao Qi <yao@codesourcery.com>
7897
7898 * top.c (print_gdb_configuration): Print configure-time
7899 parameter on using libbabeltrace or not.
7900
488a42b8
PA
79012013-04-16 Pedro Alves <palves@redhat.com>
7902
7903 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7904
f5fb825b
PA
79052013-04-16 Pedro Alves <palves@redhat.com>
7906
85d494ea 7907 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7908 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7909
e1154999
PA
79102013-04-16 Pedro Alves <palves@redhat.com>
7911
7912 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7913 * common/glibc_thread_db.h: ... this new file ...
7914 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7915
e3b50a7f
PA
79162013-04-16 Will Newton <will.newton@gmail.com>
7917 Pedro Alves <palves@redhat.com>
7918
7919 PR build/11881
7920
7921 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7922 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7923 HAVE_THREAD_DB_H.
7924
1c2e4450
PA
79252013-04-16 Pedro Alves <palves@redhat.com>
7926 Eli Zaretskii <eliz@gnu.org>
7927
7928 * NEWS: Mention "set foo unlimited".
7929
4031ecc5
DE
79302013-04-15 Doug Evans <dje@google.com>
7931
19c3d4c9
DE
7932 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7933 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7934 (create_dwo_cu_reader): Renamed from
7935 create_dwo_debug_info_hash_table_reader.
7936 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7937 Remove support for multiple CUs in a DWO file.
7938 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7939
4031ecc5
DE
7940 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7941 instead of phex.
7942 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7943 (create_dwo_in_dwp): Ditto.
7944
b340913d
TT
79452013-04-15 Tom Tromey <tromey@redhat.com>
7946
7947 * NEWS: Move recent entries into "since 7.6" section.
7948
cc16e6c9
TT
79492013-04-15 Tom Tromey <tromey@redhat.com>
7950
7951 PR c++/13588:
7952 * NEWS: Update.
7953 * break-catch-throw.c (struct exception_catchpoint)
7954 <exception_rx, pattern>: New fields.
7955 (fetch_probe_arguments, dtor_exception_catchpoint)
7956 (check_status_exception_catchpoint)
7957 (print_one_detail_exception_catchpoint): New functions.
7958 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7959 Compile regular expression if needed.
7960 (extract_exception_regexp): New function.
7961 (catch_exception_command_1): Use extract_exception_regexp.
7962 (compute_exception): Use fetch_probe_arguments.
7963 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7964 and check_status fields.
7965 * cp-abi.c (cplus_typename_from_type_info): New function.
7966 * cp-abi.h (cplus_typename_from_type_info): Declare.
7967 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7968 * gdb_regex.h (compile_rx_or_error): Declare.
7969 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7970 comment.
7971 (init_gnuv3_ops): Set get_type_from_type_info field.
7972 * probe.c (compile_rx_or_error): Move...
7973 * utils.c (compile_rx_or_error): ... here.
7974
72f1fe8a
TT
79752013-04-15 Tom Tromey <tromey@redhat.com>
7976
7977 PR c++/15176:
7978 * NEWS: Update.
7979 * break-catch-throw.c (compute_exception): New function.
7980 (exception_funcs): New global.
7981 (_initialize_break_catch_throw): Create $_exception.
7982 * cp-abi.c (cplus_type_from_type_info): New function.
7983 * cp-abi.h (cplus_type_from_type_info): Declare.
7984 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7985 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7986 (gnuv3_get_type_from_type_info): New functions.
7987 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7988
fc4746a2
TT
79892013-04-15 Tom Tromey <tromey@redhat.com>
7990
7991 * break-catch-throw.c (struct exception_names): New.
7992 (exception_functions): Change type.
7993 (re_set_exception_catchpoint): Look for SDT probes.
7994
15a73f56
TT
79952013-04-15 Tom Tromey <tromey@redhat.com>
7996
7997 PR c++/10119:
7998 * break-catch-throw.c (exception_functions): New global.
7999 (gnu_v3_exception_catchpoint_ops): Move earlier.
8000 (struct exception_catchpoint): New.
8001 (classify_exception_breakpoint): Rewrite.
8002 (re_set_exception_catchpoint): New function.
8003 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8004 Allocate a struct exception_catchpoint.
8005 (catch_exception_command_1): Update.
8006 (initialize_throw_catchpoint_ops): Set 're_set' method.
8007
916703c0
TT
80082013-04-15 Tom Tromey <tromey@redhat.com>
8009
8010 * Makefile.in (SFILES): Add break-catch-throw.c
8011 (COMMON_OBS): Add break-catch-throw.o.
8012 * break-catch-throw.c: New file.
8013 * breakpoint.c: Move exception-catching code to new file.
8014 (ep_parse_optional_if_clause): No longer static.
8015 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8016
6e72ca20
TT
80172013-04-15 Tom Tromey <tromey@redhat.com>
8018
8019 PR c++/9065:
8020 * NEWS: Update.
8021 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8022 * c-exp.y (TYPEID): New token.
8023 (exp): Add new TYPEID productions.
8024 (ident_tokens): Add "typeid".
8025 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8026 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8027 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8028 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8029 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8030 case.
8031 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8032 (build_std_type_info_type, gnuv3_get_typeid_type)
8033 (gnuv3_get_typeid): New functions.
8034 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8035 new fields on ABI object.
8036 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8037 * std-operator.def (OP_TYPEID): New.
8038
715c6909
TT
80392013-04-15 Tom Tromey <tromey@redhat.com>
8040
8041 * elfread.c (elf_symtab_read): Install versioned symbol under
8042 unversioned name as well.
8043
8de20a37
TT
80442013-04-15 Tom Tromey <tromey@redhat.com>
8045
8046 PR c++/11990:
8047 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8048 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8049 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8050 (gdb_demangle): New function.
8051 * cp-support.h (gdb_demangle): Declare.
8052 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8053 (dwarf2_name): Use gdb_demangle.
8054 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8055 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8056 suffixes from name.
8057 (gnuv3_print_method_ptr): Use gdb_demangle.
8058 * jv-lang.c (java_demangle): Use gdb_demangle.
8059 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8060 * language.c (unk_lang_demangle): Use gdb_demangle.
8061 * symtab.c (symbol_find_demangled_name)
8062 (demangle_for_lookup): Use gdb_demangle.
8063
591f19e8
TT
80642013-04-15 Tom Tromey <tromey@redhat.com>
8065
8066 PR c++/12824:
8067 * NEWS: Update.
8068 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8069 New constant.
8070 (classify_exception_breakpoint): New function.
8071 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8072 (print_mention_exception_catchpoint)
8073 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8074 (catch_exception_command_1): Handle "rethrow" catchpoint.
8075 (catch_rethrow_command): New function.
8076 (_initialize_breakpoint): Add "catch rethrow" command.
8077
4d40cad2
PM
80782013-04-15 Pierre Muller <muller@sourceware.org>
8079
8080 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8081 set_gdbarch_write_pc as deprecated anymore.
8082
30bcb456
JB
80832013-04-15 Joel Brobecker <brobecker@adacore.com>
8084
8085 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8086 declarations.
8087
da9160e4
YQ
80882013-04-13 Yao Qi <yao@codesourcery.com>
8089
8090 * ctf.c (_initialize_ctf): Include "completer.h".
8091 Call add_target_with_completer instead of add_target.
8092
39ed5604
JK
80932013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8094
8095 Fix GDB regression related to PR binutils/14813.
8096 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8097 * minidebug.c (lzma_close): Add return value comment.
8098 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8099 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8100 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8101
81022013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8103
8104 * config.in: Regenerate.
8105
d521ce57
TT
81062013-04-12 Tom Tromey <tromey@redhat.com>
8107
8108 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8109 const.
8110 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8111 (struct die_reader_specs) <buffer>: Likewise.
8112 (die_reader_func_ftype): Make 'info_ptr' const.
8113 (struct line_header) <include_dirs, statement_program_start,
8114 statement_program_end>: Now const.
8115 (struct file_entry) <name>: Likewise.
8116 (struct partial_die_info) <sibling>: Likewise.
8117 (struct dwarf_block) <data>: Likewise.
8118 (dwarf2_read_section): Remove cast.
8119 (dwarf2_get_section_info): Make 'bufp' const.
8120 (read_index_from_section): Constify.
8121 (dw2_get_file_names_reader): Make 'info_ptr' const.
8122 (dw2_get_primary_filename_reader): Likewise.
8123 (read_comp_unit_head): Make 'info_ptr' and return type const.
8124 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8125 Likewise.
8126 (read_abbrev_offset): Constify.
8127 (dwarf2_create_include_psymtab): Make 'name' const.
8128 (create_debug_types_hash_table): Update.
8129 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8130 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8131 Constify.
8132 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8133 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8134 (read_comp_units_from_section): Constify.
8135 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8136 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8137 const.
8138 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8139 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8140 (create_dwp_hash_table, dwarf2_ranges_read)
8141 (dwarf2_record_block_ranges): Constify.
8142 (read_die_and_children, read_die_and_siblings_1)
8143 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8144 const.
8145 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8146 (abbrev_table_read_table): Constify.
8147 (load_partial_dies): Make 'info_ptr' const.
8148 (read_partial_die, read_attribute_value, read_attribute): Make
8149 'info_ptr' and return type const.
8150 (read_address, read_initial_length)
8151 (read_checked_initial_length_and_offset, read_offset)
8152 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8153 const.
8154 (read_direct_string): Make 'buf' and return type const.
8155 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8156 (read_indirect_string): Make return type const.
8157 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8158 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8159 'info_ptr' const.
8160 (read_str_index): Make return type const.
8161 (add_include_dir): Make 'include_dir' const.
8162 (add_file_name): Make 'name' const.
8163 (dwarf_decode_line_header): Constify.
8164 (psymtab_include_file_name): Make return type const.
8165 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8166 (dwarf2_start_subfile): Make 'filename' const.
8167 (dwarf2_const_value_attr): Make 'bytes' const.
8168 (read_signatured_type_reader): Make 'info_ptr' const.
8169 (decode_locdesc): Constify.
8170 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8171 const.
8172 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8173 'mac_end', and return type const.
8174 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8175 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8176 type const.
8177 (per_cu_header_read_in): Constify.
8178 * symfile.h (dwarf2_get_section_info): Update.
8179
d47a1bc1
TT
81802013-04-12 Tom Tromey <tromey@redhat.com>
8181
8182 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8183
6eaaf48b
EZ
81842013-04-12 Eli Zaretskii <eliz@gnu.org>
8185
fc4c25bf 8186 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8187 * top.c (print_gdb_configuration): New function, displays the
8188 details about GDB configure-time parameters.
8189 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8190 * cli/cli-cmds.c (show_configuration): New function.
8191 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8192 * main.c (captured_main) <print_configuration>: New static var.
8193 <long_options>: Use it.
8194 If --configuration was given, call print_gdb_configuration.
8195
b292c783
JK
81962013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8197 Pedro Alves <palves@redhat.com>
8198
8199 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8200 (generated_files): Add gcore.
8201 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8202 HAVE_NATIVE_GCORE_HOST.
8203 (gcore): New.
8204 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8205 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8206 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8207 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8208 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8209 Add HAVE_NATIVE_GCORE_HOST.
8210 * configure: Regenerate.
8211 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8212 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8213 AC_CONFIG_FILES for gcore.
8214 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8215 gdb_have_gcore.
8216 * gdb_gcore.sh: Rename to ...
8217 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8218 and GCORE_TRANSFORM_NAME substitutions.
8219
c96b3c4f
JK
8220 Fix parsing tabs in ${gdb_target_obs}.
8221 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8222
d6cb50a2
JK
82232013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8224
8225 * remote.c (unpush_and_perror): Add output message final dot.
8226
cf2cb5ec
YQ
82272013-04-11 Yao Qi <yao@codesourcery.com>
8228
8229 * tracepoint.c (tfile_interp_line): Fit parameters line and
8230 utpp in one line.
8231
07293be4
JB
82322013-04-10 Joel Brobecker <brobecker@adacore.com>
8233
8234 * solib.c (solib_map_sections): Remove code overwriting
8235 SO->SO_NAME with the bfd's filename.
8236
f81d1120
PA
82372013-04-10 Pedro Alves <palves@redhat.com>
8238
8239 * cli/cli-decode.c (integer_unlimited_completer): New function.
8240 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8241 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8242 completer.
8243 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8244 (is_unlimited_literal): New function.
8245 (do_set_command): Handle literal "unlimited" arguments.
8246 * frame.c (_initialize_frame) <set backtrace limit>: Document
8247 "unlimited".
8248 * printcmd.c (_initialize_printcmd) <set print
8249 max-symbolic-offset>: Add help text.
8250 * record-full.c (_initialize_record_full) <set record full
8251 insn-number-max>: Likewise.
8252 * record.c (_initialize_record) <set record
8253 instruction-history-size, set record function-call-history-size>:
8254 Add help text.
8255 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8256 help text.
8257 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8258 Likewise.
8259 * source.c (_initialize_source) <set listsize>: Add help text.
8260 * utils.c (initialize_utils) <set height, set width>: Likewise.
8261 <set pagination>: Mention "set height unlimited".
8262 * valprint.c (_initialize_valprint) <set print elements, set print
8263 repeats>: Document "unlimited".
8264
2f9d54cf
PA
82652013-04-10 Pedro Alves <palves@redhat.com>
8266
8267 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8268 instead of disconnect_tracing.
8269 * infcmd.c (detach_command, disconnect_command): Call
8270 query_if_trace_running. Adjust.
8271 * top.c: Include "tracepoint.h".
8272 (quit_target): Delete. Contents moved ...
8273 (quit_force): ... here. Wrap each stage of teardown in
8274 TRY_CATCH. Call disconnect_tracing before detaching.
8275
393fd4c3
YQ
82762013-04-10 Hui Zhu <hui@codesourcery.com>
8277 Yao Qi <yao@codesourcery.com>
8278
8279 * configure.ac: Check libbabeltrace is installed.
8280 * config.in: Regenerate.
8281 * configure: Regenerate.
8282 * Makefile.in (LIBBABELTRACE): New.
8283 (CLIBS): Add LIBBABELTRACE.
8284 * ctf.c: Include "exec.h".
8285 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8286 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8287 (ctf_save_metadata_header): Define new type aliases in
8288 metadata.
8289 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8290 in metadata. Start a new faked packet for trace status.
8291 (ctf_write_status): Write trace status to CTF.
8292 (ctf_write_uploaded_tsv): Write TSV to CTF.
8293 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8294 (ctf_write_definition_end): End the faked packet.
8295
8296 (ctx, ctf_iter, trace_dirname): New.
8297 (start_pos): New variable.
8298 (ctf_destroy, ctf_open_dir, ctf_open): New.
8299 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8300 macros.
8301 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8302 (ctf_fetch_registers, ctf_xfer_partial): New.
8303 (ctf_get_trace_state_variable_value): New.
8304 (ctf_get_tpnum_from_frame_event): New.
8305 (ctf_get_traceframe_address): New.
8306 (ctf_trace_find, ctf_has_stack): New.
8307 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8308 (ctf_get_trace_status, ctf_read_status): New.
8309 (_initialize_ctf): New.
8310 * tracepoint.c (get_tracepoint_number): New
8311 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8312 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8313 * tracepoint.h: ... here.
8314 (get_tracepoint_number): Declare it.
8315 (get_uploaded_tsv): Declare it.
8316
8317 * NEWS: Mention new configure option.
8318
5c2b4418
HZ
83192013-04-10 Pedro Alves <palves@redhat.com>
8320 Hui Zhu <hui@codesourcery.com>
8321
8322 * breakpoint.c (dprintf_re_set): New.
8323 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8324 to dprintf_re_set.
8325
a5c66735
JB
83262013-04-09 Joel Brobecker <brobecker@adacore.com>
8327
8328 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8329 Remove solib-svr4.o from the list.
8330
9e77999c
JB
83312013-04-09 Joel Brobecker <brobecker@adacore.com>
8332
8333 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8334 Use gdb_assert_not_reached instead of invalid boolean expression.
8335
1927e618
PA
83362013-04-09 Pedro Alves <palves@redhat.com>
8337
8338 * remote.c (unpush_and_perror): New function.
8339 (readchar, remote_serial_write): Use it.
8340
10782d74
MM
83412013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8342
8343 * NEWS: Mention new btrace RSP packets.
8344
4c8429ef
TT
83452013-04-08 Tom Tromey <tromey@redhat.com>
8346
8347 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8348 long.
8349
8625fc1b
TT
83502013-04-08 Tom Tromey <tromey@redhat.com>
8351
8352 * maint.c (print_bfd_section_info): Print the section index.
8353 * symmisc.c (dump_msymbols): Print the section index.
8354
e27d198c
TT
83552013-04-08 Tom Tromey <tromey@redhat.com>
8356
8357 PR symtab/8424:
8358 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8359 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8360 * breakpoint.c (resolve_sal_pc): Update.
8361 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8362 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8363 (minsym_lookup_iterator_cb): Use it.
8364 (default_read_var_value): Update.
8365 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8366 Update.
8367 * infcmd.c (jump_command): Update.
8368 * linespec.c (minsym_found): Update.
8369 * maint.c (maintenance_translate_address): Update.
8370 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8371 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8372 * parse.c (write_exp_msymbol): Update.
8373 * printcmd.c (address_info): Update.
8374 * psymtab.c (find_pc_sect_psymbol): Update.
8375 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8376 SYMBOL_OBJ_SECTION.
8377 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8378 Don't initialize SYMBOL_OBJ_SECTION.
8379 * spu-tdep.c (spu_catch_start): Update.
8380 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8381 * symmisc.c (dump_msymbols, print_symbol): Update.
8382 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8383 how fallback section is computed.
8384 (fixup_symbol_section): Update.
8385 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8386 Update.
8387 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8388 Initialize SYMBOL_SECTION.
8389 * symtab.h (struct general_symbol_info) <section>: Update comment.
8390 <obj_section>: Remove.
8391 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8392 (SYMBOL_OBJFILE): New macro.
8393
e6dc44a8
TT
83942013-04-08 Tom Tromey <tromey@redhat.com>
8395
8396 * coffread.c (record_minimal_symbol): Update.
8397 * dbxread.c (record_minimal_symbol): Update.
8398 * elfread.c (record_minimal_symbol): Update.
8399 * machoread.c (macho_symtab_add_minsym): Update.
8400 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8401 Update.
8402 * minsyms.c (prim_record_minimal_symbol): Update.
8403 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8404 argument.
8405 (prim_record_minimal_symbol_and_info): Likewise.
8406 * minsyms.h (prim_record_minimal_symbol_full)
8407 (prim_record_minimal_symbol_and_info): Update.
8408 * symtab.c (allocate_symbol, initialize_symbol)
8409 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8410 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8411 Update.
8412
36192a8d
TT
84132013-04-08 Tom Tromey <tromey@redhat.com>
8414
8415 PR symtab/8423:
8416 * solib-som.c (som_solib_section_offsets): Use BFD section
8417 indices. Set offsets for all sections.
8418 * somread.c (som_symtab_read): Compute BFD section for
8419 symbol. Use prim_record_minimal_symbol_and_info.
8420 (som_symfile_read): Fix comment.
8421 (struct find_section_offset_arg): New.
8422 (find_section_offset, set_section_index): New functions.
8423 (som_symfile_offsets): Use set_section_index to compute
8424 section indices.
8425
65cf3563
TT
84262013-04-08 Tom Tromey <tromey@redhat.com>
8427
8428 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8429 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8430 gdb_bfd_section_index.
8431 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8432 New functions.
8433 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8434 Declare.
8435 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8436 Update.
8437 * objfiles.c (add_to_objfile_sections_full): New function.
8438 (add_to_objfile_sections): Use it.
8439 (build_section_table): Rewrite.
8440 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8441 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8442 (struct objfile) <sections>: Update comment.
8443 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8444 is NULL.
8445 (ALL_OBJSECTIONS): Use it.
8446 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8447 * solib-frv.c (frv_relocate_main_executable): Update.
8448 * solib-target.c (solib_target_relocate_section_addresses):
8449 Use gdb_bfd_section_index.
8450 * symfile.c (build_section_addr_info_from_section_table):
8451 Use gdb_bfd_section_index.
8452 (build_section_addr_info_from_bfd, place_section): Likewise.
8453 * symtab.c (fixup_section): Update.
8454 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8455
7cbd4a93
TT
84562013-04-08 Tom Tromey <tromey@redhat.com>
8457
8458 * minsyms.h (struct bound_minimal_symbol): New.
8459 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8460 Remove objfile argument.
8461 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8462 Return bound_minimal_symbol.
8463 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8464 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8465 Return bound_minimal_symbol.
8466 (in_gnu_ifunc_stub): Update.
8467 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8468 Remove 'objfile_p' argument.
8469 (lookup_solib_trampoline_symbol_by_pc): Update.
8470 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8471 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8472 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8473 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8474 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8475 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8476 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8477 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8478 stack.c, symtab.c, tui/tui-disasm.c: Update.
8479
f85f34ed
TT
84802013-04-08 Tom Tromey <tromey@redhat.com>
8481
8482 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8483 Use symbol's obstack, not an objfile.
8484 * coffread.c (process_coff_symbol): Update.
8485 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8486 * jv-lang.c (add_class_symbol): Update.
8487 * mdebugread.c (new_symbol): Update.
8488 * minsyms.c (prim_record_minimal_symbol_full)
8489 (terminate_minimal_symbol_table): Update.
8490 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8491 * stabsread.c (define_symbol, read_enum_type): Update.
8492 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8493 Handle Ada specially.
8494 (symbol_set_language): Add 'obstack' argument.
8495 (symbol_set_names): Update.
8496 (symbol_natural_name, symbol_demangled_name): Always use
8497 ada_decode_symbol.
8498 * symtab.h (struct general_symbol_info)
8499 <language_specific::obstack>: New field.
8500 <ada_mangled>: New field.
8501 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8502 (symbol_set_language): Update.
8503
ccde22c0
TT
85042013-04-08 Tom Tromey <tromey@redhat.com>
8505
8506 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8507 Take an obstack, not an objfile.
8508 (symbol_set_names): Update.
8509 * symtab.h (symbol_set_demangled_name): Update.
8510
e623cf5d
TT
85112013-04-08 Tom Tromey <tromey@redhat.com>
8512
8513 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8514 allocate_symbol.
8515 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8516 (read_func_scope): Call allocate_template_symbol.
8517 (new_symbol_full): Call allocate_symbol.
8518 * jit.c (finalize_symtab): Call allocate_symbol.
8519 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8520 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8521 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8522 (common_block_end): Call allocate_symbol.
8523 * symtab.c (allocate_symbol, initialize_symbol)
8524 (allocate_template_symbol): New functions.
8525 * symtab.c (allocate_symbol, initialize_symbol)
8526 (allocate_template_symbol): Declare.
8527 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8528
f6de8ec2
PA
85292013-04-08 Pedro Alves <palves@redhat.com>
8530 Keith Seitz <keiths@redhat.com>
8531
8532 * breakpoint.c (create_breakpoint): Rename
8533 "parse_condition_and_thread" parameter to "parse_arg". Update
8534 describing comment. If !PARSE_ARG, then error out if ARG is not
8535 the empty string after extracting the location.
8536 * breakpoint.h (create_breakpoint): Rename
8537 "parse_condition_and_thread" parameter to "parse_arg".
8538
f65ce5fb
AR
85392013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8540
8541 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8542
cc5925ad
YQ
85432013-04-07 Yao Qi <yao@codesourcery.com>
8544
8545 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8546 and 'addr2' to CORE_ADDR.
8547 * target.c (update_current_target): Update.
8548 * target.h (struct target_ops) <to_trace_find>: Change parameter
8549 type to CORE_ADDR.
8550 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8551 'addr2' to CORE_ADDR.
8552 (tfile_trace_find): Likewise.
8553 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8554 Change local variable 'addr' to type CORE_ADDR.
8555 * tracepoint.h (tfind_1): Update declaration.
8556
d9ac0664
EZ
85572013-04-06 Eli Zaretskii <eliz@gnu.org>
8558
8559 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8560 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8561 Include main.h.
8562
8563 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8564 here...
8565 * main.h (windows_get_absolute_argv0): ...to here.
8566
02142a6c
DE
85672013-04-05 Doug Evans <dje@google.com>
8568
8569 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8570 (read_cutu_die_from_dwo): Add comments.
8571 (read_structure_type): Update comment.
8572 (read_enumeration_type, read_namespace_type): Update comment.
8573 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8574
43662968
JK
85752013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8576
8577 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8578 * Makefile.in (gdb.z): Remove.
8579 (install-only): Remove $(man1dir) and gdb.1 installation.
8580 * gdb.1: Remove.
8581
9ead1b84
JK
85822013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8583
8584 Fix compatibility with Linux kernel 3.8.3.
8585 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8586 to more inner block. Remove parsing of NUMBER from outer block.
8587 Parse NUMBER only if KEYWORD has been identified.
8588
d1794952
JK
85892013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8590
8591 Fix variable name shadowing.
8592 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8593 filename to mapsfilename and update its uses.
8594
9025569e
EZ
85952013-04-05 Eli Zaretskii <eliz@gnu.org>
8596
8597 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8598 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8599 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8600 details of the problem.
8601
c9a6ce02
PA
86022013-04-04 Pedro Alves <palves@redhat.com>
8603 Hui Zhu <hui@codesourcery.com>
8604
8605 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8606 tracepoint, reset its STEP_COUNT and call validate_actionline.
8607
5ff888ce
DE
86082013-04-03 Doug Evans <dje@google.com>
8609
bf6af496
DE
8610 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8611 read_die_and_siblings.
8612 (read_die_and_siblings): New function.
8613 (read_cutu_die_from_dwo): Dump die if requested.
8614 (read_die_and_children): Call read_full_die_1 and
8615 read_die_and_siblings_1.
8616 (read_full_die): Dump die if requested.
8617
8618 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8619
0ac5b59e
DE
8620 * dwarf2read.c (struct dwo_file): New member comp_dir.
8621 Rename member name to dwo_name. All uses updated.
8622 (hash_dwo_file): Include comp_dir in computation.
8623 (eq_dwo_file): Ditto.
8624 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8625 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8626
5ff888ce
DE
8627 * psymtab.c (read_psymtabs_with_fullname): Don't call
8628 psymtab_to_fullname if the basenames are different.
8629
ec83d211
JK
86302013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8631
8632 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8633 New entry about "fullname" presence.
8634
4f4352f7
PA
86352013-04-03 Pedro Alves <palves@redhat.com>
8636
8637 * NEWS: Mention x86_64/Cygwin as new native configuration.
8638
3d1d5ea3
DE
86392013-04-02 Doug Evans <dje@google.com>
8640
8641 * dwarf2read.c (read_structure_type): Fix typo in comment.
8642
be9a8770
PA
86432013-04-02 Pedro Alves <palves@redhat.com>
8644
8645 * NEWS: Mention "set/show debug aarch64", "set/show debug
8646 coff-pe-read" and "set/show debug mach-o".
8647
a46c1e42
PA
86482013-04-02 Pedro Alves <palves@redhat.com>
8649
8650 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8651
3ad18b19
EZ
86522013-04-02 Eli Zaretskii <eliz@gnu.org>
8653
8654 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8655 gdb_string.h is now in common/.
8656
e9f1758d
PA
86572013-04-02 Pedro Alves <palves@redhat.com>
8658
8659 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8660 under "New options".
8661
049dc89b
JK
86622013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8663
8664 Revert this patch:
8665 PR gdb/15275
8666 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8667
c33e31fd
PA
86682013-04-02 Pedro Alves <palves@redhat.com>
8669
8670 PR gdb/15275
8671
8672 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8673 (remote_serial_write): New function.
8674 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8675
ea5f3910
JW
86762013-04-01 Jiong Wang <jiwang@tilera.com>
8677
8678 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8679 "New targets" sections.
ea5f3910 8680
5c6fa7ab
DE
86812013-04-01 Doug Evans <dje@google.com>
8682
c0f78cd4
DE
8683 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8684 (process_enumeration_scope): Simplify.
8685
0186c6a7
DE
8686 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8687 type_unit_group ...
8688 (struct signatured_type): ... to here.
8689 (sig_type_ptr): New typedef.
8690 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8691 out of union 't'. All uses updated.
8692 (dw2_get_file_names_reader): Assert not called for a type unit.
8693 (dw2_get_file_names): Assert not called for a type unit or type
8694 unit group.
8695 (build_type_psymtabs_reader): Assert called for a type unit.
8696 (build_type_psymtab_dependencies): Assert called for a type unit group.
8697
5c6fa7ab
DE
8698 * dwarf2read.c (free_dwo_file): Add comment.
8699 (dwarf2_per_objfile_free): Unref dwp bfd.
8700
b3c0ad67 87012013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8702
8703 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8704 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8705 (read_pe_exported_syms): Remove unused 'exportix'.
8706 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8707 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8708 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8709
e2df1547
AR
87102013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8711
8712 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8713 (print_it_watchpoint): Remove unused 'bl'.
8714 (say_where): Remove unused 'uiout'.
8715 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8716 (bkpt_breakpoint_hit): Remove unused 'b'.
8717 (internal_bkpt_print_it): Remove unused 'uiout'.
8718 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8719
d81e75c0
TD
87202013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8721
8722 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8723 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8724
5a8b3f62
DE
87252013-03-29 Doug Evans <dje@google.com>
8726
ab5088bf
DE
8727 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8728 Delete arg is_dwp. All callers updated.
8729 (open_dwp_file): New function.
8730 (open_and_init_dwp_file): Call it.
8731 (get_dwp_file): New function.
8732 (lookup_dwo_cutu): Call it.
8733
a8ad1e57
DE
8734 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8735 unnecessary, cleanup.
8736
6296d8c1
DE
8737 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8738
b0c7bfa9
DE
8739 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8740 (lookup_dwo_unit): New function.
8741 (init_cutu_and_read_dies): Move DWO handling to new functions.
8742
c88ee1f0
DE
8743 * dwarf2read.c (struct signatured_type): Tweak comment.
8744 (struct dwo_unit): Tweak comment.
8745 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8746 (create_dwo_debug_info_hash_table): Tweak comment.
8747 (dwarf2_per_cu_offset_and_type): Tweak comment.
8748
5a8b3f62
DE
8749 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8750 missing .debug_types section.
8751
9852c492
YQ
87522013-03-29 Yao Qi <yao@codesourcery.com>
8753
8754 * corelow.c: Include "completer.h".
8755 (_initialize_corelow): Call add_target_with_completer with
8756 argument 'filename_completer'.
8757 * tracepoint.c: Likewise.
8758 * exec.c (_initialize_exec): Likewise.
8759 * target.c (add_target): Rename to ...
8760 (add_target_with_completer): ... this. Call set_cmd_completer
8761 if parameter completer is not NULL.
8762 (add_target): New.
8763 * target.h: Include "command.h".
8764 (add_target_with_completer): Declare it.
8765
af312be7
JB
87662013-03-28 Joel Brobecker <brobecker@adacore.com>
8767
8768 * coffread.c (is_import_fixup_symbol): New function.
8769 (record_minimal_symbol): Use is_import_fixup_symbol to
8770 detect import fixup symbols, and discard them.
8771
8a0459fd
DE
87722013-03-28 Doug Evans <dje@google.com>
8773
0349ea22
DE
8774 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8775 types hash table until we know we need it.
8776
f652bce2
DE
8777 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8778 index numbers.
8779
e4a48d9d
DE
8780 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8781 All callers updated.
8782 (dw2_print_stats): Print #read CUs too.
8783 (dump_die_shallow): Print signatured types better.
8784
8a0459fd
DE
8785 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8786 info_or_types_section to section. All uses updated.
8787 (struct dwo_unit): Ditto.
8788
bd3eecc3
PA
87892013-03-28 Pedro Alves <palves@redhat.com>
8790
8791 * NEWS (New options): New section.
8792 (New options): Mention set/show remote trace-status-packet.
8793 * remote.c (PACKET_qTStatus): New enumeration value.
8794 (remote_get_trace_status): Skip sending qTStatus if the packet is
8795 disabled. Use packet_ok.
8796 (_initialize_remote): Register a configuration command for
8797 qTStatus packet.
8798
41245087
DE
87992013-03-28 Doug Evans <dje@google.com>
8800
7edbb660
DE
8801 * symfile.c (find_separate_debug_file): Add comment.
8802 (terminate_after_last_dir_separator): Tweak comment.
8803
0018ea6f
DE
8804 * dwarf2read.c (create_partial_symtab): Add forward decl.
8805 (create_partial_symtab): Move to be closer to other psymtab functions.
8806 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8807
ca69b9e6
DE
8808 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8809 (compute_symtab_includes): Remove unnecessary forward declaration.
8810 (die_needs_namespace): Add comment marking group of functions for
8811 dwarf2 name computation.
8812
a9375afe
DE
8813 * typeprint.c (_initialize_typeprint): Improve type help text.
8814
41245087
DE
8815 * python/python.c (finish_python_initialization): Provide suggestion
8816 for how to tell gdb to find its python files.
8817
7f7cc265
PA
88182013-03-28 Pedro Alves <palves@redhat.com>
8819
8820 PR gdb/15294
8821
8822 * source.c (_initialize_source): Change back "set listsize" to an
8823 integer command.
8824
ec21308c
JK
88252013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8826
8827 PR gdb/15275
8828 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8829
840a9a1f
PA
88302013-03-27 Pedro Alves <palves@redhat.com>
8831
8832 * top.c (history_size): Rename to ...
8833 (history_size_setshow_var): ... this. Add comment.
8834 (show_commands): Use readline's 'history_length' instead of
8835 computing the history length by calling history_get in a loop.
8836 (set_history_size_command): Error out for sizes over INT_MAX.
8837 Restore previous history size on invalid size.
8838 (init_history): If HISTSIZE is negative, leave the history size as
8839 zero. Add comments.
8840 (init_main): Adjust.
8841
826ecc4d
PA
88422013-03-27 Pedro Alves <palves@redhat.com>
8843
8844 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8845 coff_pe_read" command to "set debug coff-pe-read".
8846
0ccfeeae
MM
88472013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8848
8849 * record.c (command_size_to_target_size): Fix size comparison.
8850 Change parameter type from pointer to integer to integer.
8851 Update all users.
8852
40653b35
PM
88532013-03-27 Pierre Muller <muller@sourceware.org>
8854
8855 * windows-nat.c (handle_output_debug_string): Avoid typecast
8856 from integer of different size warning.
8857
c62fa0e2
JB
88582013-03-26 Joel Brobecker <brobecker@adacore.com>
8859
8860 * windows-nat.c (handle_output_debug_string): Add empty line
8861 after local block variable definition.
8862
2c619be2
PA
88632013-03-26 Pedro Alves <palves@redhat.com>
8864
8865 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8866 (net_open): Make 'polls' local unsigned.
8867
1b493192
PA
88682013-03-26 Pedro Alves <palves@redhat.com>
8869
8870 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8871 a zuinteger command instead of uinteger.
8872
7ee70bf5
PA
88732013-03-26 Pedro Alves <palves@redhat.com>
8874
8875 * record-full.c (record_full_insn_num): Make it unsigned.
8876 (record_full_check_insn_num, record_full_message)
8877 (record_full_registers_change, record_full_xfer_partial): Remove
8878 record_full_insn_max_num check (it's always != 0).
8879 (record_full_info, record_full_restore): Use %u as format string.
8880 (): Use %u as format string.
8881 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8882 check (it's always != 0).
8883
dfd1f9bb
PA
88842013-03-26 Pedro Alves <palves@redhat.com>
8885
8886 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8887 and "set dcache size" commands zuinteger instead of uinteger.
8888
addb4faf
PA
88892013-03-26 Pedro Alves <palves@redhat.com>
8890
8891 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8892 command zuinteger instead of uinteger.
8893
b75bf488
PA
88942013-03-26 Pedro Alves <palves@redhat.com>
8895
8896 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8897 zuinteger instead of uinteger.
8898
42c634cb
PA
88992013-03-26 Pedro Alves <palves@redhat.com>
8900
8901 * record.c (record_insn_history_size_setshow_var)
8902 (record_call_history_size_setshow_var): New globals.
8903 (command_size_to_target_size): New function.
8904 (cmd_record_insn_history, cmd_record_call_history): Use
8905 command_size_to_target_size instead of cast.
8906 (validate_history_size, set_record_insn_history_size)
8907 (set_record_call_history_size): New functions.
8908 (_initialize_record): Install set_record_insn_history_size and
8909 set_record_call_history_size as "set" hooks of "set record
8910 instruction-history-size" and "set record
8911 function-call-history-size".
8912
1fb2e2b5
PA
89132013-03-26 Pedro Alves <palves@redhat.com>
8914
8915 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8916 use with history_max_entries use. Remove FIXME note.
8917
99c819ee
MM
89182013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8919
8920 * record-btrace.c (record_btrace_close): Call
8921 record_btrace_auto_disable.
8922
9f9e404c
JB
89232013-03-25 Joel Brobecker <brobecker@adacore.com>
8924
8925 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8926
ebcdfe33
DE
89272013-03-25 Doug Evans <dje@google.com>
8928
8929 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8930
24955f63
TT
89312013-03-25 Tom Tromey <tromey@redhat.com>
8932
8933 PR symtab/11462:
8934 * c-exp.y (exp): Add new productions for destructors after '.' and
8935 '->'.
8936 (write_destructor_name): New function.
8937
fce632b6
TT
89382013-03-25 Tom Tromey <tromey@redhat.com>
8939
8940 PR c++/9197:
8941 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8942 value_struct_elt, not lookup_struct_elt_type.
8943 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8944 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8945 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8946
a4341769
YQ
89472013-03-25 Yao Qi <yao@codesourcery.com>
8948
8949 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8950 instead of '_mkdir'.
8951
b5981e5a
EZ
89522013-03-23 Eli Zaretskii <eliz@gnu.org>
8953
8954 * windows-nat.c (windows_get_absolute_argv0): New function.
8955 * windows-nat.h: Add its prototype.
8956
8957 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8958 Use IS_DIR_SEPARATOR instead of looking for a character inside
8959 SLASH_STRING. Include filenames.h.
8960 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8961 relocate_gdb_directory works when passed gdb_program_name.
8962 Include windows-nat.h.
8963
598d3636
JK
89642013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8965
8966 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8967 * remote.c (trace_error): Remove the special handling of '2'.
8968 (readchar) <SERIAL_EOF>
8969 (readchar) <SERIAL_ERROR>
8970 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8971 (remote_get_trace_status): Call throw_exception if EX is
8972 TARGET_CLOSE_ERROR.
8973 * utils.c (perror_with_name): Rename to ...
8974 (throw_perror_with_name): ... here. New parameter errcode, describe it
8975 in the function comment.
8976 (perror_with_name): New function wrapper.
8977 * utils.h (enum errors): New stub declaration.
8978 (throw_perror_with_name): New declaration.
8979
82b821e9
PA
89802013-03-22 Pedro Alves <palves@redhat.com>
8981 Yao Qi <yao@codesourcery.com>
8982 Mark Kettenis <kettenis@gnu.org>
8983
8984 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8985 Don't let the user set the value to UINT_MAX directly.
8986 <var_integer>: Don't let the user set the value to INT_MAX
8987 directly.
8988
78a095c3
JK
89892013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8990
8991 * remote.c (remote_unpush_target): New function.
8992 (remote_open_1): Remove two pop_target calls, update one comment, add
8993 comment to target_preopen call. Replace pop_target call by
8994 remote_unpush_target call.
8995 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8996 pop_target calls by remote_unpush_target calls.
8997
3e74e146
PA
89982013-03-22 Pedro Alves <palves@redhat.com>
8999
9000 * linux-nat.c (linux_child_follow_fork): Don't call
9001 linux_enable_event_reporting.
9002 (linux_handle_extended_wait): Don't call
9003 linux_enable_event_reporting.
9004
a2213dca
PA
90052013-03-22 Pedro Alves <palves@redhat.com>
9006
9007 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9008 use it to rewrite the trampoline buffers with type gdb_byte[], and
9009 undefine the macro. Remove char* cast.
9010
bd712aed
DE
90112013-03-21 Doug Evans <dje@google.com>
9012
9013 New commands "mt set per-command {space,time,symtab} {on,off}".
9014 * NEWS: Add entry.
9015 * event-top.c: #include "maint.h".
9016 * main.c: #include "maint.h".
9017 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9018 timeval-utils.h, maint.h, cli/cli-setshow.h.
9019 (per_command_time, per_command_space): New static globals.
9020 (per_command_symtab): New static global.
9021 (per_command_setlist, per_command_showlist): New static globals.
9022 (struct cmd_stats): Move here from utils.c.
9023 (set_per_command_time): Renamed from set_display_time in utils.c
9024 and moved here. All callers updated.
9025 (set_per_command_space): Renamed from set_display_space in utils.c
9026 and moved here. All callers updated.
9027 (count_symtabs_and_blocks): New function.
9028 (report_command_stats): Moved here from utils.c. Add support for
9029 printing symtab stats. Only print data if enabled before command
9030 executed.
9031 (make_command_stats_cleanup): Ditto.
9032 (sert_per_command_cmd, show_per_command_cmd): New functions.
9033 (_initialize_maint_cmds): Add new commands
9034 mt set per-command {space,time,symtab} {on,off}.
9035 * maint.h: New file.
9036 * top.c: #include "maint.h".
9037 * utils.c (reset_prompt_for_continue_wait_time): New function.
9038 (get_prompt_for_continue_wait_time): New function.
9039 * utils.h (reset_prompt_for_continue_wait_time): Declare
9040 (get_prompt_for_continue_wait_time): Declare.
9041 (make_command_stats_cleanup): Moved to maint.h.
9042 (set_display_time, set_display_space): Moved to maint.h and renamed
9043 to set_per_command_time, set_per_command_space.
9044 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9045 parse_binary_operation and made non-static. Don't call error,
9046 just return an error marker. All callers updated.
9047 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9048
d76488d8
TT
90492013-03-21 Tom Tromey <tromey@redhat.com>
9050
9051 * symfile.c (alloc_section_addr_info): Update header. Don't set
9052 'num_sections' field.
9053 (build_section_addr_info_from_section_table): Set 'num_sections'.
9054 (build_section_addr_info_from_bfd): Likewise.
9055 (build_section_addr_info_from_objfile): Remove dead loop
9056 condition.
9057 (free_section_addr_info): Unconditionally call xfree.
9058 (relative_addr_info_to_section_offsets, addrs_section_sort)
9059 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9060 condition.
9061 (syms_from_objfile_1): Remove dead 'if' condition. Check
9062 'num_sections'.
9063 (add_symbol_file_command): Set 'num_sections'.
9064 * symfile-mem.c (symbol_file_add_from_memory): Set
9065 'num_sections'.
9066 * somread.c (som_symfile_offsets): Remove dead loop condition.
9067 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9068 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9069
a72e5169 90702013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9071
9072 * tracepoint.h (decode_agent_options): Add 'trace_string'
9073 argument.
9074 * tracepoint.c (decode_agent_options): Add 'trace_string'
9075 argument.
9076 (validate_actionline): Update.
9077 (collect_symbol): Add 'trace_string' argument.
9078 (struct add_local_symbols_data) <trace_string>: New field.
9079 (do_collect_symbol): Update.
9080 (add_local_symbols): Add 'trace_string' argument.
9081 (encode_actions_1): Update.
9082 (trace_dump_actions): Update.
9083 * dwarf2loc.c (access_memory): Update.
9084 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9085 * ax-general.c (new_agent_expr): Update.
9086 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9087 (gen_trace_for_return_address): Add argument.
9088 (trace_kludge, trace_string_kludge): Remove.
9089 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9090 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9091 (gen_trace_for_var): Add 'trace_string' argument.
9092 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9093 (gen_printf, agent_eval_command_one): Update.
9094
b2f83c08
TT
90952013-03-21 Tom Tromey <tromey@redhat.com>
9096
9097 PR exp/15109:
9098 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9099 Handle FILENAME token.
9100
9507860e
TT
91012013-03-21 Tom Tromey <tromey@redhat.com>
9102
9103 * c-exp.y (YYPRINT): Define.
9104 (c_print_token): New function.
9105
e403aa4b
TT
91062013-03-21 Tom Tromey <tromey@redhat.com>
9107
9108 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9109
af307d6a
YQ
91102013-03-21 Yao Qi <yao@codesourcery.com>
9111
9112 * ctf.c: Include "gdb_stat.h".
9113 [USE_WIN32API]: New macro 'mkdir'.
9114 (ctf_start): Use permission bits macros if they are defined.
9115
fb81d016
KS
91162013-03-20 Keith Seitz <keiths@redhat.com>
9117
9118 * breakpoint.h (struct breakpoint): Add comment to
9119 extra_string indicating that this member is mallod'd.
9120 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9121
ef0026f0
PA
91222013-03-20 Pedro Alves <palves@redhat.com>
9123
9124 PR gdb/15289
9125
9126 * cli/cli-setshow.c (do_set_command)
9127 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9128 the result of parsing the command argument. Throw error if the
9129 value is greater than UINT_MAX. Print the invalid value with
9130 plongest.
9131 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9132 result of parsing the command argument. Throw error if the value
9133 is greater than INT_MAX, not greater or equal. Also throw error
9134 if the value is less than INT_MIN. Print the invalid value with
9135 plongest.
9136 <var_zuinteger_unlimited>: Throw error if the value is greater
9137 than INT_MAX, not greater or equal.
9138 (do_show_command) <var_integer, var_zinteger,
9139 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9140
24d6c2a0
TT
91412013-03-20 Tom Tromey <tromey@redhat.com>
9142
9143 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9144 if possible.
9145 * dwarf2read.c (read_func_scope): Remove old FIXME.
9146 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9147 not LOC_COMPUTED.
9148 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9149 Unconditionally call via computed ops, if possible.
9150 * printcmd.c (address_info): Unconditionally call via computed ops,
9151 if possible.
9152 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9153 if possible.
9154 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9155 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9156 if possible.
9157
f1e6e072
TT
91582013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9159 Tom Tromey <tromey@redhat.com>
9160
9161 PR symtab/8421:
9162 * coffread.c (coff_register_index): New global.
9163 (process_coff_symbol, coff_read_enum_type): Set
9164 SYMBOL_ACLASS_INDEX.
9165 (_initialize_coffread): Initialize new global.
9166 * dwarf2loc.c (locexpr_find_frame_base_location)
9167 (dwarf2_block_frame_base_locexpr_funcs)
9168 (loclist_find_frame_base_location)
9169 (dwarf2_block_frame_base_loclist_funcs): New.
9170 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9171 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9172 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9173 (dwarf2_block_frame_base_loclist_funcs): New.
9174 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9175 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9176 globals.
9177 (read_func_scope): Update.
9178 (fixup_go_packaging, mark_common_block_symbol_computed)
9179 (var_decode_location, new_symbol_full, dwarf2_const_value):
9180 Set SYMBOL_ACLASS_INDEX.
9181 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9182 (_initialize_dwarf2_read): Initialize new globals.
9183 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9184 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9185 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9186 globals.
9187 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9188 (_initialize_mdebugread): Initialize new globals.
9189 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9190 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9191 (stab_register_index, stab_regparm_index): New globals.
9192 (define_symbol, read_enum_type, common_block_end): Set
9193 SYMBOL_ACLASS_INDEX.
9194 (_initialize_stabsread): Initialize new globals.
9195 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9196 globals.
9197 (MAX_SYMBOL_IMPLS): New define.
9198 (register_symbol_computed_impl, register_symbol_block_impl)
9199 (register_symbol_register_impl)
9200 (initialize_ordinary_address_classes): New functions.
9201 (_initialize_symtab): Call initialize_ordinary_address_classes.
9202 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9203 (struct symbol_impl): New.
9204 (SYMBOL_ACLASS_BITS): New define.
9205 (struct symbol) <aclass, ops>: Remove fields.
9206 <aclass_index>: New field.
9207 (symbol_impls): Declare.
9208 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9209 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9210 (register_symbol_computed_impl, register_symbol_block_impl)
9211 (register_symbol_register_impl): Declare.
9212 (struct symbol_computed_ops): Add location_has_loclist.
9213 (struct symbol_block_ops): New.
9214 (SYMBOL_BLOCK_OPS): New.
9215 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9216
dbccfd4c
TT
92172013-03-20 Tom Tromey <tromey@redhat.com>
9218
9219 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9220 (print_partial_symbols, recursively_search_psymtabs): Use
9221 PSYMBOL_CLASS.
9222
e3f1ad4f
PM
92232013-03-20 Pierre Muller <muller@sourceware.org>
9224
9225 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9226 addtion, subtraction, multiplication and division binary operator.
9227
460014f5
JK
92282013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9229
9230 Code cleanup.
9231 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9232 * bsd-kvm.c (bsd_kvm_close): Likewise.
9233 * bsd-uthread.c (bsd_uthread_close): Likewise.
9234 * corelow.c (core_close): Likewise.
9235 (core_close_cleanup): Remove parameter quitting from a caller.
9236 * event-top.c (async_disconnect): Likewise.
9237 * exec.c (exec_close_1): Remove parameter quitting.
9238 * go32-nat.c (go32_close): Likewise.
9239 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9240 parameter quitting from a caller.
9241 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9242 variable.
9243 (mips_linux_close): Remove parameter quitting. Remove parameter
9244 quitting from a caller.
9245 * monitor.c (monitor_close): Remove parameter quitting.
9246 * monitor.h (monitor_close): Likewise.
9247 * record-btrace.c (record_btrace_close): Likewise.
9248 * record-full.c (record_full_close): Likewise.
9249 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9250 it also from fprintf_unfiltered.
9251 * remote-mips.c (mips_close): Remove parameter quitting.
9252 (mips_detach): Remove parameter quitting from a caller.
9253 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9254 (gdbsim_close): Remove duplicate function comment. Remove parameter
9255 quitting and remove it also from printf_filtered.
9256 * remote.c (remote_close): Remove parameter quitting.
9257 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9258 * target.c (update_current_target): Remove parameter int from to_close
9259 de_fault.
9260 (push_target, unpush_target, pop_target): Remove parameter quitting from
9261 a caller.
9262 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9263 Remove parameter quitting from a caller.
9264 (target_preopen): Remove parameter quitting from a caller.
9265 (target_close): Remove parameter quitting. Remove parameter quitting
9266 from a caller two times. Remove parameter quitting also from
9267 fprintf_unfiltered.
9268 * target.h (struct target_ops): Remove parameter quitting and as int
9269 from fields to_xclose and to_close.
9270 (extern struct target_ops current_target):
9271 (target_close, pop_all_targets): Remove parameter quitting. Update the
9272 comment.
9273 (pop_all_targets_above): Remove parameter quitting.
9274 * top.c (quit_target): Remove parameter quitting from a caller.
9275 * tracepoint.c (tfile_close): Remove parameter quitting.
9276 * windows-nat.c (windows_close): Remove parameter quitting.
9277
35a7120b
CV
92782013-03-20 Corinna Vinschen <vinschen@redhat.com>
9279
9280 * windows-nat.c (handle_output_debug_string): Replace call
9281 to string_to_core_addr with call to strtoull.
9282
8249a5a9
YQ
92832013-03-20 Yao Qi <yao@codesourcery.com>
9284
9285 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9286 and write it to CTF metadata.
9287
2c15ef43
CV
92882013-03-19 Corinna Vinschen <vinschen@redhat.com>
9289
9290 * windows-nat.c (handle_output_debug_string): Change type of n to
9291 SIZE_T to avoid crash on 64 bit systems.
9292
1cdd3232
EZ
92932013-03-17 Eli Zaretskii <eliz@gnu.org>
9294
9295 * python/python-internal.h (HAVE_SNPRINTF)
9296 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9297 about redefinition of snprintf by pyerrors.h.
9298
3cb2ab1a
SE
92992013-03-15 Steve Ellcey <sellcey@mips.com>
9300
9301 * remote-sim.c (sim_command_completer): Make char arguments const.
9302
9ce98649
TT
93032013-03-15 Tom Tromey <tromey@redhat.com>
9304
9305 PR c++/15116:
9306 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9307
dccee2de
TT
93082013-03-14 Tom Tromey <tromey@redhat.com>
9309
9310 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9311 New fields.
9312 (get_file_crc): Move from symfile.c.
9313 (gdb_bfd_crc): New function.
9314 * gdb_bfd.h (gdb_bfd_crc): Declare.
9315 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9316 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9317 (separate_debug_file_exists): Use gdb_bfd_crc.
9318
cc0ea93c
TT
93192013-03-14 Tom Tromey <tromey@redhat.com>
9320
9321 * symfile.c (get_debug_link_info): Remove.
9322 (find_separate_debug_file_by_debuglink): Use
9323 bfd_get_debug_link_info.
9324
08c23b0d
TT
93252013-03-14 Tom Tromey <tromey@redhat.com>
9326
9327 * symtab.c (error_in_psymtab_expansion): New function.
9328 (lookup_symbol_aux_quick)
9329 (basic_lookup_transparent_type_quick): Remove "last resort"
9330 code. Use error_in_psymtab_expansion.
9331
288e77a7
JK
93322013-03-14 Doug Evans <dje@google.com>
9333 Jan Kratochvil <jan.kratochvil@redhat.com>
9334
9335 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9336 any successful compare_filenames_for_search or FILENAME_CMP.
9337 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9338 * symtab.c (iterate_over_some_symtabs): Likewise.
9339
8f1b8b82
JK
93402013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9341
9342 * source.c (print_source_lines_base): Make a local copy of
9343 symtab_to_fullname.
9344
23eb71e4
JK
93452013-03-14 Hui Zhu <hui_zhu@mentor.com>
9346 Jan Kratochvil <jan.kratochvil@redhat.com>
9347
9348 * source.c (print_source_lines_base): Suppress "file" for TUI.
9349
bb869963
SDJ
93502013-03-14 Keith Seitz <keiths@redhat.com>
9351 Alan Matsuoka <alanm@redhat.com>
9352
9353 PR c++/15203
9354 PR c++/15210
9355 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9356 TYPE_CODE_METHOD.
9357 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9358 symbols.
9359
d6682f9e
YQ
93602013-03-14 Yao Qi <yao@codesourcery.com>
9361
9362 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9363 status to tfile if trace is stopped by command 'tstop'.
9364
a22fa6e4
YQ
93652013-03-14 Yao Qi <yao@codesourcery.com>
9366
9367 * tracepoint.c (tfile_write_status): Write trace notes and user
9368 name into tfile if they are not NULL.
9369
d0353e76
YQ
93702013-03-14 Hui Zhu <hui@codesourcery.com>
9371 Yao Qi <yao@codesourcery.com>
9372
9373 * Makefile.in (REMOTE_OBS): Add ctf.o.
9374 (SFILES): Add ctf.c.
9375 (HFILES_NO_SRCDIR): Add ctf.h.
9376 * ctf.c, ctf.h: New files.
9377 * tracepoint.c: Include 'ctf.h'.
9378 (collect_pseudocommand): Remove static.
9379 (trace_save_command): Parse option "-ctf".
9380 Produce different trace file writers per option.
9381 Adjust output message.
9382 (trace_save_tfile, trace_save_ctf): New.
9383 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9384 * mi/mi-main.c: Include 'ctf.h'.
9385 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9386 trace_save_tfile or trace_save_ctf.
9387 * NEWS: Mention these changes.
9388
3f43bc09
YQ
93892013-03-14 Yao Qi <yao@codesourcery.com>
9390
9391 * tracepoint.c (trace_file_writer_xfree): New.
9392 (struct tfile_writer_data): New.
9393 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9394 (tfile_write_header, tfile_write_regblock_type): New.
9395 (tfile_write_status, tfile_write_uploaded_tsv): New.
9396 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9397 (tfile_write_raw_data, (tfile_end): New.
9398 (tfile_write_ops): New global variable.
9399 (TRACE_WRITE_R_BLOCK): New macro.
9400 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9401 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9402 (TRACE_WRITE_V_BLOCK): New macro.
9403 (trace_save): Add extra one parameter WRITER. Make it static.
9404 Use WRITER to writer trace.
9405 (tfile_trace_file_writer_new): New.
9406 (trace_save_command): Caller update.
9407 (trace_save_tfile): Write trace data in TFILE format.
9408 * tracepoint.h (struct trace_frame_write_ops): New.
9409 (struct trace_file_write_ops): New.
9410 (struct trace_file_writer): New.
9411 (trace_save): Remove its declaration.
9412 (trace_save_tfile): Declare it.
9413 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9414 instead of trace_save.
9415
58665b40
PA
94162013-03-13 Pedro Alves <palves@redhat.com>
9417
9418 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9419
10217050
PA
94202013-03-13 Pedro Alves <palves@redhat.com>
9421
9422 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9423 commented out code.
9424 * demangle.c (current_demangling_style_string): Make it const.
9425 (set_demangling_command): Assert the demangling style is known.
9426 Remove all handling of unknown styles. Set
9427 'current_demangling_style_string' to an element of the
9428 demangling_style_names array.
9429 (set_demangling_style): Delete.
9430 (_initialize_demangler): Set current_demangling_style_string to the
9431 element of the demangling_style_names array that corresponds to
9432 the default demangling style. Remove FIXME note. Don't call
9433 set_demangling_style.
9434 * gdb-demangle.h (set_demangling_style): Remove declaration.
9435
6f937416
PA
94362013-03-13 Pedro Alves <palves@redhat.com>
9437
9438 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9439 fields const.
9440 (ada_make_symbol_completion_list): Make "text0" parameter const.
9441 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9442 * breakpoint.c (condition_completer): Make "text" and "word"
9443 parameters const. Adjust.
9444 (check_tracepoint_command): Adjust to validate_actionline
9445 prototype change.
9446 (catch_syscall_completer): Make "text" and "word" parameters
9447 const.
9448 * cli/cli-cmds.c (show_user): Make "comname" local const.
9449 (valid_command_p): Make "command" parameter const.
9450 (alias_command): Make "alias_prefix" and "command_prefix" locals
9451 const.
9452 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9453 (add_alias_cmd): Make "name" and "oldname" parameters const.
9454 Adjust. No longer make copy of OLDNAME.
9455 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9456 (add_setshow_cmd_full, add_setshow_enum_cmd)
9457 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9458 (add_setshow_filename_cmd, add_setshow_string_cmd)
9459 (add_setshow_string_noescape_cmd)
9460 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9461 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9462 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9463 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9464 Make "name" parameter const.
9465 (help_cmd): Rename "command" parameter to "arg". New const local
9466 "command".
9467 (find_cmd): Make "command" parameter const.
9468 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9469 deprecated_cmd_warning prototype change.
9470 (undef_cmd_error): Make "cmdtype" parameter const.
9471 (lookup_cmd): Make "line" parameter const.
9472 (deprecated_cmd_warning): Change type of "text" parameter to
9473 pointer to const char, from pointer to pointer to char. Adjust.
9474 (lookup_cmd_composition): Make "text" parameter const.
9475 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9476 parameters const.
9477 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9478 const.
9479 * cli/cli-script.c (validate_comname): Make "tem" local const.
9480 (define_command): New const local "tem_c". Use it in calls to
9481 lookup_cmd.
9482 (document_command): Make "tem" and "comfull" locals const.
9483 (show_user_1): Make "prefix" and "name" parameters const.
9484 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9485 const.
9486 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9487 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9488 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9489 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9490 (complete_on_enum, add_setshow_enum_cmd)
9491 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9492 (add_setshow_filename_cmd, add_setshow_string_cmd)
9493 (add_setshow_string_noescape_cmd)
9494 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9495 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9496 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9497 Change prototypes, constifying strings.
9498 * completer.c (noop_completer, filename_completer): Make "text"
9499 and "prefix" parameters const.
9500 (location_completer, expression_completer)
9501 (complete_line_internal): Make "text" and "prefix" parameters
9502 const and adjust.
9503 (command_completer, signal_completer): Make "text" and "prefix"
9504 parameters const.
9505 * completer.h (noop_completer, filename_completer)
9506 (expression_completer, location_completer, command_completer)
9507 (signal_completer): Change prototypes.
9508 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9509 parameters const.
9510 * cp-abi.c (cp_abi_completer): Likewise.
9511 * expression.h (parse_expression_for_completion): Change
9512 prototype.
9513 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9514 parameters const.
9515 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9516 * infrun.c (handle_completer): Make "text" and "word" parameters
9517 const.
9518 * interps.c (interpreter_completer): Make "text" and "word"
9519 parameters const.
9520 * language.h (struct language_defn)
9521 <la_make_symbol_completion_list>: Make "text" and "word"
9522 parameters const.
9523 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9524 (parse_exp_in_context): Rename to ...
9525 (parse_exp_in_context_1): ... this.
9526 (parse_exp_in_context): Reimplement, with const hack from
9527 parse_exp_1.
9528 (parse_expression_for_completion): Make "string" parameter const.
9529 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9530 to pointer to const char. Adjust.
9531 (print_command_1): Make "exp" parameter const.
9532 (output_command): Rename to ...
9533 (output_command_const): ... this. Make "exp" parameter const.
9534 (output_command): Reimplement.
9535 (x_command): Adjust.
9536 (display_command): Rename "exp" parameter to "arg". New "exp"
9537 local, const version of "arg".
9538 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9539 "cmd_name" local const.
9540 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9541 call.
9542 (cmdpy_completer): Make "text" and "word" parameters const.
9543 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9544 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9545 const.
9546 * remote.c (_initialize_remote): Make "cmd_name" local const.
9547 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9548 parameters const. Adjust.
9549 (completion_list_add_fields): Make "sym_text", "text" and "word"
9550 parameters const.
9551 (struct add_name_data) <sym_text, text, word>: Make fields const.
9552 (default_make_symbol_completion_list_break_on): Make "text" and
9553 "word" parameters const. Adjust locals.
9554 (default_make_symbol_completion_list)
9555 (make_symbol_completion_list, make_symbol_completion_type)
9556 (make_symbol_completion_list_fn): Make "text" and "word"
9557 parameters const.
9558 (make_file_symbol_completion_list): Make "text", "word" and
9559 "srcfile" parameters const. Adjust locals.
9560 (add_filename_to_list): Make "text" and "word" parameters const.
9561 (struct add_partial_filename_data) <text, word>: Make fields
9562 const.
9563 (make_source_files_completion_list): Make "text" and "word"
9564 parameters const.
9565 * symtab.h (default_make_symbol_completion_list_break_on)
9566 (default_make_symbol_completion_list, make_symbol_completion_list)
9567 (make_symbol_completion_type enum type_code)
9568 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9569 (make_source_files_completion_list): Change prototype.
9570 * top.c (execute_command): Adjust to pass pointer to pointer to
9571 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9572 change.
9573 (set_verbose): Make "cmdname" local const.
9574 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9575 and adjust.
9576 (validate_actionline): Make "line" parameter a pointer to const
9577 char, and adjust.
9578 (encode_actions_1): Make "action_exp" local const, and adjust.
9579 (encode_actions): Adjust.
9580 (replace_comma): Delete.
9581 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9582 const, and adjust. Don't frob the action string while splitting
9583 it at commas. Instead, make a copy of each split substring in
9584 turn.
9585 (trace_dump_command): Adjust to validate_actionline prototype
9586 change.
9587 * tracepoint.h (decode_agent_options, decode_agent_options)
9588 (encode_actions, validate_actionline): Change prototypes.
9589 * valprint.h (output_command): Delete declaration.
9590 (output_command_const): Declare.
9591 * value.c (function_destroyer): Cast const away in xfree call.
9592
a0bcdaa7
PA
95932013-03-13 Pedro Alves <palves@redhat.com>
9594
9595 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9596 rather than casting 'const char * const *' to 'const char **'.
9597 * ada-lex.l (processInt): Make "trailer" local const. Remove
9598 'const char **' cast.
9599 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9600 locals, and use those as strtol output pointer, instead than doing
9601 invalid casts to from 'const char **' to 'char **'.
9602 (_initialize_demangle): Remove cast.
9603 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9604 locals, and use those as strtol output pointer, instead than doing
9605 invalid casts to from 'const char **' to 'char **'.
9606 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9607 casts.
9608 * stap-probe.c (stap_parse_register_operand)
9609 (stap_parse_single_operand): Likewise.
9610
8ddb1965
YQ
96112013-03-13 Yao Qi <yao@codesourcery.com>
9612
9613 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9614 the last matched 'V' blcok in trace frame.
9615
2d450646
JB
96162013-03-12 Joel Brobecker <brobecker@adacore.com>
9617
9618 * NEWS: Create a new section for the next release branch.
9619 Rename the section of the current branch, now that it has
9620 been cut.
9621
b4b79973 96222013-03-12 Joel Brobecker <brobecker@adacore.com>
9623
9624 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9625 * version.in: Bump version to 7.6.50.20130312-cvs.
9626
ee047554
KS
96272013-03-12 Keith Seitz <keiths@redhat.com>
9628
9629 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9630 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9631 Remove temporary copy of input string.
9632 (mi_execute_command_wrapper): Make "cmd" const.
9633 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9634 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9635 Use const strings.
9636 (mi_parse): Make "cmd" const.
9637 Use const strings.
9638 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9639
bbc13ae3
KS
96402013-03-12 Keith Seitz <keiths@redhat.com>
9641
9642 * ada-lang.c (ada_read_renaming_var_value): Pass const
9643 pointer to expression string to parse_exp_1.
9644 (create_excep_cond_exprs): Likewise.
9645 * ax-gdb.c (agent_eval_command_one): Likewise.
9646 (maint_agent_printf_command): Likewise.
9647 Constify much of the string handling/parsing.
9648 * breakpoint.c (set_breakpoint_condition): Pass const
9649 pointer to expression string to parse_exp_1.
9650 (update_watchpoint): Likewise.
9651 (parse_cmd_to_aexpr): Constify string handling.
9652 Pass const pointer to parse_exp_1.
9653 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9654 (find_condition_and_thread): Likewise.
9655 Make TOK const.
9656 (watch_command_1): Make "arg" const.
9657 Constify string handling.
9658 Copy the expression string instead of changing the input
9659 string.
9660 (update_breakpoint_location): Pass const pointer to
9661 parse_exp_1.
9662 * eval.c (parse_and_eval_address): Make "exp" const.
9663 (parse_to_comma_and_eval): Make "expp" const.
9664 (parse_and_eval): Make "exp" const.
9665 * expression.h (parse_expression): Make argument const.
9666 (parse_exp_1): Make first argument const.
9667 * findcmd.c (parse_find_args): Treat "args" as const.
9668 * linespec.c (parse_linespec): Pass const pointer to
9669 linespec_expression_to_pc.
9670 (linespec_expression_to_pc): Make "exp_ptr" const.
9671 * parse.c (parse_exp_1): Make "stringptr" const.
9672 Make a copy of the expression to pass to parse_exp_in_context until
9673 this whole interface can be constified.
9674 (parse_expression): Make "string" const.
9675 * printcmd.c (ui_printf): Treat "arg" as const.
9676 Handle const strings.
9677 * tracepoint.c (validate_actionline): Pass const pointer to
9678 all calls to parse_exp_1.
9679 (encode_actions_1): Likewise.
9680 * value.h (parse_to_comma_and_eval): Make argument const.
9681 (parse_and_eval_address): Likewise.
9682 (parse_and_eval): Likewise.
9683 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9684 (varobj_set_value): Likewise.
9685 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9686 constify string handling.
9687 Pass const pointers to parse_and_eval_address and
9688 parse_to_comman_and_eval.
9689 * cli/cli-utils.c (skip_to_space): Rename to ...
9690 (skip_to_space_const): ... this. Handle const strings.
9691 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9692 skip_to_space_const.
9693 (skip_to_space_const): Declare.
9694 * common/format.c (parse_format_string): Make "arg" const.
9695 Handle const strings.
9696 * common/format.h (parse_format_string): Make "arg" const.
9697 * gdbserver/ax.c (ax_printf): Make "format" const.
9698 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9699 of the expression string.
9700
f3cec7e6
HZ
97012013-03-12 Hui Zhu <hui@codesourcery.com>
9702
9703 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9704
9df7235c
HZ
97052013-03-12 Yao Qi <yao@codesourcery.com>
9706 Hui Zhu <hui@codesourcery.com>
9707
9708 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9709 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9710 DW_OP_deref_size.
9711
82d049ab
PH
97122013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9713
5f8e0b8f
MF
9714 * ada-lex.l (rules): Only recognize 'thread' as a
9715 delimiter when followed by numerals, as for c-exp.y.
9716 Use new rewind_to_char function to rewind the input for
9717 expression-delimiting tokens.
9718 (rewind_to_char): New function.
82d049ab 9719
8c1fb155
JK
97202013-03-11 Pedro Alves <palves@redhat.com>
9721 Jan Kratochvil <jan.kratochvil@redhat.com>
9722
9723 * configure: Regenerate.
9724 * configure.ac (check dynamic export flag): Link python test with
9725 $PYTHON_LIBS.
9726
cc81e1c6
DE
97272013-03-11 Doug Evans <dje@google.com>
9728 Keith Seitz <keiths@redhat.com>
9729
9730 * linespec.c (find_linespec_symbols): Call find_function_symbols
9731 first, and then call lookup_prefix_sym/find_method.
9732
39086a0e
PA
97332013-03-11 Pedro Alves <palves@redhat.com>
9734
9735 * charset.c (convert_between_encodings): Don't cast between
9736 different pointer to pointer types. Instead, make the 'inp' local
9737 be of the type iconv expects.
9738 (wchar_iterate): Don't cast between different pointer to pointer
9739 types. Instead, use new pointer local of the type iconv expects.
9740 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9741 Add new local of type char pointer, and use it to get a
9742 char/string view of the byte buffer, instead of casting between
9743 pointer to pointer types.
9744
90585175
HAQ
97452013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9746
9747 * remote.c (remote_set_trace_buffer_size): Move != operator
9748 to the start of next line to fix an ARI warning.
9749
59ea5688
MM
97502013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9751
9752 * NEWS: Add record changes.
9753
946287b7
MM
97542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9755
9756 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9757 the instruction history disassembly.
9758 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9759 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9760
afedecd3
MM
97612013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9762
9763 * Makefile.in (SFILES): Add record-btrace.c
9764 (COMMON_OBS): Add record-btrace.o
9765 * record-btrace.c: New.
9766 * objfiles.c: Include btrace.h.
9767 (free_objfile): call btrace_free_objfile.
9768
15984c13
MM
97692013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9770
9771 * target.c (target_call_history, target_call_history_from,
9772 target_call_history_range): New.
9773 * target.h (target_ops) <to_call_history, to_call_history_from,
9774 to_call_history_range>: New fields.
9775 (target_call_history, target_call_history_from,
9776 target_call_history_range): New declaration.
9777 * record.c (get_call_history_modifiers, cmd_record_call_history,
9778 record_call_history_size): New.
9779 (_initialize_record): Add the "record function-call-history" command.
9780 Add "set/show record function-call-history-size" commands.
9781 * record.h (record_print_flag): New.
9782
67c86d06
MM
97832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9784
9785 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9786 to_insn_history_range>: New fields.
9787 (target_insn_history): New.
9788 (target_insn_history_from): New.
9789 (target_insn_history_range): New.
9790 * target.c (target_insn_history): New.
9791 (target_insn_history_from): New.
9792 (target_insn_history_range): New.
9793 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9794 (record_insn_history_size): New.
9795 (get_insn_number): New.
9796 (get_context_size): New.
9797 (no_chunk): New.
9798 (get_insn_history_modifiers): New.
9799 (cmd_record_insn_history): New.
9800 (_initialize_record): Add "set/show record instruction-history-size"
9801 command. Add "record instruction-history" command.
9802
7c1687a9
MM
98032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9804
9805 * record.h (record_disconnect): New.
9806 (record_detach): New.
9807 (record_mourn_inferior): New.
9808 (record_kill): New.
9809 * record-full.c (record_disconnect, record_detach,
9810 record_mourn_inferior, record_kill): Move to...
9811 * record.c: ...here.
9812 (DEBUG): New.
9813 (record_stop): New.
9814 (record_unpush): New.
9815 (cmd_record_stop): Call record_stop. Replace unpush_target
9816 call with record_unpush call.
9817 (record_disconnect, record_detach): Assert that the target
9818 is of record stratum. Call record_unpush, record_stop, and
9819 DEBUG.
9820 (record_mourn_inferior, record_kill): Assert that the target
9821 is of record stratum. Call record_unpush and DEBUG.
9822
25ea693b
MM
98232013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9824
9825 * record-full.h, record-full.c (record_memory_query): Rename
9826 to ...
9827 (record_full_memory_query): ...this. Update all users.
9828 (record_arch_list_add_reg): Rename to ...
9829 (record_full_arch_list_add_reg): ...this. Update all users.
9830 (record_arch_list_add_mem): Rename to ...
9831 (record_full_arch_list_add_mem): ...this. Update all users.
9832 (record_arch_list_add_end): Rename to ...
9833 (record_full_arch_list_add_end): ...this. Update all users.
9834 (record_gdb_operation_disable_set): Rename to ...
9835 (record_full_gdb_operation_disable_set): ...this.
9836 Update all users.
9837
88d1aa9d
MM
98382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9839
9840 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9841 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9842 (RECORD_IS_REPLAY): Renamed to ...
9843 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9844 (RECORD_FILE_MAGIC): Renamed to ...
9845 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9846 (record_mem_entry): Renamed to ...
9847 (record_full_mem_entry): ... this. Updated all users.
9848 (record_reg_entry): Renamed to ...
9849 (record_full_reg_entry): ... this. Updated all users.
9850 (record_end_entry): Renamed to ...
9851 (record_full_end_entry): ... this. Updated all users.
9852 (record_type) <record_end, record_reg, record_mem>: Renamed
9853 to ...
9854 (record_full_type) <record_full_end, record_full_reg,
9855 record_full_mem>: ... this. Updated all users.
9856 (record_entry): Renamed to ...
9857 (record_full_entry): ... this. Updated all users.
9858 (record_core_buf_entry): Renamed to ...
9859 (record_full_core_buf_entry): ... this. Updated all users.
9860 (record_core_regbuf): Renamed to ...
9861 (record_full_core_regbuf): ... this. Updated all users.
9862 (record_core_start): Renamed to ...
9863 (record_full_core_start): ... this. Updated all users.
9864 (record_core_end): Renamed to ...
9865 (record_full_core_end): ... this. Updated all users.
9866 (record_core_buf_list): Renamed to ...
9867 (record_full_core_buf_list): ... this. Updated all users.
9868 (record_first): Renamed to ...
9869 (record_full_first): ... this. Updated all users.
9870 (record_list): Renamed to ...
9871 (record_full_list): ... this. Updated all users.
9872 (record_arch_list_head): Renamed to ...
9873 (record_full_arch_list_head): ... this. Updated all users.
9874 (record_arch_list_tail): Renamed to ...
9875 (record_full_arch_list_tail): ... this. Updated all users.
9876 (record_stop_at_limit): Renamed to ...
9877 (record_full_stop_at_limit): ... this. Updated all users.
9878 (record_insn_max_num): Renamed to ...
9879 (record_full_insn_max_num): ... this. Updated all users.
9880 (record_insn_num): Renamed to ...
9881 (record_full_insn_num): ... this. Updated all users.
9882 (record_insn_count): Renamed to ...
9883 (record_full_insn_count): ... this. Updated all users.
9884 (record_ops): Renamed to ...
9885 (record_full_ops): ... this. Updated all users.
9886 (record_core_ops): Renamed to ...
9887 (record_full_core_ops): ... this. Updated all users.
9888 (set_record_cmdlist): Renamed to ...
9889 (set_record_full_cmdlist): ... this. Updated all users.
9890 (show_record_cmdlist): Renamed to ...
9891 (show_record_full_cmdlist): ... this. Updated all users.
9892 (record_cmdlist): Renamed to ...
9893 (record_full_cmdlist): ... this. Updated all users.
9894 (record_beneath_to_resume_ops): Renamed to ...
9895 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9896 (record_beneath_to_resume): Renamed to ...
9897 (record_full_beneath_to_resume): ... this. Updated all users.
9898 (record_beneath_to_wait_ops): Renamed to ...
9899 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9900 (record_beneath_to_wait): Renamed to ...
9901 (record_full_beneath_to_wait): ... this. Updated all users.
9902 (record_beneath_to_store_registers_ops): Renamed to ...
9903 (record_full_beneath_to_store_registers_ops): ... this.
9904 Updated all users.
9905 (record_beneath_to_store_registers): Renamed to ...
9906 (record_full_beneath_to_store_registers): ... this.
9907 Updated all users.
9908 (record_beneath_to_xfer_partial_ops): Renamed to ...
9909 (record_full_beneath_to_xfer_partial_ops): ... this.
9910 Updated all users.
9911 (record_beneath_to_xfer_partial): Renamed to ...
9912 (record_full_beneath_to_xfer_partial): ... this.
9913 Updated all users.
9914 (record_beneath_to_insert_breakpoint): Renamed to ...
9915 (record_full_beneath_to_insert_breakpoint): ... this.
9916 Updated all users.
9917 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9918 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9919 Updated all users.
9920 (record_beneath_to_stopped_data_address): Renamed to ...
9921 (record_full_beneath_to_stopped_data_address): ... this.
9922 Updated all users.
9923 (record_beneath_to_async): Renamed to ...
9924 (record_full_beneath_to_async): ... this. Updated all users.
9925 (record_goto_insn): Renamed to ...
9926 (record_full_goto_insn): ... this. Updated all users.
9927 (record_save): Renamed to ...
9928 (record_full_save): ... this. Updated all users.
9929 (record_reg_alloc): Renamed to ...
9930 (record_full_reg_alloc): ... this. Updated all users.
9931 (record_reg_release): Renamed to ...
9932 (record_full_reg_release): ... this. Updated all users.
9933 (record_mem_alloc): Renamed to ...
9934 (record_full_mem_alloc): ... this. Updated all users.
9935 (record_mem_release): Renamed to ...
9936 (record_full_mem_release): ... this. Updated all users.
9937 (record_end_alloc): Renamed to ...
9938 (record_full_end_alloc): ... this. Updated all users.
9939 (record_end_release): Renamed to ...
9940 (record_full_end_release): ... this. Updated all users.
9941 (record_entry_release): Renamed to ...
9942 (record_full_entry_release): ... this. Updated all users.
9943 (record_list_release): Renamed to ...
9944 (record_full_list_release): ... this. Updated all users.
9945 (record_list_release_following): Renamed to ...
9946 (record_full_list_release_following): ... this.
9947 Updated all users.
9948 (record_list_release_first): Renamed to ...
9949 (record_full_list_release_first): ... this. Updated all users.
9950 (record_arch_list_add): Renamed to ...
9951 (record_full_arch_list_add): ... this. Updated all users.
9952 (record_get_loc): Renamed to ...
9953 (record_full_get_loc): ... this. Updated all users.
9954 (record_check_insn_num): Renamed to ...
9955 (record_full_check_insn_num): ... this. Updated all users.
9956 (record_arch_list_cleanups): Renamed to ...
9957 (record_full_arch_list_cleanups): ... this. Updated all users.
9958 (record_message): Renamed to ...
9959 (record_full_message): ... this. Updated all users.
9960 (record_message_wrapper): Renamed to ...
9961 (record_full_message_wrapper): ... this. Updated all users.
9962 (record_message_wrapper_safe): Renamed to ...
9963 (record_full_message_wrapper_safe): ... this. Updated all users.
9964 (record_gdb_operation_disable): Renamed to ...
9965 (record_full_gdb_operation_disable): ... this. Updated all users.
9966 (record_hw_watchpoint): Renamed to ...
9967 (record_full_hw_watchpoint): ... this. Updated all users.
9968 (record_exec_insn): Renamed to ...
9969 (record_full_exec_insn): ... this. Updated all users.
9970 (record_restore): Renamed to ...
9971 (record_full_restore): ... this. Updated all users.
9972 (record_async_inferior_event_token): Renamed to ...
9973 (record_full_async_inferior_event_token): ... this.
9974 Updated all users.
9975 (record_async_inferior_event_handler): Renamed to ...
9976 (record_full_async_inferior_event_handler): ... this.
9977 Updated all users.
9978 (record_core_open_1): Renamed to ...
9979 (record_full_core_open_1): ... this. Updated all users.
9980 (record_open_1): Renamed to ...
9981 (record_full_open_1): ... this. Updated all users.
9982 (record_open): Renamed to ...
9983 (record_full_open): ... this. Updated all users.
9984 (record_close): Renamed to ...
9985 (record_full_close): ... this. Updated all users.
9986 (record_resume_step): Renamed to ...
9987 (record_full_resume_step): ... this. Updated all users.
9988 (record_resumed): Renamed to ...
9989 (record_full_resumed): ... this. Updated all users.
9990 (record_execution_dir): Renamed to ...
9991 (record_full_execution_dir): ... this. Updated all users.
9992 (record_resume): Renamed to ...
9993 (record_full_resume): ... this. Updated all users.
9994 (record_get_sig): Renamed to ...
9995 (record_full_get_sig): ... this. Updated all users.
9996 (record_sig_handler): Renamed to ...
9997 (record_full_sig_handler): ... this. Updated all users.
9998 (record_wait_cleanups): Renamed to ...
9999 (record_full_wait_cleanups): ... this. Updated all users.
10000 (record_wait_1): Renamed to ...
10001 (record_full_wait_1): ... this. Updated all users.
10002 (record_wait): Renamed to ...
10003 (record_full_wait): ... this. Updated all users.
10004 (record_stopped_by_watchpoint): Renamed to ...
10005 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10006 (record_disconnect): Renamed to ...
10007 (record_full_disconnect): ... this. Updated all users.
10008 (record_detach): Renamed to ...
10009 (record_full_detach): ... this. Updated all users.
10010 (record_mourn_inferior): Renamed to ...
10011 (record_full_mourn_inferior): ... this. Updated all users.
10012 (record_kill): Renamed to ...
10013 (record_full_kill): ... this. Updated all users.
10014 (record_stopped_data_address): Renamed to ...
10015 (record_full_stopped_data_address): ... this. Updated all users.
10016 (record_registers_change): Renamed to ...
10017 (record_full_registers_change): ... this. Updated all users.
10018 (record_store_registers): Renamed to ...
10019 (record_full_store_registers): ... this. Updated all users.
10020 (record_xfer_partial): Renamed to ...
10021 (record_full_xfer_partial): ... this. Updated all users.
10022 (record_breakpoint): Renamed to ...
10023 (record_full_breakpoint): ... this. Updated all users.
10024 (record_breakpoint_p): Renamed to ...
10025 (record_full_breakpoint_p): ... this. Updated all users.
10026 (record_breakpoints): Renamed to ...
10027 (record_full_breakpoints): ... this. Updated all users.
10028 (record_sync_record_breakpoints): Renamed to ...
10029 (record_full_sync_record_breakpoints): ... this.
10030 Updated all users.
10031 (record_init_record_breakpoints): Renamed to ...
10032 (record_full_init_record_breakpoints): ... this.
10033 Updated all users.
10034 (record_insert_breakpoint): Renamed to ...
10035 (record_full_insert_breakpoint): ... this. Updated all users.
10036 (record_remove_breakpoint): Renamed to ...
10037 (record_full_remove_breakpoint): ... this. Updated all users.
10038 (record_can_execute_reverse): Renamed to ...
10039 (record_full_can_execute_reverse): ... this. Updated all users.
10040 (record_get_bookmark): Renamed to ...
10041 (record_full_get_bookmark): ... this. Updated all users.
10042 (record_goto_bookmark): Renamed to ...
10043 (record_full_goto_bookmark): ... this. Updated all users.
10044 (record_async): Renamed to ...
10045 (record_full_async): ... this. Updated all users.
10046 (record_can_async_p): Renamed to ...
10047 (record_full_can_async_p): ... this. Updated all users.
10048 (record_is_async_p): Renamed to ...
10049 (record_full_is_async_p): ... this. Updated all users.
10050 (record_execution_direction): Renamed to ...
10051 (record_full_execution_direction): ... this. Updated all users.
10052 (record_info): Renamed to ...
10053 (record_full_info): ... this. Updated all users.
10054 (record_delete): Renamed to ...
10055 (record_full_delete): ... this. Updated all users.
10056 (record_is_replaying): Renamed to ...
10057 (record_full_is_replaying): ... this. Updated all users.
10058 (record_goto_entry): Renamed to ...
10059 (record_full_goto_entry): ... this. Updated all users.
10060 (record_goto_begin): Renamed to ...
10061 (record_full_goto_begin): ... this. Updated all users.
10062 (record_goto_end): Renamed to ...
10063 (record_full_goto_end): ... this. Updated all users.
10064 (record_goto): Renamed to ...
10065 (record_full_goto): ... this. Updated all users.
10066 (init_record_ops): Renamed to ...
10067 (init_record_full_ops): ... this. Updated all users.
10068 (record_core_resume): Renamed to ...
10069 (record_full_core_resume): ... this. Updated all users.
10070 (record_core_kill): Renamed to ...
10071 (record_full_core_kill): ... this. Updated all users.
10072 (record_core_fetch_registers): Renamed to ...
10073 (record_full_core_fetch_registers): ... this. Updated all users.
10074 (record_core_prepare_to_store): Renamed to ...
10075 (record_full_core_prepare_to_store): ... this. Updated all users.
10076 (record_core_store_registers): Renamed to ...
10077 (record_full_core_store_registers): ... this. Updated all users.
10078 (record_core_xfer_partial): Renamed to ...
10079 (record_full_core_xfer_partial): ... this. Updated all users.
10080 (record_core_insert_breakpoint): Renamed to ...
10081 (record_full_core_insert_breakpoint): ... this. Updated all users.
10082 (record_core_remove_breakpoint): Renamed to ...
10083 (record_full_core_remove_breakpoint): ... this. Updated all users.
10084 (record_core_has_execution): Renamed to ...
10085 (record_full_core_has_execution): ... this. Updated all users.
10086 (init_record_core_ops): Renamed to ...
10087 (init_record_full_core_ops): ... this. Updated all users.
10088 (cmd_record_restore): Renamed to ...
10089 (cmd_record_full_restore): ... this. Updated all users.
10090 (record_save_cleanups): Renamed to ...
10091 (record_full_save_cleanups): ... this. Updated all users.
10092 (cmd_record_start): Renamed to ...
10093 (cmd_record_full_start): ... this. Updated all users.
10094 (set_record_insn_max_num): Renamed to ...
10095 (set_record_full_insn_max_num): ... this. Updated all users.
10096 (set_record_command): Renamed to ...
10097 (set_record_full_command): ... this. Updated all users.
10098 (show_record_command): Renamed to ...
10099 (show_record_full_command): ... this. Updated all users.
10100 (_initialize_record): Renamed to ...
10101 (_initialize_record_full): ... this. Updated all users.
10102
d02ed0bb
MM
101032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10104
10105 * record.h: Split into this and ...
10106 * record-full.h: ... this.
10107 * record.c: Split into this and ...
10108 * record-full.c: ... this.
10109 * target.h (target_ops): Add new fields to_info_record,
10110 to_save_record, to_delete_record, to_record_is_replaying,
10111 to_goto_record_begin, to_goto_record_end, to_goto_record.
10112 (target_info_record): New.
10113 (target_save_record): New.
10114 (target_supports_delete_record): New.
10115 (target_delete_record): New.
10116 (target_record_is_replaying): New.
10117 (target_goto_record_begin): New.
10118 (target_goto_record_end): New.
10119 (target_goto_record): New.
10120 * target.c (target_info_record): New.
10121 (target_save_record): New.
10122 (target_supports_delete_record): New.
10123 (target_delete_record): New.
10124 (target_record_is_replaying): New.
10125 (target_goto_record_begin): New.
10126 (target_goto_record_end): New.
10127 (target_goto_record): New.
10128 * record.h: Declare struct cmd_list_element.
10129 (record_cmdlist): New declaration.
10130 (set_record_cmdlist): New declaration.
10131 (show_record_cmdlist): New declaration.
10132 (info_record_cmdlist): New declaration.
10133 (cmd_record_goto): New declaration.
10134 * record.c: Remove unnecessary includes.
10135 Include inferior.h.
10136 (cmd_record_goto): Remove declaration.
10137 (record_cmdlist): Now extern. Initialize.
10138 (set_record_cmdlist): Now extern. Initialize.
10139 (show_record_cmdlist): Now extern. Initialize.
10140 (info_record_cmdlist): Now extern. Initialize.
10141 (find_record_target): New.
10142 (require_record_target): New.
10143 (cmd_record_start): Update.
10144 (cmd_record_delete): Remove target-specific code.
10145 Call target_delete_record.
10146 (cmd_record_stop): Unpush any record target.
10147 (set_record_insn_max_num): Move to record-full.c
10148 (set_record_command): Add comment.
10149 (show_record_command): Add comment.
10150 (info_record_command): Update comment.
10151 Remove target-specific code.
10152 Call the record target's to_info_record.
10153 (cmd_record_start): New.
10154 (cmd_record_goto): Now extern.
10155 Remove target-specific code.
10156 Call target_goto_begin, target_goto_end, or target_goto.
10157 (_initialize_record): Move record target ops initialization to
10158 record-full.c.
10159 Change "record" command help text.
10160 Move "record restore", "record set", and "record show" commands to
10161 record-full.c.
10162 * Makefile.in (SFILES): Add record-full.c.
10163 (HFILES_NO_SRCDIR): Add record-full.h.
10164 (COMMON_OBS): Add record-full.o.
10165 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10166 * arm-tdep.c: Include record-full.h.
10167 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10168 * i386-tdep.c: Include record-full.h.
10169 * infrun.c: Include record-full.h.
10170 * linux-record.c: Include record-full.h.
10171 * moxie-tdep.c: Include record-full.h.
10172 * record-full.c: Include record-full.h.
10173 Change module comment.
10174 (set_record_full_cmdlist): New.
10175 (show_record_full_cmdlist): New.
10176 (record_full_cmdlist): New.
10177 (record_goto_insn): New declaration.
10178 (record_save): New declaration.
10179 (record_check_insn_num): Change query string.
10180 (record_info): New.
10181 (record_delete): New.
10182 (record_is_replaying): New.
10183 (record_goto_entry): New.
10184 (record_goto_begin): New.
10185 (record_goto_end): New.
10186 (record_goto): New.
10187 (init_record_ops): Update.
10188 (init_record_core_ops): Update.
10189 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10190 (cmd_record_start): New.
10191 (set_record_insn_max_num): Moved from record.c
10192 (set_record_full_command): New.
10193 (show_record_full_command): New.
10194 (_initialize_record_full): New.
10195
b48d48eb
MM
101962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10197
10198 * target.h (add_deprecated_target_alias): New.
10199 * target.c (add_deprecated_target_alias): New.
10200
a950d57c
MM
102012013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10202
10203 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10204 and signal.h.
10205 (linux_supports_btrace): Add kernel and
10206 cpuid check.
10207 (kernel_supports_btrace): New function.
10208 (cpu_supports_btrace): New function.
10209 (intel_supports_btrace): New function.
10210
9accd112
MM
102112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10212
10213 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10214 * remote.c: Include btrace.h.
10215 (struct btrace_target_info): New struct.
10216 (remote_supports_btrace): New function.
10217 (send_Qbtrace): New function.
10218 (remote_enable_btrace): New function.
10219 (remote_disable_btrace): New function.
10220 (remote_teardown_btrace): New function.
10221 (remote_read_btrace): New function.
10222 (init_remote_ops): Add btrace ops.
10223 (enum <unnamed>): Add btrace packets.
10224 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10225 (_initialize_remote): Add packet configuration for branch tracing.
10226
c12a2917
MM
102272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10228
10229 * features/btrace.dtd: New file.
10230 * Makefile.in (XMLFILES): Add btrace.dtd.
10231 * btrace.h (parse_xml_btrace): New declaration.
10232 * btrace.c: Include xml-support.h.
10233 (parse_xml_btrace): New function.
10234 (parse_xml_btrace_block): New function.
10235 (block_attributes): New struct.
10236 (btrace_attributes): New struct.
10237 (btrace_children): New struct.
10238 (btrace_elements): New struct.
10239
3e3aea48
MM
102402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10241
10242 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10243 (amd64_linux_enable_btrace): New.
10244 (amd64_linux_disable_btrace): New.
10245 (amd64_linux_teardown_btrace): New.
10246 (_initialize_amd64_linux_nat): Initialize btrace ops.
10247 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10248 (i386_linux_enable_btrace): New.
10249 (i386_linux_disable_btrace): New.
10250 (i386_linux_teardown_btrace): New.
10251 (_initialize_i386_linux_nat): Initialize btrace ops.
10252 * config/i386/linux.mh: Add linux-btrace.o.
10253 * config/i386/linux64.mh: Add linux-btrace.o.
10254
7c97f91e
MM
102552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10256
10257 * common/linux_btrace.h: New file.
10258 * common/linux_btrace.c: New file.
10259 * Makefile.in (SFILES): Add btrace.c.
10260 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10261 (COMMON_OBS): Add btrace.o.
10262 (linux-btrace.o): New rule.
10263
1999790b 102642013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10265
10266 * target.h: Include btrace.h.
10267 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10268 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10269 * target.c (target_supports_btrace): New function.
10270 (target_enable_btrace): New function.
10271 (target_disable_btrace): New function.
10272 (target_teardown_btrace): New function.
10273 (target_read_btrace): New function.
10274 * btrace.h: New file.
10275 * btrace.c: New file.
10276 * Makefile.in: Add btrace.c.
10277 * gdbthread.h: Include btrace.h.
10278 (struct thread_info): Add btrace field.
10279 * thread.c: Include btrace.h.
10280 (clear_thread_inferior_resources): Call target_teardown_btrace.
10281 * common/btrace-common.h: New file.
10282
61a31a67
JK
102832013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10284
10285 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10286 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10287 kill_status to outer block.
10288
05c56a9d
JK
102892013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10290
10291 Fix entry-values if the callee called a noreturn function.
10292 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10293 get_frame_address_in_block. Add new comment.
10294
9112db09
JK
102952013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10296
10297 Fix entry-values in C++ across CUs.
10298 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10299 lookup_minimal_symbol. Add a comment.
10300 * dwarf2read.c
10301 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10302 DW_AT_linkage_name.
10303
9b67fcec
YQ
103042013-03-08 Yao Qi <yao@codesourcery.com>
10305
10306 * tracepoint.c (_initialize_tracepoint): Indent the code.
10307
6221be90
PA
103082013-03-08 Pedro Alves <palves@redhat.com>
10309
10310 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10311 (parse_find_args, find_command): Change type of pattern buffer
10312 locals to 'gdb_byte *'.
10313
be9a119c 103142013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10315 Hafiz Abid Qadeer <abidh@codesourcery.com>
10316
10317 * NEWS: Mention set and show trace-buffer-size commands.
10318 Mention new packet.
10319 * target.h (struct target_ops): New method
10320 to_set_trace_buffer_size.
10321 (target_set_trace_buffer_size): New macro.
10322 * target.c (update_current_target): Set up new method.
10323 * tracepoint.c (trace_buffer_size): New global.
10324 (start_tracing): Send it to the target.
10325 (set_trace_buffer_size): New function.
10326 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10327 * remote.c (remote_set_trace_buffer_size): New function.
10328 (_initialize_remote): Use it.
10329 (QTBuffer:size) New remote command.
10330 (PACKET_QTBuffer_size): New enum.
10331 (remote_protocol_features): Add an entry for
10332 PACKET_QTBuffer_size.
10333
7da3ab79
TT
103342013-03-08 Tom Tromey <tromey@redhat.com>
10335
10336 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10337 variable.
10338
0c1f71e7
PA
103392013-03-07 Pedro Alves <palves@redhat.com>
10340
10341 * target.c (target_read_stralloc, target_fileio_read_alloc):
10342 *Cast pointer to 'gdb_byte *' in target call.
10343
c8af03a2
PA
103442013-03-07 Pedro Alves <palves@redhat.com>
10345
10346 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10347 call.
10348
529480d0
KS
103492013-03-07 Keith Seitz <keiths@redhat.com>
10350
10351 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10352 (trace_pass_command): Likewise.
10353 * cli/cli-cmds.c: Include cli/cli-utils.h.
10354 (source_command): Use skip-spaces.
10355 (disassemble_command): Likewise.
10356 * findcmd.c: Include cli/cli-utils.h.
10357 (parse_find_args): Use skip_spaces.
10358 * go32-nat.c: Include cli/cli-utils.h.
10359 (go32_sldt): Use skip_spaces.
10360 (go32_sgdt): Likewise.
10361 (go32_sidt): Likewise.
10362 (go32_pde): Likewise.
10363 (go32_pte): Likewise.
10364 (go32_pte_for_address): Likewise.
10365 * infcmd.c: Include cli/cli-utils.h.
10366 (registers_info): Use skip_spaces.
10367 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10368 (linux_info_proc): Likewise.
10369 * linux-thread-db.c: Include cli/cli-utils.h.
10370 (info_auto_load_libthread_db): Use skip_spaces_const.
10371 * m32r-rom.c: Include cli/cli-utils.h.
10372 (m32r_upload_command): Use skip_spaces.
10373 * maint.c: Include cli/cli-utils.h.
10374 (maintenance_translate_address): Use skip_spaces.
10375 * mi/mi-parse.c: Include cli/cli-utils.h.
10376 (mi_parse_argv): Use skip_spaces.
10377 (mi_parse): Likewise.
10378 * minsyms.c: Include cli/cli-utils.h.
10379 (msymbol_hash_iw): Use skip_spaces_const.
10380 * objc-lang.c: Include cli/cli-utils.h.
10381 (parse_selector): Use skip_spaces.
10382 (parse_method): Likewise.
10383 * python/python.c: Include cli/cli-utils.h.
10384 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10385 (python_command)[HAVE_PYTHON]: Likewise.
10386 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10387 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10388 (m32r_load): Use skip_spaces.
10389 * serial.c: Include cli/cli-utils.h.
10390 (serial_open): Use skip_spaces_const.
10391 * stack.c: Include cli/cli-utils.h.
10392 (parse_frame_specification_1): Use skip_spaces_const.
10393 * symfile.c: Include cli/cli-utils.h.
10394 (set_ext_lang_command): Use skip_spaces.
10395 * symtab.c: Include cli/cli-utils.h.
10396 (rbreak_command): Use skip_spaces.
10397 * thread.c (thread_name_command): Use skip_spaces.
10398 * tracepoint.c (validate_actionline): Use skip_spaces.
10399 (encode_actions_1): Likewise.
10400 (trace_find_range_command): Likewise.
10401 (trace_find_outside_command): Likewise.
10402 (trace_dump_actions): Likewise.
10403
ac91cd70
PA
104042013-03-07 Pedro Alves <palves@redhat.com>
10405
10406 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10407 * expprint.c (print_subexp_standard): Likewise.
10408 * utils.c (host_char_to_target): Likewise.
10409 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10410 * varobj.c (value_get_print_value): Change type of local to char*.
10411 Cast it gdb_byte * in call to language printer.
10412
2898e560
PA
104132013-03-07 Pedro Alves <palves@redhat.com>
10414
10415 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10416 gdb_byte *'.
10417 (make_wchar_iterator): Remove cast to char*.
10418 (wchar_iterate): Change type of local.
10419
a09b4448
PA
104202013-03-07 Pedro Alves <palves@redhat.com>
10421
10422 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10423 for 'regcache->register_status'.
10424
20ced3e4
PA
104252013-03-07 Pedro Alves <palves@redhat.com>
10426
c2d6a675 10427 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10428 int.
10429
fe106009
PA
104302013-03-07 Pedro Alves <palves@redhat.com>
10431
10432 * stap-probe.c (handle_stap_probe): Add cast to char*.
10433
8ac2c12b
PA
104342013-03-07 Pedro Alves <palves@redhat.com>
10435
10436 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10437 RECORD_MSGRCV>: Pass a signed variable to
10438 regcache_raw_read_signed, instead of an unsigned one.
10439
99f0a309
PA
104402013-03-07 Pedro Alves <palves@redhat.com>
10441
10442 * remote-notif.c (notif_debug): Change type to int.
10443 * remote-notif.h (notif_debug): Likewise.
10444
964b8317
PA
104452013-03-07 Pedro Alves <palves@redhat.com>
10446
10447 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10448
f0cc8ad4
PA
104492013-03-07 Pedro Alves <palves@redhat.com>
10450
10451 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10452 * remote.h (hex2bin, bin2hex): ... here.
10453 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10454
77dec115
EZ
104552013-03-07 Eli Zaretskii <eliz@gnu.org>
10456
10457 * utils.c (initialize_utils): Improve doc strings of "set/show
10458 width", "set/show height", and "set/show pagination".
10459
741d92cf
KS
104602013-03-06 Keith Seitz <keiths@redhat.com>
10461
10462 * ax-gdb.c (gen_printf): Make FORMAT const.
10463 * ax-gdb.h (gen_printf): Likewise.
10464 * ax-general.c (ax_string): Make STR const.
10465 * ax.h (ax_string): Likewise.
10466
7b6c814e
DE
104672013-03-06 Doug Evans <dje@google.com>
10468
10469 * elfread.c (elf_symfile_read): Move debugging printf to more
10470 logical location.
10471
634334ab
PA
104722013-03-06 Pedro Alves <palves@redhat.com>
10473
10474 * python/py-utils.c (target_string_to_unicode): Delete function.
10475 * python/python-internal.h (target_string_to_unicode): Delete
10476 declaration.
10477
e482a1a7
PM
104782013-03-06 Pierre Muller <muller@sourceware.org>
10479
10480 * linespec.c (get_current_search_block): ARI fix, use (void)
10481 for empty parameter list.
10482
4eeaa230
DE
104832013-03-05 Doug Evans <dje@google.com>
10484
10485 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10486 of old ada_lookup_symbol_list. In !full_search case, don't
10487 search superblocks.
10488 (ada_lookup_symbol_list): Delete arg full_search, all callers
10489 updated. Call ada_lookup_symbol_list_worker.
10490 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10491 * ada-lang.h (ada_lookup_symbol_list): Update.
10492 * language.h (language_defn): Update comment for
10493 la_iterate_over_symbols.
10494 * linespec.c (iterate_over_file_blocks): New function.
10495 (iterate_over_all_matching_symtabs): Call it.
10496 (lookup_prefix_sym): Ditto.
10497 (get_current_search_block): New function.
10498 (get_search_block): Delete.
10499 (find_label_symbols): Call get_current_search_block.
10500 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10501 * symtab.c (iterate_over_symbols): Don't search superblocks.
10502
b69b1fb1
YQ
105032013-03-05 Yao Qi <yao@codesourcery.com>
10504
10505 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10506 parameter VAR's type from "unsigned int" to "int".
10507 * command.h (var_zuinteger_unlimited): Update its comments.
10508 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10509
3c095f49
CV
105102013-03-05 Corinna Vinschen <vinschen@redhat.de>
10511
10512 * NEWS: Mention new target x86_64-*-cygwin*.
10513
b5b0b0af
CV
105142013-03-05 Corinna Vinschen <vinschen@redhat.de>
10515
10516 * configure.host: Add x86_64-*-cygwin* as host.
10517 * configure.tgt: Add x86_64-*-cygwin* as target.
10518 * config/i386/cygwin64.mh: New file.
10519
f6f99966
JK
105202013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10521
10522 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10523
33f448b1
JK
105242013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10525
10526 * linespec.c (struct linespec_canonical_name): New.
10527 (struct linespec_state): Change canonical_names type to it.
10528 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10529 xrealloc element size. Initialize the different CANONICAL fields.
10530 (canonical_to_fullform): New.
10531 (filter_results): Use it. Add variables canonical, fullform and
10532 cleanup.
10533 (struct decode_line_2_item, decode_line_2_compare_items): New.
10534 (decode_line_2): Remove variables iter and item_names, add variables
10535 items and items_count. Modify the code for these new variables.
10536
feb14725
CV
105372013-03-04 Corinna Vinschen <vinschen@redhat.com>
10538
10539 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10540 calling do_cleanup.
10541
e83b17ba
HZ
105422013-03-04 Luis Machado <lgustavo@codesourcery.com>
10543
10544 * tracepoint.c (build_traceframe_info): Add code for byte order.
10545
a2d13a0d
KB
105462013-03-02 Kevin Buettner <kevinb@redhat.com>
10547
8dddcae8
KB
10548 * v850-tdep.c: (v850e2_register_name): Revise system register
10549 names to match current V850E2M architecture specifications.
10550 Update register number enum comments too.
f5aee5ee 10551
d79e58d8
JW
105522013-03-01 Jiong Wang <jiwang@tilera.com>
10553 Pedro Alves <palves@redhat.com>
10554
10555 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10556 to END_ADDR.
10557 (tilegx_skip_prologue): Limit prologue analysis to section end.
10558
c4be5165
JK
105592013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10560
10561 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10562 use it.
10563
e362b510
PA
105642013-03-01 Pedro Alves <palves@redhat.com>
10565
10566 Use gdb_byte for bytes from the program being debugged.
10567
10568 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10569 Change type of local 'buf' to gdb_byte.
10570 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10571 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10572 * cris-tdep.c (cris_sigcontext_addr)
10573 (cris_sigtramp_frame_unwind_cache): Likewise.
10574 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10575 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10576 Likewise.
10577 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10578 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10579 (hppa32_hpux_search_dummy_call_sequence)
10580 (hppa_hpux_supply_save_state): Likewise.
10581 * hppa-linux-tdep.c (insns_match_pattern)
10582 (hppa_linux_find_global_pointer): Likewise.
10583 * hppa-tdep.c (hppa_in_function_epilogue_p)
10584 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10585 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10586 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10587 (i386fbsd_collect_uthread): Likewise.
10588 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10589 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10590 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10591 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10592 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10593 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10594 (ia64_libunwind_frame_prev_register)
10595 (ia64_libunwind_sigtramp_frame_this_id)
10596 (ia64_find_global_pointer_from_dynamic_section)
10597 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10598 (ia64_unwind_pc): Likewise.
10599 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10600 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10601 (m68hc11_extract_return_value): Likewise.
10602 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10603 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10604 (mep_get_insn, mep_push_dummy_call): Likewise.
10605 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10606 (mips_linux_in_dynsym_stub): Likewise.
10607 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10608 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10609 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10610 to gdb_byte.
10611 * remote-mips.c (mips_set_register): Likewise.
10612 * remote-sim.c (gdbsim_fetch_register): Likewise.
10613 * score-tdep.c (score7_fetch_inst): Change type of parameter
10614 'memblock' and local 'buf' to gdb_byte.
10615 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10616 Change type of local 'buf' to gdb_byte. Adjust.
10617 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10618 to gdb_byte**.
10619 (score7_analyze_prologue): Change type of 'memblock' and
10620 'memblock_ptr' locals to gdb_byte*.
10621 * sh64-tdep.c (sh64_extract_return_value)
10622 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10623 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10624 * solib-pa64.c (pa64_solib_create_inferior_hook)
10625 (pa64_open_symbol_file_object): Remove local 'buf'.
10626 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10627 (som_open_symbol_file_object): Likewise.
10628 * solib-spu.c (spu_current_sos): Likewise.
10629 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10630 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10631 (spu_store_registers): Likewise.
10632 * target.c (debug_print_register): Likewise.
10633 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10634 * xstormy16-tdep.c (xstormy16_store_return_value)
10635 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10636 (xstormy16_find_jmp_table_entry): Likewise.
10637
75cc61ca 106382013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10639
10640 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10641 (tilegx_gdbarch_init): Install it.
10642
ddb08e9c
TT
106432013-02-28 Tom Tromey <tromey@redhat.com>
10644
10645 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10646 PyLong_Check.
10647
62d7fb51
DE
106482013-02-28 Doug Evans <dje@google.com>
10649
10650 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10651 * python/python.c (gdbpy_find_pc_line): Ditto.
10652
c4a9e8b4
TT
106532013-02-28 Tom Tromey <tromey@redhat.com>
10654
10655 * contrib/excheck.py: New file.
10656 * contrib/exsummary.py: New file.
10657 * contrib/gcc-with-excheck: New file.
10658
7f6a5dde
TT
106592013-02-28 Tom Tromey <tromey@redhat.com>
10660
10661 * python/python.c (gdbpy_print_stack): Call begin_line and
10662 fprintf_filtered inside TRY_CATCH.
10663
9e974e55
TT
106642013-02-28 Tom Tromey <tromey@redhat.com>
10665
10666 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10667 inside TRY_CATCH.
10668
dd5fa3e7
TT
106692013-02-28 Tom Tromey <tromey@redhat.com>
10670
10671 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10672 frame_object_to_frame_info inside TRY_CATCH.
10673
86a3263f
TT
106742013-02-28 Tom Tromey <tromey@redhat.com>
10675
10676 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10677 TRY_CATCH.
10678
81b52a3a
TT
106792013-02-28 Tom Tromey <tromey@redhat.com>
10680
10681 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10682
d50a0ce2
CV
106832013-02-27 Corinna Vinschen <vinschen@redhat.com>
10684
10685 * windows-nat.c: Throughout, fix format strings and casts of
10686 printf-like functions to avoid type related warnings on all
10687 platforms.
10688 (handle_output_debug_string): Fetch context information address
10689 from debug string using string_to_core_addr.
10690
e1f58301
JW
106912013-02-27 Jiong Wang <jiwang@tilera.com>
10692
10693 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10694 * regformats/reg-tilegx32.dat: New.
10695
4fcd89fc
JW
106962013-02-27 Jiong Wang <jiwang@tilera.com>
10697
10698 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10699
748d24e6
JW
107002013-02-27 Jiong Wang <jiwang@tilera.com>
10701
10702 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10703
6c8e944d
YQ
107042013-02-27 Yao Qi <yao@codesourcery.com>
10705 Pedro Alves <palves@redhat.com>
10706
10707 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10708 pc/tp/range/outside, look for the next trace frame instead of
10709 always starting from frame 0.
6c8e944d 10710
acd7db30
AG
107112013-02-26 Anthony Green <green@moxielogic.com>
10712
10713 * configure.tgt: Add support for moxie-*-rtems* target.
10714
025e6dce
PA
107152013-02-25 Pedro Alves <palves@redhat.com>
10716
10717 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10718 warning text.
10719
ca9c94ef
MR
107202013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10721
10722 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10723 if $fp is used as the virtual frame pointer.
10724
24c274a1
AM
107252013-02-23 Alan Modra <amodra@gmail.com>
10726
10727 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10728 symbol size.
10729 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10730 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10731 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10732 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10733
bfada189
JK
107342013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10735
10736 Code cleanup.
10737 * elfread.c (build_id_bfd_get): Make the return type const.
10738 (build_id_verify): Make the check parameter const.
10739 (build_id_to_debug_filename): Make the build_id parameter and variable
10740 data const.
10741 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10742
c0355132
AM
107432013-02-21 Alan Modra <amodra@gmail.com>
10744
10745 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10746
9f44fbc0
SCR
107472013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10748
10749 Add a new method 'disassemble' to gdb.Architecture class.
10750 * python/py-arch.c (archpy_disassmble): Implementation of the
10751 new method gdb.Architecture.disassemble.
10752 (arch_object_methods): Add entry for the new method.
10753
b74ea3eb
JW
107542013-02-20 Jiong Wang <jiwang@tilera.com>
10755
10756 * MAINTAINERS (Write After Approval): Add myself to the list.
10757
61a672f1
PA
107582013-02-19 Pedro Alves <palves@redhat.com>
10759
10760 Garbage collect 'struct monitor_ops'::load_routine.
10761
10762 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10763 * monitor.c (monitor_load): No longer call
10764 current_monitor->load_routine.
10765 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10766 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10767 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10768
40e397df
PA
107692013-02-19 Pedro Alves <palves@redhat.com>
10770
10771 PR gdb/15161
10772
10773 Harmonize with generic_load.
10774
10775 * monitor.c: Include "readline/readline.h".
10776 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10777 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10778 long/strtol for the 'load_offset' local. Error out if no argument
10779 is given or if too many arguments are given. Tilde expand the
10780 passed in file name.
10781
f698ca8e
KT
107822013-02-19 Kai Tietz <ktietz@redhat.com>
10783
10784 PR gdb/15161
10785 * symfile.c (load_section_data): Change type of load_offset
10786 to CORE_ADDR.
10787 (generic_load): User strtoulst instead of strtoul for conversion
10788 of load_offset.
10789
3361b059
WL
107902013-02-19 Jiong Wang <jiwang@tilera.com>
10791
10792 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10793 for return address, "lr" register, saved on stack.
10794 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10795 after we invoke tilegx_analyze_prologue.
10796
3e9d5130
WL
107972013-02-19 Jiong Wang <jiwang@tilera.com>
10798
bb1bcd86
WL
10799 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10800
3361b059 108012013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10802
b74ea3eb 10803 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10804
4aaf2503
WL
108052013-02-19 Jiong Wang <jiwang@tilera.com>
10806
b74ea3eb 10807 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10808 (tilegx_write_pc): New function.
10809 (tilegx_cannot_reference_register): Return zero if REGNO
10810 is TILEGX_FAULTNUM_REGNUM.
10811 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10812 (tilegx_register_name): Add handling of "faultnum" register.
10813 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10814 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10815 handling of TILEGX_FAULTNUM_REGNUM.
10816 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10817
bc23a956
WL
108182013-02-19 Jiong Wang <jiwang@tilera.com>
10819
10820 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10821 should be aligned to 64bit.
bc23a956 10822
42f45f1a
KT
108232013-02-19 Kai Tietz <ktietz@redhat.com>
10824
10825 * windows-nat.c (windows_xfer_memory): Fix debug-output
10826 for LLP64.
10827
6ce4c112
LL
108282013-02-19 Lei Liu <lei.liu2@windriver.com>
10829
10830 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10831 Don't check DSP register number if HAVE_DSP is not set.
10832
30e8ee25
AM
108332013-02-19 Alan Modra <amodra@gmail.com>
10834
10835 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10836 throughout file instead.
10837 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10838 Don't xmalloc return value.
10839 (build_id_verify): Similarly. Don't xfree.
10840 (build_id_to_debug_filename): Update.
10841 (find_separate_debug_file_by_buildid): Update, don't xfree.
10842
4c9ad8c2
TT
108432013-02-18 Tom Tromey <tromey@redhat.com>
10844
10845 PR gdb/15102:
10846 * dwarf2read.c (read_subrange_type): Use result of
10847 'check_typedef'.
10848
983dc440
YQ
108492013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10850
10851 * frame.c: Remove one extra white space after #include
10852 directive.
10853
7fb2b84a
JK
108542013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10855
10856 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10857
edceb2a9
JK
108582013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10859
10860 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10861 and dir commands into an if block.
10862
e81b7af8
TT
108632013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10864
10865 * python/py-breakpoint (struct pybp_code): Use int instead of
10866 enum type_code.
10867
f5911ea1
HAQ
108682013-02-15 Pedro Alves <pedro@codesourcery.com>
10869 Hafiz Abid Qadeer <abidh@codesourcery.com>
10870
10871 * NEWS: Mention new field "trace-file".
10872 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10873 (tfile_open): Record the trace file's filename in the trace
10874 status.
10875 (tfile_files_info): Mention the name of the trace file.
10876 Check the "filename" field explicitely.
10877 (trace_status_command): Explicitely check "filename" field.
10878 (trace_find_command): Ditto.
10879 (trace_find_pc_command): Ditto.
10880 (trace_find_tracepoint_command): Ditto.
10881 (trace_find_line_command): Ditto.
10882 (trace_find_range_command): Ditto.
10883 (trace_find_outside_command): Ditto.
10884 * tracepoint.h (struct trace_status) <from_file>: Rename it
10885 to "filename" and make it hold the trace file's filename
10886 instead of a boolean.
10887 * remote.c (remote_get_trace_status): Initialize "filename"
10888 field with NULL instead of 0.
10889
796cb314
YQ
108902013-02-15 Yao Qi <yao@codesourcery.com>
10891
10892 * remote.c: Fix a typo.
10893
42e79b1d
PM
108942013-02-14 Pierre Muller <muller@sourceware.org>
10895
10896 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10897
baea0dae
PA
108982013-02-14 Pedro Alves <palves@redhat.com>
10899
10900 * utils.c (savestring): Don't #undef it. Move function to
10901 common/common-utils.c.
10902 * common/common-utils.c: Include gdb_string.h.
10903 (savestring): Move here from utils.c.
10904 * common/common-utils.h (savestring): Declare.
10905
57c3b6ed
PA
109062013-02-14 Pedro Alves <palves@redhat.com>
10907
10908 * utils.c (savestring): Rename parameter 'size' to 'len'.
10909
d6c44983
YZ
109102013-02-14 Pedro Alves <palves@redhat.com>
10911 Yufeng Zhang <yufeng.zhang@arm.com>
10912
10913 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10914 (aarch64_inferior_data, struct aarch64_inferior_data):
10915 Delete.
10916 (struct aarch64_process_info): New.
10917 (aarch64_process_list): New global.
10918 (aarch64_find_process_pid, aarch64_add_process)
10919 (aarch64_process_info_get): New functions.
10920 (aarch64_inferior_data_get): Delete.
10921 (aarch64_process_info_get): New function.
10922 (aarch64_forget_process): New function.
10923 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10924 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10925 aarch64_get_debug_reg_state.
10926 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10927 instead of linux_nat_iterate_watchpoint_lwps.
10928 (aarch64_linux_new_fork): New function.
10929 (aarch64_linux_child_post_startup_inferior): Use
10930 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10931 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10932 (aarch64_linux_remove_hw_breakpoint)
10933 (aarch64_handle_aligned_watchpoint)
10934 (aarch64_handle_unaligned_watchpoint)
10935 (aarch64_linux_insert_watchpoint)
10936 (aarch64_linux_remove_watchpoint)
10937 (aarch64_linux_stopped_data_address): Adjust to pass the current
10938 process id to aarch64_debug_reg_state.
10939 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10940 linux_nat_new_fork hook, and aarch64_forget_process as
10941 linux_nat_forget_process hook; remove the call to
10942 register_inferior_data_with_cleanup.
10943
4819b3f8
PA
109442013-02-14 Pedro Alves <palves@redhat.com>
10945
10946 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10947 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10948 lval_memory.
10949
1773c82c
HAQ
109502013-02-14 Pedro Alves <pedro@codesourcery.com>
10951 Hafiz Abid Qadeer <abidh@codesourcery.com>
10952
10953 * tracepoint.h (validate_trace_state_variable_name): Declare.
10954 * tracepoint.c (validate_trace_state_variable_name): New.
10955 (trace_variable_command): Parse the trace state variable's name
10956 without using parse_expression. Do several validations.
10957 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10958 trace state variable's name with parse_expression. Validate it.
10959
53778a97
YQ
109602013-02-14 Yao Qi <yao@codesourcery.com>
10961
10962 * infcmd.c (breakpoint_proceeded): Remove it.
10963
7b3ae3a6
YQ
109642013-02-14 Yao Qi <yao@codesourcery.com>
10965
10966 * tracepoint.c (end_actions_pseudocommand): Make it static.
10967 (while_stepping_pseudocommand): Likewise.
10968 * tracepoint.h (end_actions_pseudocommand): Remove the
10969 declaration.
10970 (while_stepping_pseudocommand): Likewise.
10971
64580925
YQ
109722013-02-14 Yao Qi <yao@codesourcery.com>
10973
10974 * cli/cli-decode.c (help_cmd): Remove the declaration of
10975 "cmdlist".
10976 (help_all): Likewise.
10977
26cb8b7c
PA
109782013-02-13 Pedro Alves <palves@redhat.com>
10979
10980 * amd64-linux-nat.c (update_debug_registers_callback):
10981 Update comment.
10982 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10983 iterate_over_lwps.
10984 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10985 i386_debug_reg_state.
10986 (amd64_linux_new_fork): New function.
10987 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10988 linux_nat_new_fork hook, and i386_forget_process as
10989 linux_nat_forget_process hook.
10990 * i386-linux-nat.c (update_debug_registers_callback):
10991 Update comment.
a8256ea1 10992 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10993 iterate_over_lwps.
10994 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10995 i386_debug_reg_state.
10996 (i386_linux_new_fork): New function.
10997 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10998 linux_nat_new_fork hook, and i386_forget_process as
10999 linux_nat_forget_process hook.
11000 * i386-nat.c (i386_init_dregs): Delete.
11001 (i386_inferior_data, struct i386_inferior_data):
11002 Delete.
11003 (struct i386_process_info): New.
11004 (i386_process_list): New global.
11005 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11006 New functions.
11007 (i386_inferior_data_get): Delete.
11008 (i386_process_info_get): New function.
11009 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11010 (i386_forget_process): New function.
11011 (i386_cleanup_dregs): Rewrite.
11012 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11013 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11014 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11015 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11016 to i386_debug_reg_state.
11017 (i386_use_watchpoints): Don't register inferior data.
11018 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11019 adjust comment.
11020 (i386_forget_process): Declare.
11021 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11022 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11023 New static globals.
11024 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11025 (add_initial_lwp): New, factored out from ...
11026 (add_lwp): ... this. Don't check the number of lwps before
11027 calling linux_nat_new_thread.
11028 (linux_nat_iterate_watchpoint_lwps): Delete.
11029 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11030 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11031 forks and vforks.
11032 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11033 initial lwp.
11034 (linux_nat_kill, linux_nat_mourn_inferior): Call
11035 linux_nat_forget_process.
11036 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11037 (linux_nat_forget_process): New functions.
11038 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11039 type.
11040 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11041 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11042 types.
11043 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11044 (linux_nat_forget_process): New declarations.
11045
11046 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11047 (amd64fbsd_mourn_inferior): New function.
11048 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11049 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11050
5befea72
MS
110512013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11052
55015247
YQ
11053 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11054 Adding _().
5befea72 11055
1d3ffd6b
MS
110562013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11057
11058 * aarch64-linux-nat.c (debug_reg_change_callback)
11059 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11060 %s and phex().
11061
6eb04473
MS
110622013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11063
11064 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11065 with LONGEST.
11066
a016fc87
HAQ
110672013-02-13 Pedro Alves <palves@redhat.com>
11068 Hafiz Abid Qadeer <abidh@codesourcery.com>
11069
11070 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11071
e234dfaf
TT
110722013-02-12 Tom Tromey <tromey@redhat.com>
11073
11074 PR symtab/11464:
11075 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11076 NAME return.
11077 (classify_inner_name): Remove 'first_name' argument, add
11078 'context'. Remove unused variable.
11079 (yylex): Explicitly maintain the context type. Exit loop earlier
11080 if NAME result is seen.
11081
0b1afbb3
PA
110822013-02-12 Pedro Alves <palves@redhat.com>
11083
11084 * amd64-darwin-tdep.c: Add (C) after Copyright.
11085 * cli/cli-cmds.h: Ditto.
11086 * cli/cli-decode.c: Ditto.
11087 * cli/cli-decode.h: Ditto.
11088 * cli/cli-dump.c: Ditto.
11089 * cli/cli-dump.h: Ditto.
11090 * cli/cli-interp.c: Ditto.
11091 * cli/cli-logging.c: Ditto.
11092 * cli/cli-script.c: Ditto.
11093 * cli/cli-script.h: Ditto.
11094 * cli/cli-setshow.c: Ditto.
11095 * cli/cli-setshow.h: Ditto.
11096 * cli/cli-utils.c: Ditto.
11097 * cli/cli-utils.h: Ditto.
11098 * config/alpha/nm-osf3.h: Ditto.
11099 * config/djgpp/djconfig.sh: Ditto.
11100 * config/i386/nm-fbsd.h: Ditto.
11101 * config/i386/nm-i386gnu.h: Ditto.
11102 * config/nm-linux.h: Ditto.
11103 * config/nm-nto.h: Ditto.
11104 * config/rs6000/nm-rs6000.h: Ditto.
11105 * config/sparc/nm-sol2.h: Ditto.
11106 * darwin-nat-info.c: Ditto.
11107 * dfp.c: Ditto.
11108 * dfp.h: Ditto.
11109 * gdb-demangle.h: Ditto.
11110 * i386-darwin-nat.c: Ditto.
11111 * i386-darwin-tdep.c: Ditto.
11112 * linux-fork.h: Ditto.
11113 * m32c-tdep.c: Ditto.
11114 * microblaze-linux-tdep.c: Ditto.
11115 * microblaze-rom.c: Ditto.
11116 * microblaze-tdep.c: Ditto.
11117 * microblaze-tdep.h: Ditto.
11118 * mips-linux-tdep.h: Ditto.
11119 * ppc-ravenscar-thread.c: Ditto.
11120 * ppc-ravenscar-thread.h: Ditto.
11121 * prologue-value.c: Ditto.
11122 * prologue-value.h: Ditto.
11123 * ravenscar-thread.c: Ditto.
11124 * ravenscar-thread.h: Ditto.
11125 * sparc-ravenscar-thread.c: Ditto.
11126 * sparc-ravenscar-thread.h: Ditto.
11127 * tilegx-linux-tdep.c: Ditto.
11128 * unwind_stop_reasons.def: Ditto.
11129 * windows-nat.h: Ditto.
11130 * xtensa-linux-tdep.c: Ditto.
11131 * xtensa-xtregs.c: Ditto.
11132 * regformats/regdat.sh: Ditto.
11133 * regformats/regdef.h: Ditto.
11134
6c01dd94
PA
111352013-02-12 Pedro Alves <palves@redhat.com>
11136
11137 * break-catch-sig.c: Update copyright years.
11138
b65a2bd9
SCR
111392013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11140
11141 Add support for a destructor for ui_out data and use it to
11142 provide a ui_out destructor.
11143 * ui-out.h: Declare the new ui_out destructor.
11144 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11145 * ui-out.c (default_data_destroy): Add a default data destructor
11146 which does nothing.
11147 (default_ui_out_impl): Set the new data_destroy field to
11148 default_data_destroy
11149 (uo_data_destroy): Local function which invokes the data
11150 destructor if present.
11151 (clear_table): Local function which clears the table data of a
11152 ui_out object.
11153 (ui_out_destroy): Public function which frees a ui_out object.
11154 (ui_out_table_end): Use the new clear_table function.
11155 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11156 NULL.
11157 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11158 to NULL.
11159
c2792f5a
DE
111602013-02-11 Doug Evans <dje@google.com>
11161
11162 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11163 (printf_decfloat): New function. Broken out from ui_printf.
11164 Remove unnecessary code to shift the entire format string down.
11165 (printf_pointer): New function.
11166 (ui_printf): Code to print C strings, wide C strings, decfloats,
11167 and pointers moved to separate functions.
11168
d9e98382
SDJ
111692013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11170
11171 * valops.c (value_assign): Handling bitfield offset in
11172 `lval_internalvar_component' case.
11173
4ff3ce77
DE
111742013-02-08 Doug Evans <dje@google.com>
11175
11176 * common/format.c (parse_format_string): Fix whitespace.
11177
901900c4
MGD
111782013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11179
11180 * stack.c (return_command): Work around uninitialized variable
11181 warning.
11182
b5dbc8d4
YZ
111832013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11184
11185 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11186 number of the registers from 36 to 34.
11187
51d66578
MS
111882013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11189
11190 * NEWS: Mention new AArch64 native and target support.
11191
176b1c95
MS
111922013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11193
11194 * MAINTAINERS (Write After Approval): Add myself.
11195
9d19df75
MS
111962013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11197 Marcus Shawcroft <marcus.shawcroft@arm.com>
11198 Nigel Stephens <nigel.stephens@arm.com>
11199 Yufeng Zhang <yufeng.zhang@arm.com>
11200
11201 * aarch64-linux-nat.c: New file.
11202 * config/aarch64/linux.mh: New file.
11203 * configure.host: Add AArch64.
11204 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11205
7e1e0340
DE
112062013-02-07 Doug Evans <dje@google.com>
11207
11208 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11209 disassemble command.
11210
45e25a36
MS
112112013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11212
11213 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11214 set_gdbarch_fetch_tls_load_module_address.
11215
bbfdfe1c
DM
112162013-02-06 David S. Miller <davem@davemloft.net>
11217
11218 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11219 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11220 * value.c (struct_return_convention): New function.
11221 (using_struct_return): Implement in terms of struct_return_convention.
11222 * value.h (struct_return_convention): Declare.
11223 * stack.c (return_command): Allow successful overriding of the return
11224 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11225
bc9abe4a
TT
112262013-02-06 Tom Tromey <tromey@redhat.com>
11227
11228 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11229 outside of TRY_CATCH.
11230
134a2066
YQ
112312013-02-06 Yao Qi <yao@codesourcery.com>
11232
11233 * mi/mi-interp.c: Include "tracepoint.h".
11234 (mi_tsv_modified): Declare.
11235 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11236 (mi_interpreter_init): Call observer_attach_tsv_modified.
11237 (mi_tsv_modified): New.
11238 (mi_tsv_created, mi_tsv_deleted): Update.
11239 * tracepoint.c (trace_variable_command): Call
11240 observer_notify_tsv_modified if the initial value of tsv is
11241 changed.
11242 (delete_trace_state_variable): Call
11243 observer_notify_tsv_deleted earlier.
11244 (trace_variable_command): Caller update.
11245 (create_tsv_from_upload): Likewise.
11246 * observer.sh: Declare "struct trace_state_variable".
11247
11248 * NEWS: Mention the new MI notification "=tsv-modified".
11249
59be2b6a
DE
112502013-02-05 Doug Evans <dje@google.com>
11251
11252 * completer.c (location_completer): Fix typo in comment.
11253
d30113d4
JK
112542013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11255
11256 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11257 ADDRESS sorted.
11258
14ac654f
MS
112592013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11260
11261 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11262 Refactor if statement to avoid trailing || operator.
11263
543bf33d
AT
112642013-02-05 Andreas Tobler <andreast@fgznet.ch>
11265
11266 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11267
dc18f110
AT
112682013-02-04 Andreas Tobler <andreast@fgznet.ch>
11269
11270 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11271 * configure.host: Add powerpc*-*-freebsd* target.
11272 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11273 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11274 * config/powerpc/fbsd.mh: New file.
11275
b3ac9c77
SDJ
112762013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11277 Denys Vlasenko <dvlasenk@redhat.com>
11278 Pedro Alves <palves@redhat.com>
11279
11280 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11281 (struct elf_internal_linux_prpsinfo): Forward declare.
11282 * gdbarch.h, gdbarch.c: Regenerate.
11283 * linux-tdep.c: Include `cli/cli-utils.h'.
11284 (linux_fill_prpsinfo): New function.
11285 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11286 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11287 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11288 depending on gdbarch pointer bitness.
11289 * ppc-linux-tdep.c: Include elf-bfd.h.
11290 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11291 on 32-bit.
11292
176eb98c
MS
112932013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11294 Marcus Shawcroft <marcus.shawcroft@arm.com>
11295 Nigel Stephens <nigel.stephens@arm.com>
11296 Yufeng Zhang <yufeng.zhang@arm.com>
11297
11298 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11299
cf0dbd6f
MS
113002013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11301 Marcus Shawcroft <marcus.shawcroft@arm.com>
11302 Nigel Stephens <nigel.stephens@arm.com>
11303 Yufeng Zhang <yufeng.zhang@arm.com>
11304
11305 * aarch64-newlib-tdep.c: New file.
11306 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11307 aarch64*-*-elf.
11308 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11309 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11310 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11311 * osabi.c (gdb_osabi_names): Add "Newlib".
11312
1ae3db19
MS
113132013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11314 Marcus Shawcroft <marcus.shawcroft@arm.com>
11315 Nigel Stephens <nigel.stephens@arm.com>
11316 Yufeng Zhang <yufeng.zhang@arm.com>
11317
11318 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11319 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11320 * aarch64-linux-tdep.c: New file.
11321 * aarch64-linux-tdep.h: New file.
11322 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11323 * configure.tgt: Add aarch64-none-linux-gnu.
11324
07b287a0
MS
113252013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11326 Marcus Shawcroft <marcus.shawcroft@arm.com>
11327 Nigel Stephens <nigel.stephens@arm.com>
11328 Yufeng Zhang <yufeng.zhang@arm.com>
11329
11330 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11331 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11332 (ALLDEPFILES): Add aarch64-tdep.c.
11333 * aarch64-tdep.c: New file.
11334 * aarch64-tdep.h: New file.
11335 * configure.tgt: Add AArch64.
11336 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11337 (aarch64-expedite): New definition.
11338 * features/aarch64-core.xml: New file.
11339 * features/aarch64-fpu.xml: New file.
11340 * features/aarch64-without-fpu.c: New file (generated).
11341 * features/aarch64-without-fpu.xml: New file.
11342 * features/aarch64.c: New file (generated).
11343 * features/aarch64.xml: New file.
11344 * regformats/aarch64-without-fpu.dat: New file (generated).
11345 * regformats/aarch64.dat: New file (generated).
11346
0f1b18ab
JK
113472013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11348
11349 * contrib/expect-read1.c: New file.
11350 * contrib/expect-read1.sh: New file.
11351
233d95b5
JK
113522013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11353
11354 * dwarf2read.c (file_file_name): New function with code from
11355 file_full_name.
11356 (file_full_name): Move most of the code to file_file_name.
11357 (macro_start_file): Rename variable full_name to file_name and use
11358 file_file_name for it. Add comp_dir parameter to new_macro_table.
11359 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11360 macro_source_file->filename access by macro_source_fullname call.
11361 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11362 caller.
11363 * macrotab.c (struct macro_table): New field comp_dir.
11364 (macro_include): New variables link_fullname and source_fullname.
11365 Replace any macro_source_file->filename access by macro_source_fullname
11366 call.
11367 (macro_lookup_inclusion): Remove the partial filenames checking code.
11368 (check_for_redefinition): New variables source_fullname and
11369 found_key_fullname. Replace any macro_source_file->filename access by
11370 macro_source_fullname call.
11371 (macro_undef): New variables source_fullname and key_fullname. Replace
11372 any macro_source_file->filename access by macro_source_fullname call.
11373 (macro_lookup_definition): New variables retval and source_fullname.
11374 Replace any macro_source_file->filename access by macro_source_fullname
11375 call.
11376 (foreach_macro): New variable key_fullname. Replace any
11377 macro_source_file->filename access by macro_source_fullname call.
11378 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11379 macro_source_file->filename access by macro_source_fullname call.
11380 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11381 (macro_source_fullname): New function.
11382 * macrotab.h (struct macro_source_file): Extent the filename field
11383 comment.
11384 (new_macro_table): New parameter comp_dir, add a comment for it.
11385 (macro_source_fullname): new declaration.
11386
da235a7c
JK
113872013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11388
11389 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11390 this_real_name to outer block. Use it also for
11391 compare_filenames_for_search.
11392 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11393 with dw2_get_real_path for file_matcher, considering also
11394 BASENAMES_MAY_DIFFER.
11395 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11396
fbd9ab74
JK
113972013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11398
11399 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11400 to the file_matcher parameter. Pass 0 to it.
11401 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11402 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11403 NULL psymtab_to_fullname result.
11404 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11405 an expected filename instead.
11406 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11407 file_matcher parameter. Call also psymtab_to_fullname, after newly
11408 considering BASENAMES_MAY_DIFFER.
11409 * source.c (rewrite_source_path): Remove static.
11410 * source.h (rewrite_source_path): New declaration.
11411 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11412 the expand_symtabs_matching field. Comment it.
11413 * symtab.c (file_matches): New function comment. Add parameter
11414 basenames, implement it.
11415 (search_symbols_file_matches): Add basenames parameter. Update the
11416 file_matches caller.
11417 (search_symbols): Match FILES also against symtab_to_fullname.
11418 Optimize it for BASENAMES_MAY_DIFFER.
11419
56d397a3
JK
114202013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11421
11422 * source.c (print_source_lines_base): Print for TUI also "fullname".
11423 * tui/tui-data.c (init_content_element): Change tui_locator_element
11424 field to full_name.
11425 * tui/tui-data.h (struct tui_locator_element): Likewise.
11426 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11427 tui_update_locator_filename calls to tui_update_locator_fullname.
11428 Replace symtab->filename refererence by symtab_to_fullname call.
11429 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11430 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11431 field to full_name. Replace symtab->filename refererence by
11432 symtab_to_fullname call.
11433 (tui_show_symtab_source): Rename parameter to fullname. Change
11434 tui_locator_element field to full_name.
11435 * tui/tui-stack.c: Include source.h.
11436 (tui_set_locator_filename): Rename the declaration to ...
11437 (tui_set_locator_fullname): ... here. Rename its parameter to
11438 fullname, updates its comment.
11439 (tui_set_locator_info): Rename its parameter to fullname.
11440 (tui_set_locator_filename): Rename the definition to ...
11441 (tui_set_locator_fullname): ... here. Rename its parameter to
11442 fullname, updates its comment. Change tui_locator_element field to
11443 full_name.
11444 (tui_set_locator_info): Rename its parameter to fullname.
11445 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11446 (tui_update_locator_filename): Rename to ...
11447 (tui_update_locator_fullname): ... here. Rename callee to
11448 tui_set_locator_fullname.
11449 (tui_show_frame_info): Replace symtab->filename refererence by
11450 symtab_to_fullname call.
11451 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11452 (tui_update_locator_fullname): ... here.
11453 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11454 tui_update_locator_fullname. Replace symtab->filename refererence by
11455 symtab_to_fullname call.
11456 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11457 Rename the callee to tui_update_locator_fullname.
11458 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11459
05cba821
JK
114602013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11461
11462 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11463 by symtab_to_filename_for_display calls.
11464 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11465 (clear_command): New variable sal_fullname, initialize it. Replace
11466 compare_filenames_for_search by filename_cmp with sal_fullname.
11467 (say_where, update_static_tracepoint): Replace symtab->filename
11468 refererences by symtab_to_filename_for_display calls.
11469 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11470 Likewise.
11471 * dwarf2read.c: Include source.h.
11472 (fixup_go_packaging): Replace symtab->filename refererences by
11473 symtab_to_filename_for_display calls.
11474 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11475 Replace symtab->filename refererences by symtab_to_filename_for_display
11476 calls.
11477 (create_sals_line_offset, convert_linespec_to_sals): New variable
11478 fullname, initialize it, replace symtab->filename reference by the
11479 variable.
11480 * linux-fork.c: Include source.h.
11481 (info_checkpoints_command): Replace symtab->filename refererences by
11482 symtab_to_filename_for_display calls.
11483 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11484 by symtab_to_filename_for_display calls.
11485 * mdebugread.c: Include source.h.
11486 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11487 symtab_to_filename_for_display calls.
11488 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11489 (mi_cmd_file_list_exec_source_files): Likewise.
11490 * printcmd.c: Include source.h.
11491 (build_address_symbolic): Replace symtab->filename refererences by
11492 symtab_to_filename_for_display calls.
11493 * psymtab.c (partial_map_symtabs_matching_filename)
11494 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11495 with psymtab_to_fullname.
11496 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11497 by symtab_to_filename_for_display calls.
11498 (stpy_get_filename): New variable filename, initialize it, use instead
11499 of symtab->filename refererences.
11500 (salpy_str): Make variable filename const char *. Replace
11501 symtab->filename refererences by symtab_to_filename_for_display calls.
11502 * skip.c: Include source.h and filenames.h.
11503 (skip_file_command): Remove const from the symtab variable. Replace
11504 symtab->filename refererences by symtab_to_fullname call.
11505 (function_name_is_marked_for_skip): New variables searched_for_fullname
11506 and fullname. Use them to search also with symtab's fullname.
11507 * source.c (find_source_lines): Replace symtab->filename refererences
11508 by symtab_to_filename_for_display calls.
11509 (print_source_lines_base): New variable filename, use it instead of
11510 symtab->filename. Replace symtab->filename refererences by
11511 symtab_to_filename_for_display calls.
11512 (line_info, forward_search_command): Replace symtab->filename
11513 refererences by symtab_to_filename_for_display calls.
11514 (reverse_search_command): Replace symtab->filename refererences by
11515 symtab_to_filename_for_display calls. New variable filename for it.
11516 * stack.c (frame_info): Likewise.
11517 * symmisc.c: Include source.h.
11518 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11519 (maintenance_info_symtabs): Replace symtab->filename refererences by
11520 symtab_to_filename_for_display calls.
11521 * symtab.c (iterate_over_some_symtabs): Call
11522 compare_filenames_for_search also with symtab_to_fullname.
11523 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11524 symtab->filename refererences by symtab_to_filename_for_display calls.
11525 (find_line_symtab): Replace symtab->filename refererences by
11526 symtab_to_filename_for_display calls.
11527 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11528 (print_symbol_info): Make the last parameter const char *. New
11529 variable s_filename. Use it in the function.
11530 (symtab_symbol_info): Make the last_filename variable const char *.
11531 Replace symtab->filename refererences by symtab_to_filename_for_display
11532 calls.
11533 (rbreak_command): New variable fullname. Use it. Replace
11534 symtab->filename refererence by symtab_to_filename_for_display call.
11535 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11536 (print_one_static_tracepoint_marker): Replace symtab->filename
11537 refererences by symtab_to_filename_for_display calls.
11538 * tui/tui-source.c (tui_set_source_content): New variables filename and
11539 s_filename. Replace symtab->filename refererences by this variable.
11540 Replace other symtab->filename refererences by
11541 symtab_to_filename_for_display calls.
11542
1b56eb55
JK
115432013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11544 Jan Kratochvil <jan.kratochvil@redhat.com>
11545
11546 Add a new variable that controls a way in which filenames are
11547 displayed.
11548 * NEWS (set filename-display): New entry.
11549 * source.c (filename_display_basename, filename_display_relative)
11550 (filename_display_absolute, filename_display_kind_names)
11551 (filename_display_string, show_filename_display_string)
11552 (symtab_to_filename_for_display): New.
11553 (_initialize_source): Added initialization of 'filename-display'
11554 variable.
11555 * source.h (symtab_to_filename_for_display): Added declaration.
11556 * stack.c (print_frame): Added new variable and calling of a new
11557 function and condition with this variable. Changed third argument of
11558 calling of a function.
11559
aa079c93
JK
115602013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11561
11562 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11563 Rename field reference filename to fullname.
11564 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11565 fullname. New comment for it.
11566 * tui/tui-source.c (tui_set_source_content): Rename field reference
11567 filename to fullname. Initialize field by symtab_to_fullname now.
11568 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11569 reference filename to fullname. Use symtab_to_fullname during
11570 comparison.
11571
652a8996
JK
115722013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11573
11574 Code cleanup.
11575 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11576 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11577 filename to fullname. Rename variable this_name to this_fullname.
11578 Lowercase FILENAME_CMP call.
11579 (dw2_find_symbol_file): New comment for the returned string.
11580 (dwarf2_gdb_index_functions): Rename the function to
11581 dw2_expand_symtabs_with_fullname.
11582 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11583 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11584 fullname.
11585 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11586 * symfile.h (struct quick_symbol_functions): Rename field
11587 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11588 parameter filename to fullname. Document returned string meaning for
11589 find_symbol_file.
11590 * symtab.c (find_line_symtab): Rename the called function to
11591 expand_symtabs_with_fullname.
11592
af529f8f
JK
115932013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11594
11595 Code cleanup.
11596 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11597 call of filename_cmp with compare_filenames_for_search.
11598 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11599 is_abs, unify the call of FILENAME_CMP with
11600 compare_filenames_for_search. New gdb_asserts for real_path and name.
11601 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11602 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11603 * symfile.h (struct quick_symbol_functions): Extend the comment for
11604 map_symtabs_matching_filename.
11605 * symtab.c (compare_filenames_for_search): Remove the function comment
11606 relative path requirement. Handle absolute filenames, with a comment.
11607 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11608 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11609 real_path and name. Unify the call of compare_filenames_for_search
11610 with FILENAME_CMP.
11611 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11612
2f202fde
JK
116132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11614
11615 Code cleanup.
11616 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11617 source_file references by symtab field references. Remove variables
11618 sal and fullname.
11619 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11620 (clear_command, say_where): Replace bp_location field source_file
11621 references by symtab field references.
11622 (bp_location_dtor): Remove the source_file reference.
11623 (update_static_tracepoint): Replace bp_location field source_file
11624 references by symtab field references.
11625 (breakpoint_free_objfile): New function.
11626 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11627 Replace the field source_file by field symtab, extend its comment.
11628 (breakpoint_free_objfile): New declaration.
11629 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11630 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11631 field source_file references by symtab field references.
11632
f5b95b50
JK
116332013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11634
11635 Replace xfullpath calls by gdb_realpath calls.
11636 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11637 function comment.
11638 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11639 Remove it from the iterate_over_some_symtabs call.
11640 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11641 Remove it from the dw2_map_expand_apply calls, remove a block handling
11642 it.
11643 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11644 Remove it from the iterate_over_some_symtabs call.
11645 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11646 Remove it from the partial_map_expand_apply calls, remove a block
11647 handling it. Drop gdb_realpath call and cleanups from the real_path
11648 handling.
11649 * source.c (openp): Drop the comment part about xfullpath. Replace
11650 xfullpath calls by gdb_realpath calls.
11651 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11652 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11653 from method map_symtabs_matching_filename and its comment.
11654 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11655 gdb_realpath call.
11656 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11657 remove it also from the function comment, remove a block handling it.
11658 Drop gdb_realpath call and cleanups from the real_path handling.
11659 (iterate_over_symtabs): Drop variable full_path and its use.
11660 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11661 * utils.c (xfullpath): Remove.
11662 * utils.h (xfullpath): Remove.
11663
d78489bf
AT
116642013-02-01 Andreas Tobler <andreast@fgznet.ch>
11665
11666 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11667 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11668 (ALLDEPFILES): Add ppc64-tdep.c.
11669 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11670 ppc64-tdep.o to gdb_target_obs.
11671 * ppc64-tdep.h: New file.
11672 * ppc64-tdep.c: New file.
11673 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11674 ppc-linux-tdep.c to here.
11675 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11676 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11677 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11678 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11679 from ppc-linux-tdep.c to here.
11680 (ppc64_convert_from_func_ptr_addr): Rename from
11681 ppc64_linux_convert_from_func_ptr_addr to
11682 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11683 here.
11684 * rs6000-tdep.c:
11685 (read_insn): Move from ppc-linux-tdep.c to here.
11686 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11687 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11688 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11689 Removed above functions.
11690 (ppc_linux_init_abi): Adjust.
11691
8db60374
AR
116922013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11693
11694 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11695
f2e5f4ce
AR
116962013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11697
11698 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11699
c1f7d745
PA
117002013-02-01 Pedro Alves <palves@redhat.com>
11701
11702 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11703 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11704
8a92335b
JK
117052013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11706
11707 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11708 files with no separate debug info.
11709 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11710 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11711 only for files with no separate debug info.
11712
8eacb197
TT
117132013-01-31 Tom Tromey <tromey@redhat.com>
11714
11715 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11716 change type.
11717 (struct jit_program_space_data): Rename from jit_inferior_data.
11718 Update comments.
11719 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11720 Change return type. Attach data to program space.
11721 (jit_program_space_data_cleanup): Rename from
11722 jit_inferior_data_cleanup; change argument type.
11723 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11724 change type.
11725 (jit_register_code): Update.
11726 (jit_update_inferior_cache): Remove.
11727 (jit_breakpoint_deleted): Get jit data from the location's program
11728 space.
11729 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11730 'ps_data', change type.
11731 (jit_inferior_init, jit_breakpoint_re_set_internal)
11732 (jit_event_handler): Update.
11733 (free_objfile_data): Get data from objfile's program space.
11734 (_initialize_jit): Update.
11735
f25c0135
TT
117362013-01-31 Tom Tromey <tromey@redhat.com>
11737
11738 PR gdb/13987:
11739 * jit.c (struct jit_inferior_data) <cached_code_address,
11740 jit_breakpoint>: New fields.
11741 (jit_breakpoint_re_set_internal): Fix logging. Only create
11742 breakpoint if cached address has changed.
11743 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11744 functions.
11745 (_initialize_jit): Register breakpoint deleted observer.
11746
974a734b
AR
117472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11748
11749 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11750 (save_infcall_suspend_state): Ifdef out unused inf.
11751 (restore_infcall_suspend_state): Ifdef out unused inf.
11752 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11753 (jit_frame_sniffer): Remove unused inf_data.
11754
df54f8eb
AR
117552013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11756
11757 * c-exp.y (classify_inner_name): Remove unused type.
11758 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11759 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11760 need_escape.
11761 (c_get_string): Remove unused kind.
11762 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11763
5799c0b9
AR
117642013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11765
11766 * charset.c (intermediate_encoding): Remove unused i.
11767 * completer.c (signal_completer): Remove unused i.
11768 * continuations.c (discard_my_continuations_1): Remove unused
11769 continuation_ptr.
11770 * corelow.c (core_close): Remove unuseD name.
11771 (get_core_siginfo): Remove unused pid.
11772 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11773 i, cps.
11774 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11775 (loclist_describe_location): Remove unused first.
11776 * event-top.c (command_line_handler): Remove unused got_eof.
11777 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11778 (resize_section_table): Remove unused old_value.
11779 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11780 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11781 * i386-tdep.c (i386_process_record): Remove unused rex.
11782 * infcmd.c (get_return_value): Remove unused uiout.
11783 * jv-lang.c (type_from_class): Remove unused is_array.
11784 * jv-valprint.c (java_val_print): Remove unused i.
11785 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11786 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11787 * m2-typeprint.c (m2_print_type): Remove unused code.
11788 * macroexp.c (get_character_constant): Remove unused body_start.
11789 (macro_stringify): Remove unused result.
11790 * objc-lang.c (find_methods): Remove unused gdbarch.
11791 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11792 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11793 * stack.c (print_frame_args): Remove unused summary.
11794 * thread.c (thread_apply_command): Remove unused p.
11795 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11796 * valops.c (search_struct_method): Remove unused skip.
11797 * valprint.c (generic_val_print): Remove unused byte_order.
11798 * varobj.c (varobj_update): Remove unused changed.
11799 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11800 (alias_command): Remove unused c.
11801 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11802 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11803 format.
11804 (mi_cmd_data_write_memory): Remove unused word_format.
11805 (mi_cmd_data_write_memory_bytes): Remove unused r.
11806 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11807 p_start, p_end.
11808 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11809 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11810 line_width.
11811
c656bca5
AR
118122013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11813
11814 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11815 * symtab.c (iterate_over_symtabs): Remove unused s.
11816 (find_pc_sect_symtab): Remove unused pspAce.
11817 (find_pc_sect_line): Remove unused alt_symtab.
11818 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11819 (completion_list_add_name): Remove unused newsize.
11820
7078baeb
TT
118212013-01-31 Tom Tromey <tromey@redhat.com>
11822
11823 PR c++/14998:
11824 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11825 TYPE_CODE_FUNC.
11826
c2e8b827
AR
118272013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11828
11829 * target.c (target_read_string): Remove unused origlen.
11830
0e43993a
AR
118312013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11832
11833 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11834 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11835 * ax-general.c (ax_print): Remove unused is_float.
11836 * blockframe.c (block_innermost_frame): Remove unused start, end.
11837 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11838
765a97ab
AR
118392013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11840
11841 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11842 (svr4_read_so_list): Remove unused lmo.
11843 * solib-target.c (solib_target_relocate_section_addresses): Remove
11844 unused flags.
11845
a99dad3d
TT
118462013-01-30 Tom Tromey <tromey@redhat.com>
11847
11848 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11849
3bff1ecd
TT
118502013-01-30 Tom Tromey <tromey@redhat.com>
11851
11852 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11853 * utils.c (gnu_debuglink_crc32): Remove.
11854 * utils.h (gnu_debuglink_crc32): Don't declare.
11855
7d455152
TT
118562013-01-30 Tom Tromey <tromey@redhat.com>
11857
11858 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11859 (read_structure_type, read_enumeration_type): Remove cast.
11860
abee88f2
TT
118612013-01-30 Tom Tromey <tromey@redhat.com>
11862
11863 * dwarf2read.c (read_namespace_type): Remove cast.
11864 (read_typedef): Likewise.
11865
8d9878a4
TT
118662013-01-29 Tom Tromey <tromey@redhat.com>
11867
11868 * dwarf2read.c (free_dwo_file): Remove assert.
11869
a543d2a9
TT
118702013-01-29 Tom Tromey <tromey@redhat.com>
11871
11872 * value.c (deprecated_set_value_modifiable): Remove.
11873 * value.h (deprecated_set_value_modifiable): Remove.
11874
bed911e5
DE
118752013-01-28 Doug Evans <dje@google.com>
11876
11877 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11878 to addresses from dwo files.
11879
28c64fc2
SCR
118802013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11881
11882 * valops.c (find_overload_match): Remove unused argument 'lax'.
11883 * value.h: Remove unused argument 'lax' from the declaration of
11884 find_overload_match.
11885 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11886 to find_overload_match.
11887 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11888 argument to find_overload_match.
11889
4d4ec4e5
TT
118902013-01-25 Tom Tromey <tromey@redhat.com>
11891
11892 * dwarf2read.c (processing_has_namespace_info): Remove.
11893 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11894 (process_die, read_func_scope, dwarf2_start_symtab)
11895 (new_symbol_full): Update.
11896
195a3f6c
TT
118972013-01-25 Tom Tromey <tromey@redhat.com>
11898
11899 * cp-namespace.c (cp_set_block_scope): Remove.
11900 * cp-support.h (cp_set_block_scope): Remove.
11901 * dbxread.c: Include block.h.
11902 (cp_set_block_scope): New function.
11903 (process_one_symbol): Update.
11904 * dwarf2read.c (read_func_scope): Use block_set_scope.
11905
8ba0730a
PA
119062013-01-25 Pedro Alves <palves@redhat.com>
11907
11908 * remote.c (add_current_inferior_and_thread): Tweak comment.
11909
12aaed36
TT
119102013-01-25 Tom Tromey <tromey@redhat.com>
11911
11912 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11913 (cp_add_using_directive): Add 'copy_names' argument.
11914 * cp-support.h (cp_add_using_directive): Update.
11915 (struct using_direct) <import_src, import_dest, alias,
11916 declaration>: Now const.
11917 * dwarf2read.c (read_import_statement): Use obconcat.
11918 Don't copy names passed to cp_add_using_directive.
11919
7fc75ca7
TT
119202013-01-25 Tom Tromey <tromey@redhat.com>
11921
11922 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11923
3405876a
PA
119242013-01-25 Pedro Alves <palves@redhat.com>
11925
11926 * remote.c (stop_reply_extract_thread): New.
11927 (add_current_inferior_and_thread): New parameter 'wait_status'.
11928 Handle it.
11929 (remote_start_remote): Pass wait status to
11930 add_current_inferior_and_thread.
11931 (extended_remote_run): Update comment.
11932 (extended_remote_create_inferior_1): Pass wait status to
11933 add_current_inferior_and_thread.
11934
8954db33
AB
119352013-01-25 Andrew Burgess <aburgess@broadcom.com>
11936 Ulrich Weigand <uweigand@de.ibm.com>
11937
11938 * valarith.c (value_vector_widen): New function for replicating a
11939 scalar into a vector.
11940 (value_binop): Use value_vector_widen to widen scalar to vector
11941 rather than casting, this better matches gcc C behaviour.
11942 * valops.c (value_casst): Update logic for casting between vector
11943 types, and for casting from scalar to vector, try to match gcc C
11944 behaviour.
11945 * value.h (value_vector_widen): Declare.
11946 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11947 function, handle special case for casting scalar to vector.
11948 (opencl_relop): Use opencl_value_cast.
11949 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11950 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11951 in order to use opencl_value_cast.
11952
843b20dc
YQ
119532013-01-25 Yao Qi <yao@codesourcery.com>
11954
11955 * event-loop.c: Include "queue.h".
11956 (gdb_event_p): New typedef.
11957 (DECLARE_QUEUE_P): Use.
11958 (DEFINE_QUEUE_P): Use.
11959 (async_queue_event): Remove.
11960 (gdb_event_xfree): New.
11961 (initialize_event_loop): New.
11962 (process_event): Use QUEUE macros.
11963 (event_queue): Remove.
11964 (gdb_wait_for_event): Caller update.
11965 (check_async_event_handlers): Likewise.
11966 (poll_timers): Likewise.
11967 * event-loop.h (initialize_event_loop): Declare.
11968 * event-loop.c (gdb_event_xfree): New.
11969 * top.c (gdb_init): Call initialize_event_loop.
11970
20ad8856
YQ
119712013-01-25 Yao Qi <yao@codesourcery.com>
11972
11973 * event-loop.c (async_queue_event): Remove one parameter
11974 'position'. Remove code handling 'position' == TAIL.
11975 (gdb_wait_for_event): Caller update.
11976 (check_async_event_handlers): Caller update.
11977 (poll_timers): Caller update.
11978 * event-loop.h (enum queue_position): Remove.
11979
3bbbe775
MK
119802013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11981
11982 * MAINTAINERS: Update my email.
11983
a87d9ac4
YQ
119842013-01-25 Yao Qi <yao@codesourcery.com>
11985
11986 * main.c (print_gdb_help): Remove "--epoch" from the help
11987 message.
11988
2077afdd
TD
119892013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11990
11991 * symtab.c (skip_prologue_using_sal): Consider a file
11992 change the same as an increased line number
11993
63da4037
TD
119942013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11995
30e8ee25 11996 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11997
45e6c716
TT
119982013-01-24 Tom Tromey <tromey@redhat.com>
11999
12000 * ada-lang.h (ada_decode_symbol): Make return type const.
12001 * ada-lang.c (ada_decode_symbol): Likewise.
12002
b1ae631a
DE
120032013-01-23 Doug Evans <dje@google.com>
12004
12005 * linespec.c (find_linespec_symbols): Make static.
12006
55a78401
SDJ
120072013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12008
12009 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12010 type on float conversion for complex type.
12011
bea883fd
SCR
120122013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12013
12014 Add a new class gdb.Architecture which exposes GDB's
12015 internal representation of architecture via GDB Python API.
12016 * Makefile.in: Add entries corresponding to the new file
12017 python/py-arch.c.
12018 * NEWS (Python Scripting): Add entries for the new class
12019 gdb.Architecture and the new method gdb.Frame.architecture.
12020 * python/py-arch.c: Implement gdb.Architecture class.
12021 * python/py-frame.c (frapy_arch): Implement the method
12022 gdb.Frame.architecture().
12023 (frame_object_methods): Add 'architecture' to the method table.
12024 * python/python-internal.h: Add declarations of new utility
12025 functions.
12026 * python/python.c (_initialize_python): Initialize
12027 gdb.Architecture class.
12028
796a7ff8
DE
120292013-01-23 Doug Evans <dje@google.com>
12030
12031 Work around binutils/15021.
12032 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12033 type_unit_group out of union s. All uses updated.
12034 (read_index_from_section): Watch for index version 8.
12035 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12036 an imported symtab.
12037 (write_psymtabs_to_index): Increment version number to 8.
12038
0928e93d
PA
120392013-01-22 Pedro Alves <palves@redhat.com>
12040
12041 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12042 user-visible.
12043
9c97429f
PA
120442013-01-22 Pedro Alves <palves@redhat.com>
12045
12046 * annotate.c (annotate_breakpoints_changed): Rename to ...
12047 (annotate_breakpoints_invalid): ... this. Make static.
12048 (breakpoint_changed): Adjust.
12049 (_initialize_annotate): Always install the observers. Install a
12050 "breakpoint_created" observer.
12051 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12052 * breakpoint.c (set_breakpoint_condition)
12053 (breakpoint_set_commands, do_map_commands_command)
12054 (init_raw_breakpoint, clear_command, set_ignore_count)
12055 (enable_breakpoint_disp): No longer call
12056 annotate_breakpoints_changed.
12057
bd00c694
PA
120582013-01-22 Pedro Alves <palves@redhat.com>
12059
12060 * annotate.c: Include "inferior.h".
12061 (frames_invalid_emitted)
12062 (breakpoints_invalid_emitted): New globals.
12063 (async_background_execution_p): New function.
12064 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12065 emitting the annotation if it has already been emitted.
12066 (annotate_display_prompt): New function.
12067 * annotate.h (annotate_display_prompt): New declaration.
12068 * event-top.c: Include annotate.h.
12069 (display_gdb_prompt): Call annotate_display_prompt.
12070
187d10dd
PA
120712013-01-22 Pedro Alves <palves@redhat.com>
12072
12073 * annotate.c (ignore_count_changed): Delete.
12074 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12075 (annotate_ignore_count_change): Delete.
12076 (annotate_stopped): Don't emit a delayed breakpoints-changed
12077 annotation.
12078 * annotate.h (annotate_ignore_count_change): Delete.
12079 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12080 annotate_ignore_count_change.
12081
d84cf7eb
TT
120822013-01-22 Tom Tromey <tromey@redhat.com>
12083
12084 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12085 require_rvalue for a register location.
12086
8f1d5693
MK
120872013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12088
12089 * breakpoint.c (print_one_breakpoint_location): Add MI
12090 field 'thread-groups' when printing a breakpoint.
12091 (output_thread_groups): New function.
12092
aa6199c6
SCR
120932013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12094
12095 * python/lib/gdb/commands/explore.py
12096 (CompoundExplorer.explore_expr): Correct the name of a method
12097 being invoked.
12098 (ExploreTypeCommand.invoke): Add a missing 'return'.
12099
d2afef13
TT
121002013-01-21 Tom Tromey <tromey@redhat.com>
12101
12102 * gdb_obstack.h (obconcat): Move declaration here, from...
12103 * symfile.h (obconcat): ... here.
12104 * gdb_obstack.c: New file.
12105 (obconcat): Move from...
12106 * symfile.c (obconcat): ... here.
12107 * Makefile.in (SFILES): Add gdb_obstack.c.
12108 (COMMON_OBS): Add gdb_obstack.o.
12109
10f0c4bb
TT
121102013-01-21 Tom Tromey <tromey@redhat.com>
12111
12112 * symfile.h (obsavestring): Don't declare.
12113 * symfile.c (obsavestring): Remove.
12114 * ada-exp.y: Use obstack_copy0, not obsavestring.
12115 * ada-lang.c: Use obstack_copy0, not obsavestring.
12116 * coffread.c: Use obstack_copy0, not obsavestring.
12117 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12118 * dbxread.c: Use obstack_copy0, not obsavestring.
12119 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12120 * jit.c: Use obstack_copy0, not obsavestring.
12121 * mdebugread.c: Use obstack_copy0, not obsavestring.
12122 * psymtab.c: Use obstack_copy0, not obsavestring.
12123 * stabsread.c: Use obstack_copy0, not obsavestring.
12124 * xcoffread.c: Use obstack_copy0, not obsavestring.
12125
86f62fd7
TT
121262013-01-21 Tom Tromey <tromey@redhat.com>
12127
12128 * dwarf2read.c (fixup_go_packaging): Save package name
12129 on objfile obstack.
12130 * gdbtypes.c (init_type): Don't copy name.
12131
15d034d0
TT
121322013-01-21 Tom Tromey <tromey@redhat.com>
12133
12134 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12135 const.
12136 (struct attribute) <u.str>: Now const.
12137 (struct fnfieldlist) <name>: Now const.
12138 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12139 (partial_die_parent_scope): Make return type const.
12140 (partial_die_full_name, add_partial_symbol): Update.
12141 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12142 'name' const.
12143 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12144 (read_file_scope, read_func_scope, dwarf2_add_field)
12145 (dwarf2_add_member_fn, read_structure_type)
12146 (process_enumeration_scope, read_array_type, read_module_type)
12147 (read_base_type, read_subrange_type): Update.
12148 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12149 (new_symbol_full, guess_full_die_structure_name): Update.
12150 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12151 (dwarf2_name): Return const type.
12152 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12153 const.
12154
748e18ae
TT
121552013-01-21 Tom Tromey <tromey@redhat.com>
12156
12157 * gdbtypes.c (init_type): Make 'name' const.
12158 * gdbtypes.h (init_type): Update.
12159
46212e0b
TT
121602013-01-21 Tom Tromey <tromey@redhat.com>
12161
12162 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12163 (start_symtab): Make 'name' and 'dirname' const. Use
12164 set_last_source_file.
12165 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12166 (last_source_file): Define. Now static.
12167 (set_last_source_file, get_last_source_file): New functions.
12168 * buildsym.h (last_source_file): Don't declare.
12169 (start_symtab): Update.
12170 (set_last_source_file, get_last_source_file): Declare.
12171 * coffread.c (complete_symtab): Use set_last_source_file.
12172 (coff_end_symtab): Likewise.
12173 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12174 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12175 set_last_source_file.
12176 (process_one_symbol): Use get_last_source_file.
12177 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12178 (psymtab_to_symtab_1): Use get_last_source_file.
12179 * xcoffread.c (process_linenos): Use get_last_source_file.
12180 (complete_symtab): Use set_last_source_file.
12181 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12182 (scan_xcoff_symtab): Use set_last_source_file.
12183
9d2ceabe
TT
121842013-01-21 Tom Tromey <tromey@redhat.com>
12185
12186 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12187 (symbol_set_names): Remove casts. Handle field const-ness.
12188
cfc594ee
TT
121892013-01-21 Tom Tromey <tromey@redhat.com>
12190
12191 * dwarf2read.c (new_symbol_full): Remove cast.
12192 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12193 * symtab.h (symbol_set_demangled_name): Update.
12194
5484b13a
TT
121952013-01-21 Tom Tromey <tromey@redhat.com>
12196
12197 * main.c (captured_main): Call bfd_init.
12198
1605ef26
TT
121992013-01-21 Tom Tromey <tromey@redhat.com>
12200
12201 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12202 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12203 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12204 * NEWS: Update.
12205
3b74cdc3
JK
122062013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12207
12208 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12209
5a352474
JK
122102013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12211
12212 Fix gdb.fortran/common-block.exp crash in PIE mode.
12213 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12214 LOC_COMMON_BLOCK.
12215 * f-valprint.c (info_common_command_for_block): Expect
12216 LOC_COMMON_BLOCK in gdb_assert.
12217 * symtab.h (struct general_symbol_info): Update comment for the
12218 common_block member.
12219 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12220 (enum address_class): New member LOC_COMMON_BLOCK.
12221
c60797fd
DB
122222013-01-18 David Blaikie <dblaikie@gmail.com>
12223
12224 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12225
46f35228
TT
122262013-01-18 Tom Tromey <tromey@redhat.com>
12227
12228 PR c++/14999:
12229 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12230 Call require_rvalue.
12231
257e7a09
YQ
122322013-01-18 Yao Qi <yao@codesourcery.com>
12233
12234 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12235 (dbx_read_symtab): New declaration.
12236 (dbx_psymtab_to_symtab): Delete.
12237 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12238 Rename parameter PST to SELF. Exchanged two parameters.
12239 (start_psymtab): Caller update.
12240 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12241 (dwarf2_read_symtab): New declaration.
12242 (dwarf2_psymtab_to_symtab): Delete.
12243 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12244 Rename parameter PST to SELF. Exchanged two parameters.
12245 (create_partial_symtab): Caller update.
12246 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12247 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12248 Rename parameter PST to SELF. Exchanged two parameters.
12249 (parse_partial_symbols, new_psymtab): Caller update.
12250 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12251 two parameters.
12252 * psymtab.c (psymtab_to_symtab): Caller update.
12253 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12254 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12255 Rename parameter PST to SELF. Exchanged two parameters.
12256 (xcoff_start_psymtab): Caller update.
12257
0de5618e
YQ
122582013-01-18 Yao Qi <yao@codesourcery.com>
12259
12260 * infrun.c (proceed): Rename local variable 'oneproc' to
12261 'force_step'.
12262
5c04624b
DE
122632013-01-17 Doug Evans <dje@google.com>
12264
848e3e78
DE
12265 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12266 (dw2_build_type_unit_groups): Delete. All uses updated.
12267
5c04624b
DE
12268 * symtab.h (struct symbol_search): Add comment.
12269
d84fca2c
JK
122702013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12271
12272 * symtab.c (compare_filenames_for_search): New comment for
12273 HAS_DRIVE_SPEC.
12274
6108433d
TT
122752013-01-17 Tom Tromey <tromey@redhat.com>
12276
12277 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12278
c89ffd86
JK
122792013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12280
12281 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12282 initialize it by existing make_cleanup. Call new do_cleanups.
12283
db2b2972
TT
122842013-01-17 Tom Tromey <tromey@redhat.com>
12285
12286 * cp-abi.c (cp_abi_completer): New function.
12287 (_initialize_cp_abi): Set completer for "set cp-abi".
12288
be7d37a2
TT
122892013-01-17 Tom Tromey <tromey@redhat.com>
12290
12291 * mem-break.c: Remove obsolete comment.
12292 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12293
c9fb1240
SD
122942012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12295
12296 * jit.c (jit_reader_load_command): Interpret the jit reader name
12297 as an absolute path if it begins with a forward slash.
12298
db334a01
SD
122992012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12300
12301 PR gdb/14550
12302
12303 * jit.c (finalize_symtab): Ensure that only the global block has a
12304 NULL superblock.
12305
7d928dac
PA
123062013-01-17 Pedro Alves <palves@redhat.com>
12307
12308 * acinclude.m4: Include ../config/plugins.m4,
12309 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12310 * Makefile.in (aclocal_m4_deps): Update.
12311 * aclocal.m4: Renegerate.
12312
fb8cf7c5
DE
123132013-01-16 Doug Evans <dje@google.com>
12314
12315 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12316
ab04a2af
TT
123172013-01-16 Pedro Alves <palves@redhat.com>
12318 Tom Tromey <tromey@redhat.com>
12319
12320 PR cli/7221:
12321 * NEWS: Add "catch signal".
12322 * breakpoint.c (base_breakpoint_ops): No longer static.
12323 (bpstat_explains_signal): New function.
12324 (init_catchpoint): No longer static.
12325 (base_breakpoint_explains_signal): New function.
12326 (base_breakpoint_ops): Initialize new field.
12327 * breakpoint.h (enum bpstat_signal_value): New.
12328 (struct breakpoint_ops) <explains_signal>: New field.
12329 (bpstat_explains_signal): Remove macro, declare as function.
12330 (base_breakpoint_ops, init_catchpoint): Declare.
12331 * break-catch-sig.c: New file.
12332 * inferior.h (signal_catch_update): Declare.
12333 * infrun.c (signal_catch): New global.
12334 (handle_syscall_event): Update for change to
12335 bpstat_explains_signal.
12336 (handle_inferior_event): Likewise. Always handle random signals
12337 via bpstats.
12338 (signal_cache_update): Check signal_catch.
12339 (signal_catch_update): New function.
12340 (_initialize_infrun): Initialize signal_catch.
12341 * Makefile.in (SFILES): Add break-catch-sig.c.
12342 (COMMON_OBS): Add break-catch-sig.o.
12343
8ac3646f
TT
123442013-01-16 Tom Tromey <tromey@redhat.com>
12345
12346 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12347 (print_one_catch_solib, print_one_catch_syscall)
12348 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12349 "catch-type".
12350
5a18e302
YQ
123512013-01-16 Yao Qi <yao@codesourcery.com>
12352
12353 * printcmd.c (current_display_number): Make it static.
12354
3f01d0d0
YQ
123552013-01-16 Yao Qi <yao@codesourcery.com>
12356
12357 * infcmd.c (step_once): Don't check '!single_inst' as it was
12358 checked before.
12359
1ed59174
JK
123602013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12361
12362 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12363
44478ab3
TT
123642013-01-14 Tom Tromey <tromey@redhat.com>
12365
12366 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12367 set command.
12368 * command.h (add_setshow_string_noescape_cmd): Update.
12369 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12370 (complete_set_gnutarget): New function.
12371 (_initialize_core): Set the "set gnutarget" completer.
12372
06d66ee9
TT
123732013-01-14 Tom Tromey <tromey@redhat.com>
12374
12375 PR symtab/14442:
12376 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12377 (c_type_print_modifier): Likewise.
12378 * dwarf2read.c (read_tag_restrict_type): New function.
12379 (read_type_die_1): Handle DW_TAG_restrict_type.
12380 * gdbtypes.c (make_restrict_type): New function.
12381 (recursive_dump_type): Handle TYPE_RESTRICT.
12382 * gdbtypes.h (enum type_flag_values): Renumber.
12383 (enum type_instance_flag_value): Add
12384 TYPE_INSTANCE_FLAG_RESTRICT.
12385 (TYPE_RESTRICT): New macro.
12386 (make_restrict_type): Declare.
12387
c9bf0622
TT
123882013-01-14 Tom Tromey <tromey@redhat.com>
12389
12390 PR symtab/14931:
12391 * psymtab.c (struct psymtab_state): New.
12392 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12393 functions.
12394 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12395 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12396
44d594fd
PA
123972013-01-14 Richard Sharman <richard_sharman@mitel.com>
12398 Pedro Alves <palves@redhat.com>
12399
12400 PR remote/14786
12401
12402 * remote.c (remote_threads_info): Make a copy of the reply from
12403 qfThreadInfo and use that instead of rs->buf.
12404
442e4d9c
YQ
124052013-01-14 Yao Qi <yao@codesourcery.com>
12406
12407 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12408 (dbx_psymtab_to_symtab): Likewise.
12409 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12410 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12411 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12412
5b12a61c
JK
124132013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12414
12415 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12416 make_cleanup_restore_current_language. Call set_language. Move
12417 OLD_CHAIN and INNER_CHAIN cleanups.
12418 * utils.c (do_restore_current_language)
12419 (make_cleanup_restore_current_language): New functions.
12420 * utils.h (make_cleanup_restore_current_language): New declaration.
12421
f0a4b570
JK
124222013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12423
12424 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12425 non-existing files.
12426
57b3c00c
JK
12427 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12428 non-existing files if FILENAME is already absolute.
12429
daefa854
JK
124302013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12431
12432 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12433 fputs_filtered. Append trailing newline.
12434
ca9c6ee2
YQ
124352013-01-11 Yao Qi <yao@codesourcery.com>
12436 Stan Shebs <stan@codesourcery.com>
12437
12438 * psymtab.c (init_psymbol_list): Clarify the comment.
12439
f28045c2
YQ
124402013-01-11 Yao Qi <yao@codesourcery.com>
12441
12442 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12443 (update_dprintf_command_list): Assert that 'printf_line' is
12444 non-null. Remove condition check.
12445
da5132d3
JK
124462013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12447
12448 Code cleanup.
12449 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12450 type const char *.
12451 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12452 const char *.
12453 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12454
843e694d
AG
124552013-01-09 Anthony Green <green@moxielogic.com>
12456
12457 * cp-abi.c (cplus_print_vtable): Don't return value from void
12458 function.
12459 * ada-lang.c (re_set_catch_assert): Ditto.
12460
da51c347
DE
124612013-01-09 Doug Evans <dje@google.com>
12462
12463 * symfile.h (quick_symbol_functions): Delete member
12464 pre_expand_symtabs_matching. All uses removed.
12465 * dwarf2read.c (dw2_lookup_symbol): Implement.
12466 (dw2_do_expand_symtabs_matching): Delete.
12467 (dw2_pre_expand_symtabs_matching): Delete.
12468 (struct dw2_symtab_iterator): New type.
12469 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12470 (dw2_expand_symtabs_for_function): Rewrite.
12471 (dwarf2_gdb_index_functions): Update.
12472 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12473 (psym_functions): Update.
12474
b2259038
TT
124752013-01-09 Tom Tromey <tromey@redhat.com>
12476
12477 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12478 * configure: Rebuild.
12479 * configure.ac: Add somread.o to the build if BFD has SOM
12480 support.
12481 * somread.c: Include som/aout.h, not syms.h.
12482 (som_symtab_read): Use som_external_symbol_dictionary_record.
12483 Unpack records manually.
12484 (_initialize_somread): Declare.
12485
bdad4180
MF
124862012-01-08 Mike Frysinger <vapier@gentoo.org>
12487
12488 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12489 Cast return_address to 64bits.
12490
03cdf680
HZ
124912013-01-08 Hui Zhu <hui_zhu@mentor.com>
12492
12493 * printcmd.c: Remove define of function output_command.
12494 * tracepoint.c: Remove extern of function output_command.
12495 * valprint.h: (output_command): New extern.
12496
8a808554
TT
124972013-01-07 Tom Tromey <tromey@redhat.com>
12498
12499 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12500 Remove.
12501 (objc_language_defn): Use c_printchar, c_printstr,
12502 c_emit_char.
12503
e93a8774
TT
125042013-01-07 Tom Tromey <tromey@redhat.com>
12505
12506 PR cli/7719:
12507 * NEWS: Update.
12508 * ada-valprint.c (printstr, print_field_values): Remove
12509 "inspect_it" code.
12510 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12511 code.
12512 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12513 code.
12514 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12515 * main.c (captured_main): Remove "epoch" argument.
12516 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12517 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12518 * p-valprint.c (pascal_object_print_value_fields): Remove
12519 "inspect_it" code.
12520 * printcmd.c (print_command_1): Remove 'inspect' argument.
12521 (print_command, call_command): Update.
12522 (inspect_command): Remove.
12523 (_initialize_printcmd): Make "inspect" an alias for "print".
12524 * top.c (epoch_interface): Remove.
12525 * top.h (epoch_interface): Remove.
12526 * valprint.c (user_print_options): Update.
12527 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12528 * valprint.h (struct value_print_options) <inspect_it>: Remove
12529 field.
12530
125312013-01-04 Tom Tromey <tromey@redhat.com>
12532
12533 * valprint.h (read_string): Add 'extern'.
12534
b967eb24
JB
125352013-01-07 Joel Brobecker <brobecker@adacore.com>
12536
12537 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12538 used to decide whether to define darwin_read_dyld_info or not.
12539
78a8b30e
PM
125402013-01-03 Pierre Muller <muller@sourceware.org>
12541
12542 * main.c (relocate_gdb_directory): Avoid calling stat function
12543 if DIR is empty.
12544
50da2f25
YQ
125452013-01-03 Yao Qi <yao@codesourcery.com>
12546
12547 * psymtab.c (fixup_psymbol_section): Update declaration.
12548 (fixup_psymbol_section): Remove code returning value.
12549
e7e8980f
YQ
125502013-01-03 Yao Qi <yao@codesourcery.com>
12551
12552 * symtab.h: Remove some out of date comments.
12553 (enum exception_event_kind): Move it ...
12554 * breakpoint.c: ... here.
12555
569283d4
MF
125562013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12557
9f9d9a96 12558 PR gdb/14405
569283d4
MF
12559 * darwin-nat.c (darwin_read_dyld_info): Only build if
12560 TASK_DYLD_INFO_COUNT is defined.
12561 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12562 TASK_DYLD_INFO_COUNT is defined.
12563
2e36fbea
TT
125642013-01-02 Tom Tromey <tromey@redhat.com>
12565
12566 * symfile.h (struct ecoff_debug_hack): Remove.
12567 * objfiles.c: Don't include mdebugread.h.
12568
4f05add4
TT
125692013-01-02 Tom Tromey <tromey@redhat.com>
12570
12571 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12572 * configure.ac: Check for Mach-O support in BFD. Update
12573 CONFIG_OBS.
12574 * configure: Rebuild.
12575
def63ff0
TT
125762013-01-02 Tom Tromey <tromey@redhat.com>
12577
12578 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12579 * configure.ac: Use GDB_AC_CHECK_BFD.
12580 * configure: Rebuild.
12581
60c5dd93
MK
125822013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12583
12584 * MAINTAINERS: Update my email.
12585
6e58437e
JB
125862013-01-01 Joel Brobecker <brobecker@adacore.com>
12587
12588 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12589
627fe805
JB
125902013-01-01 Joel Brobecker <brobecker@adacore.com>
12591
12592 * rs6000-nat.c (bss_data_overlap): New function.
12593 (vmap_symtab): Use it to adjust the .bss section's offset.
12594
28e7fd62
JB
125952013-01-01 Joel Brobecker <brobecker@adacore.com>
12596
12597 Update year range in copyright notice of all files.
12598
e93a8774 125992013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12600
12601 * top.c (print_gdb_version): Update copyright year.
12602
72b20e9c 12603For older changes see ChangeLog-2012.
c906108c
SS
12604\f
12605Local Variables:
12606mode: change-log
12607left-margin: 8
12608fill-column: 74
12609version-control: never
57da7796 12610coding: utf-8
c906108c 12611End:
This page took 2.244165 seconds and 4 git commands to generate.