Mark entirely optimized out value as non-lazy.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4f14910f
AB
12013-11-26 Andrew Burgess <aburgess@broadcom.com>
2
3 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
4
15859968
TT
52013-11-26 Tom Tromey <tromey@redhat.com>
6
7 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
8 2013-11-22.
9
244ec0da
WT
102013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
11
12 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
13 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
14 (HAS_MPX): New macro.
15 (HAS_AVX): New macro.
16 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
17
f7e3ecae
KS
182013-11-25 Keith Seitz <keiths@redhat.com>
19
20 PR c++/14819
21 * c-exp.y (classify_inner_name): If no matching symbol was
22 found, try looking up the token as a base class.
23 Likewise if a constructor was found.
24 * cp-namespace.c (find_type_baseclass_by_name): New function.
25 * cp-support.h (find_type_baseclass_by_name): Declare.
26 * valops.c (value_struct_elt_for_reference): If we get
27 a non-static field, try to get a value based on the
28 current instance, if any.
29
283f7163
YQ
302013-11-24 Yao Qi <yao@codesourcery.com>
31
32 * disasm.c (dis_asm_read_memory): Call target_read_code
33 instead of target_read_memory.
34
29453a14
YQ
352013-11-24 Yao Qi <yao@codesourcery.com>
36
37 * NEWS: Add note on new "set code-cache" option.
38 * target-dcache.c (code_cache_enabled_1): New variable.
39 (code_cache_enabled): New variable.
40 (show_code_cache, set_code_cache): New function.
41 (code_cache_enabled_p): New function.
42 (_initialize_target_dcache): Register command.
43 * target-dcache.h (code_cache_enabled_p): Declare.
44 * target.c (memory_xfer_partial_1):Handle
45 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
46 (target_read_code): New function.
47 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
48 New.
49 (target_read_code): Declare.
50
0fb14d8f
YQ
512013-11-24 Yao Qi <yao@codesourcery.com>
52
53 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
54 (stack_cache_enabled_1): ... this. New variable.
55 (stack_cache_enabled_p): Rename to ...
56 (stack_cache_enabled): ... this. New variable.
57 (set_stack_cache_enabled_p): Rename to ...
58 (set_stack_cache): ... this. Update caller.
59 (show_stack_cache_enabled_p): Rename to ...
60 (show_stack_cache): ... this. Update caller.
61 (stack_cache_enabled): Rename to ...
62 (stack_cache_enabled_p): ... this. Update caller.
63 (_initialize_target_dcache): Replace "data cache" with
64 "target memory cache".
65 * target-dcache.h (stack_cache_enabled): Remove declaration.
66 (stack_cache_enabled_p): Add declaration.
67
a12361b9
DE
682013-11-23 Doug Evans <xdje42@gmail.com>
69
70 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
71 superfluous.
72
1e1d6920
DE
732013-11-23 Doug Evans <xdje42@gmail.com>
74
75 * python/py-frame.c (frapy_block): Fix error message text.
76
1e9c71b8
DE
772013-11-23 Doug Evans <xdje42@gmail.com>
78
79 * cli/cli-script.c (multi_line_command_p): New function.
80 (recurse_read_control_structure, read_command_lines_1): Call it.
81 (execute_control_command): Consistently have a blank line between
82 each case.
83
f380848e
SA
842013-11-22 Sterling Augustine <saugustine@google.com>
85
38e1f2a7 86 PR gdb/16196:
f380848e
SA
87 * valprint.c (read_string): Set new variable fetchlen based on
88 fetchlimit and size. Use it in call to partial_memory_read.
89 Update comment.
90
da2b2fdf
TT
912013-11-22 Tom Tromey <tromey@redhat.com>
92
93 PR backtrace/16155:
94 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
95 the return address column is unspecified.
96
6eeee81c
TT
972013-11-22 Tom Tromey <tromey@redhat.com>
98 Pedro Alves <palves@redhat.com>
99
100 PR backtrace/16155
101 * value.c (value_fetch_lazy): Internal error if
102 get_frame_register_value returns the same register.
103
194cca41
PA
1042013-11-22 Pedro Alves <palves@redhat.com>
105 Tom Tromey <tromey@redhat.com>
106
107 * frame.c (frame_stash_add): Now returns whether a frame with the
108 same ID was already known.
109 (compute_frame_id): New function, factored out from get_frame_id.
110 (get_frame_id): No longer lazilly compute the frame id here.
111 (get_prev_frame_if_no_cycle): New function. Detects wider stack
112 cycles.
113 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
114 and checking for stack cycles here.
115
33f8fe58
PA
1162013-11-22 Pedro Alves <palves@redhat.com>
117
118 PR 16155
119 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
120 this frame and the new previous frame, not between this frame and
121 the next frame.
122
1ec56e88
PA
1232013-11-22 Pedro Alves <palves@redhat.com>
124
125 PR 16155
126 * dwarf2-frame.c (struct dwarf2_frame_cache)
127 <checked_tailcall_bottom, entry_cfa_sp_offset,
128 entry_cfa_sp_offset_p>: New fields.
129 (dwarf2_frame_cache): Adjust to use the new cache fields instead
130 of locals. Don't call dwarf2_tailcall_sniffer_first here.
131 (dwarf2_frame_prev_register): Call it here, but only once.
132
ca092b61
DE
1332013-11-21 Doug Evans <xdje42@gmail.com>
134
135 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
136 (type_equality_entry): Move here from python/py-type.c.
137 (type_equality_entry_d): Ditto.
138 (compare_maybe_null_strings, check_types_equal): Ditto.
139 (check_types_worklist, types_deeply_equal): Ditto.
140 * gdbtypes.h (types_deeply_equal): Declare.
141 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
142 (typy_richcompare): Update.
143
7c245c24
JB
1442013-11-20 Joel Brobecker <brobecker@adacore.com>
145
146 * python/py-value.c (is_intlike): Delete.
147 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
148 by use of is_integral_type.
149 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
150 by use of is_integral_type and check for TYPE_CODE_PTR.
151
8986e351
TT
1522013-11-20 Tom Tromey <tromey@redhat.com>
153
154 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
155 strerror module.
156 * gnulib/aclocal.m4: Update.
157 * gnulib/config.in: Update.
158 * gnulib/configure: Update.
159 * gnulib/import/Makefile.am: Update.
160 * gnulib/import/Makefile.in: Update.
161 * gnulib/import/errno.in.h: Remove.
162 * gnulib/import/intprops.h: Remove.
163 * gnulib/import/m4/errno_h.m4: Remove.
164 * gnulib/import/m4/gnulib-cache.m4: Update.
165 * gnulib/import/m4/gnulib-comp.m4: Update.
166 * gnulib/import/m4/strerror.m4: Remove.
167 * gnulib/import/m4/sys_socket_h.m4: Remove.
168 * gnulib/import/strerror-override.c: Remove.
169 * gnulib/import/strerror-override.h: Remove.
170 * gnulib/import/strerror.c: Remove.
171 * gnulib/update-gnulib.sh: Update.
172
6b1141e3
YQ
1732013-11-20 Yao Qi <yao@codesourcery.com>
174
175 * target-dcache.c (target_dcache_get_or_init): Call
176 set_address_space_data if 'dcache' is NULL.
177
60650f2e
WT
1782013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
179
180 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
181
09748966
WT
1822013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
183
184 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
185 * data-directory/Makefile.in: Copy bond_register.py to the right path
186 to be initialized at gdb startup.
09748966 187
e43e105e
WT
1882013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
189
190 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
191 Add MPX registers.
192 (amd64_linux_read_description): Add initialization for MPX and
193 AVX independently.
194 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
195 (amd64_linux_gregset_reg_offset): Add MPX registers.
196 (amd64_linux_core_read_description): Add initialization for MPX
197 registers.
198 (_initialize_amd64_linux_tdep): Initialize MPX targets.
199 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
200 register on the list.
201 (tdesc_amd64_mpx_linux) Add new target for MPX.
202 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
203 (amd64_mpx_names): MPX register names.
204 (amd64_init_abi): Add MPX register while initializing the ABI.
205 (_initialize_amd64_tdep): Initialize MPX targets.
206 * amd64-tdep.h (amd64_regnum): Add MPX registers.
207 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
208
1dbcd68c
WT
2092013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
210
211 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
212 registers on the range of registers to be read from
213 xsave buffer.
214 (i386_linux_read_description): Add case for MPX.
215 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
216 (i386_linux_gregset_reg_offset): Add MPX registers.
217 (i386_linux_core_read_description): Initialize also MPX.
218 (_initialize_i386_linux_tdep): Add mpx initialization.
219 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
220 mpx_register_names.
221 (i386_regnum): Add MPX registers.
222 (I386_MPX_NUM_REGS): New macro.
223 (i386_bnd_regnum_p): New function.
224 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
225 number of registers to be the number of BNDSTATUS.
226 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
227 * i386-tdep.c: Include features/i386/i386-mpx.c.
228 (i386_mpx_names): Add MPX register names array.
229 (i386_bnd_names): Add bnd pseudo register names array.
230 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
231 registers.
232 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
233 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
234 registers.
235 (i386_bnd_type): New function.
236 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
237 register types.
238 (i386_pseudo_register_read_into_value): Add bnd case.
239 (i386_pseudo_register_write): Add bnd pseudo registers.
240 (i386_register_reggroup_p): Add MPX register to the group all.
241 (i386_validate_tdesc_p): Add MPX to the target description
242 validation.
243 (i386_pseudo_register_name): Add bnd pseudo registers.
244 (i386_gdbarch_init): Add MPX for architecture initialization.
245 (_initia_initialize_i386_tdep): Add mpx initialization.
246 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
247 XSAVE buffer.
248 (XSAVE_MPX_ADDR): New macro.
249 (i387_supply_xsave): Add MPX case.
250 (i387_collect_xsave): Add MPX case.
251 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
252 (I387_BNDCFGU_REGNUM): New macro.
253 (I387_NUM_MPX_REGS): New macro.
254 (I387_NUM_BND_REGS): New macro.
255 (I387_NUM_MPX_CTRL_REGS): New macro.
256 (I387_MPXEND_REGNUM): New macro.
257 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
258 (I386_XSTATE_BNDCFG): Likewise.
259 (I386_XSTATE_MPX_MASK): Likewise.
260 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
261 (I386_XSTATE_BNDREGS_SIZE): New macro.
262 (I386_XSTATE_BNDCFG_SIZE): Likewise.
263 (I386_XSTATE_SIZE): Adapt for MPX.
264 (I386_XSTATE_MAX_SIZE): Likewise.
265
ccc42043
WT
2662013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
267
268 * features/i386/Makefile: Adapts for using MPX registers.
269 * features/i386/32bit-mpx.xml: New file.
270 * features/i386/64bit-mpx.xml: Likewise.
271 * features/i386/amd64-mpx-linux.c: Likewise.
272 * features/i386/amd64-mpx-linux.xml: Likewise.
273 * features/i386/amd64-mpx.c: Likewise.
274 * features/i386/amd64-mpx.xml: Likewise.
275 * features/i386/i386-mpx-linux.c: Likewise.
276 * features/i386/i386-mpx-linux.xml: Likewise.
277 * features/i386/i386-mpx.c: Likewise.
278 * features/i386/i386-mpx.xml: Likewise.
279 * regformats/i386/amd64-mpx-linux.dat: New file.
280 * regformats/i386/amd64-mpx.dat: Likewise.
281 * regformats/i386/i386-mpx-linux.dat: Likewise.
282 * regformats/i386/i386-mpx.dat: Likewise.
283
57803a3c
WT
2842013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
285
286 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
287 Modified logic of creating a bitfield to be in sync with
288 tdesc_gdb_type.
289
2b59118e
WN
2902013-11-20 Will Newton <will.newton@linaro.org>
291
292 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
293 error message.
294
b26dfc9a
YQ
2952013-11-20 Yao Qi <yao@codesourcery.com>
296
297 * progspace.h (struct address_space_data): Declare.
298 * target-dcache.c: Include "progspace.h".
299 (target_dache): Remove.
300 (target_dcache_aspace_key): New.
301 (target_dcache_cleanup): New function.
302 (target_dcache_init_p): Get data through
303 target_dcache_aspace_key.
304 (target_dcache_invalidate): Likewise.
305 (target_dcache_get): Likewise.
306 (target_dcache_get_or_init): Likewise.
307 (_initialize_target_dcache): Initialize
308 target_dcache_aspace_key.
309
3a8356ff
YQ
3102013-11-20 Yao Qi <yao@codesourcery.com>
311
312 * progspace.c (struct address_space): Update comments.
313 <REGISTRY_FIELDS>: New fields.
314 DEFINE_REGISTRY for address_space.
315 (new_address_space): Call address_space_alloc_data.
316 (free_address_space): Call address_space_free_data.
317 * progspace.h: Use DECLARE_REGISTRY.
318
68c765e2
YQ
3192013-11-20 Yao Qi <yao@codesourcery.com>
320
321 * Makefile.in (SFILES):Add target-dcache.c.
322 (HFILES_NO_SRCDIR): Add target-dcache.h.
323 (COMMON_OBS): Add target-dcache.o.
324 * dcache.c: Remove inclusion to "target.h". Include
325 "target-dcache.h".
326 * memattr.c: Include "target-dcache.h".
327 * top.c: Likewise.
328 * tracepoint.c: Likewise.
329 * target.c: (stack_cache_enabled_p_1): Move to
330 target-dcache.c.
331 (stack_cache_enabled_p): Likewise.
332 (set_stack_cache_enabled_p): Likewise.
333 (show_stack_cache_enabled_p): Likewise.
334 (target_dcache, target_dcache_init_p): Likewise.
335 (target_dcache_invalidate): Likewise.
336 (target_dcache_get, target_dcache_get_or_init): Likewise.
337 (memory_xfer_partial_1): Call function stack_cache_enabled.
338 (initialize_target): Move code to target-dcache.c.
339 * target.h (target_dcache_invalidate): Move to
340 target-dcache.h.
341 (target_dcache_get): Likewise.
342 * target-dcache.c: New.
343 * target-dcache.h: New.
344
f2de9785
YQ
3452013-11-20 Yao Qi <yao@codesourcery.com>
346
347 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
348 it is initialized.
349
2a2f9fe4
YQ
3502013-11-20 Yao Qi <yao@codesourcery.com>
351
352 * dcache.c (last_cache): Remove.
353 (dcache_free, dcache_init): Update.
354 (dcache_update):
355 (dcache_print_line): Add parameter 'dcache'. Replace
356 'target_dcache' with 'dcache'.
357 (dcache_info): Move code to dcache_info_1. Call
358 'dcache_info_1'.
359 (dcache_info_1): New function.
360 (set_dcache_size): Call target_dcache_invalidate.
361 (set_dcache_line_size): Call target_dcache_invalidate.
362 * target.c (target_dcache_init_p): New function.
363 (target_dcache_invalidate): Check target_dcache_init_p first.
364 (target_dcache_get, target_dcache_get_or_init): New function.
365 (memory_xfer_partial_1): Adjust.
366 (initialize_target): Don't initialize 'target_dcache'.
367 * target.h (struct dcache_struct): Declare.
368 (target_dcache_get): Declare.
369
8ab91b96
YQ
3702013-11-19 Yao Qi <yao@codesourcery.com>
371
372 * varobj.c (varobj_get_type): Fix typo.
373
df7752b0
JB
3742013-11-19 Joel Brobecker <brobecker@adacore.com>
375
376 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
377
4a0a886a
JB
3782013-11-19 Joel Brobecker <brobecker@adacore.com>
379
380 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
381 "stat.h".
382
53ce3c39
TT
3832013-11-18 Tom Tromey <tromey@redhat.com>
384
385 * common/gdb_stat.h: Remove.
386 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
387 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
388 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
389 * corefile.c: Use sys/stat.h, not gdb_stat.h.
390 * ctf.c: Use sys/stat.h, not gdb_stat.h.
391 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
392 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
393 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
394 * exec.c: Use sys/stat.h, not gdb_stat.h.
395 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
396 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
397 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
398 * jit.c: Use sys/stat.h, not gdb_stat.h.
399 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
400 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
401 * main.c: Use sys/stat.h, not gdb_stat.h.
402 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
403 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
404 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
405 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
406 * procfs.c: Use sys/stat.h, not gdb_stat.h.
407 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
408 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
409 * remote.c: Use sys/stat.h, not gdb_stat.h.
410 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
411 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
412 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
413 * source.c: Use sys/stat.h, not gdb_stat.h.
414 * symfile.c: Use sys/stat.h, not gdb_stat.h.
415 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
416 * symtab.c: Use sys/stat.h, not gdb_stat.h.
417 * top.c: Use sys/stat.h, not gdb_stat.h.
418 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
419
09607c9e
TT
4202013-11-18 Tom Tromey <tromey@redhat.com>
421
422 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
423 sys_stat.
424 * gnulib/aclocal.m4: Update.
425 * gnulib/config.in: Update.
426 * gnulib/configure: Update.
427 * gnulib/import/Makefile.am: Update.
428 * gnulib/import/Makefile.in: Update.
429 * gnulib/import/m4/gnulib-cache.m4: Update.
430 * gnulib/import/m4/gnulib-comp.m4: Update.
431 * gnulib/import/m4/sys_stat_h.m4: New.
432 * gnulib/import/m4/time_h.m4: New.
433 * gnulib/import/sys_stat.in.h: New.
434 * gnulib/import/time.in.h: New.
435
4ff70b84
TT
4362013-11-18 Tom Tromey <tromey@redhat.com>
437
438 * configure: Rebuild.
439 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
440
3447c057
TT
4412013-11-18 Tom Tromey <tromey@redhat.com>
442
443 * configure: Rebuild.
444 * configure.ac: Don't check for unistd.h.
445
0080a2f6
TT
4462013-11-18 Tom Tromey <tromey@redhat.com>
447
448 * configure: Rebuild.
449 * configure.ac: Don't check for stdlib.h
450 * defs.h: Include stdlib.h unconditionally.
451
161d1bec
TT
4522013-11-18 Tom Tromey <tromey@redhat.com>
453
454 * config.in: Rebuild.
455 * configure: Rebuild.
456 * configure.ac: Don't check for stddef.h.
457 * defs.h: Unconditionally include stddef.h. Remove duplicate
458 inclusion.
459
2978b111
TT
4602013-11-18 Tom Tromey <tromey@redhat.com>
461
462 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
463 * common/gdb_dirent.h: Remove.
464 * common/filestuff.c: Use dirent.h.
465 * common/linux-osdata.c: Use dirent.h.
466 (NAMELEN): Define.
467 * config.in: Rebuild.
468 * configure: Rebuild.
469 * configure.ac: Don't use AC_HEADER_DIRENT.
470 * linux-fork.c: Use dirent.h
471 * linux-nat.c: Use dirent.h.
472 * nto-procfs.c: Use dirent.h.
473 * procfs.c: Use dirent.h.
474
e26b6bb0
TT
4752013-11-18 Tom Tromey <tromey@redhat.com>
476
477 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
478 * gnulib/aclocal.m4: Update.
479 * gnulib/config.in: Update.
480 * gnulib/configure: Update.
481 * gnulib/import/Makefile.am: Update.
482 * gnulib/import/Makefile.in: Update.
483 * gnulib/import/dirent.in.h: New.
484 * gnulib/import/m4/dirent_h.m4: New.
485 * gnulib/import/m4/gnulib-cache.m4: Update.
486 * gnulib/import/m4/gnulib-comp.m4: Update.
487
a3d08894
TT
4882013-11-18 Tom Tromey <tromey@redhat.com>
489
490 * configure: Rebuild.
491 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
492 strings.h.
493
0e9f083f
TT
4942013-11-18 Tom Tromey <tromey@redhat.com>
495
496 * common/gdb_string.h: Remove.
497 * aarch64-tdep.c: Use string.h, not gdb_string.h.
498 * ada-exp.y: Use string.h, not gdb_string.h.
499 * ada-lang.c: Use string.h, not gdb_string.h.
500 * ada-lex.l: Use string.h, not gdb_string.h.
501 * ada-typeprint.c: Use string.h, not gdb_string.h.
502 * ada-valprint.c: Use string.h, not gdb_string.h.
503 * aix-thread.c: Use string.h, not gdb_string.h.
504 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
505 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
506 * alpha-nat.c: Use string.h, not gdb_string.h.
507 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
508 * alpha-tdep.c: Use string.h, not gdb_string.h.
509 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
510 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
511 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
512 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
513 * amd64-nat.c: Use string.h, not gdb_string.h.
514 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
515 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
516 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
517 * arch-utils.c: Use string.h, not gdb_string.h.
518 * arm-linux-nat.c: Use string.h, not gdb_string.h.
519 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
520 * arm-tdep.c: Use string.h, not gdb_string.h.
521 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
522 * armbsd-tdep.c: Use string.h, not gdb_string.h.
523 * armnbsd-nat.c: Use string.h, not gdb_string.h.
524 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
525 * armobsd-tdep.c: Use string.h, not gdb_string.h.
526 * avr-tdep.c: Use string.h, not gdb_string.h.
527 * ax-gdb.c: Use string.h, not gdb_string.h.
528 * ax-general.c: Use string.h, not gdb_string.h.
529 * bcache.c: Use string.h, not gdb_string.h.
530 * bfin-tdep.c: Use string.h, not gdb_string.h.
531 * breakpoint.c: Use string.h, not gdb_string.h.
532 * build-id.c: Use string.h, not gdb_string.h.
533 * buildsym.c: Use string.h, not gdb_string.h.
534 * c-exp.y: Use string.h, not gdb_string.h.
535 * c-lang.c: Use string.h, not gdb_string.h.
536 * c-typeprint.c: Use string.h, not gdb_string.h.
537 * c-valprint.c: Use string.h, not gdb_string.h.
538 * charset.c: Use string.h, not gdb_string.h.
539 * cli-out.c: Use string.h, not gdb_string.h.
540 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
541 * cli/cli-decode.c: Use string.h, not gdb_string.h.
542 * cli/cli-dump.c: Use string.h, not gdb_string.h.
543 * cli/cli-interp.c: Use string.h, not gdb_string.h.
544 * cli/cli-logging.c: Use string.h, not gdb_string.h.
545 * cli/cli-script.c: Use string.h, not gdb_string.h.
546 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
547 * cli/cli-utils.c: Use string.h, not gdb_string.h.
548 * coffread.c: Use string.h, not gdb_string.h.
549 * common/common-utils.c: Use string.h, not gdb_string.h.
550 * common/filestuff.c: Use string.h, not gdb_string.h.
551 * common/linux-procfs.c: Use string.h, not gdb_string.h.
552 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
553 * common/signals.c: Use string.h, not gdb_string.h.
554 * common/vec.h: Use string.h, not gdb_string.h.
555 * core-regset.c: Use string.h, not gdb_string.h.
556 * corefile.c: Use string.h, not gdb_string.h.
557 * corelow.c: Use string.h, not gdb_string.h.
558 * cp-abi.c: Use string.h, not gdb_string.h.
559 * cp-support.c: Use string.h, not gdb_string.h.
560 * cp-valprint.c: Use string.h, not gdb_string.h.
561 * cris-tdep.c: Use string.h, not gdb_string.h.
562 * d-lang.c: Use string.h, not gdb_string.h.
563 * dbxread.c: Use string.h, not gdb_string.h.
564 * dcache.c: Use string.h, not gdb_string.h.
565 * demangle.c: Use string.h, not gdb_string.h.
566 * dicos-tdep.c: Use string.h, not gdb_string.h.
567 * disasm.c: Use string.h, not gdb_string.h.
568 * doublest.c: Use string.h, not gdb_string.h.
569 * dsrec.c: Use string.h, not gdb_string.h.
570 * dummy-frame.c: Use string.h, not gdb_string.h.
571 * dwarf2-frame.c: Use string.h, not gdb_string.h.
572 * dwarf2loc.c: Use string.h, not gdb_string.h.
573 * dwarf2read.c: Use string.h, not gdb_string.h.
574 * elfread.c: Use string.h, not gdb_string.h.
575 * environ.c: Use string.h, not gdb_string.h.
576 * eval.c: Use string.h, not gdb_string.h.
577 * event-loop.c: Use string.h, not gdb_string.h.
578 * exceptions.c: Use string.h, not gdb_string.h.
579 * exec.c: Use string.h, not gdb_string.h.
580 * expprint.c: Use string.h, not gdb_string.h.
581 * f-exp.y: Use string.h, not gdb_string.h.
582 * f-lang.c: Use string.h, not gdb_string.h.
583 * f-typeprint.c: Use string.h, not gdb_string.h.
584 * f-valprint.c: Use string.h, not gdb_string.h.
585 * fbsd-nat.c: Use string.h, not gdb_string.h.
586 * findcmd.c: Use string.h, not gdb_string.h.
587 * findvar.c: Use string.h, not gdb_string.h.
588 * fork-child.c: Use string.h, not gdb_string.h.
589 * frame.c: Use string.h, not gdb_string.h.
590 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
591 * frv-tdep.c: Use string.h, not gdb_string.h.
592 * gdb.c: Use string.h, not gdb_string.h.
593 * gdb_bfd.c: Use string.h, not gdb_string.h.
594 * gdbarch.c: Use string.h, not gdb_string.h.
595 * gdbtypes.c: Use string.h, not gdb_string.h.
596 * gnu-nat.c: Use string.h, not gdb_string.h.
597 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
598 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
599 * go-exp.y: Use string.h, not gdb_string.h.
600 * go-lang.c: Use string.h, not gdb_string.h.
601 * go32-nat.c: Use string.h, not gdb_string.h.
602 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
603 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
604 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
605 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
606 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
607 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
608 * i386-linux-nat.c: Use string.h, not gdb_string.h.
609 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
610 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
611 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
612 * i386-tdep.c: Use string.h, not gdb_string.h.
613 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
614 * i386gnu-nat.c: Use string.h, not gdb_string.h.
615 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
616 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
617 * i387-tdep.c: Use string.h, not gdb_string.h.
618 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
619 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
620 * inf-child.c: Use string.h, not gdb_string.h.
621 * inf-ptrace.c: Use string.h, not gdb_string.h.
622 * inf-ttrace.c: Use string.h, not gdb_string.h.
623 * infcall.c: Use string.h, not gdb_string.h.
624 * infcmd.c: Use string.h, not gdb_string.h.
625 * inflow.c: Use string.h, not gdb_string.h.
626 * infrun.c: Use string.h, not gdb_string.h.
627 * interps.c: Use string.h, not gdb_string.h.
628 * iq2000-tdep.c: Use string.h, not gdb_string.h.
629 * irix5-nat.c: Use string.h, not gdb_string.h.
630 * jv-exp.y: Use string.h, not gdb_string.h.
631 * jv-lang.c: Use string.h, not gdb_string.h.
632 * jv-typeprint.c: Use string.h, not gdb_string.h.
633 * jv-valprint.c: Use string.h, not gdb_string.h.
634 * language.c: Use string.h, not gdb_string.h.
635 * linux-fork.c: Use string.h, not gdb_string.h.
636 * linux-nat.c: Use string.h, not gdb_string.h.
637 * lm32-tdep.c: Use string.h, not gdb_string.h.
638 * m2-exp.y: Use string.h, not gdb_string.h.
639 * m2-typeprint.c: Use string.h, not gdb_string.h.
640 * m32c-tdep.c: Use string.h, not gdb_string.h.
641 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
642 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
643 * m32r-rom.c: Use string.h, not gdb_string.h.
644 * m32r-tdep.c: Use string.h, not gdb_string.h.
645 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
646 * m68k-tdep.c: Use string.h, not gdb_string.h.
647 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
648 * m68klinux-nat.c: Use string.h, not gdb_string.h.
649 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
650 * m88k-tdep.c: Use string.h, not gdb_string.h.
651 * macrocmd.c: Use string.h, not gdb_string.h.
652 * main.c: Use string.h, not gdb_string.h.
653 * mdebugread.c: Use string.h, not gdb_string.h.
654 * mem-break.c: Use string.h, not gdb_string.h.
655 * memattr.c: Use string.h, not gdb_string.h.
656 * memory-map.c: Use string.h, not gdb_string.h.
657 * mep-tdep.c: Use string.h, not gdb_string.h.
658 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
659 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
660 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
661 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
662 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
663 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
664 * mi/mi-console.c: Use string.h, not gdb_string.h.
665 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
666 * mi/mi-interp.c: Use string.h, not gdb_string.h.
667 * mi/mi-main.c: Use string.h, not gdb_string.h.
668 * mi/mi-parse.c: Use string.h, not gdb_string.h.
669 * microblaze-rom.c: Use string.h, not gdb_string.h.
670 * microblaze-tdep.c: Use string.h, not gdb_string.h.
671 * mingw-hdep.c: Use string.h, not gdb_string.h.
672 * minidebug.c: Use string.h, not gdb_string.h.
673 * minsyms.c: Use string.h, not gdb_string.h.
674 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
675 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
676 * mips-tdep.c: Use string.h, not gdb_string.h.
677 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
678 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
679 * mipsread.c: Use string.h, not gdb_string.h.
680 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
681 * mn10300-tdep.c: Use string.h, not gdb_string.h.
682 * monitor.c: Use string.h, not gdb_string.h.
683 * moxie-tdep.c: Use string.h, not gdb_string.h.
684 * mt-tdep.c: Use string.h, not gdb_string.h.
685 * nbsd-tdep.c: Use string.h, not gdb_string.h.
686 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
687 * nto-procfs.c: Use string.h, not gdb_string.h.
688 * nto-tdep.c: Use string.h, not gdb_string.h.
689 * objc-lang.c: Use string.h, not gdb_string.h.
690 * objfiles.c: Use string.h, not gdb_string.h.
691 * opencl-lang.c: Use string.h, not gdb_string.h.
692 * osabi.c: Use string.h, not gdb_string.h.
693 * osdata.c: Use string.h, not gdb_string.h.
694 * p-exp.y: Use string.h, not gdb_string.h.
695 * p-lang.c: Use string.h, not gdb_string.h.
696 * p-typeprint.c: Use string.h, not gdb_string.h.
697 * parse.c: Use string.h, not gdb_string.h.
698 * posix-hdep.c: Use string.h, not gdb_string.h.
699 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
700 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
701 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
702 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
703 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
704 * printcmd.c: Use string.h, not gdb_string.h.
705 * procfs.c: Use string.h, not gdb_string.h.
706 * prologue-value.c: Use string.h, not gdb_string.h.
707 * python/py-auto-load.c: Use string.h, not gdb_string.h.
708 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
709 * ravenscar-thread.c: Use string.h, not gdb_string.h.
710 * regcache.c: Use string.h, not gdb_string.h.
711 * registry.c: Use string.h, not gdb_string.h.
712 * remote-fileio.c: Use string.h, not gdb_string.h.
713 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
714 * remote-mips.c: Use string.h, not gdb_string.h.
715 * remote-sim.c: Use string.h, not gdb_string.h.
716 * remote.c: Use string.h, not gdb_string.h.
717 * reverse.c: Use string.h, not gdb_string.h.
718 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
719 * ser-base.c: Use string.h, not gdb_string.h.
720 * ser-go32.c: Use string.h, not gdb_string.h.
721 * ser-mingw.c: Use string.h, not gdb_string.h.
722 * ser-pipe.c: Use string.h, not gdb_string.h.
723 * ser-tcp.c: Use string.h, not gdb_string.h.
724 * ser-unix.c: Use string.h, not gdb_string.h.
725 * serial.c: Use string.h, not gdb_string.h.
726 * sh-tdep.c: Use string.h, not gdb_string.h.
727 * sh64-tdep.c: Use string.h, not gdb_string.h.
728 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
729 * skip.c: Use string.h, not gdb_string.h.
730 * sol-thread.c: Use string.h, not gdb_string.h.
731 * solib-dsbt.c: Use string.h, not gdb_string.h.
732 * solib-frv.c: Use string.h, not gdb_string.h.
733 * solib-osf.c: Use string.h, not gdb_string.h.
734 * solib-spu.c: Use string.h, not gdb_string.h.
735 * solib-target.c: Use string.h, not gdb_string.h.
736 * solib.c: Use string.h, not gdb_string.h.
737 * somread.c: Use string.h, not gdb_string.h.
738 * source.c: Use string.h, not gdb_string.h.
739 * sparc-nat.c: Use string.h, not gdb_string.h.
740 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
741 * sparc-tdep.c: Use string.h, not gdb_string.h.
742 * sparc64-tdep.c: Use string.h, not gdb_string.h.
743 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
744 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
745 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
746 * spu-linux-nat.c: Use string.h, not gdb_string.h.
747 * spu-multiarch.c: Use string.h, not gdb_string.h.
748 * spu-tdep.c: Use string.h, not gdb_string.h.
749 * stabsread.c: Use string.h, not gdb_string.h.
750 * stack.c: Use string.h, not gdb_string.h.
751 * std-regs.c: Use string.h, not gdb_string.h.
752 * symfile.c: Use string.h, not gdb_string.h.
753 * symmisc.c: Use string.h, not gdb_string.h.
754 * symtab.c: Use string.h, not gdb_string.h.
755 * target.c: Use string.h, not gdb_string.h.
756 * thread.c: Use string.h, not gdb_string.h.
757 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
758 * tilegx-tdep.c: Use string.h, not gdb_string.h.
759 * top.c: Use string.h, not gdb_string.h.
760 * tracepoint.c: Use string.h, not gdb_string.h.
761 * tui/tui-command.c: Use string.h, not gdb_string.h.
762 * tui/tui-data.c: Use string.h, not gdb_string.h.
763 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
764 * tui/tui-file.c: Use string.h, not gdb_string.h.
765 * tui/tui-layout.c: Use string.h, not gdb_string.h.
766 * tui/tui-out.c: Use string.h, not gdb_string.h.
767 * tui/tui-regs.c: Use string.h, not gdb_string.h.
768 * tui/tui-source.c: Use string.h, not gdb_string.h.
769 * tui/tui-stack.c: Use string.h, not gdb_string.h.
770 * tui/tui-win.c: Use string.h, not gdb_string.h.
771 * tui/tui-windata.c: Use string.h, not gdb_string.h.
772 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
773 * typeprint.c: Use string.h, not gdb_string.h.
774 * ui-file.c: Use string.h, not gdb_string.h.
775 * ui-out.c: Use string.h, not gdb_string.h.
776 * user-regs.c: Use string.h, not gdb_string.h.
777 * utils.c: Use string.h, not gdb_string.h.
778 * v850-tdep.c: Use string.h, not gdb_string.h.
779 * valarith.c: Use string.h, not gdb_string.h.
780 * valops.c: Use string.h, not gdb_string.h.
781 * valprint.c: Use string.h, not gdb_string.h.
782 * value.c: Use string.h, not gdb_string.h.
783 * varobj.c: Use string.h, not gdb_string.h.
784 * vax-tdep.c: Use string.h, not gdb_string.h.
785 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
786 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
787 * windows-nat.c: Use string.h, not gdb_string.h.
788 * xcoffread.c: Use string.h, not gdb_string.h.
789 * xml-support.c: Use string.h, not gdb_string.h.
790 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
791 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
792
63ce7108
TT
7932013-11-18 Tom Tromey <tromey@redhat.com>
794
795 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
796 and strstr.
797 * gnulib/aclocal.m4: Update.
798 * gnulib/config.in: Update.
799 * gnulib/configure: Update.
800 * gnulib/import/Makefile.am: Update.
801 * gnulib/import/Makefile.in: Update.
802 * gnulib/import/errno.in.h: New.
803 * gnulib/import/intprops.h: New.
804 * gnulib/import/m4/errno_h.m4: New.
805 * gnulib/import/m4/gnulib-cache.m4: Update.
806 * gnulib/import/m4/gnulib-comp.m4: Update.
807 * gnulib/import/m4/strerror.m4: New.
808 * gnulib/import/m4/strstr.m4: New.
809 * gnulib/import/m4/sys_socket_h.m4: New.
810 * gnulib/import/strerror-override.c: New.
811 * gnulib/import/strerror-override.h: New.
812 * gnulib/import/strerror.c: New.
813 * gnulib/import/strstr.c: New.
814
a7c11ee1
TT
8152013-11-18 Tom Tromey <tromey@redhat.com>
816
817 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
818 multiple lines.
819
d0b5971a
JM
8202013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
821
822 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
823 * sparc-tdep.h: And its prototype.
824
825 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
826 function.
827 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
828
4b4589ad
PA
8292013-11-18 Pedro Alves <palves@redhat.com>
830
831 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
832 use unpack_pointer.
833
422ad5c2
JB
8342013-11-18 Joel Brobecker <brobecker@adacore.com>
835
836 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
837 to -list-features output.
838
b1370418
JB
8392013-11-17 Joel Brobecker <brobecker@adacore.com>
840
841 * dwarf2expr.h (struct dwarf_expr_context_funcs)
842 <read_addr_from_reg>: Renames "read_reg".
843 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
844 Adjust comment.
845 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
846 Use read_addr_from_reg in place of read_reg.
847 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
848 in place of read_reg.
849 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
850 dwarf_expr_read_reg.
851 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
852 with dwarf_expr_read_addr_from_reg.
853 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
854 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
855 needs_frame_read_addr_from_reg.
856
6ea71545
JK
8572013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
858
859 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
860
19a1b230
AA
8612013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
862
863 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
864 NULL.
865
805e1f19
TT
8662013-11-15 Tom Tromey <tromey@redhat.com>
867
868 PR c++/16117:
869 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
870 (classify_name): Likewise. Prefer a field of "this" over a
871 filename.
872 (classify_inner_name, yylex): Update.
873
0acf8b65
JB
8742013-11-15 Joel Brobecker <brobecker@adacore.com>
875
876 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
877 Extend the documentation a bit.
878 <get_reg_value>: New field.
879 * dwarf2loc.c (dwarf_expr_get_reg_value)
880 (needs_frame_get_reg_value): New functions.
881 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
882 callback.
883 * dwarf2-frame.c (get_reg_value): New function.
884 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
885 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
886 Use new callback to compute result_val.
887
ef1bc9e7
AM
8882013-11-15 Alan Modra <amodra@gmail.com>
889
890 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
891 (ppc64_desc_entry_point): ..this. Update comments here and at
892 call points.
893 (ppc64_standard_linkage1, ppc64_standard_linkage2,
894 ppc64_standard_linkage3): Update comments.
895 (ppc64_standard_linkage4, ppc64_standard_linkage5,
896 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
897 patterns.
898 (ppc64_standard_linkage4_target): New function.
899 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
900 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
901 nop match. Fix comment wrap.
902
36fa8042
PA
9032013-11-14 Pedro Alves <palves@redhat.com>
904
905 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
906 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
907
4f5d7f63
PA
9082013-11-14 Pedro Alves <palves@redhat.com>
909
910 * infrun.c (struct execution_control_state)
911 <stepped_after_stopped_by_watchpoint>: New field.
912 (get_inferior_stop_soon): New function.
913 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
914 moved to struct execution_control_state -- adjust. Use
915 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
916 new function.
917 (handle_signal_stop): New function, factored out from
918 handle_inferior_event.
919
47591c29
PA
9202013-11-14 Pedro Alves <palves@redhat.com>
921
922 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
923 return a boolean.
924 * breakpoint.c (bpstat_explains_signal): Adjust to return a
925 boolean.
926 (explains_signal_watchpoint, base_breakpoint_explains_signal):
927 Adjust to return a boolean.
928 * breakpoint.h (enum bpstat_signal_value): Delete.
929 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
930 (bpstat_explains_signal): Likewise.
931 * infrun.c (handle_inferior_event) <random signal checks>:
932 bpstat_explains_signal now returns a boolean - adjust. No longer
933 consider hiding signals.
934
bac7d97b
PA
9352013-11-14 Pedro Alves <palves@redhat.com>
936
937 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
938 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
939 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
940 BPSTAT_SIGNAL_HIDE.
941 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
942 instead of BPSTAT_SIGNAL_HIDE.
943 * infrun.c (handle_inferior_event): Rework random signal checks.
944
ce12b012
PA
9452013-11-14 Pedro Alves <palves@redhat.com>
946
947 * infrun.c (struct execution_control_state): Remove
948 'random_signal' field.
949 (handle_syscall_event): Use bpstat_causes_stop instead of
950 bpstat_explains_signal. Don't set ecs->random_signal.
951 (handle_inferior_event): New 'random_signal' local.
952 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
953 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
954 bpstat_explains_signal. Don't set ecs->random_signal.
955 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
956 ecs->random_signal.
957
05ba8510
PA
9582013-11-14 Pedro Alves <palves@redhat.com>
959
960 * infrun.c (handle_inferior_event): Move comment from the
961 function's body to the function's description, adjusted.
962
5c09a2c5
PA
9632013-11-14 Pedro Alves <palves@redhat.com>
964
965 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
966 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
967 Assert we never fall through out of the TARGET_WAITKIND_LOADED
968 case.
969
91822956
TT
9702013-11-14 Tom Tromey <tromey@redhat.com>
971
972 * python/py-linetable.c (ltpy_has_line)
973 (ltpy_get_all_source_lines): Fix loop termination condition.
974
403cb6b1
JB
9752013-11-14 Joel Brobecker <brobecker@adacore.com>
976
977 * mi/mi-parse.h (struct mi_parse) <language>: New field.
978 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
979 PARSE->LANGUAGE during command execution, if set.
980 * mi/mi-parse.c: Add "language.h" #include.
981 (mi_parse): Add parsing of "--language" command option.
982
983 * NEWS: Add entry mentioning the new "--language" command option.
984
b5be8ce0
JB
9852013-11-14 Pedro Alves <palves@redhat.com>
986 Joel Brobecker <brobecker@adacore.com>
987
988 * cli/cli-utils.h (extract_arg_const): Add declaration.
989 * cli/cli-utils.c (extract_arg_const): New function.
990 (extract_arg): Reimplement using extract_arg_const.
991
671afef6
JB
9922013-11-14 Joel Brobecker <brobecker@adacore.com>
993
994 * language.h: Add "symtab.h" #include.
995
6c1b0f7b
DE
9962013-11-13 Doug Evans <xdje42@gmail.com>
997
998 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
999 specific breakpoints, don't evaluate breakpoint condition if
1000 different thread.
1001
74921315
KS
10022013-11-13 Keith Seitz <keiths@redhat.com>
1003
248ace2e 1004 PR c++/7935
74921315
KS
1005 PR c++/10541
1006 * cp-support.c (insepct_type): Add support for substituting
1007 namespace aliases, too.
1008 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1009 for DW_TAG_imported_declaration.
1010 (add_partial_symbol): Likewise.
1011 (process_die): Handle namespace aliases with
1012 read_namespace_alias.
1013 (die_needs_namespace): Add DW_TAG_imported_declaration.
1014 (read_namespace_alias): New function.
1015 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1016 (new_symbol_full): Handle DW_TAG_imported_declaration.
1017
793156e6
KS
10182013-11-13 Keith Seitz <keiths@redhat.com>
1019
1020 * p-exp.y (uptok): Make first parameter const.
1021 (yylex): Make `tokstart' and `tokptr' const.
1022 Don't copy the lexer input to a temporary buffer.
1023 Make `p' const.
1024 Remove const workaround for parse_escape.
1025 Create a temporary buffer for a convenience variable instead
1026 of doing in-place modification of the input.
1027 If a match is found with a different case from the input,
1028 do not change the input at all.
1029 Use `tmp' to construct the resultant stoken instead of
1030 `tokstart'.
1031
c42bd95a
DE
10322013-11-13 Doug Evans <xdje42@gmail.com>
1033
1034 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1035
93973826
JB
10362013-11-13 Joel Brobecker <brobecker@adacore.com>
1037
1038 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1039 entry with "ada-exceptions".
1040
846060df
JB
10412013-11-13 Joel Brobecker <brobecker@adacore.com>
1042
1043 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1044 after re-initialization of OBJFILE's obstack.
1045
5efd1b2b 10462013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1047
1048 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1049 bs->stop != 0 on entry. Update function comment. Simplify early
1050 exit for frame mismatch. Reindent rest of function.
1051
ee7615e1
AA
10522013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1053
1054 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1055 NULL.
1056
8943b874
DE
10572013-11-12 Doug Evans <dje@google.com>
1058
1059 Work around gold/15646.
1060 * dwarf2read.c (read_index_from_section): Update comment.
1061 (struct dw2_symtab_iterator): New member global_seen.
1062 (dw2_symtab_iter_init): Initialize it.
1063 (dw2_symtab_iter_next): Skip duplicate global symbols.
1064 (dw2_expand_symtabs_matching): Ditto.
1065
a8a9844d
JB
10662013-11-12 Joel Brobecker <brobecker@adacore.com>
1067
1068 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1069 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1070 command.
1071 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1072 (mi_cmd_info_ada_exceptions): New function.
1073 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1074
778865d3
JB
10752013-11-12 Joel Brobecker <brobecker@adacore.com>
1076
1077 * ada-lang.h: #include "vec.h".
1078 (struct ada_exc_info): New.
1079 (ada_exc_info): New typedef.
1080 (DEF_VEC_O(ada_exc_info)): New vector.
1081 (ada_exceptions_list): Add declaration.
1082 * ada-lang.c (ada_is_exception_sym)
1083 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1084 (sort_remove_dups_ada_exceptions_list)
1085 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1086 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1087 (ada_exceptions_list_1, ada_exceptions_list)
1088 (info_exceptions_command): New function.
1089 (_initialize_ada_language): Add "info exception" command.
1090
bc79de95
PM
10912013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1092
1093 PR python/15629
1094 * NEWS: Add linetable feature.
1095 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1096 * python/py-linetable.c: New file.
1097 * python/py-symtab.c (stpy_get_linetable): New function.
1098 * python/python-internal.h (symtab_to_linetable_object): Declare.
1099 (gdbpy_initialize_linetable): Ditto.
1100 * python/python.c (_initialize_python): Call
1101 gdbpy_initialize_linetable.
1102
2df4d1d5
JB
11032013-11-11 Joel Brobecker <brobecker@adacore.com>
1104
1105 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1106 the documentation of fields "except_string" and "condition".
1107 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1108 CONDITION on the heap before passing it to
1109 create_ada_exception_catchpoint.
1110 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1111 CONDITION.
1112
99c1d451
TT
11132013-11-11 Tom Tromey <tromey@redhat.com>
1114
1115 * config.in, configure: Rebuild.
1116 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1117
8ca5801b
JB
11182013-11-11 Joel Brobecker <brobecker@adacore.com>
1119
1120 * remote-sim.c (gdbsim_detach): Break declaration into
1121 shorter lines. No code change.
1122
7a06d430
EBM
11232013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1124
1125 * remote-sim.c (gdbsim_detach): Fix prototype.
1126
73be47f5
DE
11272013-11-08 Doug Evans <dje@google.com>
1128
1129 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1130 (create_debug_types_hash_table): Only print debugging messages for
1131 each TU if dwarf2-read >= 2.
1132 (process_queue): Ditto.
1133 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1134 Update doc string.
1135
a18d8f10
TT
11362013-11-08 Tom Tromey <tromey@redhat.com>
1137
1138 * configure: Rebuild.
1139 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1140
9467110b
TT
11412013-11-08 Tom Tromey <tromey@redhat.com>
1142
1143 * configure, config.in: Rebuild.
1144 * configure.ac: Remove unused configury.
1145
69706679
TT
11462013-11-08 Tom Tromey <tromey@redhat.com>
1147
1148 * m32c-tdep.c: Use gdb_string.h.
1149
9b4bea72
TT
11502013-11-08 Tom Tromey <tromey@redhat.com>
1151
1152 * configure, config.in: Rebuild.
1153 * configure.ac: Remove all link.h-related checks.
1154
3266f10b
TT
11552013-11-08 Tom Tromey <tromey@redhat.com>
1156
1157 * acinclude.m4: Include common.m4.
1158 * common/common.m4: New file.
1159 * configure, config.in: Rebuild.
1160 * configure.ac: Use GDB_AC_COMMON.
1161
db0fec5c
DE
11622013-11-08 Doug Evans <dje@google.com>
1163
1164 * NEWS: Mention that "set debug symtab-create" now accepts a
1165 verbosity level.
1166 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1167 to set the symtab's primary flag.
1168 * jit.c (finalize_symtab): Ditto.
1169 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1170 * symfile.c (allocate_symtab): Only print debugging messages for
1171 symtab_create_debug levels 2 and higher.
1172 * symtab.c (symtab_create_debug): Change type to unsigned int.
1173 (set_symtab_primary): New function.
1174 (_initialize_symtab): Change "set debug symtab-create" to a
1175 zuinteger option.
1176 * symtab.h (set_symtab_primary): Declare.
1177 (symtab_create_debug): Update decl.
1178
52554a0e
TT
11792013-11-08 Tom Tromey <tromey@redhat.com>
1180
1181 * aix-thread.c (aix_thread_detach): Update.
1182 * corelow.c (core_detach): Update.
1183 * darwin-nat.c (darwin_detach): Update.
1184 * dec-thread.c (dec_thread_detach): Update.
1185 * gnu-nat.c (gnu_detach): Update.
1186 * go32-nat.c (go32_detach): Update.
1187 * inf-ptrace.c (inf_ptrace_detach): Update.
1188 * inf-ttrace.c (inf_ttrace_detach): Update.
1189 * linux-fork.c (linux_fork_detach): Update.
1190 * linux-fork.h (linux_fork_detach): Update.
1191 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1192 local for const-correctness.
1193 * linux-thread-db.c (thread_db_detach): Update.
1194 * monitor.c (monitor_detach): Update.
1195 * nto-procfs.c (procfs_detach): Update.
1196 * procfs.c (procfs_detach): Update.
1197 * record.c (record_detach): Update.
1198 * record.h (record_detach): Update.
1199 * remote-m32r-sdi.c (m32r_detach): Update.
1200 * remote-mips.c (mips_detach): Update.
1201 * remote-sim.c (gdbsim_detach): Update.
1202 * remote.c (remote_detach_1, remote_detach)
1203 (extended_remote_detach): Update.
1204 * sol-thread.c (sol_thread_detach): Update.
1205 * target.c (target_detach): Make "args" const.
1206 (init_dummy_target): Update.
1207 * target.h (struct target_ops) <to_detach>: Make argument const.
1208 (target_detach): Likewise.
1209 * windows-nat.c (windows_detach): Update.
1210
204b5331
DE
12112013-11-07 Doug Evans <dje@google.com>
1212
1213 PR 11786
1214 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1215 and align fields for PT_GNU_RELRO segments.
1216
92e32e33
PM
12172013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1218
ef1bc9e7
AM
1219 PR python/15747
1220 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1221
f76c27b5
PM
12222013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1223
1224 * NEWS: Document Python temporary breakpoint support.
1225 * python/py-breakpoint.c (bppy_get_temporary): New function.
1226 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1227 to temporary if True.
1228
d52cd232
JM
12292013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1230
1231 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1232 removed to allow analyzing unconditional branch instructions
1233 with PC-relative offsets of zero.
1234
fa4d0c40
YQ
12352013-11-07 Yao Qi <yao@codesourcery.com>
1236
1237 * mi/mi-cmd-var.c: Include "language.h".
1238 (mi_cmd_var_info_expression): Get language name from
1239 language_defn.
1240 * varobj.c (varobj_language_string): Remove.
1241 (variable_language): Remove declaration.
1242 (languages): Remove.
1243 (varobj_get_language): Change the type of return value.
1244 (variable_language): Remove.
1245 * varobj.h (enum varobj_languages): Remove.
1246 (varobj_language_string): Remove declaration.
1247 (varobj_get_language): Update declaration.
1248
6abde28f
YQ
12492013-11-07 Yao Qi <yao@codesourcery.com>
1250
1251 * language.h (struct language_defn) <la_natural_name>: New
1252 field.
1253 * ada-lang.c (ada_language_defn): Initialize field
1254 'la_natural_name'.
1255 * c-lang.c (c_language_defn): Likewise.
1256 (cplus_language_defn, asm_language_defn): Likewise.
1257 * d-lang.c (d_language_defn): Likewise.
1258 * f-lang.c (f_language_defn): Likewise.
1259 * go-lang.c (go_language_defn): Likewise.
1260 * jv-lang.c (java_language_defn): Likewise.
1261 * language.c (unknown_language_defn ): Likewise.
1262 (auto_language_defn): Likewise.
1263 * m2-lang.c (m2_language_defn): Likewise.
1264 * objc-lang.c (objc_language_defn): Likewise.
1265 * opencl-lang.c (opencl_language_defn): Likewise.
1266 * p-lang.c (pascal_language_defn): Likewise.
1267
27cd387b
YQ
12682013-11-07 Yao Qi <yao@codesourcery.com>
1269
1270 * language.c (language_str): Return const char *.
1271 (add_language): Add const to 'language_names'
1272 * language.h (struct language_defn) <la_name>: Add const.
1273 (language_str: Update declaration.
1274
6682d959
AA
12752013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1276
1277 * s390-linux-nat.c (s390_read_description): Consider the TE field
1278 in the HWCAP for determining 'have_regset_tdb'.
1279
b9502d3f
WN
12802013-11-06 Will Newton <will.newton@linaro.org>
1281
1282 PR gdb/12866
1283 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1284 values. (read_partial_die): Likewise.
1285
840da61a
MB
12862013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1287
1288 PR cli/16122
1289 * top.c (command_line_input): Unify interactivity tests to use
1290 input_from_terminal_p.
1291 * event-top.c (command_line_handler): Likewise.
1292
7636ccf9
YQ
12932013-11-06 Yao Qi <yao@codesourcery.com>
1294
1295 * Makefile.in (check-perf): New target.
1296
12b27276
WN
12972013-11-05 Will Newton <will.newton@linaro.org>
1298
1299 PR gdb/7670
1300 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1301 (arm_print_float_info): Likewise.
1302
67c059c2
AB
13032013-11-04 Anton Blanchard <anton@samba.org>
1304
1305 * target.c (memory_xfer_partial): Cap write to 4KB.
1306
0569175e
TSD
13072013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1308
1309 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1310 probe scan even when the arch provides no get_longjmp_target.
1311
b18e90f5
PA
13122013-10-31 Pedro Alves <palves@redhat.com>
1313
1314 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1315 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1316 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1317 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1318 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1319 <bpstat handling>: If the bpstat chain wants the signal to be
1320 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1321 GDB_SIGNAL_TRAP.
1322
638aa5a1
AB
13232013-10-31 Andrew Burgess <aburgess@broadcom.com>
1324
1325 * breakpoint.c (update_watchpoint): Update error message and add
1326 an additional error message.
1327
0e5fae36
UW
13282013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1329
1330 * s390-tdep.h: Rename to...
1331 * s390-linux-tdep.h: ...here.
1332 * s390-tdep.c: Rename to...
1333 * s390-linux-tdep.c: ...here. Adjust #include.
1334 * s390-nat.c: Rename to...
1335 * s390-linux-nat.c: ...here. Adjust #include.
1336 * config/s390/s390.mh: Rename to...
1337 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1338 s390-linux-nat.o.
1339 * configure.host: Reflect host rename "s390" -> "linux".
1340 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1341 * Makefile.in (ALL_TARGET_OBS): Likewise.
1342 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1343 s390-linux-tdep.h.
1344 (ALLDEPFILES): Reflect rename of .c files.
1345
34201ae3
UW
13462013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1347
1348 * s390-nat.c: Whitespace cleanup.
1349 * s390-tdep.c: Likewise.
1350 * s390-tdep.h: Remove empty line at end of file.
1351
e17aaa33
MR
13522013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1353
1354 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1355 siginfo_size.
1356
aee17e42
TT
13572013-10-29 Tom Tromey <tromey@redhat.com>
1358
1359 * utils.c (reg): Move undefinition...
1360 * gdb_curses.h: ... here. Update comment to mention AIX.
1361
9ac69859
NB
13622013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1363
1364 * exec.h (add_target_sections_of_objfile): New declaration.
1365 * exec.c (add_target_sections_of_objfile): New function.
1366 * symfile.c (add_symbol_file_command): Update current target sections.
1367 (remove_symbol_file_command): New command.
1368 (symfile_free_objfile): New function.
1369 (_initialize_symfile): Register observer for free_objfile events.
1370 * NEWS: Add description of the remove-symbol-file command.
1371 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1372 * objfiles.c (free_objfile): Notify free_objfile.
1373 (is_addr_in_objfile): New function.
1374 * objfiles.h (is_addr_in_objfile): New declaration.
1375 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1376 events instead of solib_unloaded events.
1377 (_initialize_printcmd): Register observer for free_objfile instead
1378 of solib_unloaded notifications.
1379 * solib.c (remove_user_added_objfile): New function.
1380 (_initialize_symfile): Add remove-symbol-file.
1381
f69d9aef
AB
13822013-10-29 Andrew Burgess <aburgess@broadcom.com>
1383
1384 * infcmd.c (default_print_one_register_info): Use val_print to
1385 print all values even optimized out or unavailable ones. Don't
1386 try to print a raw form of optimized out or unavailable values.
1387
487ad57c
YQ
13882013-10-29 Yao Qi <yao@codesourcery.com>
1389
1390 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1391 parameter 'arg' instead of from program_space_data.
1392 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1393 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1394 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1395 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1396 * inflow.c (inflow_inferior_data_cleanup): Get data from
1397 parameter 'arg' instead of inferior_data.
1398 * registry.h: Add comments.
1399
3c4797ba
PA
14002013-10-28 Pedro Alves <palves@redhat.com>
1401
1402 * breakpoint.c (watchpoints_triggered)
1403 <!target_stopped_data_address>: Hardcode return 1.
1404
cdaa5b73
PA
14052013-10-28 Pedro Alves <palves@redhat.com>
1406
1407 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1408 level and reindent.
1409
94c57d6a
PA
14102013-10-28 Pedro Alves <palves@redhat.com>
1411
1412 * infrun.c (process_event_stop_test): New function, factored out
1413 from handle_inferior_event.
1414 (handle_inferior_event): 'process_event_stop_test' is now a
1415 function instead of a goto label -- adjust.
1416
fcf3daef
PA
14172013-10-28 Pedro Alves <palves@redhat.com>
1418
1419 * infrun.c (handle_inferior_event): Move process_event_stop_test
1420 goto label to the else branch of the ecs->random_signal check,
1421 along with FRAME and GDBARCH re-fetching.
1422
c447ac0b
PA
14232013-10-28 Pedro Alves <palves@redhat.com>
1424
1425 * infrun.c (switch_back_to_stepped_thread): New function, factored
1426 out from handle_inferior_event.
1427 (handle_inferior_event): Adjust to call
1428 switch_back_to_stepped_thread. Call it also at the tail of the
1429 random signal handling, and return, instead of also handling
1430 random signals just before the stepping tests.
1431
f05e4c11
PA
14322013-10-28 Pedro Alves <palves@redhat.com>
1433
1434 * infrun.c (clear_stop_func): Delete.
1435 (handle_inferior_event): Don't call clear_stop_func and don't
1436 clear 'ecs->random_signal'.
1437
ca20d462
YQ
14382013-10-27 Yao Qi <yao@codesourcery.com>
1439
1440 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1441 (varobj_create, varobj_get_path_expr): Update.
1442 (varobj_value_has_mutated, varobj_update): Likewise.
1443 (create_child_with_value, new_root_variable): Likewise.
1444 (number_of_children, name_of_variable): Likewise.
1445 (value_of_child, my_value_of_variable): Likewise.
1446 (varobj_value_is_changeable_p): Likewise.
1447
a53b64ea
YQ
14482013-10-25 Yao Qi <yao@codesourcery.com>
1449
1450 * language.h (struct lang_varobj_ops): Declare.
1451 (struct language_defn) <la_varobj_ops>: New field.
1452 * ada-lang.c: Include "varobj.h"
1453 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1454 ada_varobj_ops.
1455 * c-lang.c: Include "varobj.h"
1456 (c_language_defn): Initialize field 'la_varobj_ops' with
1457 c_varobj_ops.
1458 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1459 cplus_varobj_ops.
1460 (asm_language_defn): Initialize field 'la_varobj_ops' with
1461 default_varobj_ops.
1462 (minimal_language_defn): Likewise.
1463 * d-lang.c (d_language_defn): Likewise.
1464 * f-lang.c (f_language_defn): Likewise.
1465 * go-lang.c (go_language_defn): Likewise.
1466 * m2-lang.c (m2_language_defn): Likewise.
1467 * objc-lang.c (objc_language_defn): Likewise.
1468 * opencl-lang.c (opencl_language_defn): Likewise.
1469 * p-lang.c (pascal_language_defn): Likewise.
1470 * language.c (unknown_language_defn): Likewise.
1471 (auto_language_defn): Likewise.
1472 (local_language_defn): Likewise.
1473 * jv-lang.c (java_language_defn): Initialize field
1474 'la_varobj_ops' with java_varobj_ops.
1475 * varobj.c (varobj_create): Update.
1476 * varobj.h (default_varobj_ops): Define macro.
1477
686d4def
PA
14782013-10-25 Pedro Alves <palves@redhat.com>
1479
1480 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1481 static field value.
1482 (cp_print_static_field): If the value is entirely optimized out,
1483 print <optimized out> here.
1484 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1485 static field value.
1486 * p-valprint.c (pascal_object_print_static_field): If the value is
1487 entirely optimized out, print <optimized out> here.
1488 * valops.c (do_search_struct_field)
1489 (value_struct_elt_for_reference): No longer handle a NULL static
1490 field value.
1491 * value.c (value_static_field): Return an optimized out value
1492 instead of NULL.
1493
6c177e28
YQ
14942013-10-25 Yao Qi <yao@codesourcery.com>
1495
1496 * remote.c (remote_traceframe_info): Return early if
1497 traceframe is not selected.
1498
98322bfa
YQ
14992013-10-25 Yao Qi <yao@codesourcery.com>
1500
1501 * tracepoint.c (traceframe_fun): Remove.
1502 (traceframe_sal): Remove.
1503 (set_traceframe_context): Add local variables.
1504
6ba1f115
JB
15052013-10-25 Joel Brobecker <brobecker@adacore.com>
1506
1507 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1508 and parameter name.
1509
bbe769cc
MR
15102013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1511
1512 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1513 failure from register information collection.
1514
72ee4495 15152013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1516
1517 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1518 member.
1519 (linux_corefile_thread_callback): Update accordingly.
1520 (linux_make_corefile_notes): Likewise.
1521
98882a26
PA
15222013-10-24 Pedro Alves <palves@redhat.com>
1523
1524 * NEWS (New options): Mention set/show startup-with-shell.
1525 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1526 instead of 3.
1527 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1528 startup-with-shell'.
1529 (show_startup_with_shell): New function.
1530 (_initialize_fork_child): Register the set/show startup-with-shell
1531 commands.
1532 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1533 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1534 * procfs.c (procfs_init_inferior): Remove comment.
1535 * infcmd.c (startup_with_shell): New global.
1536 * inferior.h (startup_with_shell): Declare global.
1537 (STARTUP_WITH_SHELL): Delete.
1538 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1539
c9737c08
PA
15402013-10-23 Pedro Alves <palves@redhat.com>
1541
1542 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1543 * common/signals.c: Include "gdb_assert.h".
1544 (signals): New field 'symbol'.
1545 (SET): Use the 'symbol' parameter.
1546 (gdb_signal_to_symbol_string): New function.
1547 * infrun.c (handle_inferior_event) <random signal>: In debug
1548 output, print the random signal enum as string in addition to its
1549 number.
1550 * target/waitstatus.c (target_waitstatus_to_string): Print the
1551 signal's enum value as string instead of the (POSIX) signal name.
1552
f60db4f0
GB
15532013-10-23 Gary Benson <gbenson@redhat.com>
1554
1555 PR 16013
1556 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1557 from 32 to 18. Adjusted fscanf format string accordingly.
1558 (Avoids leaving cmd unterminated.)
1559 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1560 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1561 that local_address and remote_address will not overflow.
1562 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1563 leaving dependencies unterminated. Parse size as "%u" to match
1564 definition.
1565
6d3e7a94
PA
15662013-10-22 Pedro Alves <palves@redhat.com>
1567
1568 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1569 set ecs->random signal.
1570
42ec045f
PA
15712013-10-22 Pedro Alves <palves@redhat.com>
1572
1573 * infrun.c (keep_going): Update comments.
1574
15752013-10-22 Pedro Alves <palves@redhat.com>
1576
1577 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1578 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1579
15802013-10-22 Pedro Alves <palves@redhat.com>
1581
1582 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1583 GDB_EXC_BAD_ACCESS.
1584 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1585 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1586 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1587 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1588 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1589 (GDB_SIGNAL_LAST): Change description string.
1590 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1591 Adjust to signal renaming.
1592 * darwin-nat.c (darwin_decode_message): Likewise.
1593
c8fde1b1
JM
15942013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1595
1596 * MAINTAINERS (Write After Approval): Add myself to the list.
1597
e8369a73
AB
15982013-10-18 Andrew Burgess <aburgess@broadcom.com>
1599
1600 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1601 forced off, downgrade them to software watchpoints if possible,
1602 and error out if not possible.
1603 (watch_command_1): Move watchpoint type selection closer to
1604 watchpoint creation, and extend the comments.
1605
776f04fa
PA
16062013-10-18 Pedro Alves <palves@redhat.com>
1607
1608 PR gdb/16062
1609 * infrun.c (handle_inferior_event): Keep going if we got a random
1610 signal we should not stop for, instead of falling through to the
1611 step tests.
1612
0c6faab5
YQ
16132013-10-18 Yao Qi <yao@codesourcery.com>
1614
1615 * c-varobj.c (cplus_number_of_children): Fix indentation.
1616
50b34a18
TT
16172013-10-17 Tom Tromey <tromey@redhat.com>
1618
1619 PR gdb/15995:
1620 * printcmd.c (printcmd): Call gdb_flush.
1621
5c4c8a59
TT
16222013-10-17 Tom Tromey <tromey@redhat.com>
1623
1624 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1625 (elf_locate_sections): Update.
1626
c4124bf1
YQ
16272013-10-17 Yao Qi <yao@codesourcery.com>
1628
1629 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1630 * ada-varobj.c: Remove the include of ada-varobj.h.
1631 (ada_varobj_get_number_of_children): Declare.
1632 (ada_varobj_get_name_of_child): Make it static.
1633 (ada_varobj_get_path_expr_of_child): Likewise.
1634 (ada_varobj_get_value_of_child): Likewise.
1635 (ada_varobj_get_type_of_child): Likewise.
1636 (ada_varobj_get_value_of_array_variable): Likewise.
1637 * ada-varobj.h: Remove.
1638
99ad9427
YQ
16392013-10-17 Yao Qi <yao@codesourcery.com>
1640
1641 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1642 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1643 * ada-varobj.c: Include "varobj.h".
1644 (ada_number_of_children): New. Moved from varobj.c.
1645 (ada_name_of_variable, ada_name_of_child): Likewise.
1646 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1647 (ada_type_of_child, ada_value_of_variable): Likewise.
1648 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1649 (ada_varobj_ops): New.
1650 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1651 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1652 * gdbtypes.h (get_target_type): Declare.
1653 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1654 "ada-lang.h".
1655 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1656 (ANONYMOUS_UNION_NAME): Likewise.
1657 (get_type, get_value_type, get_target_type): Remove declarations.
1658 (value_get_print_value, varobj_value_get_print_value): Likewise.
1659 (c_number_of_children, c_name_of_variable): Likewise.
1660 (c_name_of_child, c_path_expr_of_child): Likewise.
1661 (c_value_of_child, c_type_of_child): Likewise.
1662 (c_value_of_variable, cplus_number_of_children): Likewise.
1663 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1664 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1665 (cplus_value_of_child, cplus_type_of_child): Likewise.
1666 (cplus_value_of_variable, java_number_of_children): Likewise.
1667 (java_name_of_variable, java_name_of_child): Likewise.
1668 (java_path_expr_of_child, java_value_of_child): Likewise.
1669 (java_type_of_child, java_value_of_variable): Likewise.
1670 (ada_number_of_children, ada_name_of_variable): Likewise.
1671 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1672 (ada_value_of_child, ada_type_of_child): Likewise.
1673 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1674 (ada_value_has_mutated): Likewise.
1675 (struct language_specific): Move it to varobj.h.
1676 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1677 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1678 Callers update.
1679 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1680 Make it extern.
1681 (is_anonymous_child): Move it to c-varobj.c and rename to
1682 varobj_is_anonymous_child. Caller update.
1683 (get_type): Move it to c-varobj.c.
1684 (get_value_type): Rename it varobj_get_value_type. Make it
1685 extern.
1686 (get_target_type): Move it gdbtypes.c.
1687 (varobj_formatted_print_options): New function.
1688 (value_get_print_value): Rename it to
1689 varobj_value_get_print_value and make it extern.
1690 (varobj_value_is_changeable_p): Make it extern.
1691 (adjust_value_for_child_access): Move it to c-varobj.c.
1692 (default_value_is_changeable_p): Rename it to
1693 varobj_default_value_is_changeable_p. Make it extern.
1694 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1695 (c_name_of_child, c_path_expr_of_child): Likewise.
1696 (c_value_of_child, c_type_of_child): Likewise.
1697 (c_value_of_variable, cplus_number_of_children): Likewise.
1698 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1699 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1700 (cplus_value_of_child, cplus_type_of_child): Likewise.
1701 (cplus_value_of_variable): Likewise.
1702 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1703 (java_name_of_child, java_path_expr_of_child): Likewise.
1704 (java_value_of_child, java_type_of_child): Likewise.
1705 (java_value_of_variable): Likewise.
1706 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1707 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1708 (ada_value_of_child, ada_type_of_child): Likewise.
1709 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1710 (ada_value_has_mutated): Likewise.
1711 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1712 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1713 (c_varobj_ops, cplus_varobj_ops): Declare.
1714 (java_varobj_ops, ada_varobj_ops): Declare.
1715 (varobj_default_value_is_changeable_p): Declare.
1716 (varobj_value_is_changeable_p): Declare.
1717 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1718 (varobj_get_path_expr_parent): Declare.
1719 (varobj_value_get_print_value): Declare.
1720 (varobj_formatted_print_options): Declare.
1721 (varobj_restrict_range): Declare.
1722
c8a62302
LM
17232013-10-17 Luis Machado <lgustavo@codesourcery.com>
1724
1725 * target/waitstatus.h (target_waitkind): Remove spurious
1726 character from the comments.
1727
eade6471
JB
17282013-10-17 Joel Brobecker <brobecker@adacore.com>
1729
1730 * gdbarch.sh (get_longjmp_target): Add method documentation.
1731 * gdbarch.h: Regenerate.
1732
5411b26c
TT
17332013-10-16 Tom Tromey <tromey@redhat.com>
1734
1735 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1736 label.
1737
87326c87
LM
17382013-10-16 Luis Machado <lgustavo@codesourcery.com>
1739
1740 * gcore.in: Call GDB using the full path to the gcore script.
1741 Error out if the GDB binary is not found.
1742
fd0a4d76
SDJ
17432013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1744
1745 PR gdb/16014
1746 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1747 sizeof.
1748
d92f7ee3
SDJ
17492013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1750
1751 PR gdb/16042
1752 * target.c (target_disable_btrace): Fix invalid return value for
1753 void function.
1754 (target_teardown_btrace): Likewise.
1755
bb5ce47a
YQ
17562013-10-14 Yao Qi <yao@codesourcery.com>
1757
1758 * varobj.c (struct varobj): Move most of the fields to
1759 varobj.h.
1760 (struct varobj_dynamic): New struct.
1761 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1762 (varobj_has_more): Likewise.
1763 (dynamic_varobj_has_child_method): Likewise.
1764 (update_dynamic_varobj_children): Likewise.
1765 (varobj_get_num_children): Likewise.
1766 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1767 (install_new_value_visualizer): Likewise.
1768 (install_new_value_visualizer, install_new_value): Likewise.
1769 (varobj_update, new_variable, free_variable): Likewise.
1770 (my_value_of_variable, value_get_print_value): Likewise.
1771 (install_visualizer): Change the type of parameter 'var' to
1772 'struct varobjd_dynamic *'. Callers update.
1773 * varobj.h (struct varobj): Moved from varobj.c.
1774 (struct varobj) <dynamic>: New field.
1775
0b76b0ce
SL
17762013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1777
1778 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1779 as the preferred name of r30.
1780 * nios2-linux-tdep.c (reg_offsets): Likewise.
1781 * features/nios2-cpu.xml: Likewise.
1782 * features/nios2-linux.c: Regenerated.
1783 * features/nios2.c: Regenerated.
1784 * regformats/nios2-linux.dat: Regenerated.
1785
4856b6bc
JK
17862013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1787
1788 Canonicalize directories for EXEC_FILENAME.
1789 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1790 exec_filename.
1791 * utils.c (gdb_realpath_keepfile): New function.
1792 * utils.h (gdb_realpath_keepfile): New declaration.
1793
9b557b58
DE
17942013-10-11 Doug Evans <dje@google.com>
1795
1796 * Makefile.in (GDBFLAGS): New variable.
1797 (run): New rule.
1798
ce13fade
JB
17992013-10-11 Joel Brobecker <brobecker@adacore.com>
1800
1801 * NEWS: Add entry documenting the new "-catch-assert" and
1802 "-catch-exception" GDB/MI commands.
1803
349774ef
JB
18042013-10-11 Joel Brobecker <brobecker@adacore.com>
1805
1806 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1807 "enabled".
1808 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1809 "enabled". Set B->ENABLE_STATE accordingly.
1810 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1811 ada-lang.c.
1812 (create_ada_exception_catchpoint): Add declaration.
1813 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1814 (create_ada_exception_catchpoint): Make non-static. Add new
1815 parameter "disabled". Use it in call to
1816 init_ada_exception_breakpoint.
1817 (catch_ada_exception_command): Add parameter "enabled" in call
1818 to create_ada_exception_catchpoint.
1819 (catch_assert_command): Likewise.
1820
1821 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1822 Add declarations.
1823 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1824 "catch-exception" commands.
1825 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1826 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1827
761269c8
JB
18282013-10-11 Joel Brobecker <brobecker@adacore.com>
1829
1830 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1831 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1832 of all its enumerates with "ada_". Update the rest of this
1833 file throughout.
1834
b4a5b78b
JB
18352013-10-11 Joel Brobecker <brobecker@adacore.com>
1836
1837 * ada-lang.c (ada_decode_exception_location): Delete.
1838 (create_ada_exception_catchpoint): Remove arguments "sal",
1839 "addr_string" and "ops". Add argument "ex_kind" instead.
1840 Adjust implementation accordingly, calling ada_exception_sal
1841 to get the entities it no longer gets passed as arguments.
1842 Document the function's arguments.
1843 (catch_ada_exception_command): Use catch_ada_exception_command_split
1844 instead of ada_decode_exception_location, and update call to
1845 create_ada_exception_catchpoint.
1846 (catch_ada_assert_command_split): Renames
1847 ada_decode_assert_location. Remove parameters "addr_string" and
1848 "ops", and now returns void. Adjust implementation accordingly.
1849 Update the function documentation.
1850 (catch_assert_command): Use catch_ada_assert_command_split
1851 instead of ada_decode_assert_location. Update call to
1852 create_ada_exception_catchpoint.
1853
7ad1d32c 18542013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1855
1856 * utils.h (perror_warning_with_name): Add declaration.
1857 * utils.c (perror_warning_with_name): New function.
1858 * cli/cli-cmds.c (source_script_with_search): Add call to
1859 perror_warning_with_name if from_tty is nul.
1860
7ad1d32c 18612013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1862
1863 * utils.c (perror_string): New function, extracted out of
1864 throw_perror_with_name.
1865 (throw_perror_with_name): Rework to use perror_string.
1866
bcc75809
YQ
18672013-10-11 Yao Qi <yao@codesourcery.com>
1868
1869 * remote.c (discard_pending_stop_replies_in_queue): Update
1870 declaration.
1871 (struct stop_reply) <rs>: New field.
1872 (remove_stop_reply_of_remote_state): New function.
1873 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1874 Callers update. Pass remove_stop_reply_of_remote_state to
1875 QUEUE_iterate.
1876 (remote_parse_stop_reply): Initialize field 'rs'.
1877
05feb193
WN
18782013-10-10 Will Newton <will.newton@linaro.org>
1879
1880 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1881 linux_init_abi.
1882
0d12017b
JB
18832013-10-10 Joel Brobecker <brobecker@adacore.com>
1884
1885 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1886 serial_baud_show_cmd.
1887 (_initialize_cli_cmds): Delete the code creating the
1888 "set/show remotebaud" commands.
1889 * serial.c (baud_rate): Move here from top.c.
1890 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1891 (_initialize_serial): Create "set/show serial baud" commands.
1892 Add "set/show remotebaud" command aliases.
1893 * top.c (baud_rate): Moved to serial.c.
1894 * NEWS: Document the new "set/show serial baud" commands,
1895 replacing "set/show remotebaud".
1896
578d3588
PA
18972013-10-09 Pedro Alves <palves@redhat.com>
1898
1899 * breakpoint.c (insert_bp_location): Use memory_error_message to
1900 build the memory error string.
1901 * c-lang.c: Include "gdbcore.h".
1902 (c_get_string): Use memory_error to throw error.
1903 (target_xfer_memory_error): Delete.
1904 (memory_error_message): New, factored out from
1905 target_xfer_memory_error.
1906 (memory_error): Change parameter type to target_xfer_error.
1907 Rewrite.
1908 (read_memory): Use memory_error instead of
1909 target_xfer_memory_error.
1910 * gdbcore.h: Include "target.h".
1911 (memory_error): Change parameter type to target_xfer_error.
1912 (memory_error_message): Declare function.
1913 * target.c (target_read_memory, target_read_stack)
1914 (target_write_memory, target_write_raw_memory): Return
1915 TARGET_XFER_E_IO on error. Adjust comments.
1916 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1917 instead of EIO.
1918 * target.h (target_read, target_insert_breakpoint)
1919 (target_remove_breakpoint): Adjust comments.
1920 * valprint.c (partial_memory_read): Rename parameter, and adjust
1921 comment.
1922 (val_print_string): Use memory_error_message to build the memory
1923 error string.
1924
c74e1ccf
JK
19252013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1926
1927 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1928 result variable. Rename variable fopen_e_ever_failed to
1929 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1930
915215be
PA
19312013-10-09 Pedro Alves <palves@redhat.com>
1932
1933 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1934 (monitor_write_memory_longlongs, monitor_write_memory_block):
1935 Constify 'myaddr' parameter.
1936 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1937 helper.
1938 (monitor_xfer_partial): New function.
1939 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1940 hook. Install a to_xfer_partial hook.
1941
acd13123
TT
19422013-10-09 Tom Tromey <tromey@redhat.com>
1943
1944 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1945 bfd_get_alt_debug_link_info.
1946
40135bb1
JK
19472013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1948
1949 New flag OBJF_NOT_FILENAME.
1950 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1951 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1952 allocate_objfile.
1953 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1954 symbol_file_add_from_bfd.
1955 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1956 allocate_objfile.
1957 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1958 NULL.
1959 * objfiles.h (OBJF_NOT_FILENAME): New.
1960
dc294be5
TT
19612013-10-08 Tom Tromey <tromey@redhat.com>
1962
1963 * Makefile.in (SFILES): Add build-id.c.
1964 (HFILES_NO_SRCDIR): Add build-id.h.
1965 * build-id.c: New file, largely from elfread.c. Modified
1966 most functions.
1967 * build-id.h: New file.
1968 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1969 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1970 Search for dwz file using build-id.
1971 * elfread.c (build_id_bfd_get, build_id_verify)
1972 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1973
db230ce3
JB
19742013-10-08 Joel Brobecker <brobecker@adacore.com>
1975
1976 * ada-lang.c (compare_names_with_case): Renamed from
1977 compare_names, adding a new parameter "casing" and its handling.
1978 New function documentation.
1979 (compare_names): New function, implemented using
1980 compare_names_with_case.
1981
6501c98a
JB
19822013-10-08 Joel Brobecker <brobecker@adacore.com>
1983
1984 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1985
84a1243b
TT
19862013-10-07 Tom Tromey <tromey@redhat.com>
1987
1988 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1989 demangled_names_hash.
1990 (free_objfile): Don't delete the demangled_names_hash.
1991 * objfiles.h (struct objfile_per_bfd_storage)
1992 <demangled_names_hash>: New field.
1993 (struct objfile) <demangled_names_hash>: Move to
1994 objfile_per_bfd_storage.
1995 * symfile.c (reread_symbols): Don't delete the
1996 demangled_names_hash.
1997 * symtab.c (create_demangled_names_hash): Update.
1998 (symbol_set_names): Update.
1999
1da77581
TT
20002013-10-07 Tom Tromey <tromey@redhat.com>
2001
2002 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2003 needs_relocations>: New fields.
2004 (gdb_bfd_requires_relocations): New function.
2005 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2006 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2007 the BFD needs relocations applied.
2008
46ecd527
PA
20092013-10-07 Pedro Alves <palves@redhat.com>
2010
2011 PR breakpoints/11568
2012 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2013 the thread list" instead of "gone".
2014
0c557179
SDJ
20152013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2016
2017 * NEWS: Mention new convenience variable $_exitsignal.
2018 * corelow.c (core_open): Reset exit convenience variables. Set
2019 $_exitsignal to the uncaught signal which generated the corefile.
2020 * infrun.c (handle_inferior_event): Reset exit convenience
2021 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2022 (clear_exit_convenience_vars): New function.
2023 * inferior.h (clear_exit_convenience_vars): New prototype.
2024
1cc47d81
YQ
20252013-10-06 Yao Qi <yao@codesourcery.com>
2026
2027 * varobj.h: Add comments to enum varobj_languages.
2028
73869dc2
DE
20292013-10-04 Doug Evans <dje@google.com>
2030
2031 Add support for DWP file format version 2.
2032 * NEWS: Mention support for DWP file format version 2.
2033 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2034 union of asection, containing_section. New fields virtual_offset
2035 and is_virtual. Change type of readin filed from int to char.
2036 (dwo_sections, dwo_file): Tweak comments.
2037 (dwp_v2_section_ids): New enum.
2038 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2039 str_offsets, types.
2040 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2041 All uses updated.
2042 (virtual_v2_dwo_sections): New struct.
2043 (dwp_hash_table): New fields version, nr_columns. Change type of
2044 section_pool field to a union.
2045 (dwp_file): New field version.
2046 (dwarf2_has_info): Check for virtual sections.
2047 (get_containing_section): New function.
2048 (get_section_bfd_owner, get_section_bfd_section): Call it.
2049 (dwarf2_locate_sections): Update.
2050 (dwarf2_section_empty_p): Update.
2051 (dwarf2_read_section): Handle virtual sections.
2052 (locate_dwz_sections): Update.
2053 (create_dwp_hash_table): Document and handle V2 format.
2054 (locate_v1_virtual_dwo_sections): Renamed from
2055 locate_virtual_dwo_sections and update. All callers updated.
2056 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2057 Delete arg htab. Rename arg section_index to unit_index.
2058 All callers updated.
2059 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2060 All uses updated.
2061 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2062 (lookup_dwo_unit_in_dwp): Add V2 support.
2063 (dwarf2_locate_dwo_sections): Update.
2064 (dwarf2_locate_common_dwp_sections): Renamed from
2065 dwarf2_locate_dwp_sections and update. All callers updated.
2066 (dwarf2_locate_v2_dwp_sections): New function.
2067 (open_and_init_dwp_file): Add V2 support.
2068 (read_str_index): New locals str_section, str_offsets_section.
2069
9a2c3737
PA
20702013-10-04 Pedro Alves <palves@redhat.com>
2071
2072 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2073 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2074 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2075 describing comments with references to ptid.h.
2076 * common/ptid.h: Remove intro description of constructors,
2077 accessors and predicates.
2078 (struct ptid): Reformat.
2079 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2080 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2081 describing comments.
2082
f5371440
JB
20832013-10-04 Joel Brobecker <brobecker@adacore.com>
2084
2085 * aix-thread.c (sync_threadlists): Add missing ')' in call
2086 to ptid_build.
2087
793e1c06
JB
20882013-10-04 Joel Brobecker <brobecker@adacore.com>
2089
2090 * procfs.c (procfs_init_inferior): Fix typo causing the build
2091 to fail.
2092
26f0edc1
JB
20932013-10-04 Joel Brobecker <brobecker@adacore.com>
2094
2095 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2096
5713b9b5
JB
20972013-10-04 Joel Brobecker <brobecker@adacore.com>
2098
2099 * mi/mi-main.c (run_one_inferior): Add function description.
2100 Make ARG a pointer to an integer whose value determines whether
2101 we should "run" or "start" the program.
2102 (mi_cmd_exec_run): Add handling of the "--start" option.
2103 Reject all other command-line options.
2104 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2105
f48ff2a7
YQ
21062013-10-04 Yao Qi <yao@codesourcery.com>
2107
2108 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2109 (struct notif_client) <pending_event>: Moved
2110 to struct remote_notif_state.
2111 <id>: New field.
2112 (struct remote_notif_state) <pending_event>: New field.
2113 (notif_event_xfree): Declare.
2114 * remote-notif.c (handle_notification): Adjust.
2115 (notif_event_xfree): New function.
2116 (do_notif_event_xfree): Call notif_event_xfree.
2117 (remote_notif_state_xfree): Call notif_event_xfree to free
2118 each element in field pending_event.
2119 * remote.c (discard_pending_stop_replies): Remove declaration.
2120 (discard_pending_stop_replies_in_queue): Declare.
2121 (remote_close): Call discard_pending_stop_replies_in_queue
2122 instead of discard_pending_stop_replies.
2123 (remote_start_remote): Adjust.
2124 (stop_reply_xfree): Call notif_event_xfree.
2125 (notif_client_stop): Adjust initialization.
2126 (remote_notif_remove_all): Rename it to ...
2127 (remove_stop_reply_for_inferior): ... this. Update comments.
2128 Don't check INF is NULL.
2129 (discard_pending_stop_replies): Return early if notif_state is
2130 NULL. Adjust. Don't check INF is NULL.
2131 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2132 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2133 (remote_wait_ns): Likewise.
2134
5965e028
YQ
21352013-10-04 Yao Qi <yao@codesourcery.com>
2136
2137 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2138 (notif_queue): Remove.
2139 (remote_notif_process): Add one parameter 'notif_queue'.
2140 Update comments. Callers update.
2141 (remote_async_get_pending_events_token): Remove.
2142 (remote_notif_register_async_event_handler): Remove.
2143 (remote_notif_unregister_async_event_handler): Remove.
2144 (handle_notification): Add parameter 'notif_queue'. Update
2145 comments. Callers update.
2146 (notif_xfree): Remove.
2147 (remote_notif_state_allocate): New function.
2148 (remote_notif_state_xfree): New function.
2149 (_initialize_notif): Remove code to allocate queue.
2150 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2151 (struct remote_notif_state): New.
2152 (handle_notification): Update declaration.
2153 (remote_notif_process): Likewise.
2154 (remote_notif_register_async_event_handler): Remove.
2155 (remote_notif_unregister_async_event_handler): Remove.
2156 (remote_notif_state_allocate): Declare.
2157 (remote_notif_state_xfree): Declare.
2158 * remote.c (struct remote_state) <notif_state>: New field.
2159 (remote_close): Don't call
2160 remote_notif_unregister_async_event_handler. Call
2161 remote_notif_state_xfree.
2162 (remote_open_1): Don't call
2163 remote_notif_register_async_event_handler. Call
2164 remote_notif_state_allocate.
2165
5e5ac9a5
YQ
21662013-10-04 Yao Qi <yao@codesourcery.com>
2167
2168 * varobj.c (create_child_with_value): Remove 'const' from the
2169 type of parameter 'name'.
2170 (varobj_add_child): Likewise.
2171 (install_dynamic_child): Remove 'const' from the type of
2172 parameter 'name'.
2173 (varobj_add_child): Likewise.
2174 (create_child_with_value): Likewise. Update comments. Don't
2175 duplicate 'name'.
2176 (update_dynamic_varobj_children): Duplicate 'name'
2177 and pass it to install_dynamic_child.
2178
06ab7b19
PM
21792013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2180
2181 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2182 conversion logic to occur after PyLong_Check. Comment on order
2183 change significance.
2184 * python/py-arch.c (archpy_disassemble): Comment on order of
2185 conversion for integers and longs.
2186
8ae377e8
PA
21872013-10-03 Pedro Alves <palves@redhat.com>
2188
2189 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2190 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2191 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2192 PTRACE_O_TRACEFORK is not supported.
2193 (linux_test_for_tracesysgood): New function.
2194 (linux_test_for_tracefork): New function, factored out from
2195 linux_check_ptrace_features, and also don't kill child_pid here.
2196
b1328b1b
TG
21972013-10-03 Tristan Gingold <gingold@adacore.com>
2198
2199 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2200 Remove verbose error reporting. Use detected state to
2201 thread_set_state call.
2202 (i386_darwin_dr_get): Fix return type. Remove verbose error
2203 report.
2204 Remove trailing spaces.
2205
901461f8
PA
22062013-10-02 Pedro Alves <palves@redhat.com>
2207
2208 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2209 val_print_optimized_out.
2210 * jv-valprint.c (java_print_value_fields): Likewise.
2211 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2212 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2213 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2214 new optimized out value.
2215 * findvar.c (address_from_register): Likewise.
2216 * frame.c (put_frame_register): Tweak error string to say the
2217 register was not saved, rather than optimized out.
2218 * infcmd.c (default_print_one_register_info): Adjust call to
2219 val_print_optimized_out. Use value_of_register instead of
2220 get_frame_register_value.
2221 * mi/mi-main.c (output_register): Use value_of_register instead of
2222 get_frame_register_value.
2223 * valprint.c (valprint_check_validity): Likewise.
2224 (val_print_optimized_out): New value parameter. If the value is
2225 lval_register, print <not saved> instead.
2226 (value_check_printable, val_print_scalar_formatted): Adjust calls
2227 to val_print_optimized_out.
2228 * valprint.h (val_print_optimized_out): New value parameter.
2229 * value.c (struct value) <optimized_out>: Extend comment.
2230 (error_value_optimized_out): New function.
2231 (require_not_optimized_out): Use it. Use a different string for
2232 lval_register values.
2233 * value.h (error_value_optimized_out): New declaration.
2234 * NEWS: Mention <not saved>.
2235
042a84d9
JB
22362013-10-02 Joel Brobecker <brobecker@adacore.com>
2237
2238 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2239 strcmp to compare two symtab filenames.
2240
6b9780fb
JB
22412013-10-02 Joel Brobecker <brobecker@adacore.com>
2242
2243 * symtab.c (search_symbols_equal): Delete.
2244 (sort_search_symbols_remove_dups): Replace call to
2245 search_symbols_equal by call to compare_search_syms,
2246 adjusting as necessary.
2247
751e7549
PM
22482013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2249
2250 PR python/15579
751e7549
PM
2251 * python/python.c: Document gdb.execute command in Python help.
2252
1efd7661
PM
22532013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2254
2255 * python/py-frame.c (frame_info_to_frame_object): Use
2256 gdbpy_convert_exception. Clean up Python object on failure.
2257
562fc849
PM
22582013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2259
2260 * python/lib/gdb/command/frame_filters.py
2261 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2262 (ShowFrameFilterPriority.invoke): Ditto.
2263
d7561cbb
KS
22642013-10-01 Keith Seitz <keiths@redhat.com>
2265
2266 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2267 (parse_linespec): Make 'argptr' const.
2268 Remove temporary cast of 'argptr' to const char **.
2269 (decode_line_full): Pass const pointer to parse_linespec.
2270 (decode_line_1): Likewise.
2271 (decode_objc): Make local variable 'new_argptr' const.
2272 (find_function_symbols): Remove temporary cast to char *
2273 to find_imps.
2274 * objc-lang.c (find_imps): Make argument 'method' const.
2275 Return const.
2276 * objc-lang.h (find_imps): Likewise.
2277
22782013-10-01 Keith Seitz <keiths@redhat.com>
2279
2280 * completer.c (skip_quoted_chars): Make all arguments const.
2281 Return const.
2282 (skip_quoted): Likewise.
2283 * completer.h (skip_quoted_chars): Likewise.
2284 (skip_quoted): Likewise.
2285 * defs.h (skip_quoted): Remove duplicate declaration.
2286 * jv-exp.y: Include completer.h.
2287 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2288 * p-exp.y: Include completer.h.
2289
22902013-10-01 Keith Seitz <keiths@redhat.com>
2291
2292 * c-exp.y (parse_number): Make first argument const.
2293 Make a copy of the input to manipulate.
2294 (c_parse_escape): Make first argument const.
2295 Make local variable 'tokptr' const.
2296 (parse_string_or_char): Make first two arguments const.
2297 (macro_original_text): Make const.
2298 (lex_one_token): Make local variable 'tokstart' const.
2299 Likewise for local variables named 'p'.
2300 Cast away const for struct stoken (temporary).
2301 * c-lang.h (c_parse_escpae): Make first argument const.
2302 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2303 const.
2304 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2305 var_string case.
2306 * f-exp.y (parse_number): Make first argument const.
2307 (match_string_literal): Make local variable 'tokstart'
2308 const.
2309 (yylex): Make local variable 'p' const.
2310 Cast away const for struct stoken (temporary).
2311 * go-exp.y (parse_number): Make first argument const.
2312 (parse_string_or_char): Likewise.
2313 Make local variable 'tokstart' const.
2314 (lex_one_token): Likewise for numerous locals called 'p'.
2315 Cast away const for struct stoken (temporary).
2316 * jv-exp.y (parse_number): Make first argument const.
2317 Make local variables 'tokstart' and 'tokptr' const.
2318 Cast away const for call to skip_quoted (temporary).
2319 (yylex): Make local variable 'p' const.
2320 Cast away const for struct stoken (temporary).
2321 * m2-exp.y (parse_number): Make local variable 'p' const.
2322 (yylex): Likewise for 'tokstart'.
2323 Cast away const for struct stoken (temporary).
2324 Make local variable 'p' const.
2325 * macroexp.c (get_character_constant): Pass a const string
2326 to c_parse_escape.
2327 (get_string_literal): Likewise.
2328 (macro_expand_next): Make first argument const.
2329 Cast away const for init_shared_buffer.
2330 * macroexp.h (macro_expand_next): Make first argument const.
2331 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2332 Pass a const string to c_parse_escape.
2333 Make local variables 'p' and 'namestart' const.
2334 * parse.c (lexptr): Make const.
2335 (prev_lexptr): Likewise.
2336 (find_template_name_end): Return const.
2337 Make argument const, too.
2338 (parse_exp_in_context): Make first argument const.
2339 Remove the entire const_hack.
2340 (parse_exp_in_context_1): Make first argument const.
2341 * parser-defs.h (find_template_name_end): Return const.
2342 Make argument const, too.
2343 (lexptr): Make const.
2344 (prev_lexptr): Likewise.
2345 * utils.c (parse_escape): Make second argument const.
2346 * utils.h (parse_escape): Likewise.
2347
23482013-10-01 Keith Seitz <keiths@redhat.com>
2349
2350 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2351 is now const.
2352 (block_lookup): Make 'raw_name' and 'name' const.
2353 * ada-lex.l (processString): Update for struct stoken.ptr.
2354 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2355 (operator_stoken): Likewise.
2356 (lex_one_token): Remove temporary cast to char * for
2357 'yylval.sval.ptr'.
2358 * f-exp.y (yylex): Likewise.
2359 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2360 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2361 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2362 'yylval.sval.ptr'.
2363 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2364 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2365 * linespec.c (struct ls_parser): Make 'stream' const.
2366 (find_parameter_list_end): Make argument 'input' and local
2367 variable 'p' const.
2368 (linespec_lexer_lex_string): Make local variables 'start' and
2369 'p' const.
2370 Use skip_spaces_const instead of skip_spaces.
2371 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2372 const.
2373 (parse_linespec): Temporarily cast 'argptr' to const for
2374 'parser->lexer.stream'.
2375 * m2-exp.y (yylex): Remove temporary cast to char * for
2376 'yylval.sval.ptr'.
2377 * objc-lang.c (add_msglist): Make local variable 'p' const.
2378 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2379 (exp : STRING): Make 'sp' const.
2380 (parse_number): Make argument 'p' const.
2381 * parser-defs.h (struct stoken): Make 'ptr' const.
2382
193a8eac
DE
23832013-10-01 Doug Evans <dje@google.com>
2384
2385 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2386
2213e2be
YQ
23872013-10-01 Yao Qi <yao@codesourcery.com>
2388
2389 * varobj.c (c_value_of_root): Remove declaration.
2390 (cplus_value_of_root, java_value_of_root): Likewise.
2391 (ada_value_of_root): Likewise.
2392 (struct language_specific) <value_of_root>: Remove.
2393 (languages): Update initialization.
2394 (check_scope): Move earlier.
2395 (c_value_of_root): Move earlier and rename to ...
2396 (value_of_root_1): ... this.
2397 (value_of_root): Caller update.
2398 (cplus_value_of_root, java_value_of_root): Remove.
2399 (ada_value_of_root): Remove.
2400
c573f273
YQ
24012013-10-01 Yao Qi <yao@codesourcery.com>
2402
2403 * varobj.c (varobj_format_string): Remove "unknown".
2404 (languages): Remove the first element.
2405 * varobj.h (enum varobj_languages): Remove vlang_c.
2406
56250258
YQ
24072013-10-01 Yao Qi <yao@codesourcery.com>
2408
2409 * varobj.c (struct language_specific) <language>: Remove.
2410 (languages): Update the initialization.
2411
29f9ebfa
YQ
24122013-10-01 Yao Qi <yao@codesourcery.com>
2413
2414 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2415 "solib-target.h". Include "windows-tdep.h".
2416 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2417 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2418 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2419 windows-tdep.o to gdb_target_obs.
2420
64870a42
YQ
24212013-10-01 Yao Qi <yao@codesourcery.com>
2422
2423 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2424 "solib-target.h".
2425 (amd64_windows_init_abi): Don't call set_solib_ops and
2426 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2427 windows_init_abi instead.
2428 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2429 "solib-target.h".
2430 (i386_cygwin_init_abi): Don't call set_solib_ops,
2431 set_gdbarch_has_dos_based_file_system and
2432 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2433 windows_init_abi instead.
2434 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2435 (windows_init_abi): New function.
2436 (windows_iterate_over_objfiles_in_search_order): Make it
2437 static.
2438 * windows-tdep.h (windows_init_abi): Declare.
2439 (windows_iterate_over_objfiles_in_search_order): Remove
2440 declaration.
2441
0aebdefa
JB
24422013-10-01 Jerome Guitton <guitton@adacore.com>
2443
2444 Checked in by Joel Brobecker <brobecker@adacore.com>
2445 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2446 incomplete dictionnary instead of None in case of missing
2447 environment variables.
2448 (elinos_init): in case of an incomplete environment, best
2449 effort to load system libraries instead of abort.
2450
1c8e84b0
JB
24512013-10-01 Joel Brobecker <brobecker@adacore.com>
2452
2453 * ada-lang.c (ada_has_this_exception_support): Ignore
2454 mst_solib_trampoline minimal symbols.
2455
61d82a0d
TG
24562013-09-30 Tristan Gingold <gingold@adacore.com>
2457
2458 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2459 hardware watchpoint.
2460 (i386_darwin_dr_set): Support 32 and 64 bit states.
2461 (i386_darwin_dr_get): Likewise.
2462 (i386_darwin_dr_set_control): Make static.
2463 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2464 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2465
dfd4cc63
LM
24662013-09-30 Luis Machado <lgustavo@codesourcery.com>
2467
2468 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2469 Replace TIDGET with ptid_get_lwp.
2470 Replace GET_LWP with ptid_get_lwp.
2471 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2472 Replace BUILD_THREAD with ptid_build.
2473 Replace BUILD_LWP with ptid_build.
2474 Replace PIDGET with ptid_get_pid.
2475 Replace TIDGET with ptid_get_lwp.
2476 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2477 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2478 Replace TIDGET with ptid_get_lwp.
2479 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2480 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2481 Replace TIDGET with ptid_get_lwp.
2482 Replace GET_LWP with ptid_get_lwp.
2483 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2484 * auxv.c: Likewise.
2485 * breakpoint.c: Likewise.
2486 * common/ptid.c (ptid_is_pid): Condense check for
2487 null_ptid and minus_one_ptid.
2488 (ptid_lwp_p): New function.
2489 (ptid_tid_p): New function.
2490 * common/ptid.h: Update comments for accessors.
2491 (ptid_lwp_p): New prototype.
2492 (ptid_tid_p): New prototype.
2493 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2494 * gcore.c: Replace PIDGET with ptid_get_pid.
2495 * gdbthread.h: Likewise.
2496 * gnu-nat.c: Likewise.
2497 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2498 Replace TIDGET with ptid_get_lwp.
2499 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2500 * hppanbsd-nat.c: Likewise.
2501 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2502 Replace TIDGET with ptid_get_lwp.
2503 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2504 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2505 * infcmd.c: Likewise.
2506 * inferior.h: Likewise.
2507 * inflow.c: Likewise.
2508 * infrun.c: Likewise.
2509 * linux-fork.c: Likewise.
2510 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2511 Replace GET_PID with ptid_get_pid.
2512 Replace is_lwp with ptid_lwp_p.
2513 Replace GET_LWP with ptid_get_lwp.
2514 Replace BUILD_LWP with ptid_build.
2515
5b4e221c
MF
25162013-09-28 Mike Frysinger <vapier@gentoo.org>
2517
2518 * common/linux-btrace.c: Move sys/syscall.h out of the
2519 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2520 Also check for SYS_perf_event_open before attempting to buid.
2521
57d63ce2
DE
25222013-09-27 Doug Evans <dje@google.com>
2523
19ac8c2e
DE
2524 * dwarf2read.c (dwarf2_section_info): Add comment.
2525 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2526 All uses updated.
2527 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2528 (dwarf2_read_section): Delete unused local "header". Add section
2529 name to error message.
2530 (create_dwo_in_dwp): Tweak comment.
2531 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2532
a32a8923
DE
2533 * dwarf2read.c (die_reader_specs): Tweak comment.
2534 (get_section_bfd_owner, get_section_bfd_section): New functions.
2535 (get_section_name, get_section_file_name): New functions.
2536 (get_section_id, get_section_flags): New functions.
2537 (*): Use new functions to access section fields.
2538
57d63ce2
DE
2539 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2540 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2541 arg "htab". All callers updated.
2542 (create_debug_types_hash_table): Remove redundant copy of
2543 abbrev_section.
2544 (create_dwo_in_dwp): Tweak comments.
2545 (read_str_index): Tweak comment. Record dwarf form name in static
2546 local.
2547
3736004f
PA
25482013-09-27 Pedro Alves <palves@redhat.com>
2549
2550 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2551 (remote_filename_p): Add comment.
2552 * remote.c (remote_filename_p): Adjust to use
2553 REMOTE_SYSROOT_PREFIX.
2554 * solib.c (solib_find): When deciding whether we need to add a
2555 directory separator, check whether the sysroot is "remote:"
2556 instead of checking whether the patch has a drive spec. Add
2557 comments.
2558
5b5596ff
PA
25592013-09-27 Pedro Alves <palves@redhat.com>
2560
2561 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2562 Delete fields.
2563 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2564 directly.
2565
b5eef7aa
JK
25662013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2567
2568 Fix set debug frame output.
2569 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2570 SENTINEL_FRAME entry lower to match enum frame_type order.
2571
5b856f36
PM
25722013-09-26 Pierre Muller <muller@sourceware.org>
2573
2574 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2575 AMD64_R15_REGNUM when a register index is expected.
2576 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2577 Substitute in array.
2578 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2579 (amd64_push_arguments): Substitute in integer_regnum array.
2580
ade7ed9e
DE
25812013-09-25 Doug Evans <dje@google.com>
2582
d3e81981
DE
2583 * objfiles.c (allocate_objfile): Move comment to better place.
2584
8fb8eb5c
DE
2585 New option "set debug symfile on".
2586 * NEWS: Mention "set debug symfile".
2587 * Makefile.in (SFILES): Add symfile-debug.c.
2588 (COMMON_OBS): Add symfile-debug.o.
2589 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2590 objfile's symbol functions.
2591 * objfiles.h (objfile_set_sym_fns): Declare.
2592 * symfile-debug.c: New file.
2593 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2594 objfile's symbol functions.
2595 (reread_symbols): Ditto.
2596
c256e171
DE
2597 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2598 All uses updated.
2599 (add_symtab_fns): Update prototype.
2600 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2601 (registered_sym_fns): ... this.
2602 (symtab_fns): Update.
2603 (add_symtab_fns): New arg "flavour". All callers updated.
2604 (find_sym_fns): Rewrite to use new sym_fns registry.
2605
f56ce883
DE
2606 * symfile.h (struct sym_fns): Add "objfile" argument to
2607 sym_read_linetable. All uses updated.
2608
20c681d1
DE
2609 * symtab.c (domain_name, search_domain_name): New functions.
2610 * symtab.h (domain_name, search_domain_name): Declare.
2611
ade7ed9e
DE
2612 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2613 map_matching_symbols so objfile is first. All uses updated.
2614 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2615 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2616
7d760051
UW
26172013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2618
2619 PR shlibs/8882
2620 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2621 link map entries.
2622
020f7036
DE
26232013-09-24 Doug Evans <dje@google.com>
2624
2625 * objfiles.c (free_objfile): Move comment.
2626
598402f0
JB
26272013-09-24 Joel Brobecker <brobecker@adacore.com>
2628
2629 * ada-exp.y (string_to_operator): Delete.
2630 (dummy_string_to_ada_operator): Delete.
2631
bf4d6c1c
JB
26322013-09-24 Joel Brobecker <brobecker@adacore.com>
2633
2634 Revert:
2635 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2636 amd64-tdep.c.
2637 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2638 call_dummy_integer_regs, and classify.
2639 * amd64-tdep.h (amd64_classify): Add declaration.
2640 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2641 (amd64_reg_class): Delete, moved to i386-tdep.h.
2642 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2643 Replace call to amd64_classify by call to tdep->classify.
2644 (amd64_push_arguments): Get the list of registers to use for
2645 passing integer parameters from the gdbarch tdep structure,
2646 rather than using a hardcoded one. Replace calls to amd64_classify
2647 by calls to tdep->classify.
2648 (amd64_push_dummy_call): Get the register number used for
2649 the "hidden" argument from tdep->call_dummy_integer_regs.
2650 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2651 and tdep->call_dummy_integer_regs. Set tdep->classify.
2652
849e9755
JB
26532013-09-24 Joel Brobecker <brobecker@adacore.com>
2654
2655 Revert:
2656 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2657 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2658 where tdep->memory_args_by_pointer is non-zero.
2659
c1459fd6
JB
26602013-09-24 Joel Brobecker <brobecker@adacore.com>
2661
2662 Revert:
2663 * i386-tdep.h (struct gdbarch_tdep): Add new field
2664 integer_param_regs_saved_in_caller_frame.
2665 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2666 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2667
20c2e3e0
JB
26682013-09-24 Joel Brobecker <brobecker@adacore.com>
2669
874440b8 2670 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2671 (amd64_windows_classify): Delete.
2672 (amd64_windows_passed_by_integer_register)
2673 (amd64_windows_passed_by_xmm_register)
2674 (amd64_windows_passed_by_pointer)
2675 (amd64_windows_adjust_args_passed_by_pointer)
2676 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2677 (amd64_windows_push_dummy_call): New functions.
2678 (amd64_windows_init_abi): Remove setting of
2679 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2680 tdep->classify, tdep->memory_args_by_pointer and
2681 tdep->integer_param_regs_saved_in_caller_frame.
2682 Add call to set_gdbarch_push_dummy_call.
2683
82bf32bc
JK
26842013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2685
2686 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2687 objfile->original_name.
2688
24ba069a
JK
26892013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2690
2691 Pass down original filename for objfile.
2692 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2693 * elfread.c (elf_symfile_read): Likewise.
2694 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2695 longer set ORIGINAL_NAME.
2696 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2697 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2698 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2699 symbol_file_add_from_bfd call.
2700 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2701 (macho_check_dsym): Add parameter filenamep. Change function comment.
2702 Set *filenamep.
2703 (macho_symfile_read): New variable dsym_filename. Update
2704 macho_check_dsym call. Use it for symbol_file_add_separate.
2705 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2706 it. Use it for objfile->original_name.
2707 (objfile_name): Return OBFD's filename, if available.
2708 * objfiles.h (allocate_objfile): Add new parameter name.
2709 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2710 * symfile-mem.c (symbol_file_add_from_memory): Update
2711 symbol_file_add_from_bfd call.
2712 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2713 comment for it.
2714 (symbol_file_add_with_addrs): New parameter name, add function comment
2715 for it. Remove variable name. Update allocate_objfile call.
2716 (symbol_file_add_separate): New parameter name, add function comment
2717 for it. Update symbol_file_add_with_addrs call.
2718 (symbol_file_add_from_bfd): New parameter name. Update
2719 symbol_file_add_with_addrs call.
2720 (symbol_file_add): Update symbol_file_add_from_bfd call.
2721 (reread_symbols): New variable original_name. Save
2722 objfile->original_name by it.
2723 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2724 second parameter.
2725
4262abfb
JK
27262013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2727
2728 Code cleanup: Add objfile_name accessor function.
2729 * ada-lang.c (is_known_support_routine): Use objfile_name.
2730 * auto-load.c (source_gdb_script_for_objfile)
2731 (auto_load_objfile_script): Likewise.
2732 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2733 * dbxread.c (dbx_symfile_read): Likewise.
2734 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2735 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2736 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2737 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2738 (lookup_dwp_signatured_type, lookup_dwo_unit)
2739 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2740 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2741 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2742 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2743 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2744 (read_subrange_type, load_partial_dies, read_partial_die)
2745 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2746 (die_containing_type, build_error_marker_type, lookup_die_type)
2747 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2748 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2749 (get_DW_AT_signature_type, write_psymtabs_to_index)
2750 (save_gdb_index_command): Likewise.
2751 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2752 Likewise.
2753 * expprint.c (dump_subexp_body_standard): Likewise.
2754 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2755 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2756 original_name.
2757 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2758 obj_name, use objfile_name for it, use the variable.
2759 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2760 Use objfile_name.
2761 * machoread.c (macho_symtab_read, macho_check_dsym)
2762 (macho_symfile_relocate): Likewise.
2763 * maint.c (maintenance_translate_address): Likewise.
2764 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2765 * minsyms.c (install_minimal_symbols): Likewise.
2766 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2767 original_name.
2768 (filter_overlapping_sections): Use objfile_name.
2769 (objfile_name): New function.
2770 * objfiles.h (struct objfile): Rename field name to original_name.
2771 (objfile_name): New prototype.
2772 * printcmd.c (sym_info, address_info): Use objfile_name.
2773 * probe.c (parse_probes, collect_probes, compare_probes)
2774 (info_probes_for_ops): Likewise.
2775 * progspace.c (clone_program_space): Likewise.
2776 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2777 (maintenance_info_psymtabs): Likewise.
2778 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2779 (source_section_scripts): Likewise.
2780 * python/py-objfile.c (objfpy_get_filename): Likewise.
2781 * python/py-progspace.c (pspy_get_filename): Likewise.
2782 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2783 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2784 * solib.c (solib_read_symbols): Likewise.
2785 * stabsread.c (scan_file_globals): Likewise.
2786 * stap-probe.c (handle_stap_probe): Likewise.
2787 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2788 (find_separate_debug_file_by_debuglink): Likewise.
2789 (reread_symbols): Likewise. Use the objfile field name renamed to
2790 original_name.
2791 (allocate_symtab): Use objfile_name.
2792 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2793 (dump_objfile, dump_msymbols, dump_symtab_1)
2794 (maintenance_print_msymbols, maintenance_print_objfiles)
2795 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2796 * target.c (target_translate_tls_address, target_info): Likewise.
2797 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2798 objfile_name.
2799
4721dc18
JK
28002013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2801
2802 Code cleanup.
2803 * probe.c (parse_probes): Rename variable objfile_name to
2804 objfile_namestr.
2805
a61d6db8
JK
28062013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2807
2808 Remove solib-sunos.c.
2809 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2810 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2811 * objfiles.c (rt_common_objfile): Remove.
2812 (free_objfile): Remove rt_common_objfile comparison.
2813 * objfiles.h (rt_common_objfile): Remove.
2814 * solib-sunos.c: Remove.
2815 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2816
2659903b
JK
28172013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2818
2819 Remove a.out NetBSD and OpenBSD hosts.
2820 * NEWS (Removed native configurations): New.
2821 * config/arm/nbsdaout.mh: Remove.
2822 * config/i386/nbsdaout.mh: Remove.
2823 * config/i386/obsdaout.mh: Remove.
2824 * config/m68k/nbsdaout.mh: Remove.
2825 * config/sparc/nbsdaout.mh: Remove.
2826 * config/vax/nbsdaout.mh: Remove.
2827 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2828 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2829 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2830 error.
2831 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2832 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2833 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2834
f60e2d5c
TT
28352013-09-23 Tom Tromey <tromey@redhat.com>
2836
2837 * linespec.c (struct minsym_and_objfile): Remove.
2838 (minsym_and_objfile_d): Remove.
2839 (struct linespec, struct collect_info, linespec_parse_basic)
2840 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2841 (compare_msymbols, find_method, find_function_symbols)
2842 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2843 (add_minsym, search_minsyms_for_name): Update.
2844
d3eaaf66
AB
28452013-09-23 Andrew Burgess <aburgess@broadcom.com>
2846
2847 * regcache.c: Add include of valprint.h.
2848 (dump_endian_bytes): Delete.
2849 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2850
2cc762b5
AB
28512013-09-23 Andrew Burgess <aburgess@broadcom.com>
2852
2853 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2854
96181529
PA
28552013-09-19 Pedro Alves <palves@redhat.com>
2856
2857 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2858 breakpoints.
2859
9b3f3ee6
TS
28602013-09-19 Pedro Alves <palves@redhat.com>
2861 Thomas Schwinge <thomas@codesourcery.com>
2862 Yue Lu <hacklu.newborn@gmail.com>
2863
2864 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2865 Take a gdb_byte pointer instead of a char pointer.
2866
2867 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2868 gnu_xfer_partial helper.
2869 (gnu_xfer_partial): New function.
2870 (gnu_target): Don't install a deprecated_xfer_memory hook.
2871 Install a to_xfer_partial hook.
2872
69150c3d
JK
28732013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2874
2875 Constification.
2876 * main.c (captured_main): Replace catch_command_errors by
2877 catch_command_errors_const. Twice.
2878 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2879 (symbol_file_add): Make name parameter const.
2880 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2881 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2882 variable name. Change their usage accordingly.
2883 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2884 const.
2885 (symbol_file_add_main): Make args parameter const.
2886
086850b2
UW
28872013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2888 Ulrich Weigand <uweigand@de.ibm.com>
2889
2890 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2891 of c_value member.
2892 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2893
ca08a94c 28942013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2895 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2896
2897 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2898 (gnu_create_inferior)
2899 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2900 (set_sig_thread_cmd): Use the lwpid field of ptids to
2901 store/extract thread ids instead of the tid field.
2902 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2903
e4c6a2c4
AB
29042013-09-18 Andrew Burgess <aburgess@broadcom.com>
2905
2906 * infcmd.c (default_print_one_register_info): Add detection of
2907 optimized out values.
2908 (default_print_registers_info): Switch to using
2909 get_frame_register_value.
2910
58c48e72
MM
29112013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2912
2913 * infrun.c (handle_inferior_event): Check if we know the
2914 function start address before setting a resume breakpoint.
2915
c8d37639
PA
29162013-09-18 Pedro Alves <palves@redhat.com>
2917
2918 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2919 minus_one_ptid instead of looking at the ptid's tid field and
2920 comparing that to -1.
2921
71926e28
AB
29222013-09-18 Andrew Burgess <aburgess@broadcom.com>
2923
2924 * main.h (get_gdb_program_name): Remove extra whitespace.
2925
c88a1531
AB
29262013-09-18 Andrew Burgess <aburgess@broadcom.com>
2927
2928 * main.h (get_gdb_program_name): Add declaration.
2929 * main.c (get_gdb_program_name): Add definition.
2930
4390d890
DE
29312013-09-17 Doug Evans <dje@google.com>
2932
2933 * dwarf2read.c: Move definitions of complaint functions to after
2934 forward declarations of local functions.
2935
49fa26b0
PA
29362013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2937 Pedro Alves <palves@redhat.com>
2938
2939 PR gdb/11568
2940 * breakpoint.c (remove_threaded_breakpoints): New function.
2941 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2942 as thread_exit observer.
2943
08d72866
PA
29442013-09-17 Pedro Alves <palves@redhat.com>
2945
2946 PR gdb/15911
2947 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2948 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2949 * corelow.c (core_open):
2950 * frame.h (print_stack_frame, print_frame_info): New
2951 'set_current_sal' parameter.
2952 * infcmd.c (finish_command, kill_command): Adjust call to
2953 print_stack_frame.
2954 * inferior.c (inferior_command): Likewise.
2955 * infrun.c (normal_stop): Likewise.
2956 * linux-fork.c (linux_fork_context): Likewise.
2957 * record-full.c (record_full_goto_entry, record_full_restore):
2958 Likewise.
2959 * remote-mips.c (common_open): Likewise.
2960 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2961 Use it.
2962 (print_frame_info): New 'set_current_sal' parameter. Set the last
2963 displayed sal depending on the new paremeter instead of looking at
2964 print_what.
2965 (backtrace_command_1, select_and_print_frame, frame_command)
2966 (current_frame_command, up_command, down_command): Adjust call to
2967 print_stack_frame.
2968 * thread.c (print_thread_info, restore_selected_frame)
2969 (do_captured_thread_select): Adjust call to print_stack_frame.
2970 * tracepoint.c (tfind_1): Likewise.
2971 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2972 (mi_cmd_stack_info_frame): Likewise.
2973 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2974 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2975
6bc305f5
SDJ
29762013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2977
2978 * value.c (isvoid_internal_fn): Replace "parameter" with
2979 "argument".
2980
0a7cfe2c
SS
29812013-09-16 Stan Shebs <stan@codesourcery.com>
2982
2983 * README: Update references to writing code for GDB.
2984 * configure.ac (build_warnings): Remove obsolete comment.
2985 * configure: Regenerate.
2986 * gdbarch.sh: Remove references to gdbint.texinfo.
2987 * gdbarch.h: Regenerate.
2988 * gdbtypes.c (objfile_type): Remove comments referencing internals
2989 manual and D10V.
2990
a280dbd1
SDJ
29912013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2992
2993 * NEWS: Mention new convenience function $_isvoid.
2994 * value.c (isvoid_internal_fn): New function.
2995 (_initialize_values): Add new convenience function $_isvoid.
2996
04a83fee
PM
29972013-09-16 Pierre Muller <muller@sourceware.org>
2998
2999 * arm-linux-tdep.c: Add "elf/common.h" header.
3000 Remove AT_HWCAP macro definintion as it is provided in
3001 added include file.
3002 * s390-tdep.c: Remove system header <elf.h>
3003 Add "elf/common.h" header for AT_HWCAP definition.
3004 (s390_core_read_description): Use correct CORE_ADDR
3005 for hwcap local variable used as third parameter
3006 of function target_auxv_search.
3007
88505fac
PM
30082013-09-14 Pierre Muller <muller@sourceware.org>
3009 Tom Tromey <tromey@redhat.com>
3010 Pedro Alves <palves@redhat.com>
3011
3012 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3013 mode if operating system doesn't know O_CLOEXEC.
3014
d3846e71
JK
30152013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3016
3017 Code cleanup.
3018 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3019 inner block.
3020
4ac33720
UW
30212013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3022
3023 * NEWS: Mention TDB support.
3024 * features/s390-tdb.xml: New file.
3025 * features/s390-te-linux64.xml: New file.
3026 * features/s390x-te-linux64.xml: New file.
3027 * features/Makefile (WHICH): Add new tdescs above.
3028 (s390-te-linux64-expedite): Set.
3029 (s390x-te-linux64-expedite): Set.
3030 * features/s390-te-linux64.c: New file (generated).
3031 * features/s390x-te-linux64.c: New file (generated).
3032 * regformats/s390-te-linux64.dat: New file (generated).
3033 * regformats/s390x-te-linux64.dat: New file (generated).
3034 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3035 (HWCAP_S390_TE): Likewise.
3036 (S390_TDB_DWORD0_REGNUM): Likewise.
3037 (S390_TDB_DWORD0_REGNUM): Likewise.
3038 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3039 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3040 (S390_TDB_ATIA_REGNUM): Likewise.
3041 (S390_TDB_R0_REGNUM): Likewise.
3042 (S390_TDB_R1_REGNUM): Likewise.
3043 (S390_TDB_R2_REGNUM): Likewise.
3044 (S390_TDB_R3_REGNUM): Likewise.
3045 (S390_TDB_R4_REGNUM): Likewise.
3046 (S390_TDB_R5_REGNUM): Likewise.
3047 (S390_TDB_R6_REGNUM): Likewise.
3048 (S390_TDB_R7_REGNUM): Likewise.
3049 (S390_TDB_R8_REGNUM): Likewise.
3050 (S390_TDB_R9_REGNUM): Likewise.
3051 (S390_TDB_R10_REGNUM): Likewise.
3052 (S390_TDB_R11_REGNUM): Likewise.
3053 (S390_TDB_R12_REGNUM): Likewise.
3054 (S390_TDB_R13_REGNUM): Likewise.
3055 (S390_TDB_R14_REGNUM): Likewise.
3056 (S390_TDB_R15_REGNUM): Likewise.
3057 (S390_NUM_REGS): Increase.
3058 (S390_IS_TDBREGSET_REGNUM): New macro.
3059 (s390_regmap_tdb): Declare.
3060 (s390_sizeof_tdbregset): Define.
3061 (tdesc_s390_te_linux64): Declare.
3062 (tdesc_s390x_te_linux64): Likewise.
3063 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3064 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3065 (s390_regmap_tdb): New regmap.
3066 (s390_supply_tdb_regset): New function.
3067 (s390_tdb_regset): New regset.
3068 (s390_linux64v2_regset_sections): Add TDB regset to list.
3069 (s390x_linux64v2_regset_sections): Likewise.
3070 (s390_regset_from_core_section): Recognize TDB core note section.
3071 (s390_core_read_description): If HWCAP indicates TE support,
3072 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3073 (s390_gdbarch_init): Handle TDB regset.
3074 (_initialize_s390_tdep): Initialize new tdescs.
3075 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3076 (have_regset_tdb): New variable.
3077 (s390_native_supply): Support register invalidation.
3078 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3079 (check_regset): Treat ENODATA as "regset exists".
3080 (s390_linux_fetch_inferior_registers): Add TDB.
3081 (s390_read_description): Check for TDB existence and select
3082 appropriate tdesc.
3083 * gdbserver/Makefile.in (clean): Add removal of new makefile
3084 targets.
3085 (s390-te-linux64.c): New makefile target.
3086 (s390x-te-linux64.c): Likewise.
3087 * gdbserver/configure.srv (srv_regobj): Append new objects
3088 s390-te-linux64.o and s390x-te-linux64.o.
3089 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3090 s390x-te-linux64.xml, and s390-tdb.xml.
3091 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3092 declaration.
3093 (tdesc_s390_te_linux64): Likewise.
3094 (init_registers_s390x_te_linux64): Likewise.
3095 (tdesc_s390x_te_linux64): Likewise.
3096 (s390_check_regset): Treat ENODATA as "regset exists".
3097 (s390_arch_setup): Add TDB regset support.
3098 (initialize_low_arch): Initialize registers for new tdescs.
3099
2ccd1468
UW
31002013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3101
3102 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3103 (S390_IS_FPREGSET_REGNUM): New macro.
3104 * s390-tdep.c (s390_dwarf_regmap): Make const.
3105 (regnum_is_gpr_full): New function for replacing repeated code.
3106 (s390_pseudo_register_name): Use it.
3107 (s390_pseudo_register_type): Likewise.
3108 (s390_pseudo_register_read): Likewise.
3109 (s390_pseudo_register_write): Likewise.
3110 (s390_unwind_pseudo_register): Likewise.
3111 (s390_regmap_gregset): New format for regmap.
3112 (s390x_regmap_gregset): Likewise.
3113 (s390_regmap_fpregset): Likewise.
3114 (s390_regmap_upper): Likewise.
3115 (s390_regmap_last_break): Likewise.
3116 (s390_regmap_system_call): Likewise.
3117 (s390_supply_regset): Adjust to new regmap format.
3118 (s390_collect_regset): Likewise.
3119 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3120 (s390_native_collect): Likewise.
3121 (supply_gregset): Likewise.
3122 (fill_gregset): Likewise.
3123 (supply_fpregset): Likewise.
3124 (fill_fpregset): Likewise.
3125 (fetch_regset): Likewise.
3126 (store_regset): Likewise.
3127 (s390_linux_fetch_inferior_registers): Likewise.
3128 (s390_linux_fetch_inferior_registers): Likewise.
3129
1aa4cd77
AP
31302013-09-12 Andrew Pinski <apinski@cavium.com>
3131
3132 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3133
d91fab15
UW
31342013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3135
3136 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3137
5a5d8ead
AB
31382013-09-09 Andrew Burgess <aburgess@broadcom.com>
3139
3140 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3141
1385f66c
PA
31422013-09-06 Pedro Alves <palves@redhat.com>
3143
3144 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3145 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3146 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3147 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3148 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3149 gdb_stdlog.
3150
146ec4db
PA
31512013-09-06 Pedro Alves <palves@redhat.com>
3152
3153 * remote-sim.c (dump_mem): Constify buf parameter.
3154 gdbsim_xfer_inferior_memory): Rename to ...
3155 (gdbsim_xfer_memory): ... this. Adjust interface as
3156 target_xfer_partial helper.
3157 (gdbsim_xfer_partial): New function.
3158 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3159 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3160
fcde0081
PA
31612013-09-06 Pedro Alves <palves@redhat.com>
3162
3163 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3164 host_address_to_string, and send debug output to gdb_stdlog.
3165
749c8b38
RW
31662013-09-06 Ricard Wanderlof <ricardw@axis.com>
3167
3168 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3169 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3170 gdb_target_obs for cris target.
3171 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3172 (cris_gdbarch_init): Move calls to
3173 set_gdbarch_fetch_tls_load_module_address and
3174 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3175 Add call to gdbarch_init_osabi.
3176 * cris-linux-tdep.c: New file.
3177 * cris-tdep.h: New file.
3178
43df09d9
AB
31792013-09-06 Andrew Burgess <aburgess@broadcom.com>
3180
3181 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3182 to deprecated_init_ui_hook.
3183
4d09c5b4
AB
31842013-09-06 Andrew Burgess <aburgess@broadcom.com>
3185
3186 * cli/cli-interp.c (_initialize_cli_interp): Add a
3187 command_loop_proc to interp_procs.
3188 * event-top.c (cli_command_loop): Change signature to match
3189 interp_command_loop_ftype.
3190 * event-top.h (cli_command_loop): Same.
3191 * interps.c (interp_new): Require every interpreter to have a
3192 command_loop_proc.
3193 (current_interp_command_loop): Just call the command_loop_proc on
3194 the current interpreter.
3195 * tui/tui-interp.c (_initialize_tui_interp): Add a
3196 command_loop_proc to interp_procs.
3197
8eb3d7b6
RW
31982013-09-06 Ricard Wanderlof <ricardw@axis.com>
3199
3200 * cris-tdep.c (cris_gdbarch_init): Add call to
3201 get_gdbarch_fetch_tls_load_module_address.
3202
18b3c2f5
RW
32032013-09-06 Ricard Wanderlof <ricardw@axis.com>
3204
3205 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3206 (cris_elf_gregset_t): Rename from elf_gregset_t.
3207 (crisv32_elf_gregset_t): Adjust.
3208 (cris_supply_gregset, fetch_core_registers): Adjust.
3209
dc8636ef
RW
32102013-09-06 Ricard Wanderlof <ricardw@axis.com>
3211
3212 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3213
257e6d53
AB
32142013-09-05 Andrew Burgess <aburgess@broadcom.com>
3215
1581d8a7 3216 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3217 references in comments.
1581d8a7 3218 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3219 deprecated_command_loop_hook.
3220 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3221 setup.
1581d8a7 3222 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3223
7c33b57c
PA
32242013-09-05 Pedro Alves <palves@redhat.com>
3225
3226 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3227 local is now int instead of ULONGEST. Print it with %d
3228 instead of paddress.
3229
9f8edbd5
TG
32302013-09-05 Tristan Gingold <gingold@adacore.com>
3231
3232 * MAINTAINERS: Remove avr maintainership.
3233
d5b495b4
PA
32342013-09-05 Pedro Alves <palves@redhat.com>
3235
3236 * findvar.c (value_of_register): Rework in terms of
3237 value_of_register_lazy.
3238
40b91786
MB
32392013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3240
3241 * symfile.c (add_symbol_file_command): Remove trailing
3242 whitespaces and blank line after comment.
3243
6eed1678
PA
32442013-09-05 Pedro Alves <palves@redhat.com>
3245
3246 * tui/tui-regs.c (tui_register_format): Don't look at the
3247 register's name here. Return string representing register
3248 value instead of storing it in the data element.
3249 (tui_get_register): Compare register string representations
3250 instead of register value states and contents.
3251
8eb6bda2
PA
32522013-09-05 Pedro Alves <palves@redhat.com>
3253
3254 PR tui/15933
3255 * tui/tui-regs.c (tui_show_registers): Show registers of the
3256 selected frame, not the current frame.
3257
48b1f08c
RW
32582013-09-05 Ricard Wanderlof <ricardw@axis.com>
3259
3260 * MAINTAINERS (Write After Approval): Add myself to the list.
3261
89e63ee4
DE
32622013-09-04 Doug Evans <dje@google.com>
3263
3264 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3265 (queue_and_load_dwo_tu): New function.
3266 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3267 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3268 Make dependent_cu optional.
3269 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3270 and an older .gdb_index is in use, queue and load all its TUs too.
3271
492c0ab7
JK
32722013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3273
3274 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3275 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3276 variable search_flags.
3277 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3278 (OPF_RETURN_REALPATH): ... here.
3279 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3280 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3281 call. Twice.
3282 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3283 openp call.
3284 * solib.c (solib_find): Likewise. Four times.
3285 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3286 in the function comment and for the realpath_fptr variable.
3287 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3288 (find_and_open_source): Likewise. Twice.
3289 * symfile.c (symfile_bfd_open): Likewise, also twice.
3290
23a44de8
DE
32912013-09-04 Doug Evans <dje@google.com>
3292
3293 * progspace.c (save_current_space_and_thread): Remove unnecessary
3294 call to save_current_inferior.
3295
47061676
AB
32962013-09-04 Andrew Burgess <aburgess@broadcom.com>
3297
3298 * sh64-tdep.c (sh64_do_register): Return after printing message
3299 about unavailable register contents.
3300
41dc8db8
MB
33012013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3302 Pedro Alves <palves@redhat.com>
3303
3304 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3305 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3306 options and collapse into single conditional branch.
41dc8db8 3307
07107ca6
LM
33082013-09-03 Luis Machado <lgustavo@codesourcery.com>
3309
a7ea61cf 3310 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3311 detach_fork.
3312 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3313 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3314 * inferior.h (detach_fork): Remove.
3315 * infrun.c (detach_fork): Adjust comment and make it
3316 static.
3317 (follow_fork): Pass detach_fork parameter to
3318 target_follow_fork.
3319 * linux-nat.c (linux_child_follow_fork): New parameter
3320 detach_fork.
3321 * target.c (target_follow_fork): New parameter detach_fork.
3322 Pass detach_fork as parameter and print its value.
3323 * target.h (struct target_ops) <to_follow_fork>: New int
3324 parameter.
3325 (target_follow_fork): New parameter detach_fork.
3326
3bec2768
JB
33272013-09-03 Joel Brobecker <brobecker@adacore.com>
3328
3329 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3330 Replace sec->bfd by sec->the_bfd_section->owner.
3331
c01cbb3d
YQ
33322013-09-03 Yao Qi <yao@codesourcery.com>
3333
3334 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3335 from linux_has_shared_address_space.
3336 (linux_has_shared_address_space): Call linux_is_uclinux.
3337 * linux-tdep.h (linux_is_uclinux): Declare.
3338 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3339 linux_is_uclinux.
3340
7b00db47
YQ
33412013-09-03 Yao Qi <yao@codesourcery.com>
3342
3343 * config/djgpp/fnchange.lst: Remove entry of
3344 i386-interix-nat.c and i386-interix-tdep.c.
3345 * configure.ac: Remove '*-*-interix*'.
3346 * configure: Re-generated.
3347 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3348 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3349 obsolete comments.
3350 * osabi.c (gdb_osabi_names): Remove "Interix".
3351
0f9741f2
YQ
33522013-09-03 Yao Qi <yao@codesourcery.com>
3353
3354 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3355
1e038f67
MM
33562013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3357
3358 * record.h (record_print_flag) <record_print_src_line,
3359 record_print_insn_range>: Rename into ...
3360 (record_print_flag) <record_print_src_line,
3361 record_print_insn_range>: ... this. Update all users.
3362
9e52adf9
PM
33632013-09-02 Pierre Muller <muller@sourceware.org>
3364
3365 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3366 error code.
3367
a2388568
PM
33682013-09-02 Pierre Muller <muller@sourceware.org>
3369
3370 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3371 by use of plongest function.
3372
9058cc3a
TG
33732013-09-02 Tristan Gingold <gingold@adacore.com>
3374
3375 * NEWS: Add entry mentioning support for native Windows x64
3376 SEH data.
3377
3378 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3379 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3380 (struct amd64_windows_frame_cache): New struct.
3381 (amd64_windows_w2gdb_regnum): New global.
3382 (pc_in_range, amd64_windows_frame_decode_epilogue)
3383 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3384 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3385 (amd64_windows_frame_this_id): New functions.
3386 (amd64_windows_frame_unwind): New static global.
3387 (amd64_windows_skip_prologue): New function.
3388 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3389 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3390 with amd64_windows_skip_prologue.
3391
3161820b 33922013-08-30 Joel Brobecker <brobecker@adacore.com>
3393
3394 GDB 7.6.1 released.
3395
02457c76
PA
33962013-08-30 Pedro Alves <palves@redhat.com>
3397
3398 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3399 SRC_AND_LOC.
3400
e0162910
PA
34012013-08-30 Pedro Alves <palves@redhat.com>
3402
3403 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3404 warning text.
3405
6391ce51
PA
34062013-08-30 Pedro Alves <palves@redhat.com>
3407
3408 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3409 Adjust arguments to print_stack_frame.
3410
d1da0587
PA
34112013-08-30 Pedro Alves <palves@redhat.com>
3412
3413 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3414
adfd8245
PA
34152013-08-30 Pedro Alves <palves@redhat.com>
3416
3417 * frame.h (show_and_print_stack_frame): Delete declaration.
3418
96d9056e
PM
34192013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3420
3421 PR python/15461
96d9056e
PM
3422 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3423 (archpy_name): Check for valid architecture.
3424 (archpy_disassemble): Ditto.
3425
11cb8762
JB
34262013-08-29 Joel Brobecker <brobecker@adacore.com>
3427
3428 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3429 instead of "long long" in call to ptrace64.
3430
1af12a7d
AB
34312013-08-29 Andrew Burgess <aburgess@broadcom.com>
3432
3433 * mi/mi-interp.c (mi_command_loop): Change signature to match
3434 interp_command_loop_ftype.
3435 (mi1_command_loop): Remove.
3436 (mi2_command_loop): Remove.
3437 (mi3_command_loop): Remove.
3438 (mi_interpreter_resume): Remove setting of
3439 deprecated_command_loop_hook.
3440 (_initialize_mi_interp): Set mi_command_loop as the command loop
3441 callback.
3442
acc900c2
SA
34432013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3444
3445 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3446 value_type.
3447
548b762d
SA
34482013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3449
3450 * value.c (allocate_value_contents): Make static.
3451 * value.h (allocate_value_contents): Remove prototype.
3452
08039c9e
SA
34532013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3454
3455 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3456 of assembling value via allocate_value_lazy and attribute setter.
3457 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3458 assembling value via allocate_value_lazy and attribute setter.
3459 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3460 assembling value via allocate_value_lazy and attribute setter.
3461
314c7de9
SA
34622013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3463
3464 * value.c (value_from_contents_and_address): Replace allocate_value and
3465 memcpy with value_from_contents.
3466
8f28f522
PM
34672013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3468
3469 * python/py-framefilter.c (py_print_frame): Remove usage of
3470 PyString_AsString. Use python_string_to_host_string instead.
3471 Refactor function to work with a string as a new allocation
3472 instead of a pointer.
3473 (py_print_frame): Ditto.
3474 * python/lib/gdb/frames.py (return_list): Cain iterators together
3475 instead of adding them as a list.
3476 (_sort_list): Call return_list, and remove duplicate code.
3477 (execute_frame_filters): Convert iterator to a list with list().
3478 * python/lib/gdb/command/frame_filters.py
3479 (SetFrameFilterPriority._set_filter_priority): Convert priority
3480 attribute to an integer.
3481 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3482 wrapper function __next__.
3483 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3484 define as "str".
3485
8ee002df
PM
34862013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3487
3488 PR python/15752
8ee002df
PM
3489 * python/py-framefilter.c (apply_frame_filter): Check
3490 gdb_python_initialized. Exit if the Python frame-filter code
3491 cannot be initialized.
3492
af4c453a
PM
34932013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3494
3495 PR cli/15842
af4c453a
PM
3496 * top.c (print_gdb_version): Remove erroneous newline after help
3497 text.
3498
bf8793bb
YQ
34992013-08-29 Yao Qi <yao@codesourcery.com>
3500
3501 * varobj.c (install_dynamic_child): Remove trailing space.
3502 Add one blank line after variable declaration.
3503
1f0c4988
JK
35042013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3505
3506 PR gdb/15415
3507 * corefile.c (get_exec_file): Use exec_filename.
3508 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3509 * exec.c (exec_close): Free EXEC_FILENAME.
3510 (exec_file_attach): New variable canonical_pathname. Use
3511 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3512 EXEC_FILENAME.
3513 * exec.h (exec_filename): New.
3514 * inferior.c (print_inferior, inferior_command): Use
3515 PSPACE_EXEC_FILENAME.
3516 * mi/mi-main.c (print_one_inferior): Likewise.
3517 * progspace.c (clone_program_space, print_program_space): Likewise.
3518 * progspace.h (struct program_space): New field pspace_exec_filename.
3519 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3520 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3521
59ee9f94
WN
35222013-08-28 Will Newton <will.newton@linaro.org>
3523
3524 * common/linux-ptrace.c: Include stdint.h unconditionally.
3525
c8a2a419
JK
35262013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3527
3528 Code cleanup.
3529 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3530
ffa4ac95
YQ
35312013-08-28 Yao Qi <yao@codesourcery.com>
3532 Pedro Alves <palves@redhat.com>
3533
3534 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3535 instead of stdio_fileopen.
3536 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3537 .Call stderr_fileopen instead of stdio_fileopen.
3538 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3539 [__MINGW32__] (stderr_file_fputs): New function.
3540 (stderr_fileopen): New function.
3541 * ui-file.h (stderr_fileopen): Declare.
3542
69d751e3
DE
35432013-08-27 Doug Evans <dje@google.com>
3544
3545 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3546 (struct dwarf2_per_cu_data): Ditto.
3547 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3548 (process_imported_unit_die): Ditto.
3549 (follow_die_sig_1): Simplify assert.
3550
44f38867
PA
35512013-08-27 Pedro Alves <palves@redhat.com>
3552
3553 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3554 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3555 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3556 windows_xfer_memory directly.
3557 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3558
d28d46b5
PA
35592013-08-27 Pedro Alves <palves@redhat.com>
3560
3561 * darwin-nat.c (darwin_xfer_memory): Delete.
3562 (_initialize_darwin_inferior): Don't install a
3563 deprecated_xfer_memory method.
3564
6211c335
YQ
35652013-08-27 Pedro Alves <pedro@codesourcery.com>
3566 Yao Qi <yao@codesourcery.com>
3567
3568 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3569 (parse_no_frames_option): Remove.
3570 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3571 (mi_cmd_stack_list_args): Adjust.
3572 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3573 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3574 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3575 Caller update.
3576 (list_args_or_locals): New parameter 'skip_unavailable'.
3577 Handle it.
3578 * valprint.c (scalar_type_p): Rename to ...
3579 (val_print_scalar_type_p): ... this. Make extern.
3580 (val_print, value_check_printable): Adjust.
3581 * valprint.h (val_print_scalar_type_p): Declare.
3582 * value.c (value_entirely_unavailable): New function.
3583 * value.h (value_entirely_unavailable): Declare.
3584
3585 * NEWS: Mention the new option "--skip-unavailable" to MI
3586 commands '-stack-list-locals', '-stack-list-arguments' and
3587 '-stack-list-variables'.
3588
242f1fd7
YQ
35892013-08-27 Yao Qi <yao@codesourcery.com>
3590
3591 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3592 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3593 options.
3594 * mi/mi-getopt.c (mi_getopt): Remove.
3595 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3596 'error_on_unknown'.
3597 (mi_getopt): Call mi_getopt_1.
3598 (mi_getopt_silent): New.
3599 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3600
260b681b
DE
36012013-08-26 Doug Evans <dje@google.com>
3602
779bd270
DE
3603 PR symtab/15885
3604 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3605 .gdb_index is in use.
3606 * symfile.c (reread_symbols): Reset objfile->sf.
3607
52e260a3
DE
3608 * NEWS: Document "mt print objfiles" now takes optional regexp.
3609 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3610 regexp of objfiles to print.
3611 (_initialize_symmisc): Update doc string for "mt print objfiles".
3612
260b681b
DE
3613 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3614 missing debug info checks.
3615
a85c52f2
UW
36162013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3617 Ulrich Weigand <uweigand@de.ibm.com>
3618
3619 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3620 line tables generated by XLC compiled binaries.
3621
4f00dda3
DE
36222013-08-23 Doug Evans <dje@google.com>
3623
db68bbae
DE
3624 * symmisc.c (dump_symtab): Delete prototype.
3625 (dump_msymbols, dump_objfile): Ditto.
3626 (maintenance_info_symtabs): Mark as dont_repeat.
3627 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3628
4f00dda3
DE
3629 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3630 debugging printf to better location.
3631
23d577b0
PA
36322013-08-23 Pedro Alves <palves@redhat.com>
3633
3634 * target.c (target_read_live_memory): Change type of 'ret' local
3635 to LONGEST.
3636
00d84524
PA
36372013-08-23 Pedro Alves <palves@redhat.com>
3638
3639 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3640 (remote_read_bytes): Change return type to LONGEST, and adjust to
3641 return a target_xfer_error on error.
3642 (remote_xfer_memory): Delete.
3643 (remote_flash_write): Change type of 'ret' local to LONGEST.
3644 (remote_xfer_partial, remote_xfer_partial): Adjust.
3645 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3646
1ed3ee94
PM
36472013-08-23 Pierre Muller <muller@sourceware.org>
3648
3649 ARI fix: Push # directives to start of line.
3650 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3651
9eaabc75
MW
36522013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3653
3654 PR gdb/15501
3655 * breakpoint.c (enable_command, disable_command): Iterate over
3656 all specified breakpoint locations.
3657
101158d9
LM
36582013-08-22 Luis Machado <lgustavo@codesourcery.com>
3659
3660 * common/linux-ptrace.c (linux_fork_to_function): Push #
3661 directives to the start of the line.
3662 (linux_check_ptrace_features): Fix warning message to use
3663 the "_" markup.
3664
96d7229d
LM
36652013-08-22 Luis Machado <lgustavo@codesourcery.com>
3666
3667 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3668 nat/linux-waitpid.h.
3669 (linux-waitpid.o): New object file rule.
3670 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3671 (current_ptrace_options): Moved from linux-nat.c.
3672 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3673 parameters.
3674 (linux_fork_to_function): New function.
3675 (linux_grandchild_function): Likewise.
3676 (linux_child_function): Likewise.
3677 (linux_check_ptrace_features): New function, heavily
3678 based on linux-nat.c:linux_test_for_tracefork.
3679 (linux_enable_event_reporting): New function.
3680 (ptrace_supports_feature): Likewise.
3681 (linux_supports_tracefork): Likewise.
3682 (linux_supports_traceclone): Likewise.
3683 (linux_supports_tracevforkdone): Likewise.
3684 (linux_supports_tracesysgood): Likewise.
3685 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3686 gdbserver/linux-low.c.
3687 (linux_enable_event_reporting): New declaration.
3688 (linux_supports_tracefork): Likewise.
3689 (linux_supports_traceclone): Likewise.
3690 (linux_supports_tracevforkdone): Likewise.
3691 (linux_supports_tracesysgood): Likewise.
3692 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3693 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3694 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3695 * config/arm/linux.mh (NATDEPFILES): Likewise.
3696 * config/i386/linux.mh (NATDEPFILES): Likewise.
3697 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3698 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3699 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3700 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3701 * config/mips/linux.mh (NATDEPFILES): Likewise.
3702 * config/pa/linux.mh (NATDEPFILES): Likewise..
3703 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3704 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3705 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3706 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3707 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3708 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3709 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3710 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3711 ptrace's 4th argument's types.
3712 Check the type of PTRACE_TYPE_ARG4.
3713 * configure: Regenerate.
3714 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3715 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3716 (linux_supports_tracefork_flag): Remove.
3717 (linux_supports_tracesysgood_flag): Likewise.
3718 (linux_supports_tracevforkdone_flag): Likewise.
3719 (current_ptrace_options): Moved to
3720 common/linux-ptrace.c.
3721 (linux_tracefork_child): Remove.
3722 (my_waitpid): Remove.
3723 (linux_test_for_tracefork): Renamed to
3724 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3725 (linux_test_for_tracesysgood): Remove.
3726 (linux_supports_tracesysgood): Remove.
3727 (linux_supports_tracefork): Remove.
3728 (linux_supports_tracevforkdone): Remove.
3729 (linux_enable_tracesysgood): Remove.
3730 (linux_enable_event_reporting): Remove.
3731 (linux_init_ptrace): New function.
3732 (linux_child_post_attach): Call linux_init_ptrace.
3733 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3734 (linux_child_follow_fork): Call linux_supports_tracefork
3735 and linux_supports_tracevforkdone.
3736 (linux_child_insert_fork_catchpoint): Call
3737 linux_supports_tracefork.
3738 (linux_child_insert_vfork_catchpoint): Likewise.
3739 (linux_child_set_syscall_catchpoint): Call
3740 linux_supports_tracesysgood.
3741 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3742 * nat/linux-nat.h: New file.
3743 * nat/linux-waitpid.c: New file.
3744 * nat/linux-waitpid.h: New file.
3745
9f948660
SDJ
37462013-08-22 Samuel Bronson <naesten@gmail.com>
3747
3748 ARM Linux support for `catch syscall'.
3749 * syscalls/arm-linux.py: New file.
3750 * syscalls/arm-linux.xml: Likewise.
3751 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3752 (arm_linux_init_abi): Register the new function and syscall xml file.
3753 * data-directory/Makefile.in: Install the new syscall xml file.
3754 * NEWS: Brag about this.
3755
6be7b56e
PA
37562013-08-22 Pedro Alves <palves@redhat.com>
3757
3758 PR gdb/15871
3759 * corefile.c (target_xfer_memory_error): New function.
3760 (memory_error): Defer EIO to target_memory_error.
3761 (read_memory): Use target_xfer_partial, and handle finer-grained
3762 target xfer errors.
3763 * target.c (target_xfer_error_to_string): New function.
3764 (memory_xfer_partial_1): If memory is known to be
3765 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3766 (target_xfer_partial): Make extern.
3767 * target.h (enum target_xfer_error): New enum.
3768 (target_xfer_error_to_string): Declare function.
3769 (target_xfer_partial): Declare function.
3770 (struct target_ops) <xfer_partial>: Adjust describing comment.
3771
bcbec14e
AM
37722013-08-22 Alan Modra <amodra@gmail.com>
3773
3774 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3775 * configure.tgt: Likewise as targets.
3776
fc474241
DE
37772013-08-20 Doug Evans <dje@google.com>
3778
3779 * buildsym.c (subfile_stack): Move here from buildsym.h.
3780 (pending_macros): Ditto.
3781 (get_macro_table): New function.
3782 (buildsym_init): Initialize subfile_stack.
3783 * coffread.c (type_vector,type_vector_length): Moved here from
3784 buildsym.h.
3785 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3786 (coff_symtab_read): Use it.
3787 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3788 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3789 with call to get_macro_table.
3790 * stabsread.c (type_vector,type_vector_length): Moved here from
3791 buildsym.h.
3792 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3793 * buildsym.h (get_macro_table): Declare.
3794
bec71544
TT
37952013-08-20 Tom Tromey <tromey@redhat.com>
3796
3797 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3798 Update.
3799 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3800
0002ad5f
DE
38012013-08-20 Doug Evans <dje@google.com>
3802
3803 * blockframe.c: Remove #include "psymtab.h".
3804 * cp-support.c: Ditto.
3805 * source.c: Ditto.
3806 * stack.c: Ditto.
3807
df302446
TT
38082013-08-20 Tom Tromey <tromey@redhat.com>
3809
3810 PR python/15816:
3811 * exceptions.h (return_mask): Now an enum.
3812 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3813 enum constants.
3814
df6d5441
TT
38152013-08-20 Tom Tromey <tromey@redhat.com>
3816
3817 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3818 get_objfile_arch.
3819 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3820 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3821 * jit.c (jit_object_close_impl): Update.
3822 * jv-lang.c (get_dynamics_objfile): Update.
3823 * linespec.c (add_minsym): Use get_dynamics_objfile.
3824 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3825 (allocate_objfile): Don't initialize 'gdbarch' field.
3826 (get_objfile_arch): Update.
3827 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3828 moved from...
3829 (struct objfile) <gdbarch>: ... here. Remove.
3830 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3831 get_objfile_arch.
3832 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3833
f5aee5ee
AM
38342013-08-20 Alan Modra <amodra@gmail.com>
3835
3836 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3837 for IBM long double nan and inf.
3838 (floatformat_is_negative, floatformat_classify,
3839 floatformat_mantissa): Similarly.
3840 (floatformat_ieee_single, floatformat_ieee_double,
3841 floatformat_ieee_quad, floatformat_arm_ext,
3842 floatformat_ia64_spill): Delete unused vars.
3843 (_initialize_doublest): Delete unused function.
3844 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3845 little-endian variants of floatformat_ibm_long_double.
3846
33b60d58 38472013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3848
33b60d58
LM
3849 * Makefile.in (SFILES): Remove common/target-common.c and
3850 add target/waitstatus.c.
3851 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3852 target/resume.h, target/wait.h and target/waitstatus.h.
3853 (COMMON_OBS): Remove target-common.o and add
3854 waitstatus.o.
3855 (target-common.o): Remove.
3856 (waitstatus.o): New target object file.
3857 * common/target-common.c: Move contents to
3858 target/waitstatus.c and remove.
3859 * common/target-common.h: Move contents to other files and
3860 remove.
3861 (enum resume_kind: Move to target/resume.h.
3862 (TARGET_WNOHANG): Move to target/wait.h.
3863 (enum target_waitkind): Move to target/waitstatus.h.
3864 (struct target_waitstatus): Likewise.
3865 * target.h: Do not include target-common.h and
3866 include target/resume.h, target/wait.h and
3867 target/waitstatus.h.
3868 * target/resume.h: New file.
3869 * target/wait.h: New file.
3870 * target/waitstatus.h: New file.
3871 * target/waitstatus.c: New file.
3872
12696c10
PA
38732013-08-19 Pedro Alves <palves@redhat.com>
3874
3875 * linux-nat.c (linux_test_for_tracefork)
3876 (linux_test_for_tracesysgood, linux_child_follow_fork)
3877 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3878 (linux_nat_wait_1): Extend comment.
3879 (linux_async_pipe): Add comment.
3880
ba89f962
KB
38812013-08-15 Kevin Buettner <kevinb@redhat.com>
3882
3883 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3884 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3885 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3886 Update to account for fact that PC is now a pseudo-register.
3887 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3888 cases for RL78_PC_REGNUM.
3889
35ab155d
MB
38902013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3891
3892 PR cli/15841
3893 * top.c (quit_force): Skip writing history file
3894 if input is not from terminal.
3895
0d031856
TT
38962013-08-14 Tom Tromey <tromey@redhat.com>
3897
3898 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3899 resultthreadlist>: New fields.
3900 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3901 (remote_get_threadlist, remote_threadlist_iterator): Use
3902 new fields. Remove static variables.
3903
ee154bee
TT
39042013-08-14 Tom Tromey <tromey@redhat.com>
3905
3906 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3907 remote_watch_data_address>: New fields.
3908 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3909 (process_stop_reply, remote_wait_as)
3910 (remote_check_watch_resources, remote_stopped_data_address): Update.
3911
88b496c3
TT
39122013-08-14 Tom Tromey <tromey@redhat.com>
3913
3914 * remote.c (struct remote_state) <async_client_callback,
3915 async_client_context>: New fields.
3916 (async_client_callback, async_client_context): Remove.
3917 (remote_async_serial_handler, remote_async): Update.
3918
2f65bcb7
TT
39192013-08-14 Tom Tromey <tromey@redhat.com>
3920
3921 * remote.c (sizeof_pkt): Remove.
3922 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3923
b80fafe3
TT
39242013-08-14 Tom Tromey <tromey@redhat.com>
3925
3926 * remote.c (struct remote_state) <use_threadinfo_query,
3927 use_threadextra_query>: New fields.
3928 (remote_threads_info, remote_threads_extra_info)
3929 (remote_open_1): Update.
3930
8e88304f
TT
39312013-08-14 Tom Tromey <tromey@redhat.com>
3932
3933 * remote.c (struct remote_state) <finished_object,
3934 finished_annex, finished_offset>: New fields.
3935 (remote_read_qxfer): Use remote_state fields; remove static
3936 variables.
3937
280ceea3
TT
39382013-08-14 Tom Tromey <tromey@redhat.com>
3939
3940 * remote.c (struct remote_state) <last_sent_step>:
3941 New field.
3942 (last_sent_step): Remove.
3943 (remote_resume, remote_wait_as): Update.
3944
b73be471
TT
39452013-08-14 Tom Tromey <tromey@redhat.com>
3946
3947 * remote.c (struct remote_state) <last_sent_signal>:
3948 New field.
3949 (last_sent_signal): Remove.
3950 (new_remote_state, remote_resume, remote_wait_as): Update.
3951
5e4a05c4
TT
39522013-08-14 Tom Tromey <tromey@redhat.com>
3953
3954 * remote.c (struct remote_state) <last_program_signals_packet>:
3955 New field.
3956 (last_program_signals_packet): Remove.
3957 (remote_program_signals, remote_open_1): Update.
3958
747dc59d
TT
39592013-08-14 Tom Tromey <tromey@redhat.com>
3960
3961 * remote.c (struct remote_state) <last_pass_packet>:
3962 New field.
3963 (last_pass_packet): Remove.
3964 (remote_pass_signals, remote_open_1): Update.
3965
262e1174
TT
39662013-08-14 Tom Tromey <tromey@redhat.com>
3967
3968 * remote.c (struct remote_state) <remote_traceframe_number>:
3969 New field.
3970 (remote_traceframe_number): Remove.
3971 (new_remote_state, remote_open_1, set_remote_traceframe)
3972 (remote_trace_find): Update.
3973
47f8a51d
TT
39742013-08-14 Tom Tromey <tromey@redhat.com>
3975
3976 * remote.c (struct remote_state) <general_thread, continue_thread>:
3977 New fields.
3978 (general_thread, continue_thread): Remove.
3979 (record_currthread, set_thread, set_general_process)
3980 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3981 (extended_remote_mourn_1): Update.
3982
5d93a237
TT
39832013-08-14 Tom Tromey <tromey@redhat.com>
3984
3985 * remote.c (struct remote_state) <remote_desc>: New field.
3986 (remote_desc): Remove.
3987 (remote_threads_info, remote_threads_extra_info, remote_close)
3988 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3989 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3990 (remote_hostio_send_command, remote_file_put, remote_file_get)
3991 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3992 (remote_async, remote_new_objfile, set_range_stepping): Update.
3993
cf792862
TT
39942013-08-14 Tom Tromey <tromey@redhat.com>
3995
3996 * remote.c (remote_state): Now a pointer.
3997 (get_remote_state_raw): Update.
3998 (new_remote_state): New function.
3999 (_initialize_remote): Use new_remote_state.
4000
dc473cfb
TT
40012013-08-14 Tom Tromey <tromey@redhat.com>
4002
4003 * remote.c (remote_protocol_features): Now const.
4004
85ec6ce7
TT
40052013-08-14 Tom Tromey <tromey@redhat.com>
4006
4007 * remote.c (crc32_table, crc32): Remove.
4008 (remote_verify_memory): Use xcrc32.
4009
73033f12
SDJ
40102013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4011
4012 * value.h (create_internalvar_type_lazy): Adjust prototype
4013 declaration.
4014
5c30d39a
AB
40152013-08-13 Andrew Burgess <aburgess@broadcom.com>
4016
4017 * common/format.c (parse_format_string): Don't allow '#' flag for
4018 pointer arguments in format string.
4019
1a66331e
PM
40202013-08-13 Pierre Muller <muller@sourceware.org>
4021
fde605f3 4022 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4023 if rl_get_screen_size did not return useful values.
4024
b4013987
AA
40252013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4026
4027 PR breakpoints/15117
4028 * linespec.c (linespec_parse_basic): Check for convenience
4029 variable or history value while parsing.
4030
959b6a66
SDJ
40312013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4032
4033 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4034 AVR.
4035 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4036 different signals between the generic Linux kernel implementation
4037 and AVR's.
4038 (avr_linux_gdb_signal_from_target): Delete.
4039 (avr_linux_gdb_signal_to_target): Delete.
4040 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4041
24a55014
DE
40422013-08-09 Doug Evans <dje@google.com>
4043
4044 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4045 entries.
4046
eb14d406
SDJ
40472013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4048
4049 * linux-tdep.c: Define enum with generic signal numbers.
4050 (linux_gdb_signal_from_target): New function.
4051 (linux_gdb_signal_to_target): Likewise.
4052 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4053 methods to the functions above.
4054 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4055 (linux_gdb_signal_to_target): Likewise.
4056 * alpha-linux-tdep.c: Define new enum with signals different
4057 from generic Linux kernel.
4058 (alpha_linux_gdb_signal_from_target): New function.
4059 (alpha_linux_gdb_signal_to_target): Likewise.
4060 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4061 with the functions mentioned above.
4062 * avr-tdep.c: Define enum with differences between Linux kernel
4063 and AVR signals.
4064 (avr_linux_gdb_signal_from_target): New function.
4065 (avr_linux_gdb_signal_to_target): Likewise.
4066 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4067 the functions mentioned above.
4068 * sparc-linux-tdep.c: Define enum with differences between SPARC
4069 and generic Linux kernel signal numbers.
4070 (sparc32_linux_gdb_signal_from_target): New function.
4071 (sparc32_linux_gdb_signal_to_target): Likewise.
4072 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4073 to the functions defined above.
4074 * xtensa-linux-tdep.c: Define enum with differences between
4075 Xtensa and Linux kernel generic signals.
4076 (xtensa_linux_gdb_signal_from_target): New function.
4077 (xtensa_linux_gdb_signal_to_target): Likewise.
4078 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4079 to the functions defined above.
4080 * mips-linux-tdep.c: Define enum with differences between
4081 signals in MIPS and Linux kernel generic ones.
4082 (mips_gdb_signal_to_target): New function.
4083 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4084 only different signals from the Linux kernel generic.
4085 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4086 the functions defined above.
4087 * mips-linux-tdep.h (enum mips_signals): Remove.
4088
156d08c8
PA
40892013-08-09 Pedro Alves <palves@redhat.com>
4090
4091 * avr-tdep.c (XMALLOC): Delete macro.
4092 * cli/cli-dump.c (XMALLOC): Delete macro.
4093
db229724
PA
40942013-08-09 Pedro Alves <palves@redhat.com>
4095
4096 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4097 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4098 (fopen_with_cleanup, add_dump_command): Make static.
4099 * cli/cli-dump.h: Delete file.
4100 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4101 cli/cli-dump.h.
4102
3f12a589
PA
41032013-08-09 Pedro Alves <palves@redhat.com>
4104
4105 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4106 error message.
4107
c718be47
PA
41082013-08-09 Pedro Alves <palves@redhat.com>
4109
156d08c8 4110 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4111 error message.
4112
1e351ed1
PA
41132013-08-09 Pedro Alves <palves@redhat.com>
4114
4115 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4116 (gcore_command): Use tilde_expand here, and when showing the
4117 filename to the user, show the expanded version.
4118
1ed8d800
YQ
41192013-08-09 Yao Qi <yao@codesourcery.com>
4120
4121 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4122 'entryval' is set.
4123
47ecca85
PA
41242013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4125
4126 * gcore.c (create_gcore_bfd): Use tilde_expand.
4127
82a0a75f
YQ
41282013-08-08 Yao Qi <yao@codesourcery.com>
4129
4130 * frame.h (read_frame_local): Declare.
4131 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4132 read_frame_local.
4133 * stack.c (read_frame_local): New.
4134
5c4aa40b
YQ
41352013-08-08 Yao Qi <yao@codesourcery.com>
4136
4137 * mi/mi-cmd-stack.c: Update comments to function
4138 list_args_or_locals.
4139
b93601f3
TT
41402013-08-07 Tom Tromey <tromey@redhat.com>
4141
4142 PR symtab/15028:
4143 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4144 (process_psymtab_comp_unit_reader): Use it.
4145 (process_psymtab_comp_unit): Update. Add "pretend_language"
4146 argument.
4147 (dwarf2_build_psymtabs_hard): Update.
4148 (scan_partial_symbols): Pass CU's language to
4149 process_psymtab_comp_unit.
4150
fa760f46
TT
41512013-08-07 Tom Tromey <tromey@redhat.com>
4152
4153 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4154 (dwarf2_gdb_index_functions): Update.
4155 * psymtab.c (find_symbol_file_from_partial): Remove.
4156 (psym_functions): Update.
4157 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4158 Remove.
4159
bf6d8a91
TT
41602013-08-07 Tom Tromey <tromey@redhat.com>
4161
4162 * symfile.c (set_initial_language): Look up "main" symbol
4163 and use its language.
4164 * symtab.c (find_main_filename): Remove.
4165 * symtab.h (find_main_filename): Remove.
4166
f9125b6c
TT
41672013-08-07 Tom Tromey <tromey@redhat.com>
4168
4169 * dwarf2read.c (recursively_compute_inclusions): Add
4170 "immediate_parent" argument. Set symtab's "user" field
4171 if not set.
4172 (compute_symtab_includes): Update.
4173
fdbb204b
TT
41742013-08-07 Tom Tromey <tromey@redhat.com>
4175
4176 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4177 when adding label symbols.
4178
49de1690
UW
41792013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4180 Ulrich Weigand <uweigand@de.ibm.com>
4181
4182 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4183 * configure.host (powerpc64-*-aix*): Likewise.
4184
b08ee99f
UW
41852013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4186 Ulrich Weigand <uweigand@de.ibm.com>
4187
4188 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4189 is defined.
4190 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4191 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4192 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4193 * configure.ac: Check for ptrace64.
4194 * configure, config.in: Regenerate.
4195
fecf803e
UW
41962013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4197 Ulrich Weigand <uweigand@de.ibm.com>
4198
4199 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4200 Call ptrace64 instead of ptrace if defined.
4201 Add macro addr_ptr to take care of ptrace address argument.
4202 (pdc_read_regs): Likewise.
4203 (pdc_write_regs): Likewise.
4204 (aix_thread_resume): Likewise.
4205 (fetch_regs_kernel_thread): Likewise.
4206 (store_regs_kernel_thread): Likewise.
4207
3bb5e4a8
AB
42082013-08-07 Anton Blanchard <anton@samba.org>
4209
4210 * MAINTAINERS: Add myself to Write After Approval.
4211
12070676
TT
42122013-08-05 Tom Tromey <tromey@redhat.com>
4213
4214 * aix-thread.c (_initialize_aix_thread): Use
4215 complete_target_initialization.
4216 * bsd-uthread.c (_initialize_bsd_uthread): Use
4217 complete_target_initialization.
4218 * dec-thread.c (_initialize_dec_thread): Use
4219 complete_target_initialization.
4220 * ravenscar-thread.c (_initialize_ravenscar): Use
4221 complete_target_initialization.
4222 * sol-thread.c (_initialize_sol_thread): Use
4223 complete_target_initialization.
4224 * spu-multiarch.c (_initialize_spu_multiarch): Use
4225 complete_target_initialization.
4226
7c7b6655
TT
42272013-08-05 Tom Tromey <tromey@redhat.com>
4228
4229 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4230 * ada-lang.c (ada_lookup_simple_minsym): Return
4231 bound_minimal_symbol.
4232 * ada-lang.h (ada_lookup_simple_minsym): Update.
4233 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4234 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4235 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4236 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4237 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4238 * minsyms.c (msymbol_objfile): Remove.
4239 (lookup_minimal_symbol_internal): New function, from
4240 lookup_minimal_symbol.
4241 (lookup_minimal_symbol): Rewrite using
4242 lookup_minimal_symbol_internal.
4243 (lookup_bound_minimal_symbol): New function.
4244 * minsyms.h (msymbol_objfile): Remove.
4245 (lookup_bound_minimal_symbol): Declare.
4246 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4247 * parse.c (write_exp_msymbol): Change parameter to a
4248 bound_minimal_symbol.
4249 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4250 * parser-defs.h (write_exp_msymbol): Update.
4251 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4252 * symfile.c (simple_read_overlay_table): Use
4253 lookup_bound_minimal_symbol.
4254 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4255 (search_symbols): Likewise.
4256 (print_msymbol_info): Take a bound_minimal_symbol argument.
4257 (symtab_symbol_info, rbreak_command): Update.
4258 * symtab.h (struct symbol_search) <msymbol>: Change type
4259 to bound_minimal_symbol.
4260 * valops.c (find_function_in_inferior): Use
4261 lookup_bound_minimal_symbol.
4262 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4263
934b9bac
JK
42642013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4265
4266 Code cleanup.
4267 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4268 to ...
4269 (async_cleanup_sigint_signal_handler): ... this.
4270 (initialize_sigint_signal_handler): Remove declaration.
4271 (handle_remote_sigint): Rename the declaration to ...
4272 (async_handle_remote_sigint): ... this.
4273 (handle_remote_sigint_twice): Rename the declaration to ...
4274 (async_handle_remote_sigint_twice): ... this.
4275 (async_remote_interrupt, async_remote_interrupt_twice)
4276 (remote_interrupt): Remove the declarations.
4277 (remote_interrupt_twice): Rename the declaration ...
4278 (sync_remote_interrupt_twice): ... this.
4279 (sigint_remote_twice_token): Rename the variable to ...
4280 (async_sigint_remote_twice_token): ... this.
4281 (sigint_remote_token): Rename the variable to ...
4282 (async_sigint_remote_token): ... this.
4283 (initialize_sigint_signal_handler): Rename the function to ...
4284 (async_initialize_sigint_signal_handler): ... this. Update the name
4285 inside.
4286 (handle_remote_sigint): Rename the function to ...
4287 (async_handle_remote_sigint): ... this. Update the names inside.
4288 (handle_remote_sigint_twice): Rename the function to ...
4289 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4290 (cleanup_sigint_signal_handler): Rename the function to ...
4291 (async_cleanup_sigint_signal_handler): ... this.
4292 (remote_interrupt): Rename the function to ...
4293 (sync_remote_interrupt): this. Update the names inside.
4294 (remote_interrupt_twice): Rename the function to ...
4295 (sync_remote_interrupt_twice): this. Update the names inside.
4296 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4297 (_initialize_remote): Update the names inside.
4298
3a1115a0
TT
42992013-08-02 Tom Tromey <tromey@redhat.com>
4300
4301 PR symtab/15719:
4302 * breakpoint.c (update_watchpoint, watchpoint_check)
4303 (watch_command_1): Update.
4304 * eval.c (fetch_subexp_value): Add "preserve_errors"
4305 parameter.
4306 * ppc-linux-nat.c (check_condition): Update.
4307 * value.h (fetch_subexp_value): Update.
4308
58b19776
AB
43092013-08-02 Andrew Burgess <aburgess@broadcom.com>
4310
4311 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4312 add_file_handler.
4313
ec94af83
DE
43142013-08-01 Doug Evans <dje@google.com>
4315
7ee85ab1
DE
4316 PR symtab/15691
4317 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4318 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4319 Add assert of sig_entry->dwo_unit == NULL.
4320 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4321 had already been read.
4322 (read_signatured_type): Set per_cu.tu_read.
4323
b846d303
DE
4324 PR symtab/15695
4325 * valops.c (value_struct_elt): Add missing call to check_typedef.
4326 (value_find_oload_method_list): Ditto.
4327
b52109bc
DE
4328 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4329 effectively, struct symbol_search **.
4330 (make_cleanup_free_search_symbols): Change arg to struct
4331 symbol_search **. All callers updated.
4332 (compare_search_syms): Compare symtab file name and block as well.
4333 (search_symbols_equal): New function.
4334 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4335 New args new_head, new_tail. Result is now void. Remove dups after
4336 sorting the symbols.
4337 (search_symbols): Sort all found symbols once, after all have been
4338 found, and remove duplicates. Simplify cleanup tracking of result.
4339 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4340
ec94af83
DE
4341 Further workarounds for binutils/15021.
4342 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4343 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4344 Watch for duplicate symtabs coming from type units.
4345 (compute_symtab_includes): Update call to
4346 recursively_compute_inclusions. Build vector of included symtabs
4347 instead of per_cus.
4348 * symtab.h (symtab_ptr): New typedef.
4349 (DEF_VEC_P (symtab_ptr)): New VEC type.
4350 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4351 instead.
4352
b2ae85cf
AB
43532013-08-01 Andrew Burgess <aburgess@broadcom.com>
4354
4355 * cli/cli-script.c (script_from_file): Remove use of
4356 error_pre_print.
4357 * main.c (captured_main): Remove use of error_pre_print and
4358 quit_pre_print.
4359 * utils.c (error_pre_print, quit_pre_print): Remove.
4360 * utils.h (error_pre_print, quit_pre_print): Likewise.
4361
645eab03
YQ
43622013-08-01 Yao Qi <yao@codesourcery.com>
4363
4364 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4365 with mi_getopt.
4366 (mi_cmd_stack_list_variables): Likewise.
4367
16f92dd4
AB
43682013-07-31 Andrew Burgess <aburgess@broadcom.com>
4369
4370 * exceptions.c (deprecated_throw_reason): Remove.
4371 * exceptions.h (deprecated_throw_reason): Remove.
4372
13f78033
AB
43732013-07-31 Andrew Burgess <aburgess@broadcom.com>
4374
4375 * remote-mips.c (mips_error): Replace use of
4376 deprecated_throw_reason with throw_verror. Use the error message
4377 passed to mips_error as the error message for throw_verror.
4378
039e3c22
AB
43792013-07-31 Andrew Burgess <aburgess@broadcom.com>
4380
4381 * monitor.c (monitor_interrupt_query): Replace use of
4382 deprecated_throw_reason with quit.
4383 * nto-procfs.c (interrupt_query): Likewise.
4384 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4385 * remote-mips.c (mips_kill): Likewise.
4386 * remote.c (interrupt_query): Likewise.
4387
8150913b
AB
43882013-07-31 Andrew Burgess <aburgess@broadcom.com>
4389
4390 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4391 with call to fatal.
4392
de74e63a
YQ
43932013-07-31 Pedro Alves <pedro@codesourcery.com>
4394 Yao Qi <yao@codesourcery.com>
4395
4396 * tracepoint.c (trace_dump_command): Select the current frame.
4397
247f5c4f
DE
43982013-07-30 Doug Evans <dje@google.com>
4399
4400 * dwarf2read.c (process_queue): Add type signature to debug output.
4401
11b4b7cc
AB
44022013-07-30 Andrew Burgess <aburgess@broadcom.com>
4403
4404 * value.c (value_fetch_lazy): Mark optimized out values as such
4405 rather than raising an error.
4406
b0c54aa5
AB
44072013-07-30 Andrew Burgess <aburgess@broadcom.com>
4408
4409 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4410 before checking which bits of the parent, not the child, value are
4411 valid.
4412
97c85fc6
MB
44132013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4414
4415 PR gdb/15715
4416 * top.c: Include "filenames.h".
4417 (set_history_filename): New function.
4418 (init_main): Install it as set hook of the "set history filename"
4419 command.
4420
ff39bb5e
SA
44212013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4422
4423 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4424 attribute parameter.
4425 (dwarf2_const_value_data): Constify struct attribute parameter.
4426 (dwarf2_const_value): Constify struct attribute parameter.
4427 (dwarf2_const_value_attr): Constify struct attribute parameter.
4428 (lookup_die_type): Constify struct attribute parameter.
4429 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4430 (follow_die_ref_or_sig): Constify struct attribute parameter.
4431 (follow_die_ref): Constify struct attribute parameter.
4432 (follow_die_sig): Constify struct attribute parameter.
4433 (get_DW_AT_signature_type): Constify struct attribute parameter.
4434 (get_type_unit_group): Constify struct attribute parameter.
4435 (fill_in_loclist_baton): Constify struct attribute parameter.
4436 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4437 (type_unit_group): Constify struct attribute parameter.
4438
6e5a29e1
SA
44392013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4440
4441 * dwarf2read.c (attr_form_is_block): Make argument const.
4442 (attr_form_is_section_offset): Make argument const.
4443 (attr_form_is_constant): Make argument const.
4444 (attr_form_is_ref): Make argument const.
4445
7771576e
SA
44462013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4447
4448 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4449 All uses updated.
4450 (attr_form_is_ref): Moved below attr_form_is_constant.
4451
a94e8645
DE
44522013-07-29 Doug Evans <dje@google.com>
4453
bb5291d0
DE
4454 * main.c (captured_command_loop): Tweak comment.
4455
b5419e49
DE
4456 * target.c (target_async_permitted_1): Fix comment.
4457
b2d23133
DE
4458 * symtab.c (iterate_over_some_symtabs): Add comment.
4459
a94e8645
DE
4460 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4461
7a60ad40
YQ
44622013-07-27 Yao Qi <yao@codesourcery.com>
4463
4464 * NEWS: Mention that GDBserver now supports hardware
4465 watchpoints on the MIPS GNU/Linux target.
4466
aaee2056
YQ
44672013-07-27 Yao Qi <yao@codesourcery.com>
4468
4469 * Makefile.in (HFILES_NO_SRCDIR): Add
4470 common/mips-linux-watch.h.
4471 (mips-linux-watch.o): New rule.
4472 * common/mips-linux-watch.c: New.
4473 * common/mips-linux-watch.h: New.
4474 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4475 * mips-linux-nat.c: Include mips-linux-watch.h.
4476 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4477 to common/mips-linux-watch.h.
4478 (MAX_DEBUG_REGISTER): Likewise.
4479 (enum pt_watch_style): Likewise.
4480 (struct mips32_watch_regs): Likewise.
4481 (struct mips64_watch_regs): Likewise.
4482 (struct pt_watch_regs): Likewise.
4483 (struct mips_watchpoint): Likewise.
4484 (mips_linux_watch_get_irw_mask): Move to
4485 common/mips-linux-watch.c.
4486 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4487 (mips_linux_watch_get_watchlo): Likewise.
4488 (mips_linux_watch_set_watchlo): Likewise.
4489 (mips_linux_watch_get_watchhi): Likewise.
4490 (mips_linux_watch_set_watchhi): Likewise.
4491 (mips_linux_read_watch_registers): Likewise.
4492 (mips_linux_watch_type_to_irw): Likewise.
4493 (mips_linux_stopped_data_address, fill_mask): Likewise.
4494 (mips_linux_watch_try_one_watch): Likewise.
4495 (mips_linux_watch_populate_regs): Likewise.
4496
b3436450
YQ
44972013-07-27 Yao Qi <yao@codesourcery.com>
4498
4499 * mips-linux-nat.c (get_irw_mask): Rename to ...
4500 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4501 'set' to 'n'. Update function comment. All callers changed.
4502 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4503 function comment. All callers changed.
4504 (get_num_valid): Rename to ...
4505 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4506 'set' to 'n'. Update function comment. All callers changed.
4507 (get_watchlo): Rename to ...
4508 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4509 'set' to 'n'. Update function comment. All callers changed.
4510 (set_watchlo): Rename to ...
4511 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4512 'set' to 'n'. Update function comment. All callers changed.
4513 (get_watchhi): Rename to ...
4514 (mips_linux_watch_get_watchhi): ... this. Update function
4515 comment. All callers changed.
4516 (set_watchhi): Rename to ...
4517 (mips_linux_watch_set_watchhi): ... this. Update function
4518 comment. All callers changed.
4519 (mips_linux_read_watch_registers): Update function comment.
4520 Add new parameters 'lwpid', 'watch_readback', and
4521 'watch_readback_valid'. Update.
4522 (type_to_irw): Rename to ...
4523 (mips_linux_watch_type_to_irw): ... this. Update function
4524 comment. All callers changed.
4525 (fill_mask): Update function comment.
4526 (try_one_watch): Rename to ...
4527 (mips_linux_watch_try_one_watch): ... this. Change the type
4528 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4529 (populate_regs_from_watches): Rename to ...
4530 (mips_linux_watch_populate_regs): ... this. Add parameter
4531 'current_watches'. All callers changed.
4532
9be14b81
YQ
45332013-07-27 Yao Qi <yao@codesourcery.com>
4534
4535 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4536 the code.
4537 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4538 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4539 (struct pt_watch_regs): Likewise.
4540 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4541 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4542 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4543 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4544 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4545
de6f69ad
YQ
45462013-07-27 Yao Qi <yao@codesourcery.com>
4547
4548 * breakpoint.h: Include break-common.h.
4549 (enum target_hw_bp_type): Move to ...
4550 * common/break-common.h: ... here. New.
4551
6f64ef53
PA
45522013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4553
4554 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4555 process group regardless of having tty on stdin.
4556
6107e809
DE
45572013-07-25 Doug Evans <dje@google.com>
4558
4559 * linux-fork.h (detach_fork): Delete.
4560
7fdc1521
TT
45612013-07-25 Tom Tromey <tromey@redhat.com>
4562
4563 PR remote/15256, PR remote/15266:
4564 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4565 * monitor.c (monitor_detach): Use unpush_target.
4566 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4567 * remote-mips.c (mips_detach): Use unpush_target. Don't
4568 call mips_close.
4569 * remote-sim.c (gdbsim_detach): Use unpush_target.
4570 * target.c (pop_target): Remove.
4571 (pop_all_targets_above): Don't call target_close.
4572 (target_close): Assert that the target is unpushed.
4573 * target.h (pop_target): Don't declare.
4574 * tracepoint.c (tfile_open): Use unpush_target.
4575
c22a2b88
TT
45762013-07-25 Tom Tromey <tromey@redhat.com>
4577
4578 * linux-thread-db.c (init_thread_db_ops): Call
4579 complete_target_initialization.
4580 (_initialize_thread_db): Don't call add_target.
4581 * target.c (complete_target_initialization): New function.
4582 (add_target_with_completer): Call it.
4583 * target.h (complete_target_initialization): Declare.
4584
cbb6aada
MK
45852013-07-25 Mark Kettenis <kettenis@gnu.org>
4586
4587 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4588 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4589 (HPPANBSD_SIZEOF_GREGS): New define.
4590 (hppaobsd_supply_gregset): Handle additional registers.
4591 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4592 we provide more registers now.
4593 (hppabsd_supply_gregset): Supply additional registers.
4594 (hppabsd_collect_gregset): Collect additional registers.
4595
17767988
MK
45962013-07-25 Mark Kettenis <kettenis@gnu.org>
4597
4598 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4599 (hppabsd_dwarf2_frame_init_reg): New function.
4600 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4601
fdc8aae8
AB
46022013-07-25 Andrew Burgess <aburgess@broadcom.com>
4603
4604 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4605 'z' format code. Remove error for optimized out values, standard
4606 code will handle these fine.
4607
6fbe845e
AB
46082013-07-25 Andrew Burgess <aburgess@broadcom.com>
4609
4610 * NEWS: Mention new 'z' formatter.
4611 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4612 (_initialize_printcmd): Mention 'z' formatter in help text of the
4613 'x' command.
4614
3373342d
MR
46152013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4616
4617 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4618 formatting.
4619
25f9533e
SDJ
46202013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4621
4622 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4623 interface can evaluate arguments. Fallback to the old mode if it
4624 cannot.
4625 (create_exception_master_breakpoint): Likewise.
4626 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4627 (struct sym_probe_fns elf_probe_fns): Export function above to the
4628 probe interface.
4629 * probe.c (can_evaluate_probe_arguments): New function.
4630 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4631 function pointer.
4632 (can_evaluate_probe_arguments): New function prototype.
4633 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4634 probe interface can evaluate arguments. Fallback to the old mode
4635 if it cannot.
4636 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4637 interface can evaluate arguments. Warning the user if it cannot.
4638 (stap_can_evaluate_probe_arguments): New function.
4639 (struct probe_ops stap_probe_ops): Export function above to the
4640 probe interface.
4641 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4642 New function pointer.
4643
3360c0bf
LM
46442013-07-24 Luis Machado <lgustavo@codesourcery.com>
4645
4646 * Makefile.in (SFILES): Add common/target-common.c.
4647 Add common/target-common.h to headers.
4648 (COMMON_OBS): Add target-common.o.
4649 (target-common.o): New target.
4650 * linux-nat.h (resume_kind): Move to common/target-common.h.
4651 * target.c (target_waitstatus_to_string): Move to
4652 common/target-common.c.
4653 * target.h: Include target-common.h.
4654 (target_waitkind): Move to common/target-common.h.
4655 (target_waitstatus): Likewise.
4656 (TARGET_WNOHANG): Likewise.
4657 * common/target-common.c: New file.
4658 * common/target-common.h: New file.
4659
6656a72d
DE
46602013-07-24 Doug Evans <dje@google.com>
4661
4662 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4663 a warning.
4664
6df81a63
YQ
46652013-07-23 Yao Qi <yao@codesourcery.com>
4666
4667 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4668 parameter 'gdbarch'.
4669 (i386_stack_tramp_frame_sniffer): Caller update.
4670 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4671 parameter 'gdbarch' and 'target'.
4672 (i386_linux_core_read_description): Caller update.
4673 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4674 Likewise.
4675 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4676 declaration.
4677
365156ad
TT
46782013-07-23 Tom Tromey <tromey@redhat.com>
4679
4680 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4681 2013-07-22.
4682
046ac79f
JK
46832013-07-22 Doug Evans <dje@google.com>
4684
4685 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4686 * exec.c (exec_close): Update call to remove_target_sections.
4687 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4688 * solib.c (update_solib_list): Ditto.
4689 (reload_shared_libraries_1): Ditto.
4690 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4691 * target.h (struct target_section): Rename key to owner.
4692 All uses updated.
046ac79f 4693
29b2cc46
TT
46942013-07-22 Tom Tromey <tromey@redhat.com>
4695
4696 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4697
d1160018
TT
46982013-07-22 Tom Tromey <tromey@redhat.com>
4699
4700 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4701 Simplify cleanup handling.
4702
2f324bf6
TT
47032013-07-22 Tom Tromey <tromey@redhat.com>
4704
4705 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4706 on all return paths.
4707
e23b9d6e
UW
47082013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4709
4710 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4711 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4712 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4713
1cf55f60
PM
47142013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4715
4716 * top.c (print_gdb_version): Add help, apropos description and
4717 url to online documentation.
4718
fa876972
HZ
47192013-07-19 Hui Zhu <hui@codesourcery.com>
4720
4721 PR gdb/15692
4722 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4723
1527aea8
YQ
47242013-07-19 Yao Qi <yao@codesourcery.com>
4725
4726 * target.c (update_current_target): Change the default action
4727 of 'to_traceframe_info' from tcomplain to return_zero.
4728 * target.h (struct target_ops) <to_traceframe_info>: Add more
4729 comments.
4730 * valops.c (read_value_memory): Call
4731 traceframe_available_memory unconditionally.
4732
886f230e
YQ
47332013-07-18 Yao Qi <yao@codesourcery.com>
4734
4735 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4736 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4737 symbol without prefix. If found, set its type to
4738 'mst_solib_trampoline'.
4739
16419bae
DE
47402013-07-17 Doug Evans <dje@google.com>
4741
e7045703
DE
4742 * NEWS: Mention "set print raw frame-arguments".
4743 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4744 * stack.c (print_raw_frame_arguments): New static global.
4745 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4746 (_initialize_stack): New command "set/show print raw frame-arguments".
4747 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4748 (set_print_raw, show_print_raw): New functions.
4749 (_initialize_valprint): New prefix command "set/show print raw".
4750 * valprint.h (value_print_options): Improve comments.
4751
453e48a5
DE
4752 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4753 of all *list variables.
4754
16419bae
DE
4755 * gdbcmd.h (togglelist): Delete.
4756 * cli/cli-cmds.c (togglelist): Delete.
4757 (init_cmd_lists): Update.
4758 * cli/cli-cmds.h (togglelist): Delete.
4759
626f2d1c
TT
47602013-07-17 Tom Tromey <tromey@redhat.com>
4761
4762 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4763 dwarf2_per_objfile.
4764
57e6060e
DE
47652013-07-16 Doug Evans <dje@google.com>
4766
4767 * nto-tdep.c (nto_relocate_section_addresses): Update,
4768 target_section.bfd deleted.
4769 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4770 * s390-tdep.c (s390_load): Ditto.
4771 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4772
5ea5559b
AB
47732013-07-16 Andrew Burgess <aburgess@broadcom.com>
4774
4775 * common/format.c (parse_format_string): Add checks for NULL
4776 character before calling strchr.
4777
2b2848e2
DE
47782013-07-16 Doug Evans <dje@google.com>
4779
2c571006
DE
4780 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4781 temp_pathname argument.
4782 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4783 when opening the file fails.
4784
2b2848e2
DE
4785 * target.h (struct target_section): Delete member bfd.
4786 All users updated to use the_bfd_section->owner instead.
4787 * exec.c (add_to_section_table): Assert bfd is expected value.
4788 Remove initialization of target_section.bfd.
4789 (remove_target_sections): Update.
4790 (section_table_available_memory): Update.
4791 (section_table_xfer_memory_partial): Update.
4792 (print_section_info): Update.
4793 (exec_set_section_address): Update.
4794 * record-full.c (record_full_core_xfer_partial): Update.
4795 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4796 * solib-target.c (solib_target_relocate_section_addresses): Update.
4797 * symfile.c (build_section_addr_info_from_section_table): Update.
4798 * target.c (memory_xfer_live_readonly_partial): Update.
4799 (memory_xfer_partial_1): Update.
4800
926bf92d
UW
48012013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4802
4803 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4804 now available for embedded (BookE) and server (BookS) processors,
4805 correct mentions of 'booke' and adjust comments accordingly in order to
4806 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4807 (have_ptrace_booke_interface): Rename function and variable
4808 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4809 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4810 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4811 'hwdebug_point_cmp'. Update all uses.
4812 (booke_find_thread_points_by_tid): Rename function
4813 'booke_find_thread_points_by_tid' to
4814 'hwdebug_find_thread_points_by_tid'. Update all uses.
4815 (booke_insert_point): Rename function 'booke_insert_point' to
4816 'hwdebug_insert_point'. Update all uses.
4817 (booke_remove_point): Rename function 'booke_remove_point' to
4818 'hwdebug_remove_point'. Update all uses.
4819
d929bc19
MR
48202013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4821
4822 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4823 numbers with enum values.
4824
054e8d9e
AA
48252013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4826
4827 PR threads/13217
4828 * thread.c (thread_apply_all_command): Check for valid threads
4829 and thread count.
4830 (thread_array_cleanup): New struct.
4831 (set_thread_refcount): New function.
4832
cf006359
AB
48332013-07-11 Andrew Burgess <aburgess@broadcom.com>
4834
4835 * infcmd.c (default_print_one_register_info): Reuse function
4836 print_hex_chars.
4837
94e36acc
TT
48382013-07-10 Tom Tromey <tromey@redhat.com>
4839
4840 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4841 (ada-exp.o): New target.
4842
915dd369
SDJ
48432013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4844
4845 * mt-tdep.c (mt_registers_info): Call
4846 get_no_prettyformat_print_options instead of
4847 get_raw_print_options (regression by last patch from Doug
4848 Evans).
4849
eca07816
JB
48502013-07-09 Pedro Alves <palves@redhat.com>
4851
4852 Checked in by Joel Brobecker <brobecker@adacore.com>.
4853 * ada-lang.c (coerce_unspec_val_to_type): Use
4854 value_optimized_out_const.
4855 * value.c (value_optimized_out_const): New function.
4856 * value.h (value_optimized_out_const): New declaration.
4857
2a998fc0
DE
48582013-07-09 Doug Evans <dje@google.com>
4859
4860 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4861 Enum values rename as well. All uses updated.
4862 * valprint.h (value_print_options): Rename member pretty to
4863 pretty format. Rename member prettyprint_arrays to
4864 prettyformat_arrays. Rename member prettyprint_structs to
4865 prettyformat_structs. All uses updated.
4866 (get_no_prettyformat_print_options): Renamed from
4867 get_raw_print_options.
4868 * valprint.c (get_no_prettyformat_print_options): Renamed from
4869 get_raw_print_options. All callers updated.
4870 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4871 All callers updated.
4872 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4873 All callers updated.
4874 (_initialize_valprint): Improve help text for "set print pretty" and
4875 "set print arrays".
4876
466c1fca
AB
48772013-07-09 Andrew Burgess <aburgess@broadcom.com>
4878
4879 * value.c (value_bits_valid): Revert previous change, and change
4880 by Pedro on 2013-07-04, due to regressions in
4881 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4882
ad0f0303
AB
48832013-07-08 Andrew Burgess <aburgess@broadcom.com>
4884 Pedro Alves <palves@redhat.com>
4885
4886 * value.c (value_bits_valid): If the value is not lval_computed
4887 or has no check validity handler then the answer is the
4888 optimized_out flag, otherwise defer to the handler.
4889
b187bec1
EZ
48902013-07-06 Eli Zaretskii <eliz@gnu.org>
4891
48d1d6f5
EZ
4892 * top.c (print_gdb_configuration): Explain in output of
4893 --configuration what does "relocatable" mean.
4894
b187bec1
EZ
4895 * main.c (print_gdb_help): Regroup options in the --help text.
4896 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4897 the relevant discussions.
4898
52d361e1
YQ
48992013-07-06 Yao Qi <yao@codesourcery.com>
4900
4901 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4902 Remove parameter 'lsal'.
4903 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4904 to inner block. Caller update.
4905 (base_breakpoint_create_breakpoints_sal): Update.
4906 (bkpt_create_breakpoints_sal): Likewise.
4907 (tracepoint_create_breakpoints_sal): Likewise.
4908 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4909 element 0 of vector 'canonical->sals'.
4910
e1ec1b42
LM
49112013-07-05 Luis Machado <lgustavo@codesourcery.com>
4912
4913 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4914 register number instead of the pseudo register one.
4915 (rs6000_dwarf2_reg_to_regnum): Likewise.
4916
7195e6f0
PA
49172013-07-04 Pedro Alves <palves@redhat.com>
4918
4919 * findvar.c (value_of_register): Use allocate_optimized_out_value
4920 if the register has been optimized out, instead of
4921 set_value_optimized_out.
4922 * frame-unwind.c (frame_unwind_got_optimized): Use
4923 allocate_optimized_out_value.
4924
58722cac
PA
49252013-07-04 Pedro Alves <palves@redhat.com>
4926
4927 * value.c (value_bits_valid): If the value is not lval_computed,
4928 or doesn't have a check_validity hook, assume the value is entirely
4929 valid.
4930
691a26f5
AB
49312013-07-04 Andrew Burgess <aburgess@broadcom.com>
4932
4933 * stack.c (read_frame_arg): No longer fetch lazy values.
4934 * value.c (value_optimized_out): If the value is not already
4935 marked optimized out, and is lazy then fetch it.
4936 (value_primitive_field): Move optimized out check to later in the
4937 function, after we have loaded any lazy values.
4938 (value_fetch_lazy): Use optimized out flag directly rather than
4939 calling optimized_out method.
4940
a58e2656
AB
49412013-07-04 Andrew Burgess <aburgess@broadcom.com>
4942
4943 * valops.c: Don't include "user-regs.h".
4944 (value_fetch_lazy): Moved to value.c.
4945 * value.c: Include "user-regs.h".
4946 (value_fetch_lazy): Moved from valops.c.
4947
bd885420
YQ
49482013-07-04 Yao Qi <yao@codesourcery.com>
4949
4950 Revert:
4951 2013-06-27 Yao Qi <yao@codesourcery.com>
4952
4953 * common/create-version.sh: Update comments. Handle the case
4954 that TARGET_ALIAS is empty.
4955
17ef446e
PA
49562013-07-03 Pedro Alves <palves@redhat.com>
4957
4958 * Makefile.in (config.status): Depend on development.sh.
4959 (aclocal_m4_deps): Add libmcheck.m4.
4960 * acinclude.m4: Include libmcheck.m4.
4961 * configure.ac: Source development.sh instead of setting
4962 'development' here. --enable-libmcheck/--disable-libmcheck code
4963 factored out to GDB_AC_LIBMCHECK. Run it.
4964 * development.sh: New file.
4965 * libmcheck.m4: New file.
4966 * configure: Regenerate.
4967
ac6dd50f
TT
49682013-07-02 Tom Tromey <tromey@redhat.com>
4969
4970 * contrib/ari/update-web-ari.sh: Update for version.in change.
4971
bd1df410
TT
49722013-07-02 Tom Tromey <tromey@redhat.com>
4973
4974 * common/ptid.h: Comment fixes.
4975
4db1a1dc
TT
49762013-07-01 Tom Tromey <tromey@redhat.com>
4977
4978 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4979 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4980 (dwarf2_read_index, create_all_comp_units): Update.
4981
dd9aa048
TT
49822013-07-01 Tom Tromey <tromey@redhat.com>
4983
4984 * configure.ac (build_warnings): Add -Wold-style-definition.
4985 * configure: Rebuild.
4986 * machoread.c (_initialize_machoread): Use "(void)".
4987 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4988 use "(void)".
4989
44d100c3
TT
49902013-07-01 Tom Tromey <tromey@redhat.com>
4991
4992 * configure.ac (build_warnings): Add -Wold-style-declaration.
4993 * configure: Rebuild.
4994 * dsrec.c (make_srec): Use "static const", not "const static".
4995 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4996 not "const static".
4997 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4998 Use "static const", not "const static".
4999 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5000 not "const static".
5001 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5002 not "const static".
5003 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5004 not "const static".
5005 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5006 not "const static".
5007 (v850_dbtrap_breakpoint_from_pc): Likewise.
5008 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5009 not "const static".
5010
2945b807
TT
50112013-07-01 Tom Tromey <tromey@redhat.com>
5012
5013 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5014 * configure: Rebuild.
5015
d8d2a3ee
PA
50162013-07-01 Pedro Alves <palves@redhat.com>
5017
5018 * defs.h: Include "pathmax.h".
5019 * utils.c: Don't include sys/param.h.
5020 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5021 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5022 instead of MAXPATHLEN.
5023 * solib-sunos.c: Don't include sys/param.h.
5024 * xcoffread.c: Don't include sys/param.h.
5025 * bsd-kvm.c: Don't include sys/param.h.
5026 * darwin-nat.c: Don't include sys/param.h.
5027 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5028 * darwin-nat-info.c: Don't include sys/param.h.
5029 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5030 MAXPATHLEN.
5031 * i386obsd-nat.c: Don't include sys/param.h.
5032 * inf-child.c: Don't include sys/param.h.
5033 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5034 * linux-fork.c: Don't include sys/param.h.
5035 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5036 * linux-nat.c: Don't include sys/param.h.
5037 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5038 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5039 * m68klinux-nat.c: Don't include sys/param.h.
5040 * nbsd-nat.c: Don't include sys/param.h.
5041 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5042 * ppc-linux-nat.c: Don't include sys/param.h.
5043 * rs6000-nat.c: Don't include sys/param.h.
5044 * spu-linux-nat.c. Don't include sys/param.h.
5045 * windows-nat.c: Don't include sys/param.h.
5046 * xtensa-linux-nat.c: Don't include sys/param.h.
5047 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5048
38ec2207
PA
50492013-07-01 Pedro Alves <palves@redhat.com>
5050
5051 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5052 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5053 * gnulib/aclocal.m4: Regenerate.
5054 * gnulib/config.in: Regenerate.
5055 * gnulib/configure: Regenerate.
5056 * gnulib/import/pathmax.h: New file.
5057 * gnulib/import/Makefile.am: Regenerate.
5058 * gnulib/import/Makefile.in: Regenerate.
5059 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5060 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5061 * gnulib/import/m4/pathmax.m4: New file.
5062
e655c1a2
PA
50632013-07-01 Pedro Alves <palves@redhat.com>
5064
5065 * configure.ac (GDBINIT): Define, depending on host.
5066 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5067 * top.c (PATH_MAX): Delete fallback definition.
5068 (GDBINIT_FILENAME): Delete.
5069 (gdbinit): Reimplement as const char array set to the GDBINIT
5070 string constant.
5071 * top.h (gdbinit): Make const.
5072 * configure, config.in: Regenerate.
5073
50dd9793
PA
50742013-07-01 Pedro Alves <palves@redhat.com>
5075
5076 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5077 * cli/cli-cmds.h (source_script): Likewise.
5078 * exceptions.c (catch_command_errors_const): New function.
5079 * exceptions.h (catch_command_errors_const): Declare.
5080 * main.c (get_init_files): Make parameters const, and adjust.
5081 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5082 'local_gdbinit' locals const. Adjust to use
5083 catch_command_errors_const.
5084 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5085 'local_gdbinit' locals const.
5086
bc7dea8d
PA
50872013-07-01 Pedro Alves <palves@redhat.com>
5088
5089 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5090 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5091 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5092 <unistd.h>.
5093
8839a007
PA
50942013-07-01 Pedro Alves <palves@redhat.com>
5095
5096 Import the "unistd" gnulib module.
5097 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5098 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5099 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5100 import/m4/unistd_h.m4.
5101 * gnulib/aclocal.m4: Renenerate.
5102 * gnulib/config.in: Renenerate.
5103 * gnulib/configure: Renenerate.
5104 * gnulib/import/Makefile.am: Renenerate.
5105 * gnulib/import/Makefile.in: Renenerate.
5106 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5107 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5108 * gnulib/import/m4/off_t.m4: New file.
5109 * gnulib/import/m4/ssize_t.m4: New file.
5110 * gnulib/import/m4/sys_types_h.m4: New file.
5111 * gnulib/import/m4/unistd_h.m4: New file.
5112 * gnulib/import/sys_types.in.h: New file.
5113 * gnulib/import/unistd.c: New file.
5114 * gnulib/import/unistd.in.h: New file.
5115
8c0da261
PA
51162013-07-01 Pedro Alves <palves@redhat.com>
5117
5118 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5119 defined instead of checking HAVE_UNISTD_H.
5120
3574124b
PA
51212013-07-01 Pedro Alves <palves@redhat.com>
5122
5123 Reimport gnulib from scratch.
5124 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5125 import/m4/onceonly.m4.
5126 * gnulib/aclocal.m4: Renegerate.
5127 * gnulib/config.in: Renegerate.
5128 * gnulib/configure: Renegerate.
5129 * gnulib/import/Makefile.in: Renegerate.
5130 * gnulib/import/extra/update-copyright: Renegerate.
5131 * gnulib/import/m4/onceonly.m4: Delete.
5132
702dc4fd
PA
51332013-07-01 Pedro Alves <palves@redhat.com>
5134
5135 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5136
47e1ce27
JK
51372013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5138
5139 Code cleanup.
5140 * remote.c (async_remote_interrupt_twice): Make it static.
5141 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5142
e82839d4
SDJ
51432013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5144
5145 * ia64-linux-tdep.c: Include <ctype.h>.
5146 (ia64_linux_stap_is_single_operand): New function.
5147 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5148
d6c2da54
TT
51492013-06-28 Tom Tromey <tromey@redhat.com>
5150
5151 * Makefile.in (version.c): Use version.in, not
5152 common/version.in.
5153 * common/create-version.sh: Likewise.
5154 * common/version.in: Move...
5155 * version.in: ...here.
5156
74da6f00
PA
51572013-06-28 Pedro Alves <palves@redhat.com>
5158
5159 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5160 here.
5161 * utils.h (pagination_enabled): Declare.
5162
d32dc48e
PA
51632013-06-28 Pedro Alves <palves@redhat.com>
5164
5165 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5166 Move higher up in file.
5167
0edd9e3b
TT
51682013-06-28 Tom Tromey <tromey@redhat.com>
5169
5170 * tracepoint.c (deprecated_readline_begin_hook)
5171 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5172 declare.
5173
4eb59108
PA
51742013-06-28 Pedro Alves <palves@redhat.com>
5175
5176 PR tui/14880
5177 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5178 checking if they're available.
5179 * value.c (value_available_contents_eq): Change comment.
5180 * value.h (value_available_contents_eq): Expand comment.
5181
97b17156
TT
51822013-06-27 Tom Tromey <tromey@redhat.com>
5183
5184 * target.c (find_run_target): Remove.
5185 * target.h (find_run_target): Remove.
5186
6a3bfc5c
TT
51872013-06-27 Tom Tromey <tromey@redhat.com>
5188
5189 * corelow.c (core_gdbarch): Now static.
5190
c9ef825d
TT
51912013-06-27 Tom Tromey <tromey@redhat.com>
5192
5193 * target.c (target_struct_index): Remove.
5194
e5823f1c
PA
51952013-06-27 Pedro Alves <palves@redhat.com>
5196
5197 * infrun.c: Remove comment describing the 'stepping over runtime
5198 loader dynamic symbol resolution code' mechanism; moved to
5199 gdbint.texinfo.
5200
97f8dd09
PA
52012013-06-27 Pedro Alves <palves@redhat.com>
5202
5203 * exceptions.c (catch_command_errors): Remove spurious space.
5204 * exceptions.h (catch_command_errors): Second parameter is "arg",
5205 not "command".
5206
02b1871e
YQ
52072013-06-27 Yao Qi <yao@codesourcery.com>
5208
5209 * common/create-version.sh: Update comments. Handle the case
5210 that TARGET_ALIAS is empty.
5211
bb1b1cf1
PA
52122013-06-26 Pedro Alves <palves@redhat.com>
5213
5214 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5215 comment.
5216
7b624e71
PA
52172013-06-26 Pedro Alves <palves@redhat.com>
5218
5219 * infrun.c: Update comments on stepping over runtime loader
5220 dynamic symbol resolution code.
5221
74e5a346
SDJ
52222013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5223
5224 * ax-gdb.h (union exp_element): Forward declare.
5225 * parser-defs.h: Include expression.h.
5226
a2fb2cee
MR
52272013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5228
5229 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5230
cdba14e0
DK
52312013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5232
5233 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5234
f30aa5af
DK
52352013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5236
5237 Fix trace-status to output proper start-time and stop-time.
5238 * tracepoint.c (trace_status_command): Fix type of printf arg to
5239 prevent improper type conversion.
5240 (trace_status_mi): Likewise.
5241
1aee363c
MR
52422013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5243
5244 * mips-tdep.c (mips_next_pc): Fix a typo.
5245
3356937a
MR
52462013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5247
5248 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5249
dc673c81
YQ
52502013-06-26 Pedro Alves <pedro@codesourcery.com>
5251 Yao Qi <yao@codesourcery.com>
5252
5253 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5254 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5255 * mi/mi-main.c (print_variable_or_computed): New function.
5256 (mi_cmd_trace_frame_collected): New function.
5257 * tracepoint.c (find_trace_state_variable_by_number): New.
5258 (struct traceframe_info): Move to tracepoint.h
5259 (struct collection_list): Likewise.
5260 (do_collect_symbol): Include locals and arguments in the
5261 collected variables list.
5262 (clear_collection_list): Clear wholly collected variables list
5263 and computed variables list.
5264 (append_exp): New function.
5265 (encode_actions_1): Include variables in the wholly
5266 collected variables list. Include memory ranges and
5267 full-fledged expressions in the computed expressions list.
5268 (encode_actions): Move some code to ...
5269 Return the cleanup chain.
5270 (encode_actions_rsp): ... here. New function.
5271 (get_traceframe_location, get_traceframe_info): Remove static.
5272 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5273 (struct collection_list): Moved from tracepoint.c. Add two
5274 new fields 'wholly_collected' and 'computed'.
5275 (find_trace_state_variable_by_number): Declare.
5276 (encode_actions): Adjust declaration.
5277 (encode_actions_rsp): Declare.
5278 (get_traceframe_info, get_traceframe_location): Declare.
5279
5280 * NEWS: Mention new MI command -trace-frame-collected.
5281
28a93511
YQ
52822013-06-26 Pedro Alves <pedro@codesourcery.com>
5283 Yao Qi <yao@codesourcery.com>
5284
5285 * ctf.c (ctf_traceframe_info): Push trace state variables
5286 present in the trace data into the traceframe info object.
5287 * breakpoint.c (DEF_VEC_I): Remove.
5288 * common/filestuff.c (DEF_VEC_I): Likewise.
5289 * dwarf2loc.c (DEF_VEC_I): Likewise.
5290 * mi/mi-main.c (DEF_VEC_I): Likewise.
5291 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5292 * features/traceframe-info.dtd: Add tvar element and its
5293 attributes.
5294 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5295 (build_traceframe_info): Push trace state variables present in
5296 the trace data into the traceframe info object.
5297 (traceframe_info_start_tvar): New function.
5298 (tvar_attributes): New.
5299 (traceframe_info_children): Add "tvar" element.
5300 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5301
5302 * NEWS: Mention the change in GDB and GDBserver.
5303
ddacd3c8
YQ
53042013-06-26 Pedro Alves <pedro@codesourcery.com>
5305 Yao Qi <yao@codesourcery.com>
5306
5307 * tracepoint.c (trace_dump_command): Move code to ...
5308 (get_traceframe_location): ... here. New.
5309
05796b35
YQ
53102013-06-26 Pedro Alves <pedro@codesourcery.com>
5311 Yao Qi <yao@codesourcery.com>
5312
5313 * tracepoint.c (trace_dump_command): GDB emits an error
5314 instead of a warning when a traceframe is not selected.
5315
cbfa3b61
YQ
53162013-06-26 Pedro Alves <pedro@codesourcery.com>
5317 Yao Qi <yao@codesourcery.com>
5318
5319 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5320 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5321 in collection_list.
5322 (do_clear_collection_list, init_collection_list): New.
5323 (encode_actions): Add local variables 'tracepoint_list' and
5324 'stepping_list'. Call init_collection_list and make cleanup
5325 which calls do_clear_collection_list. Don't call
5326 clear_collection_list.
5327 (_initialize_tracepoint): Delete references to
5328 'tracepoint_list' and 'stepping_list'.
5329
6e2048d3
TT
53302013-06-25 Tom Tromey <tromey@redhat.com>
5331
5332 * common/create-version.sh (date): Use "$", not "$$" in sed
5333 expression.
5334
42059f0e
KB
53352013-06-25 Kevin Buettner <kevinb@redhat.com>
5336
5337 * NEWS (New targets): Add entry for TI MSP430.
5338
a0743c90
YQ
53392013-06-25 Yao Qi <yao@codesourcery.com>
5340
5341 * remote.c (remote_start_remote): Move code to upload tsv
5342 earlier.
5343
9d6e6e84
HZ
53442013-06-25 Yao Qi <yao@codesourcery.com>
5345 Hui Zhu <hui@codesourcery.com>
5346 Pedro Alves <palves@redhat.com>
5347
5348 PR breakpoints/15075
5349 PR breakpoints/15434
5350 * breakpoint.c (bpstat_stop_status): Call
5351 b->ops->after_condition_true.
5352 (update_dprintf_command_list): Don't append "continue" command
5353 to the command list of dprintf breakpoint.
5354 (base_breakpoint_after_condition_true): New function.
5355 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5356 (dprintf_after_condition_true): New function.
5357 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5358 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5359
586cf749
KB
53602013-06-24 Kevin Buettner <kevinb@redhat.com>
5361
5362 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5363 (ALLDEPFILES): Add msp430-tdep.c.
5364 * configure.tgt (msp430*-*-elf): New target.
5365 * msp430-tdep.c: New file.
5366
1bbce132
MR
53672013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5368
5369 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5370 microMIPS synthetic symbols.
5371
3e5d3a5a
MR
53722013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5373
5374 * objfiles.h (pc_in_section): New prototype.
5375 (in_plt_section): Remove name argument, replace prototype with
5376 static inline function.
5377 * mips-tdep.h: Include "objfiles.h".
5378 (in_mips_stubs_section): New function.
5379 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5380 in_solib_call_trampoline member.
5381 (hppa_in_solib_call_trampoline): Remove name argument.
5382 * objfiles.c (pc_in_section): New function.
5383 (in_plt_section): Remove function.
5384 * mips-linux-tdep.c: Include "objfiles.h".
5385 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5386 name argument. Return 1 rather than the low 16-bit halfword of
5387 any instruction examined.
5388 (mips_linux_in_dynsym_resolve_code): Update
5389 mips_linux_in_dynsym_stub call accordingly.
5390 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5391 rather than an equivalent hand-coded sequence.
5392 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5393 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5394 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5395 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5396 in_opd_section.
5397 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5398 on call to tdep->in_solib_call_trampoline.
5399 (hppa_in_solib_call_trampoline): Remove name argument, update
5400 according to in_plt_section change.
5401 (hppa_skip_trampoline_code): Update according to in_plt_section
5402 change.
5403 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5404 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5405 Likewise.
5406 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5407 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5408 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5409 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5410 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5411 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5412 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5413 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5414 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5415 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5416 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5417 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5418 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5419
b9b26a16
JB
54202013-06-24 Joel Brobecker <brobecker@adacore.com>
5421
5422 * common/create-version.sh: Fix expansion of $host_alias
5423 and $target_alias in generation of HOST_NAME and TARGET_NAME
5424 (resp.).
5425
01208463
TT
54262013-06-24 Tom Tromey <tromey@redhat.com>
5427
5428 * common/create-version.sh: New file.
5429 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5430 create-version.sh.
5431 (HFILES_NO_SRCDIR): Use common/version.h.
5432 * version.in: Move to ...
5433 * common/version.in: ... here. Replace date with "DATE".
5434 * version.h: Move to ...
5435 * common/version.h: ... here.
5436
bb6b9a5e
JB
54372013-06-21 Joel Brobecker <brobecker@adacore.com>
5438
5439 * gdb/gnulib/Makefile.in: Update date in copyright header.
5440 * gdb/gnulib/configure.ac: Ditto.
5441 * gdb/gnulib/update-gnulib.sh: Ditto.
5442
c3b18ee7
JB
54432013-06-21 Joel Brobecker <brobecker@adacore.com>
5444
5445 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5446 "gdb/gnulib/import".
5447
85d3b769
WN
54482013-06-21 Will Newton <will.newton@linaro.org>
5449
5450 * doublest.c (ldfrexp): Remove function.
5451 (convert_doublest_to_floatformat): Call frexpl instead of
5452 ldfrexp.
5453
88b48903
WN
54542013-06-21 Will Newton <will.newton@linaro.org>
5455
5456 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5457 * gnulib/aclocal.m4: Regenerate.
5458 * gnulib/config.in: Regenerate.
5459 * gnulib/configure: Regenerate.
5460 * gnulib/import/Makefile.am: Update.
5461 * gnulib/import/Makefile.in: Update.
5462 * gnulib/import/m4/gnulib-cache.m4: Update.
5463 * gnulib/import/m4/gnulib-comp.m4: Update.
5464 * gnulib/import/float+.h: Import.
5465 * gnulib/import/float.c: Import.
5466 * gnulib/import/float.in.h: Import.
5467 * gnulib/import/fpucw.h: Import.
5468 * gnulib/import/frexp.c: Import.
5469 * gnulib/import/frexpl.c: Import.
5470 * gnulib/import/isnan.c: Import.
5471 * gnulib/import/isnand-nolibm.h: Import.
5472 * gnulib/import/isnand.c: Import.
5473 * gnulib/import/isnanl-nolibm.h: Import.
5474 * gnulib/import/isnanl.c: Import.
5475 * gnulib/import/itold.c: Import.
5476 * gnulib/import/m4/exponentd.m4: Import.
5477 * gnulib/import/m4/exponentl.m4: Import.
5478 * gnulib/import/m4/float_h.m4: Import.
5479 * gnulib/import/m4/fpieee.m4: Import.
5480 * gnulib/import/m4/frexp.m4: Import.
5481 * gnulib/import/m4/frexpl.m4: Import.
5482 * gnulib/import/m4/isnand.m4: Import.
5483 * gnulib/import/m4/isnanl.m4: Import.
5484 * gnulib/import/m4/math_h.m4: Import.
5485 * gnulib/import/math.c: Import.
5486 * gnulib/import/math.in.h: Import.
5487
4353c9e6
JK
54882013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5489
5490 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5491 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5492 signature_INTEL_edx comparisons.
5493
e3e06db3
DE
54942013-06-20 Doug Evans <dje@google.com>
5495
6ac97d4c
DE
5496 symtab/15652
5497 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5498 All callers updated.
5499 (open_dwp_file): If we can't find the dwp file, search the basename
5500 in debug-file-directory.
5501
93417882
DE
5502 * dwarf2read.c (struct dwp_file): Fix comment.
5503 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5504
e3e06db3
DE
5505 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5506 better.
5507
0878d0fa
YQ
55082013-06-20 Yao Qi <yao@codesourcery.com>
5509
5510 * breakpoint.c (create_breakpoint): Fix code indentation.
5511
023fa29b
YQ
55122013-06-20 Yao Qi <yao@codesourcery.com>
5513
5514 * breakpoint.c (create_breakpoints_sal_default): Remove
5515 parameter 'lsal'. Update declaration.
5516 (bkpt_create_breakpoints_sal): Caller update.
5517 (tracepoint_create_breakpoints_sal): Likewise.
5518
c898adb7
YQ
55192013-06-20 Pedro Alves <pedro@codesourcery.com>
5520 Yao Qi <yao@codesourcery.com>
5521
5522 * NEWS: Mention the new option '--skip-unavailable' of command
5523 -data-list-register-values.
5524 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5525 --skip-unavailable option. Adjust to use output_register.
5526 (output_register): Add new 'skip_unavailable' parameter.
5527 Handle it.
5528
4d157a3d
MF
55292013-06-19 Mike Frysinger <vapier@gentoo.org>
5530
5531 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5532 common/i386-gcc-cpuid.h.
5533 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5534 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5535 Copy the latest version from upstream gcc.
5536 * common/linux-btrace.c: Include i386-cpuid.h.
5537 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5538 call to i386_cpuid.
5539 (cpu_supports_btrace): Likewise.
5540 * go32-nat.c: Include i386-cpuid.h.
5541 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5542
1ce4db08
DE
55432013-06-19 Doug Evans <dje@google.com>
5544
5545 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5546 (get_section_index): Ditto.
5547
0e4777df
TT
55482013-06-19 Tom Tromey <tromey@redhat.com>
5549
5550 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5551 "dprintf" help.
5552
3190f0c6
DE
55532013-06-18 Doug Evans <dje@google.com>
5554
5555 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5556 before using it.
5557 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5558 Move test of cu_index closer to use. Print complaint if cu_index
5559 is bad.
5560
8b89a20a
JB
55612013-06-18 Joel Brobecker <brobecker@adacore.com>
5562
5563 * machoread.c (oso_vector): Delete this global.
5564 (macho_register_oso): Add new parameter "oso_vector_ptr".
5565 Use it instead of the "oso_vector" global.
5566 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5567 (macho_symfile_read): Use a local oso_vector, to be free'ed
5568 at the end of this function, in place of the old "oso_vector"
5569 global. Update various function calls accordingly. Use one
5570 single cleanup chain for the entire function.
5571
59b0c7c1
JB
55722013-06-18 Joel Brobecker <brobecker@adacore.com>
5573
937c708c 5574 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5575 DWARF2_PER_OBJFILE by uses of DATA instead.
5576
427cd150
TT
55772013-06-18 Tom Tromey <tromey@redhat.com>
5578
5579 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5580 argument.
5581 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5582 Special case signals other than GDB_SIGNAL_TRAP.
5583 (explains_signal_watchpoint): New function.
5584 (base_breakpoint_explains_signal): Add 'sig' argument.
5585 (initialize_breakpoint_ops): Set 'explains_signal' method for
5586 watchpoints.
5587 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5588 signal argument.
5589 (bpstat_explains_signal): Likewise.
5590 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5591
2d57700b
TT
55922013-06-18 Tom Tromey <tromey@redhat.com>
5593
5594 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5595
ac475191
TT
55962013-06-18 Tom Tromey <tromey@redhat.com>
5597
5598 * python/python.c (finish_python_initialization): Decref
5599 'pythondir' on failure path as well.
5600
5bd1ef56
TT
56012013-06-18 Tom Tromey <tromey@redhat.com>
5602
5603 PR symtab/15391:
5604 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5605 after taking bits_to_skip into account. Sign extend byte_offset.
5606 * utils.h (gdb_sign_extend): Declare.
5607 * utils.c (gdb_sign_extend): New function.
5608
92fac807
JK
56092013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5610
5611 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5612
2d503272
PM
56132013-06-17 Pierre Muller <muller@sourceware.org>
5614
5615 * corelow.c (core_open): Print GDB signal name instead of target
5616 signal number.
5617
6916fd98
MF
56182013-06-17 Mike Frysinger <vapier@gentoo.org>
5619
5620 * .gitignore: Add /gcore.
5621
9c02c129
DE
56222013-06-13 Doug Evans <dje@google.com>
5623
5624 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5625 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5626
d0548fa2
PM
56272013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5628
5629 * stack.c (backtrace_command_1): Fix indentation.
5630
22128028
JB
56312013-06-11 Joel Brobecker <brobecker@adacore.com>
5632
5633 * window-nat.c (thread_rec): Add missing empty line after
5634 local variable declaration.
5635
2ed3e009
JB
56362013-06-11 Joel Brobecker <brobecker@adacore.com>
5637
5638 * windows-nat.c (thread_rec): Revert format used to print
5639 error code returned by SuspendThread from %d back to %u.
5640
0c3d84be
JB
56412013-06-11 Joel Brobecker <brobecker@adacore.com>
5642
5643 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5644 ID in debug trace.
5645 (get_windows_debug_event): Likewise, for all debug traces.
5646
80e88e1a
JB
56472013-06-11 Joel Brobecker <brobecker@adacore.com>
5648
5649 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5650 warning message.
5651
1edebdbf
YQ
56522013-06-08 Pedro Alves <pedro@codesourcery.com>
5653 Yao Qi <yao@codesourcery.com>
5654
5655 * mi/mi-main.c (get_register): Remove declaration.
5656 (output_register): Declare.
5657 (mi_cmd_data_list_register_values): Remove local variable
5658 'tuple_cleanup'. Move some code into output_register.
5659 (get_register): Renamed to ...
5660 (output_register): ... this. Output the register's
5661 "number" ui_out tuple here.
5662
47d48711
PA
56632013-06-07 Pedro Alves <palves@redhat.com>
5664
5665 * darwin-nat.c: Fix formating in copyright header.
5666 * darwin-nat.h: Likewise.
5667 * gnu-nat.c: Likewise.
5668 * machoread.c: Likewise.
5669
3aee8918
PA
56702013-06-07 Pedro Alves <palves@redhat.com>
5671
5f2b57b5 5672 PR server/14823
3aee8918
PA
5673 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5674 static. Output a global target description pointer.
5675 (init_registers_${name}): Adjust to initialize a
5676 target description structure.
5677
fe8400b4
WN
56782013-06-07 Will Newton <will.newton@linaro.org>
5679
5680 * printcmd.c (build_address_symbolic): Call
5681 gdbarch_addr_bits_remove for text minimal symbols.
5682
20df6206
WN
56832013-06-07 Will Newton <will.newton@linaro.org>
5684
5685 * MAINTAINERS: Add myself to Write After Approval.
5686
aef525cb
YQ
56872013-06-07 Yao Qi <yao@codesourcery.com>
5688
5689 * tracepoint.c (start_tracing): Move code to ...
5690 (trace_reset_local_state): ... here. New.
5691 (disconnect_tracing): Don't call set_current_traceframe,
5692 set_tracepoint_num, and set_traceframe_context. Call
5693 trace_reset_local_state instead.
5694 (tfile_close): Call trace_reset_local_state.
5695 * ctf.c (ctf_close): Likewise.
5696 * remote.c (remote_close): Likewise.
5697 * tracepoint.h (trace_reset_local_state): Declare.
5698
d2415c6c
DE
56992013-06-06 Doug Evans <dje@google.com>
5700
5701 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5702 and fix header docs.
5703
69fc87c2
DE
57042013-06-05 Doug Evans <dje@google.com>
5705 Keith Seitz <keiths@redhat.com>
5706
5707 PR 15519
5708 * cp-namespace.c (find_symbol_in_baseclass): Call
5709 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5710 Check result of call to lookup_symbol_static.
5711 Call lookup_static_symbol_aux unconditionally.
5712 Call check_typedef on base types before accessing them.
5713 (cp_lookup_nested_symbol): Fix comment.
5714
a513d1e8
LM
57152013-06-05 Luis Machado <lgustavo@codesourcery.com>
5716
5717 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5718 minimal symbols pointing to function descriptors.
5719
351a6f02
TT
57202013-06-05 Tom Tromey <tromey@redhat.com>
5721
5722 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5723
5e1b953b 57242013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5725 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5726
5727 * remote.c (remote_wait_as): Restore signal handler before returning
5728 when GDB gets a notification.
5729
f9e14852
GB
57302013-06-04 Gary Benson <gbenson@redhat.com>
5731
8445cbf1 5732 PR 2328
f9e14852
GB
5733 * breakpoint.h (handle_solib_event): Moved function declaration
5734 to solib.h.
5735 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5736 (bpstat_stop_status): Pass new argument to handle_solib_event.
5737 * solib.h (update_solib_breakpoints): New function declaration.
5738 (handle_solib_event): Moved function declaration from
5739 breakpoint.h.
5740 * solib.c (update_solib_breakpoints): New function.
5741 (handle_solib_event): Moved function from breakpoint.c.
5742 Updated to call solib_ops->handle_event if not NULL.
5743 * solist.h (target_so_ops): New fields "update_breakpoints" and
5744 "handle_event".
5745 * infrun.c (set_stop_on_solib_events): New function.
5746 (_initialize_infrun): Use the above for "set
5747 stop-on-solib-events".
5748 (handle_inferior_event): Pass new argument to handle_solib_event.
5749 * solib-svr4.c (probe.h): New include.
5750 (svr4_free_library_list): New forward declaration.
5751 (probe_action): New enum.
5752 (probe_info): New struct.
5753 (probe_info): New static variable.
5754 (NUM_PROBES): New definition.
5755 (svr4_info): New fields "using_xfer", "probes_table" and
5756 "solib_list".
5757 (free_probes_table): New function.
5758 (free_solib_list): New function.
5759 (svr4_pspace_data_cleanup): Free probes table and solib list.
5760 (svr4_copy_library_list): New function.
5761 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5762 (svr4_read_so_list): New parameter "prev_lm".
5763 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5764 (svr4_current_sos): New function.
5765 (probe_and_action): New struct.
5766 (hash_probe_and_action): New function.
5767 (equal_probe_and_action): Likewise.
5768 (register_solib_event_probe): Likewise.
5769 (solib_event_probe_at): Likewise.
5770 (solib_event_probe_action): Likewise.
5771 (solist_update_full): Likewise.
5772 (solist_update_incremental): Likewise.
5773 (disable_probes_interface_cleanup): Likewise.
5774 (svr4_handle_solib_event): Likewise.
5775 (svr4_update_solib_event_breakpoint): Likewise.
5776 (svr4_update_solib_event_breakpoints): Likewise.
5777 (svr4_create_solib_event_breakpoints): Likewise.
5778 (enable_break): Free probes table before creating breakpoints.
5779 Use svr4_create_solib_event_breakpoints to create breakpoints.
5780 (svr4_solib_create_inferior_hook): Free the solib list.
5781 (_initialize_svr4_solib): Initialise
5782 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5783
ced63ec0
GB
57842013-06-04 Gary Benson <gbenson@redhat.com>
5785
5786 * target.h (target_ops): New field
5787 "to_augmented_libraries_svr4_read".
5788 (target_augmented_libraries_svr4_read): New macro.
5789 * target.c (update_current_target): Handle
5790 to_augmented_libraries_svr4_read.
5791 * remote.c (remote_state): New field
5792 "augmented_libraries_svr4_read".
5793 (remote_augmented_libraries_svr4_read_feature): New function.
5794 (remote_protocol_features): Add entry for
5795 "augmented-libraries-svr4-read".
5796 (remote_augmented_libraries_svr4_read): New function.
5797 (init_remote_ops): Initialize
5798 remote_ops.to_augmented_libraries_svr4_read.
5799
7f91dbec
GB
58002013-06-04 Gary Benson <gbenson@redhat.com>
5801
5802 * NEWS: Update.
5803
607ece04
GB
58042013-06-04 Gary Benson <gbenson@redhat.com>
5805
5806 * objfiles.h (inhibit_section_map_updates): New function
5807 declaration.
5808 (resume_section_map_updates): Likewise.
5809 (resume_section_map_updates_cleanup): Likewise.
5810 * objfiles.c (objfile_pspace_info): Removed field
5811 "objfiles_changed_p". New fields "new_objfiles_available",
5812 "section_map_dirty" and "inhibit_updates".
5813 (allocate_objfile): Set new_objfiles_available.
5814 (free_objfile): Set section_map_dirty.
5815 (objfile_relocate1): Likewise.
5816 (in_plt_section): Likewise.
5817 (find_pc_section): Update the conditions under which the
5818 section map will be updated.
5819 (inhibit_section_map_updates): New function.
5820 (resume_section_map_updates): Likewise.
5821 (resume_section_map_updates_cleanup): Likewise.
5822
9ee6a5ac
GB
58232013-06-04 Gary Benson <gbenson@redhat.com>
5824
5825 * probe.h (get_probe_argument_count): New declaration.
5826 (evaluate_probe_argument): Likewise.
5827 * probe.c (get_probe_argument_count): New function.
5828 (evaluate_probe_argument): Likewise.
5829 (probe_safe_evaluate_at_pc): Use the above new functions.
5830
845d4708
AM
58312013-06-04 Alan Modra <amodra@gmail.com>
5832
5833 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5834 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5835 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5836 target mem reads on optional insns.
5837 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5838 ppc_insns_match_pattern calls.
5839 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5840 Add match for power7 thread safety insns, and new order of
5841 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5842 invocation in comment, and update rest of comment.
5843 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5844 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5845 (ppc64_standard_linkage2_target): Update insn offsets.
5846 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5847 stubs first. Update calls.
5848
404e278f
YQ
58492013-06-04 Yao Qi <yao@codesourcery.com>
5850
5851 * solib.c (solib_find): Don't need dir separator if path has
5852 drive spec.
5853
f6aea118
JB
58542013-06-03 Joel Brobecker <brobecker@adacore.com>
5855
5856 Revert (indirectly causes a SIGSEGV):
5857 * machoread.c (macho_symfile_read): Assign first cleanup to
5858 'back_to'.
5859
87967e27
YQ
58602013-06-03 Yao Qi <yao@codesourcery.com>
5861
5862 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5863 mi-parse.c. Make them static.
5864 (mi_all_values): Likewise.
5865 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5866 mi_parse_print_values. Make it external.
5867 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5868 Remove the declarations.
5869 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5870 * mi/mi-parse.h (mi_parse_print_values): Declare.
5871 * mi/mi-cmd-stack.c: Include mi-parse.h.
5872 (parse_print_values): Remove
5873 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5874 of parse_print_values.
5875 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5876
3ca73e0c
YQ
58772013-05-31 Pedro Alves <pedro@codesourcery.com>
5878 Yao Qi <yao@codesourcery.com>
5879
5880 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5881 (encode_actions): Move code to ...
5882 (all_tracepoint_actions_and_cleanup): ... here. New.
5883 (trace_dump_command): Likewise.
5884
4e993a19
TT
58852013-05-30 Tom Tromey <tromey@redhat.com>
5886
5887 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5888
e3b76b4f
TT
58892013-05-30 Tom Tromey <tromey@redhat.com>
5890
5891 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5892 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5893 'old_chain' argument. Add 'parser_result' argument.
5894 (gdb_xml_create_parser_and_cleanup): Remove old version.
5895 (gdb_xml_parse_quick): Update.
5896 (xml_process_xincludes): Update.
5897 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5898 declare.
5899
db26349c
TT
59002013-05-30 Tom Tromey <tromey@redhat.com>
5901
5902 * probe.c (collect_probes): Check arguments for NULL before
5903 calling compile_rx_or_error.
5904 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5905 Remove NULL return.
5906
77f9e713
TT
59072013-05-30 Tom Tromey <tromey@redhat.com>
5908
5909 * infrun.c (adjust_pc_after_break): Introduce an outer null
5910 cleanup.
5911
45475de7
TT
59122013-05-30 Tom Tromey <tromey@redhat.com>
5913
5914 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5915
ac5007fd
TT
59162013-05-30 Tom Tromey <tromey@redhat.com>
5917
5918 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5919 for 'old_chain'. Do not check 'head' before processing
5920 cleanups.
5921
cd82eddc
TT
59222013-05-30 Tom Tromey <tromey@redhat.com>
5923
5924 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5925 "cleanup_tuple".
5926
57cee33a
TT
59272013-05-30 Tom Tromey <tromey@redhat.com>
5928
5929 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5930 inner scope. Unconditionally call do_cleanups.
5931
795d915c
TT
59322013-05-30 Tom Tromey <tromey@redhat.com>
5933
5934 * source.c (find_and_open_source): Call do_cleanups.
5935
1fc3cf4a
TT
59362013-05-30 Tom Tromey <tromey@redhat.com>
5937
5938 * linux-thread-db.c (thread_db_load_search): Unconditionally
5939 call do_cleanups.
5940
e35ac9bf
TT
59412013-05-30 Tom Tromey <tromey@redhat.com>
5942
5943 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5944 for 'cleanup'; instead use a later one.
5945
f3300387
TT
59462013-05-30 Tom Tromey <tromey@redhat.com>
5947
5948 * python/py-breakpoint.c (bppy_get_commands): Use
5949 explicit, unconditional return.
5950 * python/py-frame.c (frapy_read_var): Likewise.
5951 * python/python.c (gdbpy_decode_line): Likewise.
5952
c27e16e3
TT
59532013-05-30 Tom Tromey <tromey@redhat.com>
5954
5955 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5956 do_cleanups on all return paths.
5957
5ae85e44
TT
59582013-05-30 Tom Tromey <tromey@redhat.com>
5959
5960 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5961
73b8d9da
TT
59622013-05-30 Tom Tromey <tromey@redhat.com>
5963
5964 * stabsread.c (read_struct_type): Call do_cleanups along
5965 all return paths.
5966
7d266584
MR
59672013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5968
5969 * mips-linux-tdep.c: Adjust formatting throughout.
5970
0f900f54
TT
59712013-05-30 Tom Tromey <tromey@redhat.com>
5972
5973 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5974 along all return paths.
5975
a991ac28
TT
59762013-05-30 Tom Tromey <tromey@redhat.com>
5977
5978 * symfile.c (find_separate_debug_file): Call do_cleanups
5979 along all return paths.
5980
1abaf042
TT
59812013-05-30 Tom Tromey <tromey@redhat.com>
5982
5983 * symtab.c (search_symbols): Introduce a null cleanup for
5984 'retval_chain'.
5985
edefe1da
TT
59862013-05-30 Tom Tromey <tromey@redhat.com>
5987
5988 * python/py-value.c (valpy_binop): Call do_cleanups before
5989 exiting loop.
5990
54f72dcc
TT
59912013-05-30 Tom Tromey <tromey@redhat.com>
5992
5993 * python/py-prettyprint.c (print_children): Remove extra
5994 do_cleanups call.
5995
af1c6971
TT
59962013-05-30 Tom Tromey <tromey@redhat.com>
5997
5998 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5999 all return paths.
6000
b862ce75
TT
60012013-05-30 Tom Tromey <tromey@redhat.com>
6002
6003 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6004 along all return paths.
6005
e12fefc8
TT
60062013-05-30 Tom Tromey <tromey@redhat.com>
6007
6008 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6009 call do_cleanups.
6010
4867f990
TT
60112013-05-30 Tom Tromey <tromey@redhat.com>
6012
6013 * varobj.c (c_value_of_root): Call do_cleanups along all
6014 return paths.
6015
4fd2d6af
TT
60162013-05-30 Tom Tromey <tromey@redhat.com>
6017
6018 * tracepoint.c (trace_dump_command): Unconditionally call
6019 do_cleanups.
6020
752eb8b4
TT
60212013-05-30 Tom Tromey <tromey@redhat.com>
6022
6023 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6024 do_cleanups earlier.
6025
e42d0aa5
TT
60262013-05-30 Tom Tromey <tromey@redhat.com>
6027
6028 * machoread.c (macho_symfile_read): Assign first cleanup to
6029 'back_to'.
6030
4bbc010a
TT
60312013-05-30 Tom Tromey <tromey@redhat.com>
6032
6033 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6034
b9635925
TT
60352013-05-30 Tom Tromey <tromey@redhat.com>
6036
6037 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6038
25f43500
TT
60392013-05-30 Tom Tromey <tromey@redhat.com>
6040
6041 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6042 call discard_cleanups.
6043 (inf_ptrace_attach): Likewise.
6044
d6a2e54a
TT
60452013-05-30 Tom Tromey <tromey@redhat.com>
6046
6047 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6048 return paths.
6049 (mips_initialize): Likewise.
6050 (common_open): Call do_cleanups.
6051
48be7c1b
TT
60522013-05-30 Tom Tromey <tromey@redhat.com>
6053
6054 * utils.c (internal_vproblem): Call do_cleanups.
6055
e61727ab
TT
60562013-05-30 Tom Tromey <tromey@redhat.com>
6057
6058 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6059
b81b921f
TT
60602013-05-30 Tom Tromey <tromey@redhat.com>
6061
6062 * cli/cli-script.c (setup_user_args): Don't return after error.
6063
fe48dfb1
TT
60642013-05-30 Tom Tromey <tromey@redhat.com>
6065
6066 * somread.c (som_symtab_read): Call do_cleanups.
6067
27833de7
TT
60682013-05-30 Tom Tromey <tromey@redhat.com>
6069
6070 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6071
5b3fca71
TT
60722013-05-30 Tom Tromey <tromey@redhat.com>
6073
6074 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6075 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6076 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6077 * source.c (show_substitute_path_command): Call do_cleanups.
6078 (unset_substitute_path_command, set_substitute_path_command):
6079 Likewise.
6080 * symfile.c (load_command): Call do_cleanups.
6081
af83e3f8
TT
60822013-05-30 Tom Tromey <tromey@redhat.com>
6083
6084 * contrib/cleanup_check.py: New file.
6085 * contrib/gcc-with-excheck: Add option parsing.
6086
564eac42
JB
60872013-05-30 Joel Brobecker <brobecker@adacore.com>
6088
6089 * windows-nat.c (windows_delete_thread): Add missing space
6090 in cast expression.
6091
47902076
HAQ
60922013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6093
6094 * inferior.c (top level): Include tilde.h.
6095 (add_inferior_command): Call tilde_expand on the value of 'exec'
6096 argument.
6097
23da373a
YQ
60982013-05-30 Pedro Alves <pedro@codesourcery.com>
6099 Yao Qi <yao@codesourcery.com>
6100
6101 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6102 Caller update.
6103 (encode_actions): Likewise.
6104 * remote.c (remote_download_tracepoint): Caller update.
6105 * tracepoint.h (encode_actions): Update declaration.
6106
a6e6f791
PA
61072013-05-30 Pedro Alves <palves@redhat.com>
6108
6109 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6110 pointer.
6111
36d25514
YQ
61122013-05-30 Yao Qi <yao@codesourcery.com>
6113
6114 * remote.c (remote_check_symbols): Remove unused parameter
6115 'objfile'.
6116 Declaration update.
6117 (remote_start_remote, remote_new_objfile): Caller update.
6118
62a813cc
YQ
61192013-05-30 Yao Qi <yao@codesourcery.com>
6120
6121 * mi/mi-cmds.c (mi_cmds): Define MI command
6122 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6123 DEF_MI_CMD_CLI.
6124
28439a30
PA
61252013-05-29 Pedro Alves <palves@redhat.com>
6126
6127 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6128 (remote_insert_watchpoint, remote_remove_watchpoint)
6129 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6130 (remote_verify_memory, compare_sections_command)
6131 (remote_search_memory): Set the general process/thread on the
6132 remote side.
6133
6ac1c082
PA
61342013-05-29 Pedro Alves <palves@redhat.com>
6135
6136 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6137 (_initialize_aarch64_tdep): Don't call
6138 initialize_tdesc_aarch64_without_fpu.
6139 * features/Makefile (WHICH): Remove reference to
6140 aarch64-without-fpu.
6141 * features/aarch64-without-fpu.c: Delete file.
6142 * regformats/aarch64-without-fpu.dat: Delete file.
6143
a73e3634
YQ
61442013-05-28 Yao Qi <yao@codesourcery.com>
6145
6146 * tracepoint.c (stringify_collection_list): Remove parameter
6147 'string'.
6148 (encode_actions): Caller update. Remove local variables.
6149
c0ea94eb
YQ
61502013-05-24 Yao Qi <yao@codesourcery.com>
6151
6152 * tracepoint.c (TFILE_PID): Remove.
6153 (tfile_open): Don't add thread and inferior.
6154 (tfile_close): Don't set 'inferior_ptid'. Don't call
6155 exit_inferior_silent.
6156 (tfile_thread_alive): Remove.
6157 (init_tfile_ops): Don't set field 'to_thread_alive' of
6158 tfile_ops.
6159
20d7f211
DE
61602013-05-23 Doug Evans <dje@google.com>
6161
6162 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6163
8658d16d
PA
61642013-05-23 Pedro Alves <palves@redhat.com>
6165
6166 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6167 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6168 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6169 Only define if HAVE_SOCKETS is defined.
6170 * configure.ac: Check for sys/socket.h.
6171 * config.in, configure: Regenerate.
6172
21aa081e
PA
61732013-05-23 Pedro Alves <palves@redhat.com>
6174
6175 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6176 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6177 printing uint32_t variables.
6178
c2d6af84
PA
61792013-05-23 Pedro Alves <palves@redhat.com>
6180
6181 * NEWS: Mention GDBserver range stepping support.
6182
c1e36e3e
PA
61832013-05-23 Yao Qi <yao@codesourcery.com>
6184 Pedro Alves <palves@redhat.com>
6185
6186 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6187 field.
6188 * infcmd.c (step_once, until_next_command): Enable range stepping.
6189 * infrun.c (displaced_step_prepare): Disable range stepping.
6190 (resume): Disable range stepping if stepping over a breakpoint or
6191 we have software watchpoints. If range stepping is enabled,
6192 assert the thread is in the stepping range.
6193 (clear_proceed_status_thread): Clear may_range_step.
6194 (handle_inferior_event): Disable range stepping as soon as we know
6195 the thread that hit the event. Re-enable it whenever we're going
6196 to step with a step range.
6197 * remote.c (struct vCont_action_support) <r>: New field.
6198 (use_range_stepping): New global.
6199 (remote_vcont_probe): Handle 'r' action.
6200 (append_resumption): Append an 'r' action if the thread may range
6201 step.
6202 (show_range_stepping): New function.
6203 (set_range_stepping): New function.
6204 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6205 'set range-stepping' and 'show range-stepping' commands.
6206 * NEWS: Mention range stepping, the new vCont;r action, and the
6207 new "set/show range-stepping" commands.
6208
d458bd84
PA
62092013-05-23 Yao Qi <yao@codesourcery.com>
6210 Pedro Alves <palves@redhat.com>
6211
6212 * remote.c (struct vCont_action_support): New struct.
6213 (struct remote_state) <support_vCont_t>: Remove field.
6214 <vCont_actions_support>: New field.
6215 (remote_vcont_probe, remote_stop_ns): Update.
6216
ce4c476a
PA
62172013-05-23 Yao Qi <yao@codesourcery.com>
6218 Pedro Alves <palves@redhat.com>
6219
6220 * gdbthread.h (pc_in_thread_step_range): New declaration.
6221 * thread.c (pc_in_thread_step_range): New function.
6222 * infrun.c (handle_inferior_event): Use it.
6223
ce70887a
JB
62242013-05-23 Joel Brobecker <brobecker@adacore.com>
6225
6226 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6227 of sprintf.
6228
55b87a52
KS
62292013-05-22 Keith Seitz <keiths@redhat.com>
6230
6231 * ada-lang.c (is_known_support_routine): Add explicit free of
6232 'func_name' from find_frame_funname.
6233 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6234 for func_name from find_frame_funname.
6235 * python/py-frame.c (frapy_name): Add explicit free of
6236 'name' from find_frame_funname.
6237 * stack.c (find_frame_funname): Add comment explaining that
6238 funcp must be freed by the caller.
6239 Return copy of symbol names instead of pointers.
6240 (print_frame): Add a cleanup for 'funname' from
6241 find_frame_funname.
6242 * stack.h (find_frame_funname): Remove "const" from
6243 'funname' parameter.
6244
5f2e6b00
TT
62452013-05-22 Tom Tromey <tromey@redhat.com>
6246
6247 PR c++/15401:
6248 * c-valprint.c (c_value_print): Use value_addr for
6249 references. Convert back to reference type with value_ref.
6250
d85c4847
EZ
62512013-05-22 Eli Zaretskii <eliz@gnu.org>
6252
6253 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6254 unloaded DLL, it will be done by handle_solib_event. See
6255 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6256 details.
6257
54eb231c
PM
62582013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6259
6260 * ui-out.c: Create typedef ui_out_level_p and define vector
6261 operations for that type.
6262 (struct ui_out): Use a vector instead of an array.
6263 (current_level): Return level from a vector.
6264 (push_level): Create a level in a vector.
6265 (pop_level): Delete a level in a vector.
6266 (ui_out_new): Create initial level zero level, and store in a
6267 vector.
6268 (ui_out_destroy): Add vector cleanup.
6269
ac90359c
PA
62702013-05-22 Pedro Alves <palves@redhat.com>
6271
6272 * python/python-internal.h (gdb_Py_DECREF): Tag with
6273 "ARI: editCase function".
6274
6dcc1893
PP
62752013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6276
6277 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6278
c8c735b9
PA
62792013-05-21 Pedro Alves <palves@redhat.com>
6280
6281 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6282 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6283 * python/py-utils.c (py_decref): Don't check for NULL before
6284 calling Py_DECREF.
6285
1915daeb
PA
62862013-05-21 Pedro Alves <palves@redhat.com>
6287
6288 * python/py-utils.c (py_decref): Remove extra braces.
6289 (gdb_pymodule_addobject): Remove extra braces.
6290 * python-internal.h (gdb_Py_DECREF): New static inline function.
6291 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6292
bd9673a4
PW
62932013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6294
6295 * breakpoints.c (detach_breakpoints): Do not
6296 detach breakpoints locations with loc_type bp_loc_other.
6297
ff6009d0
JK
62982013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6299
6300 Workaround Python 2.6.
6301 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6302 a block.
6303
3641da11
JK
63042013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6305
6306 Code cleanup: constification.
6307 * solib.c (solib_ops): Make return type and ops variable type const.
6308 (set_solib_ops): Make the new_ops parameter and ops variable const.
6309 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6310 (solib_add, solib_keep_data_in_core, clear_solib)
6311 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6312 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6313 const.
6314 * solib.h (set_solib_ops): Make the new_ops parameter const.
6315
776af39e
JB
63162013-05-21 Joel Brobecker <brobecker@adacore.com>
6317
6318 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6319 variable.
6320 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6321 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6322 (SYSTEM_GDBINIT_FILES): New variables.
6323 (all): Add stamp-system-gdbinit.
6324 (stamp-system-gdbinit): New rule.
6325 (clean-system-gdbinit, install-system-gdbinit)
6326 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6327 (install-only): Add dependency on install-system-gdbinit.
6328 (uninstall): Add dependency on uninstall-system-gdbinit.
6329 (clean): Add dependency on clean-system-gdbinit.
6330 * system-gdbinit/elinos.py: New file.
6331 * system-gdbinit/wrs-linux.py: New file.
6332
1509e573
JB
63332013-05-21 Joel Brobecker <brobecker@adacore.com>
6334
6335 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6336
c5867ab6
HZ
63372013-05-21 Hui Zhu <hui@codesourcery.com>
6338
6339 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6340 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6341 * mi/mi-cmd-break.c (ctype.h): New include.
6342 (gdb_obstack.h): New include.
6343 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6344 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6345 (mi_cmd_dprintf_insert): New.
6346 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6347 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6348
7d38e38f
TT
63492013-05-20 Tom Tromey <tromey@redhat.com>
6350
6351 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6352
97b77b39
TT
63532013-05-20 Tom Tromey <tromey@redhat.com>
6354
6355 * python/py-value.c (valpy_get_dynamic_type): Simplify
6356 dynamic_type assignment. Use Py_XINCREF.
6357
53e66479
TT
63582013-05-20 Tom Tromey <tromey@redhat.com>
6359
6360 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6361
dcf87832
TT
63622013-05-20 Tom Tromey <tromey@redhat.com>
6363
6364 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6365 (gdbpy_selected_frame): Move object-construction code
6366 out of TRY_CATCH.
6367
aa36459a
TT
63682013-05-20 Tom Tromey <tromey@redhat.com>
6369
6370 * python/py-arch.c (gdbpy_initialize_arch): Use
6371 gdb_pymodule_addobject.
6372 * python/py-block.c (gdbpy_initialize_blocks): Use
6373 gdb_pymodule_addobject.
6374 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6375 gdb_pymodule_addobject.
6376 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6377 gdb_pymodule_addobject.
6378 * python/py-event.c (gdbpy_initialize_event_generic): Use
6379 gdb_pymodule_addobject.
6380 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6381 gdb_pymodule_addobject.
6382 * python/py-evts.c (add_new_registry): Use
6383 gdb_pymodule_addobject.
6384 (gdbpy_initialize_py_events): Likewise.
6385 * python/py-finishbreakpoint.c
6386 (gdbpy_initialize_finishbreakpoints): Use
6387 gdb_pymodule_addobject.
6388 * python/py-frame.c (gdbpy_initialize_frames): Use
6389 gdb_pymodule_addobject.
6390 * python/py-function.c (gdbpy_initialize_functions): Use
6391 gdb_pymodule_addobject.
6392 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6393 gdb_pymodule_addobject.
6394 * python/py-infthread.c (gdbpy_initialize_thread): Use
6395 gdb_pymodule_addobject.
6396 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6397 gdb_pymodule_addobject.
6398 * python/py-param.c (gdbpy_initialize_parameters): Use
6399 gdb_pymodule_addobject.
6400 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6401 gdb_pymodule_addobject.
6402 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6403 gdb_pymodule_addobject.
6404 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6405 gdb_pymodule_addobject.
6406 * python/py-type.c (gdbpy_initialize_types): Use
6407 gdb_pymodule_addobject.
6408 * python/py-utils.c (gdb_pymodule_addobject): New function.
6409 * python/py-value.c (gdbpy_initialize_values): Use
6410 gdb_pymodule_addobject.
6411 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6412 * python/python.c (_initialize_python): Use
6413 gdb_pymodule_addobject.
6414
3d4a3c3e
TT
64152013-05-20 Tom Tromey <tromey@redhat.com>
6416
6417 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6418 * python/py-param.c (get_set_value, get_show_value): Use
6419 explicit decrefs.
6420 * python/python.c (start_type_printers, apply_type_printers):
6421 Use explicit decrefs.
6422
72ff8829
TT
64232013-05-20 Tom Tromey <tromey@redhat.com>
6424
6425 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6426 incref the module.
6427
02146ba5
TT
64282013-05-20 Tom Tromey <tromey@redhat.com>
6429
6430 * python/python.c (gdbpy_run_events): Decref the result
6431 of PyObject_CallObject.
6432
33ee792f
TT
64332013-05-20 Tom Tromey <tromey@redhat.com>
6434
6435 * python/py-symtab.c (set_sal): Use
6436 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6437 (symtab_and_line_to_sal_object): Update.
6438
fcb49fc8
TT
64392013-05-20 Tom Tromey <tromey@redhat.com>
6440
6441 * python/py-param.c (compute_enum_values): Decref 'item'.
6442
0646da15
TT
64432013-05-20 Tom Tromey <tromey@redhat.com>
6444
6445 * mi/mi-main.c: Include python-internal.h.
6446 (mi_cmd_list_features): Check gdb_python_initialized.
6447 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6448 (python_inferior_exit, python_new_objfile, add_thread_object)
6449 (delete_thread_object, py_free_inferior): Check
6450 gdb_python_initialized.
6451 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6452 gdb_python_initialized.
6453 * python/py-type.c (save_objfile_types): Check
6454 gdb_python_initialized.
6455 * python/python-internal.h (gdb_python_initialized): Declare.
6456 * python/python.c (ensure_python_env): Throw exception if
6457 Python not initialized.
6458 (before_prompt_hook, source_python_script_for_objfile)
6459 (start_type_printers, apply_type_printers,
6460 free_type_printers): Check gdb_python_initialized.
6461 * varobj.c (varobj_get_display_hint)
6462 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6463 (install_new_value_visualizer, varobj_set_visualizer)
6464 (value_get_print_value): Check gdb_python_initialized.
6465
999633ed
TT
64662013-05-20 Tom Tromey <tromey@redhat.com>
6467
6468 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6469 Check errors.
6470 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6471 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6472 Check errors.
6473 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6474 Check errors.
6475 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6476 Check errors.
6477 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6478 Check errors.
6479 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6480 init function to return 'int'.
6481 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6482 Return 'int'. Check errors.
6483 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6484 Check errors.
6485 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6486 Return 'int'. Check errors.
6487 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6488 Check errors.
6489 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6490 Check errors.
6491 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6492 Check errors.
6493 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6494 Check errors.
6495 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6496 Check errors.
6497 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6498 Check errors.
6499 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6500 Check errors.
6501 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6502 Check errors.
6503 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6504 Check errors.
6505 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6506 Check errors.
6507 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6508 Check errors.
6509 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6510 Check errors.
6511 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6512 Check errors.
6513 * python/python-internal.h (gdbpy_initialize_auto_load,
6514 gdbpy_initialize_values, gdbpy_initialize_frames,
6515 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6516 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6517 gdbpy_initialize_blocks, gdbpy_initialize_types,
6518 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6519 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6520 gdbpy_initialize_finishbreakpoints,
6521 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6522 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6523 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6524 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6525 gdbpy_initialize_signal_event,
6526 gdbpy_initialize_breakpoint_event,
6527 gdbpy_initialize_continue_event,
6528 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6529 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6530 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6531 * python/python.c (gdb_python_initialized): New global.
6532 (gdbpy_initialize_events): Return 'int'. Check errors.
6533 (_initialize_python): Check errors. Set
6534 gdb_python_initialized.
6535
18868860
TT
65362013-05-20 Tom Tromey <tromey@redhat.com>
6537
6538 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6539 Decref the reslut of PyObject_CallMethod.
6540
9f4ff0c2
TT
65412013-05-20 Tom Tromey <tromey@redhat.com>
6542
6543 * python/py-event.c (gdbpy_initialize_event_generic): Return
6544 early if PyType_Ready fails.
6545
0d3a2e8a
TT
65462013-05-20 Tom Tromey <tromey@redhat.com>
6547
6548 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6549 as 'default' in the switch.
6550
b86af38a
TT
65512013-05-20 Tom Tromey <tromey@redhat.com>
6552
6553 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6554 get_addr_from_python calls out of TRY_CATCH.
6555 (infpy_write_memory, infpy_search_memory): Likewise.
6556 * python/py-utils.c (get_addr_from_python): Return negative
6557 value on error. Use TRY_CATCH.
6558 * python/python-internal.h (get_addr_from_python): Use
6559 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6560
c127ec58
TT
65612013-05-20 Tom Tromey <tromey@redhat.com>
6562
6563 * python/py-event.c (evpy_emit_event): Decref the
6564 result of PyObject_CallFunctionObjArgs.
6565
ba327838
TT
65662013-05-20 Tom Tromey <tromey@redhat.com>
6567
6568 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6569 Correctly decref.
6570
d8191432
TT
65712013-05-20 Tom Tromey <tromey@redhat.com>
6572
6573 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6574
5d153bd1
TT
65752013-05-20 Tom Tromey <tromey@redhat.com>
6576
6577 * python/py-event.h (gdbpy_initialize_event_generic): Use
6578 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6579 * python/py-evts.c (add_new_registry): Use
6580 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6581 * python/python-internal.h
6582 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6583
56cc411c
TT
65842013-05-20 Tom Tromey <tromey@redhat.com>
6585
6586 * python/py-arch.c (archpy_disassemble): Update.
6587 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6588 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6589 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6590 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6591 macro.
6592 (GDB_PY_HANDLE_EXCEPTION): Update.
6593 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6594
8919e174
TT
65952013-05-20 Tom Tromey <tromey@redhat.com>
6596
6597 * python/python-internal.h (events_object_type): Remove.
6598
9b08f225
TT
65992013-05-20 Tom Tromey <tromey@redhat.com>
6600
f5aee5ee
AM
6601 * python/py-event.h (evpy_emit_event): Use
6602 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6603 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6604 New macro.
9b08f225 6605
f04010ff
TT
66062013-05-20 Tom Tromey <tromey@redhat.com>
6607
6608 * py-evtregistry.c (create_event_object): Decref
6609 eventregistry_object if PyList_New fails.
6610
3919fd96
TT
66112013-05-20 Tom Tromey <tromey@redhat.com>
6612
6613 * py-cmd.c (gdbpy_string_to_argv): Check result of
6614 PyList_New.
6615
0430e8cb
TT
66162013-05-20 Tom Tromey <tromey@redhat.com>
6617
6618 * python/python.c (before_prompt_hook): Add cleanup to
6619 decref 'hook'.
6620
764123e4
TT
66212013-05-20 Tom Tromey <tromey@redhat.com>
6622
6623 * python/py-function.c (fnpy_init): Decref result of
6624 PyObject_GetAttrString.
6625
634c58be
TT
66262013-05-20 Tom Tromey <tromey@redhat.com>
6627
6628 * python/py-threadevent.c (get_event_thread): Use
6629 CPYCHECKER_RETURNS_BORROWED_REF.
6630 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6631 New define.
6632 (pspace_to_pspace_object, objfile_to_objfile_object)
6633 (find_thread_object): Use it.
6634
62eec1a5
TT
66352013-05-20 Tom Tromey <tromey@redhat.com>
6636
6637 * python/py-arch.c (arch_object_type): Use
6638 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6639 * python/py-block.c (block_syms_iterator_object_type):
6640 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6641 * python/py-bpevent.c (breakpoint_event_object_type):
6642 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6643 * python/py-cmd.c (cmdpy_object_type): Use
6644 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6645 * python/py-continueevent.c (continue_event_object_type):
6646 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6647 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6648 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6649 * python/py-events.h (thread_event_object_type):
6650 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6651 * python/py-evtregistry.c (eventregistry_object_type): Use
6652 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6653 * python/py-exitedevent.c (exited_event_object_type):
6654 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6655 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6656 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6657 * python/py-function.c (fnpy_object_type): Use
6658 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6659 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6660 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6661 * python/py-infthread.c (thread_object_type): Use
6662 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6663 * python/py-lazy-string.c (lazy_string_object_type):
6664 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6665 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6666 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6667 * python/py-objfile.c (objfile_object_type): Use
6668 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6669 * python/py-param.c (parmpy_object_type):
6670 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6671 * python/py-progspace.c (pspace_object_type):
6672 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6673 * python/py-signalevent.c (signal_event_object_type):
6674 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6675 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6676 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6677 * python/py-type.c (type_object_type, field_object_type)
6678 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6679 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6680 define.
6681 (value_object_type, block_object_type, symbol_object_type)
6682 (event_object_type, stop_event_object_type, breakpoint_object_type)
6683 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6684
81ea8796
AT
66852013-05-20 Andreas Tobler <andreas@fgznet.ch>
6686
6687 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6688 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6689
a2ce51a0
DE
66902013-05-20 Doug Evans <dje@google.com>
6691
6692 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6693 For Fission.
6694 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6695 reading_dwo_directly.
6696 (struct signatured_type): New member dwo_unit.
6697 (struct die_reader_specs): New member comp_dir.
6698 (create_signatured_type_table_from_index): Use malloc for
6699 all_type_units instead of objfile's obstack.
6700 (create_all_type_units): Ditto.
6701 (fill_in_sig_entry_from_dwo_entry): New function.
6702 (add_type_unit): New function.
6703 (lookup_dwo_signatured_type): New function.
6704 (lookup_dwp_signatured_type): New function.
6705 (lookup_signatured_type): New arg cu. All callers updated.
6706 (init_cu_die_reader): Initialize comp_dir.
6707 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6708 Change assert of matching type signatures to call error on mismatch.
6709 (lookup_dwo_unit): Add assert.
6710 (init_tu_and_read_dwo_dies): New function.
6711 (init_cutu_and_read_dies): Call it.
6712 (build_type_unit_groups): Handle case of no type unit groups created.
6713 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6714 (lookup_dwo_cutu): Tweak complaint.
6715 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6716 (dwarf2_per_objfile_free): Free all_type_units.
6717
a25cd31f
JB
67182013-05-20 Joel Brobecker <brobecker@adacore.com>
6719
6720 * windows-nat.c (handle_unload_dll): Add missing empty line.
6721
4d804846
JB
67222013-05-20 Joel Brobecker <brobecker@adacore.com>
6723
6724 * dwarf2read.c (prototyped_function_p): New function.
6725 (read_subroutine_type): Use it.
6726
1c432e72
JB
67272013-05-20 Joel Brobecker <brobecker@adacore.com>
6728
6729 * rs6000-aix-tdep.c: De-indent some example code provided
6730 as a comment.
6731
4feebbdd
EBM
67322013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6733
6734 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6735 region is ok for a hardware watchpoint using the new ptrace interface
6736 on Power servers.
6737
7d0c9981
DE
67382013-05-17 Doug Evans <dje@google.com>
6739
6740 * NEWS: Mention new maintenance commands check-symtabs, and
6741 expand-symtabs, and renamed check-psymtabs.
6742 * psymtab.c (maintenance_check_psymtabs): Renamed from
6743 maintenance_check_symtabs. Only process already-expanded symbol
6744 tables.
6745 (_initialize_psymtab): Update.
6746 * symmisc.c (maintenance_check_symtabs): New function.
6747 (maintenance_expand_name_matcher): New function
6748 (maintenance_expand_file_matcher): New function
6749 (maintenance_expand_symtabs): New function.
6750 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6751 commands.
6752
6cbc7c3d
TT
67532013-05-17 Tom Tromey <tromey@redhat.com>
6754
6755 * python/py-inferior.c (infpy_read_memory): Don't call
6756 PyErr_SetString if PyObject_New fails.
6757 * python/py-frame.c (frame_info_to_frame_object): Don't call
6758 PyErr_SetString if PyObject_New fails.
6759
a48b32c0
L
67602013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6761
6762 * acinclude.m4: Add check for dlopen in libdl.
6763 * configure.ac: Ditto.
6764 * configure: Regenerate.
6765
3de661e6
PM
67662013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6767
6768 * frame.c (frame_stash): Convert to htab.
6769 (frame_addr_hash): New function.
6770 (frame_addr_hash_eq): New function.
6771 (frame_stash_create): Convert function to create
6772 a hash table.
6773 (frame_stash_add): Convert function to add an entry to a hash
6774 table.
6775 (frame_stash_find): Convert function to search the hash table.
6776 (frame_stash_invalidate): Convert function to empty the hash
6777 table.
6778 (get_frame_id): Only add to stash if a frame_id is created.
6779 (_initialize_frame): Call frame_stash_create.
6780
bb4168a9 67812013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6782
6783 * configure.ac: Ensure MIG is available when building for GNU Hurd
6784 hosts.
6785 * configure: Regenerate.
6786
d1be3247
JB
67872013-05-16 Joel Brobecker <brobecker@adacore.com>
6788
6789 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6790
b8fea896
JB
67912013-05-16 Joel Brobecker <brobecker@adacore.com>
6792
6793 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6794 all cleanups are done before returning from this function.
6795
af880d85
JB
67962013-05-15 Joel Brobecker <brobecker@adacore.com>
6797
6798 * utils.h: #include "exceptions.h".
6799 (enum errors): Remove partial declaration.
6800
356a5233
JB
68012013-05-15 Joel Brobecker <brobecker@adacore.com>
6802
6803 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6804 * gdbarch.h, gdbarch.c: Regenerate.
6805 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6806 handling.
6807
6808 * rs6000-aix-tdep.h: New file.
6809 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6810 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6811 "xml-utils.h".
6812 (struct field_info, struct ld_info_desc): New types.
6813 (ld_info32_desc, ld_info64_desc): New static constants.
6814 (struct ld_info): New type.
6815 (rs6000_aix_extract_ld_info): New function.
6816 (rs6000_aix_shared_library_to_xml): Likewise.
6817 (rs6000_aix_ld_info_to_xml): Likewise.
6818 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6819 (rs6000_aix_init_osabi): Add call to
6820 set_gdbarch_core_xfer_shared_libraries_aix.
6821 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6822 Remove "xml-utils.h" include.
6823 (LdInfo): Delete typedef.
6824 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6825 Delete macros.
6826 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6827 Adjust code accordingly.
6828 (rs6000_core_ldinfo): Delete, folded into
6829 rs6000_aix_core_xfer_shared_libraries_aix.
6830 (rs6000_xfer_shared_library): Delete.
6831 (rs6000_xfer_shared_libraries): Reimplement.
6832
742ce053
MM
68332013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6834
6835 * record.c (record_goto_cmdlist): New.
6836 (cmd_record_goto): Split into this ...
6837 (cmd_record_goto_begin): ... this
6838 (cmd_record_goto_end): ... and this.
6839 (_initialize_record): Change "record goto" to prefix command.
6840 Add commands for "record goto begin" and "record goto end".
6841 Add an alias for "record goto start" to "record goto begin".
6842
e93ba630
JK
68432013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6844
6845 * linespec.c (convert_linespec_to_sals): New comment for
6846 SOURCE_FILENAME assignment.
6847
5821aace
JK
68482013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6849
6850 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6851 internal_warning.
6852
a1b8c4cc
TT
68532013-05-14 Tom Tromey <tromey@redhat.com>
6854
6855 * eval.c (parse_and_eval_long): Make 'exp' const.
6856 * value.h (parse_and_eval_long): Update.
6857
23b3a2c3
TT
68582013-05-14 Tom Tromey <tromey@redhat.com>
6859
6860 * ui-file.c (gdb_fopen): Make arguments const.
6861 * ui-file.h (gdb_fopen): Make arguments const.
6862
ca623f82
TT
68632013-05-14 Tom Tromey <tromey@redhat.com>
6864
6865 * remote.c (remote_set_trace_notes): Make arguments const.
6866 * target.c (update_current_target): Update cast.
6867 * target.h (to_set_trace_notes): Make arguments const.
6868
503ebb2c
TT
68692013-05-14 Tom Tromey <tromey@redhat.com>
6870
6871 * go32-nat.c (go32_terminal_info): Make 'args' const.
6872 * inferior.h (child_terminal_info): Update.
6873 * inflow.c (child_terminal_info): Make 'args' const.
6874 * target.c (default_terminal_info): Make 'args' const.
6875 (debug_to_terminal_save_ours): Likewise.
6876 * target.h (struct target_ops) <to_terminal_info>: Make argument
6877 const.
6878
85e1311a
TT
68792013-05-13 Tom Tromey <tromey@redhat.com>
6880
6881 * gcore.c (create_gcore_bfd): Make 'filename' const.
6882 * gcore.h (create_gcore_bfd): Make 'filename' const.
6883 * record-full.c (record_full_save): Make 'recfilename' const.
6884 * target.c (target_save_record): Make 'filename' const.
6885 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6886 const.
6887 (target_save_record): Likewise.
6888
d62bfeaf
TT
68892013-05-13 Tom Tromey <tromey@redhat.com>
6890
f5aee5ee 6891 PR gdb/15338:
d62bfeaf
TT
6892 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6893 ranges section has been read.
6894
ac1ca910
TT
68952013-05-13 Tom Tromey <tromey@redhat.com>
6896
6897 PR exp/15364:
6898 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6899 STRUCTOP_PTR>: Return a not_lval value for
6900 EVAL_AVOID_SIDE_EFFECTS.
6901 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6902 for EVAL_AVOID_SIDE_EFFECTS.
6903
36d1c68c
JB
69042013-05-13 Joel Brobecker <brobecker@adacore.com>
6905
6906 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6907 floating point registers to register type before storing
6908 value.
6909 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6910 Likewise.
6911
21ff4686
TT
69122013-05-10 Joel Brobecker <brobecker@adacore.com>
6913 Tom Tromey <tromey@redhat.com>
6914
6915 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6916 New functions.
6917 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6918 Declare.
6919 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6920 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6921 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6922 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6923
d3685d60
TT
69242013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6925 Tom Tromey <tromey@redhat.com>
6926
6927 PR build/15414:
6928 * configure: Rebuild.
6929 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6930 with -Wno-format.
6931
eb9fe518
PA
69322013-05-10 Pedro Alves <palves@redhat.com>
6933
6934 * remote.c (_initialize_remote): Fix spelling of
6935 qXfer:traceframe-info:read packet in packet config command.
6936
9779ab84
PA
69372013-05-10 David Taylor <dtaylor@emc.com>
6938
6939 PR remote/15455
6940
6941 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6942 "QTro" at start of packet.
6943
060cfbef
JB
69442013-05-10 Joel Brobecker <brobecker@adacore.com>
6945
6946 * solib-aix.c (solib_aix_relocate_section_addresses):
6947 For the .bss section action, apply the same offset as
6948 the .data section.
6949
ab1c4e88
JB
69502013-05-10 Joel Brobecker <brobecker@adacore.com>
6951
6952 * solib-aix.c (solib_aix_relocate_section_addresses):
6953 Remove FIXME comment.
6954
c1357578
JB
69552013-05-10 Joel Brobecker <brobecker@adacore.com>
6956
6957 PR tdep/15420:
6958 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6959 New functions, directly copied from sparc-sol-thread.c.
6960 * sparc-sol-thread.c: Delete.
6961 * configure.ac: Remove code handling sparc-solaris-thread.c.
6962 * configure: Regenerate.
6963
1e611234
PM
69642013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6965
6966 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6967 filter logic.
6968 (backtrace_command): Add "no-filters" option parsing.
6969 (_initialize_stack): Alter help to reflect "no-filters" option.
6970 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6971 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6972 (py-frame.o): Add target
6973 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6974 filter files.
6975 * python/python.h: Add new frame filter constants, and flag enum.
6976 (apply_frame_filter): Add definition.
6977 * python/python.c (apply_frame_filter): New non-Python
6978 enabled function.
6979 * python/py-utils.c (py_xdecref): New function.
6980 (make_cleanup_py_xdecref): Ditto.
6981 * python/py-objfile.c: Declare frame_filters dictionary.
6982 (objfpy_dealloc): Add frame_filters dealloc.
6983 (objfpy_new): Initialize frame_filters attribute.
6984 (objfile_to_objfile_object): Ditto.
6985 (objfpy_get_frame_filters): New function.
6986 (objfpy_set_frame_filters): New function.
6987 * python/py-progspace.c: Declare frame_filters dictionary.
6988 (pspy_dealloc): Add frame_filters dealloc.
6989 (pspy_new): Initialize frame_filters attribute.
6990 (pspacee_to_pspace_object): Ditto.
6991 (pspy_get_frame_filters): New function.
6992 (pspy_set_frame_filters): New function.
6993 * python/py-framefilter.c: New file.
6994 * python/lib/gdb/command/frame_filters.py: New file.
6995 * python/lib/gdb/frames.py: New file.
6996 * python/lib/gdb/__init__.py: Initialize global frame_filters
6997 dictionary
6998 * python/lib/gdb/FrameDecorator.py: New file.
6999 * python/lib/gdb/FrameIterator.py: New file.
7000 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7001 * mi/mi-cmds.h: Declare.
7002 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7003 --no-frame-filter logic, and Python frame filter logic.
7004 (stack_enable_frame_filters): New function.
7005 (parse_no_frame_option): Ditto.
7006 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7007 filter logic.
7008 (mi_cmd_stack_list_locals): Ditto.
7009 (mi_cmd_stack_list_args): Ditto.
7010 (mi_cmd_stack_list_variables): Ditto.
7011 * NEWS: Add frame filter note.
7012
2cb9c859
DE
70132013-05-09 Doug Evans <dje@google.com>
7014
6bf667bb
DE
7015 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7016 All callers updated.
7017 (syms_from_objfile): Ditto. Make static.
7018 (symbol_file_add_with_addrs): Renamed from
7019 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7020 num_offsets. All callers updated.
7021 * symfile.h (syms_from_objfile): Delete.
7022
2cb9c859
DE
7023 * symfile.c (decrement_reading_symtab): Add assert.
7024 (increment_reading_symtab): Ditto.
7025
40aea477
JB
70262013-05-09 Joel Brobecker <brobecker@adacore.com>
7027
7028 * source.c (forward_search_command): Replace call to getc
7029 by call to fgetc.
7030 (reverse_search_command): Likewise.
7031
680d1742
DE
70322013-05-08 Doug Evans <dje@google.com>
7033
7034 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7035 matching test.
7036
17e760ae
JB
70372013-05-08 Joel Brobecker <brobecker@adacore.com>
7038
7039 * sol-thread.c (info_cb): Factorize the code a little.
7040
c0f5f490
JB
70412013-05-08 Joel Brobecker <brobecker@adacore.com>
7042
7043 * sol-thread.c (info_cb): Rework the output of the "maintenance
7044 info sol-threads" command a bit.
7045
5d74e061
JB
70462013-05-08 Joel Brobecker <brobecker@adacore.com>
7047
7048 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7049 Replace ti.ti_startfunc by ti.ti_pc.
7050
814a3ff7
JB
70512013-05-08 Joel Brobecker <brobecker@adacore.com>
7052
7053 * solib-aix.c (solib_aix_free_library_list): New function
7054 for the case where HAVE_LIBEXPAT is not defined.
7055
58ce7251
SDJ
70562013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7057
7058 PR breakpoints/15413:
7059 * breakpoint.c (condition_completer): Simplify the code to
7060 disconsider multiple locations of breakpoints when completing the
7061 "condition" command.
7062
be8b1ea6
PM
70632013-05-07 Pierre Muller <muller@sourceware.org>
7064
7065 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7066 instead of <sys/wait.h>.
7067
1e52bda6
PM
70682013-05-07 Pierre Muller <muller@sourceware.org>
7069
7070 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7071 trailing new line from warning message.
7072
27fd0c6b
PM
70732013-05-07 Pierre Muller <muller@sourceware.org>
7074
7075 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7076 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7077
e228ac87
JB
70782013-05-07 Joel Brobecker <brobecker@adacore.com>
7079
7080 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7081 error message (ARI fix).
7082
70832013-05-07 Joel Brobecker <brobecker@adacore.com>
7084
7085 * features/library-list-aix.dtd: Replace library-list by
7086 library-list-aix.
7087 * rs6000-nat.c: Replace library-list by library-list-aix
7088 throughout.
7089 * solib-aix.c: Likewise.
7090
70912013-05-07 Joel Brobecker <brobecker@adacore.com>
7092
7093 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7094 Renames TARGET_OBJECT_AIX_LIBRARIES.
7095 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7096 TARGET_OBJECT_LIBRARIES_AIX throughout.
7097 * solib-aix.c: Likwise.
7098
26a4dda9
YQ
70992013-05-07 Yao Qi <yao@codesourcery.com>
7100
7101 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7102 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7103
3582629f
YQ
71042013-05-07 Yao Qi <yao@codesourcery.com>
7105
7106 * solib-dsbt.c (enable_break): Declare.
7107 (dsbt_current_sos): Remove call to enable_break2.
7108 (enable_break2): Rename to enable_break. Set solib breakpoint
7109 on '_dl_debug_state'.
7110 (enable_break): Remove.
7111
aacbb8a5
LM
71122013-05-07 Luis Machado <lgustavo@codesourcery.com>
7113
7114 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7115 debug state prior to replicating existing hardware watchpoints or
7116 breakpoints.
7117
0c013353
JK
71182013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7119
7120 * gcore.c (gcore_create_callback): Ignore sections with
7121 separate_debug_objfile_backlink != NULL.
7122
a1217d97
SL
71232013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7124 Andrew Jenner <andrew@codesourcery.com>
7125 Chung-Lin Tang <cltang@codesourcery.com>
7126 Julian Brown <julian@codesourcery.com>
7127
7128 Based on the nios2-elf port from Altera Corporation.
7129
7130 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7131 nios2-linux-tdep.o.
7132 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7133 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7134 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7135 * nios2-tdep.h: New.
7136 * nios2-tdep.c: New.
7137 * nios2-linux-tdep.c: New.
7138 * features/Makefile (WHICH): Add nios2-linux.
7139 (nios2-linux-expedite): Set.
7140 * features/nios2-cpu.xml: New.
7141 * features/nios2.xml: New.
7142 * features/nios2-linux.xml: New.
7143 * features/nios2.c: New (autogenerated).
7144 * features/nios2-linux.c: New (autogenerated).
7145 * regformats/nios2-linux.dat: New (autogenerated).
7146 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7147 and commands.
7148
0892cb63
DE
71492013-05-06 Doug Evans <dje@google.com>
7150
3b7bacac
DE
7151 * symfile.c: Whitespace cleanup.
7152
0892cb63
DE
7153 * solist.h (struct target_so_ops): New member clear_so.
7154 * solib-svr4.c (svr4_clear_so): New function.
7155 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7156 * solib.c (clear_so): Renamed from free_so_symbols.
7157 All callers updated. Call target clear_so if it exists.
7158
40501e00
TT
71592013-05-06 Tom Tromey <tromey@redhat.com>
7160
7161 * ada-lang.c (ada_value_primitive_packed_val): Don't
7162 call value_incref.
7163 * value.c (set_value_parent): Incref the new parent and decref
7164 the old parent.
7165 (value_copy, value_primitive_field): Use set_value_parent.
7166
b6807d98
TT
71672013-05-06 Tom Tromey <tromey@redhat.com>
7168
7169 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7170 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7171 if needed.
7172 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7173 * dwarf2read.c (write_constant_as_bytes)
7174 (dwarf2_fetch_constant_bytes): New functions.
7175
3aef2284
TT
71762013-05-06 Tom Tromey <tromey@redhat.com>
7177
7178 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7179 parameters.
7180 (dwarf2_const_value_attr): Update.
7181
66f65e2b
TT
71822013-05-06 Tom Tromey <tromey@redhat.com>
7183
7184 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7185 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7186 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7187 Remove declaration.
7188
7919a973
TT
71892013-05-06 Tom Tromey <tromey@redhat.com>
7190
7191 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7192 objfile's obstack.
7193
a7bfba49
DE
71942013-05-06 Doug Evans <dje@google.com>
7195
3189cb12
DE
7196 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7197 * stabsread.h (process_one_symbol): Update declaration.
7198 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7199 * elfread.c (elf_symfile_relocate_probe): Ditto.
7200 * psymtab.c (relocate_psymtabs): Ditto.
7201 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7202 (objfile_relocate): Ditto.
7203 * objfiles.h (objfile_relocate): Update declaration.
7204 * symfile.c (relative_addr_info_to_section_offsets): Constify
7205 addrs parameter.
7206 (default_symfile_offsets): Ditto.
7207 (syms_from_objfile_1): Constify offsets parameter.
7208 (syms_from_objfile): Ditto.
7209 (symbol_file_add_with_addrs_or_offsets): Ditto.
7210 (symfile_map_offsets_to_segments): Constify data parameter.
7211 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7212 delta parameters of member relocate.
7213 (struct sym_probe_fns): Constify new_offsets,
7214 delta parameters of member sym_relocate_probe.
7215 (struct sym_fns): Constify section_addr_info parameter of member
7216 sym_offsets.
7217 (relative_addr_info_to_section_offsets): Update declaration.
7218 (default_symfile_offsets): Ditto.
7219 (syms_from_objfile): Ditto.
7220 (symfile_map_offsets_to_segments): Ditto.
7221
a7bfba49
DE
7222 * symfile.c (syms_from_objfile_1): Use correct section count when
7223 objfile->sf == NULL.
7224
5f8e0b8f
MF
72252013-05-06 Mike Frysinger <vapier@gentoo.org>
7226
7227 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7228
ea52d893
DE
72292013-05-06 Doug Evans <dje@google.com>
7230
7231 * psympriv.h (struct partial_symtab): Augment comment for member
7232 section_offsets.
7233
4d1eb6b4
JB
72342013-05-06 Joel Brobecker <brobecker@adacore.com>
7235
7236 Reimplement shared library support on ppc-aix...
7237 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7238 * features/library-list-aix.dtd: New file.
7239 * solib-aix.h, solib-aix.c: New file.
7240 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7241 (rs6000_find_toc_address_hook): Delete.
7242 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7243 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7244 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7245 "xml-utils.h".
7246 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7247 (vmap_symtab, fixup_breakpoints): Delete.
7248 (rs6000_xfer_shared_libraries): New function.
7249 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7250 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7251 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7252 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7253 (rs6000_xfer_shared_library): New function.
7254 (find_toc_address): Delete.
7255 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7256 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7257 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7258 before creating minimal symbol. Adjust function description
7259 accordingly.
7260 (scan_xcoff_symtab): Replace call to
7261 prim_record_minimal_symbol_and_info by call to
7262 record_minimal_symbol.
7263 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7264 around default_symfile_offsets.
7265 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7266 powerpc-aix targets.
7267 * config/rs6000/nm-rs6000.h: Delete.
7268 * config/powerpc/aix.mh (NAT_FILE): Delete.
7269 (NATDEPFILES): Remove xcoffsolib.o.
7270 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7271 (ALL_TARGET_OBS): Add solib-aix.o.
7272 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7273 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7274 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7275 * xcoffsolib.h, xcoffsolib.c: Delete.
7276
7277 * solib.c (reload_shared_libraries): Remove reference to
7278 SOLIB_CREATE_INFERIOR_HOOK.
7279 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7280 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7281 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7282 comment.
7283 * corelow.c (deprecated_core_resize_section_table): Delete.
7284 * exec.c: Remove include of xcoffsolib.h".
7285 (map_vmap, vmap): Delete.
7286 (exec_close_1): Remove references to vmap.
7287 (exec_file_attach): Remove vmap handling code, and reference
7288 to DEPRECATED_IBM6000_TARGET.
7289 (bfdsec_to_vmap): Delete.
7290 (exec_files_info): Remove block of code handling VMAP.
7291 * infcmd.c (post_create_inferior): Remove reference to
7292 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7293 * infrun.c (follow_exec): Remove reference to
7294 SOLIB_CREATE_INFERIOR_HOOK.
7295 * stack.c (print_frame): Remove reference to PC_SOLIB.
7296 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7297 (dsbt_relocate_main_executable): Likewise.
7298 * solib-frv.c (frv_current_sos): Likewise.
7299
0c4f667c
JB
73002013-05-06 Joel Brobecker <brobecker@adacore.com>
7301
7302 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7303 to target_write_memory and target_read_memory.
7304
726ce67c
JB
73052013-05-06 Joel Brobecker <brobecker@adacore.com>
7306
7307 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7308 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7309
c8c9911f
JB
73102013-05-06 Joel Brobecker <brobecker@adacore.com>
7311
7312 * darwin-nat.c: Replace all "%x" instances in format strings
7313 into "0x%x" throughout.
7314
fda184b6
JB
73152013-05-06 Joel Brobecker <brobecker@adacore.com>
7316
7317 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7318 gdb_assert by call to MACH_CHECK_ERROR.
7319 (darwin_attach_pid): Raise an error rather than a failed
7320 assertion when various system calls failed. Report a warning
7321 instead of raising a failed assertion when PREV_NOT is not NULL
7322 after call to mach_port_request_notification.
7323 (darwin_ptrace_me): Raise an error rather than a failed
7324 assertion when read returns nonzero.
7325
d1d69afb
JB
73262013-05-06 Joel Brobecker <brobecker@adacore.com>
7327
7328 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7329
dc90b24d
JK
73302013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7331
7332 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7333
faab9922
JK
73342013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7335
7336 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7337 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7338 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7339 a stale cleanup. Fix double free of NAME.
7340
e0ea48a0
EZ
73412013-05-04 Eli Zaretskii <eliz@gnu.org>
7342
7343 * windows-nat.c (windows_delete_thread): Accept an additional
7344 argument, the thread's exit code, and announce thread death when
7345 print_thread_events is non-zero and we are deleting a thread that
7346 is not the main thread.
7347 (get_windows_debug_event): Pass thread exit code to
7348 windows_delete_thread.
7349
83b2706a
KB
73502013-05-03 Kevin Buettner <kevinb@redhat.com>
7351
7352 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7353 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7354 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7355 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7356 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7357 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7358 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7359 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7360 (gdbarch_tdep): New struct.
7361 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7362 E_NUM_REGS.
7363 (v850e3v5_register_name): New function.
7364 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7365 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7366 code handling the struct return conventions for the RH850 ABI.
7367 Update all callers.
7368 (v850_eight_byte_align_p): New function.
7369 (v850_push_call_dummy): Push structs by value, not by reference
7370 for the RH850 ABI. Add support for eight byte alignment.
7371 (v850_dbtrap_breakpoint_from_pc): New function.
7372 (v850_gdbarch_init): Add ABI detection code. Register
7373 v850e3v5_register_name for the v850e3v5 architecture. Set the
7374 number of registers for v850e3v5. Register
7375 v850_dbtrap_breakpoint_from_pc as appropriate.
7376 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7377
d445b2f6
DE
73782013-05-03 Doug Evans <dje@google.com>
7379
7380 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7381 of bfd_count_sections.
7382 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7383 * symfile.c (default_symfile_offsets): Ditto.
7384 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7385 one entry, not bfd_count_sections entries.
7386
b3ce41ea
KB
73872013-05-03 Kevin Buettner <kevinb@redhat.com>
7388
7389 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7390 `save' and `restore' register groups. Don't include SPL
7391 or SPH in these groups.
7392 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7393 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7394 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7395 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7396 dwarf2_append_unwinders().
7397
96f7d3f1
PW
73982013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7399
7400 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7401 ignore SIGINT and SIGTRAP in case these internal signals are
7402 caught explicitely.
7403
b9dd1947
JB
74042013-05-01 Joel Brobecker <brobecker@adacore.com>
7405
7406 * darwin-nat.c (darwin_read_write_inferior): Change types
7407 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7408 of copy_count to "mach_msg_type_number_t".
7409 (darwin_read_dyld_info): Change type of parameter
7410 rdaddr to "gdb_byte *".
7411
4ca18a63
JB
74122013-05-01 Joel Brobecker <brobecker@adacore.com>
7413
7414 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7415 of &info->load_map from "char *" to "gdb_byte *".
7416
2b692d32
JB
74172013-05-01 Joel Brobecker <brobecker@adacore.com>
7418
7419 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7420 from "char *" to "gdb_byte *".
7421 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7422
a98c29a0
DE
74232013-04-30 Doug Evans <dje@google.com>
7424
6a506a2d
DE
7425 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7426 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7427 DWO stub. If DWO isn't found, just use stub.
7428 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7429
a98c29a0
DE
7430 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7431 calling init_cutu_and_read_dies.
7432
f92b06da
WT
74332013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7434
7435 * target-descriptions.c (maint_print_c_tdesc_cmd):
7436 Add case to parse structures as register types and
7437 bitfields.
7438
95eebdcc
WT
74392013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7440
7441 * MAINTAINERS (Write After Approval): Add myself to the list.
7442
019c1128
JB
74432013-04-30 Joel Brobecker <brobecker@adacore.com>
7444
7445 * sol-thread.c (rw_common): Change type of parameter "buf"
7446 to "gdb_byte *".
7447 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7448 rw_common to "gdb_byte *" instead of "char *".
7449
5812197c
JB
74502013-04-30 Joel Brobecker <brobecker@adacore.com>
7451
7452 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7453 of local variable msym to const struct bound_minimal_symbol.
7454 Adjust use accordingly.
7455 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7456
ecccb813
TS
74572013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7458
7459 * i386gnu-nat.c (CREG_OFFSET): New macro.
7460 (creg_offset): New array.
7461 (CREG_ADDR): Use creg_offset instead of reg_offset.
7462
f1d02dd4 74632013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7464
7465 * mep-tdep.c (mep_write_pc): Delete.
7466 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7467 Add call to set_gdbarch_pc_regnum.
7468
f1d02dd4 74692013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7470
7471 * common/filestuff.c: Replace #include <dirent.h> by
7472 #include "gdb_dirent.h".
7473
f1d02dd4 74742013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7475
7476 * common/filestuff.c: Replace #include <sys/stat.h> by
7477 #include "gdb_stat.h".
7478
b385a60d
PM
74792013-04-29 Pierre Muller <muller@sourceware.org>
7480
7481 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7482 editCase function rule.
7483 (get_DW_AT_signature_type): Likewise.
7484
d27b54ad
JB
74852013-04-29 Joel Brobecker <brobecker@adacore.com>
7486
7487 * m32r-tdep.c (m32r_write_pc): Delete.
7488 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7489 Add call to set_gdbarch_pc_regnum.
7490
47d21dc5
PM
74912013-04-29 Pierre Muller <muller@sourceware.org>
7492
7493 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7494
9056882e
JB
74952013-04-29 Joel Brobecker <brobecker@adacore.com>
7496
7497 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7498
7ee4732a
YQ
74992013-04-28 Yao Qi <yao@codesourcery.com>
7500
7501 * solib-dsbt.c (fetch_loadmap): Re-indent.
7502 (displacement_from_map, enable_break2): Likewise.
7503 (dsbt_relocate_section_addresses): Likewise.
7504
2260af53 75052013-04-26 Joel Brobecker <brobecker@adacore.com>
7506
7507 GDB 7.6 released.
7508
ff546935
TT
75092013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7510
7511 PR corefiles/14983:
7512 * dwarf2read.c (process_full_comp_unit): Always create a static
7513 block.
7514
40fb6c5e
HZ
75152013-04-25 Hui Zhu <hui@codesourcery.com>
7516
7517 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7518 to loc->cmd_bytecode.
7519
74e04d1c
DE
75202013-04-24 Doug Evans <dje@google.com>
7521
7522 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7523
3cf62c1d
KS
75242013-04-22 Keith Seitz <keiths@redhat.com>
7525
7526 * tracepoint.c (trace_save): Call the writer's start method.
7527
bf9e4d0c
MB
75282013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7529
7530 PR gdb/10462
7531 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7532 before argument.
7533
5d71132c
TT
75342013-04-23 Tom Tromey <tromey@redhat.com>
7535
7536 * common/filestuff.c: Check USE_WIN32API before including
7537 sys/socket.h.
7538 (HAVE_F_GETFD): New define.
7539 (mark_cloexec): Check HAVE_F_GETFD.
7540 (gdb_open_cloexec): Change 'mode' to unsigned long.
7541 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7542 (gdb_pipe_cloexec): Check HAVE_PIPE.
7543 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7544 long.
7545
a11cfd87
HZ
75462013-04-23 Hui Zhu <hui@codesourcery.com>
7547
7548 PR gdb/15293
a11cfd87
HZ
7549 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7550
2d9442cc
HZ
75512013-04-23 Hui Zhu <hui@codesourcery.com>
7552
7553 PR gdb/15165
2d9442cc
HZ
7554 * breakpoint.c (dprintf_print_recreate): New.
7555 (save_breakpoints): Let it not save dprintf commands.
7556 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7557
614c279d
TT
75582013-04-22 Tom Tromey <tromey@redhat.com>
7559
7560 PR gdb/7912:
7561 * Makefile.in (SFILES): Add filestuff.c
7562 (COMMON_OBS): Add filestuff.o.
7563 (filestuff.o): New target.
7564 * auto-load.c (auto_load_objfile_script_1): Use
7565 gdb_fopen_cloexec.
7566 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7567 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7568 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7569 * common/agent.c (gdb_connect_sync_socket): Use
7570 gdb_socket_cloexec.
7571 * common/filestuff.c: New file.
7572 * common/filestuff.h: New file.
7573 * common/linux-osdata.c (linux_common_core_of_thread)
7574 (command_from_pid, commandline_from_pid, print_source_lines)
7575 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7576 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7577 gdb_fopen_cloexec.
7578 * common/linux-procfs.c (linux_proc_get_int)
7579 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7580 * config.in, configure: Rebuild.
7581 * configure.ac: Don't check for sys/socket.h. Check for
7582 fdwalk, pipe2.
7583 * corelow.c (core_open): Use gdb_open_cloexec.
7584 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7585 * fork-child.c (fork_inferior): Call close_most_fds.
7586 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7587 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7588 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7589 Use gdb_fopen_cloexec.
7590 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7591 gdb_open_cloexec.
7592 (linux_async_pipe): Use gdb_pipe_cloexec.
7593 * remote-fileio.c (remote_fileio_func_open): Use
7594 gdb_open_cloexec.
7595 * remote.c (remote_file_put, remote_file_get): Use
7596 gdb_fopen_cloexec.
7597 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7598 close_most_fds.
7599 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7600 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7601 * solib.c (solib_find): Use gdb_open_cloexec.
7602 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7603 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7604 (tfile_open): Use gdb_open_cloexec.
7605 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7606 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7607 * xml-support.c (xml_fetch_content_from_file): Use
7608 gdb_fopen_cloexec.
7609 * main.c (captured_main): Call notice_open_fds.
7610
5fda2332
EBM
76112013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7612
7613 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7614 'char *' to 'gdb_byte *'.
7615 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7616 'gdb_byte'.
7617
eb6c553b
YQ
76182013-04-22 Yao Qi <yao@codesourcery.com>
7619
7620 * infrun.c: Fix typo in comment.
7621
9991b207
SDJ
76222013-04-22 Andrew Haley <aph@redhat.com>
7623
7624 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7625 instead of "long".
7626
8b4833e3
YQ
76272013-04-20 Yao Qi <yao@codesourcery.com>
7628
7629 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7630 'char *' to 'gdb_byte *'. Cast the return value of
7631 'bt_ctf_get_char_array' to 'gdb_byte *'.
7632
bd3f3b55
PA
76332013-04-19 Pedro Alves <palves@redhat.com>
7634
7635 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7636 -Wpointer-sign.
7637 * configure: Regenerate.
7638
c49e7f76
PA
76392013-04-19 Pedro Alves <palves@redhat.com>
7640
7641 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7642 'void *'.
7643
12ff8552
PA
76442013-04-19 Pedro Alves <palves@redhat.com>
7645
7646 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7647 Change type of 'myaddr' parameter to gdb_byte pointer.
7648 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7649 to 'long long' pointer instead of to 'unsigned long long'.
7650 (monitor_write_memory_block, monitor_read_memory_single)
7651 (monitor_read_memory): Change type of 'myaddr' parameter to
7652 gdb_byte pointer.
7653
9c37696b
PA
76542013-04-19 Pedro Alves <palves@redhat.com>
7655
7656 * record.c (validate_history_size): Make parameter 'setting'
7657 unsigned.
7658
a398505b
PA
76592013-04-19 Pedro Alves <palves@redhat.com>
7660
7661 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7662 to 'gdb_byte *'.
7663
9f8afa72
PA
76642013-04-19 Pedro Alves <palves@redhat.com>
7665
7666 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7667 local to int.
7668
c714b426
PA
76692013-04-19 Pedro Alves <palves@redhat.com>
7670
7671 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7672 * ada-tasks.c (read_fat_string_value): Likewise.
7673
507a579c
PA
76742013-04-19 Pedro Alves <palves@redhat.com>
7675
7676 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7677 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7678 'offset', and adjust.
7679
f9d83a0b
PA
76802013-04-19 Pedro Alves <palves@redhat.com>
7681
7682 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7683 (read_index_from_section): Add cast to 'char *'.
7684
745eb4fd
PA
76852013-04-19 Pedro Alves <palves@redhat.com>
7686
7687 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7688
db5be46f
PA
76892013-04-19 Pedro Alves <palves@redhat.com>
7690
7691 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7692
0f928d68
PA
76932013-04-19 Pedro Alves <palves@redhat.com>
7694
7695 * record-full.c (record_full_get_bookmark): Change local 'ret'
7696 type to char * and add cast to gdb_byte *.
7697 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7698 string.
7699 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7700
89f6d837
PA
77012013-04-19 Pedro Alves <palves@redhat.com>
7702
7703 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7704 * python/py-prettyprint.c (print_string_repr): Change type of
7705 'output' local to char *. Add cast to gdb_byte * in
7706 LA_PRINT_STRING call.
7707 (print_children): Change type of 'output' local to char *.
7708 * python/py-value.c (valpy_string): Add cast to const char * in
7709 PyUnicode_Decode call.
7710
ce6ec7d8
PA
77112013-04-19 Pedro Alves <palves@redhat.com>
7712
7713 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7714 and change its type to 'const char *'. Adjust.
7715 (mips_send_packet): Add cast to 'char *', and remove cast to
7716 'unsigned char *'.
7717 (mips_receive_packet): Remove cast to 'unsigned char *'.
7718 (mips_load_srec): Use bfd_byte.
7719 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7720 (pmon_checkset): Make 'value' parameter unsigned.
7721
fda0389f
PA
77222013-04-19 Pedro Alves <palves@redhat.com>
7723
7724 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7725
bc20a4af
PA
77262013-04-19 Pedro Alves <palves@redhat.com>
7727
7728 * remote.c (remote_write_bytes_aux, compare_sections_command)
7729 (remote_read_qxfer)
7730 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7731 (remote_hostio_readlink, remote_bfd_iovec_pread)
7732 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7733 binary buffer, and char when buffer is used as string.
7734 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7735 (trace_save, tfile_open, traceframe_walk_blocks)
7736 (tfile_fetch_registers): Likewise.
7737
c628b528
PA
77382013-04-19 Pedro Alves <palves@redhat.com>
7739
7740 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7741 buffer and size_t size. Adjust.
7742 * ser-base.h (ser_base_write): Adjust.
7743 * ser-go32.c (cnts): Change type to size_t.
7744 (dos_write): Change prototype -- take 'void *'
7745 buffer and size_t size. Adjust.
7746 (dos_info): Print elements of 'cnts' as unsigned long.
7747 * serial.c (serial_write): Likewise.
7748 * serial.h (serial_write): Adjust.
7749 (struct serial_ops) <write>: Change prototype -- take 'void *'
7750 buffer and size_t size. Adjust.
7751
51a5cd90
PA
77522013-04-19 Pedro Alves <palves@redhat.com>
7753
7754 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7755 gdb_byte *.
7756 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7757
a9933661
PA
77582013-04-19 Pedro Alves <palves@redhat.com>
7759
7760 * alpha-tdep.c (alpha_extract_return_value): Use
7761 regcache_cooked_read_unsigned to read 'v0'.
7762
19afdd07
PA
77632013-04-19 Pedro Alves <palves@redhat.com>
7764
7765 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7766 parameters 'at', 'as' and 'offset' to uint32_t.
7767
96b32e50
PA
77682013-04-19 Pedro Alves <palves@redhat.com>
7769
7770 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7771 'is64' to signed 'int'.
7772
eb1bd1fb
PA
77732013-04-19 Pedro Alves <palves@redhat.com>
7774
7775 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7776 parameter to int *.
7777
463920bf
PA
77782013-04-19 Pedro Alves <palves@redhat.com>
7779
7780 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7781 'insnbuf' buffer type to unsigned int[].
7782
70242eb1
PA
77832013-04-19 Pedro Alves <palves@redhat.com>
7784
7785 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7786
9d1dd0e2
PA
77872013-04-19 Pedro Alves <palves@redhat.com>
7788
7789 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7790 unsigned long *.
7791
44096aee
PA
77922013-04-19 Pedro Alves <palves@redhat.com>
7793
7794 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7795 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7796 UINT_MAX.
7797 * mips-tdep.c (heuristic_fence_post): Change type to int.
7798 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7799
e4286e57
PA
78002013-04-19 Pedro Alves <palves@redhat.com>
7801
7802 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7803 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7804 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7805
001f13d8
PA
78062013-04-19 Pedro Alves <palves@redhat.com>
7807
7808 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7809 it to get a string view of the byte buffer.
7810 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7811 type to gdb_byte *. Adjust.
7812 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7813 Change local to char *.
7814 * solib-darwin.c (find_program_interpreter): Change return type to
7815 char *. Adjust.
7816 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7817 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7818 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7819 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7820 * solib-svr4.c (find_program_interpreter): Change return type to
7821 char *. Adjust.
7822 (enable_break): Change local 'interp_name' to char *.
7823 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7824 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7825 (spu_pseudo_register_write_spu): Use char for string buffer.
7826 Adjust.
7827 (info_spu_event_command, info_spu_signal_command): Add casts to
7828 'char *'.
7829
948f8e3d
PA
78302013-04-19 Pedro Alves <palves@redhat.com>
7831
7832 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7833 gdb_byte[].
7834 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7835 * ada-lang.c (ada_value_assign): Use gdb_byte.
7836 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7837 (alphanbsd_sigtramp_offset): Use gdb_byte.
7838 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7839 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7840 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7841 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7842 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7843 * arm-tdep.c (arm_stub_unwind_sniffer)
7844 (arm_displaced_init_closure): Use gdb_byte.
7845 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7846 (arm_default_thumb_le_breakpoint)
7847 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7848 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7849 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7850 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7851 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7852 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7853 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7854 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7855 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7856 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7857 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7858 (cris_store_return_value, cris_extract_return_value): Use
7859 gdb_byte.
7860 (constraint): Change type of parameter to char * from signed
7861 char*. Use gdb_byte.
7862 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7863 of local buffer to gdb_byte *.
7864 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7865 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7866 (add_address_entry): Change type of local buffer to gdb_byte[].
7867 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7868 (frv_push_dummy_call): Use gdb_byte.
7869 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7870 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7871 (hppa_hpux_supply_save_state): Use gdb_byte.
7872 * hppa-tdep.c (hppa32_push_dummy_call)
7873 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7874 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7875 (slotN_contents, replace_slotN_contents): Change type of parameter
7876 to gdb_byte *.
7877 (fetch_instruction, ia64_pseudo_register_write)
7878 (ia64_register_to_value, ia64_value_to_register)
7879 (ia64_extract_return_value, ia64_store_return_value)
7880 (ia64_push_dummy_call): Use gdb_byte.
7881 * m32c-tdep.c (m32c_return_value): Remove cast.
7882 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7883 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7884 gdb_byte.
7885 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7886 * mn10300-tdep.c (mn10300_store_return_value)
7887 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7888 gdb_byte.
7889 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7890 (moxie_process_record): Remove casts.
7891 * ppc-ravenscar-thread.c (supply_register_at_address)
7892 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7893 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7894 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7895 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7896 * remote.c (compare_sections_command): Use gdb_byte.
7897 * score-tdep.c (score7_free_memblock): Change type of parameter to
7898 gdb_byte *.
7899 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7900 gdb_byte *. Use gdb_byte.
7901 (sh_push_dummy_call_fpu): Use gdb_byte.
7902 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7903 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7904 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7905 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7906 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7907 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7908 (sh64_store_return_value, sh64_register_convert_to_virtual):
7909 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7910 (sh64_pseudo_register_write): Use gdb_byte.
7911 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7912 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7913 buffer.
7914 (irix_current_sos): Use gdb_byte.
7915 * solib-som.c (som_current_sos): Use gdb_byte.
7916 * sparc-ravenscar-thread.c (supply_register_at_address)
7917 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7918 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7919 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7920 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7921 'gdb_byte *'.
7922 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7923 'gdb_byte *'.
7924 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7925 * xstormy16-tdep.c (xstormy16_extract_return_value)
7926 (xstormy16_store_return_value): Change parameter type to
7927 'gdb_byte *'. Adjust.
7928 (xstormy16_push_dummy_call): Use gdb_byte.
7929 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7930 (call0_analyze_prologue, execute_code): Use gdb_byte.
7931
433730c9
PA
79322013-04-19 Vladimir Kargov <kargov@gmail.com>
7933 Pedro Alves <palves@redhat.com>
7934
7935 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7936 value contents.
7937
ac9ec31b
DE
79382013-04-17 Doug Evans <dje@google.com>
7939
7940 * dwarf2read.c (struct signatured_type): New member type.
7941 (struct attribute): Replace member signatured_type with signature.
7942 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7943 (read_call_site_scope): Call follow_die_ref instead of
7944 follow_die_ref_or_sig.
7945 (read_structure_type): Rewrite handling of signatured types.
7946 (read_enumeration_type): Ditto.
7947 (read_attribute_value): Update.
7948 (build_error_marker_type): New function.
7949 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7950 Don't call error for bad types, just build an error marker type.
7951 (dump_die_shallow): Update.
7952 (follow_die_sig_1): Renamed from follow_die_sig.
7953 Don't call error for bad types, instead return NULL.
7954 (follow_die_sig): New function.
7955 (get_signatured_type, get_DW_AT_signature_type): New functions.
7956
e546e8bb
YZ
79572013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7958
7959 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7960 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7961 function.
e546e8bb 7962
ab116149
YQ
79632013-04-17 Yao Qi <yao@codesourcery.com>
7964
7965 * top.c (print_gdb_configuration): Print configure-time
7966 parameter on using libbabeltrace or not.
7967
488a42b8
PA
79682013-04-16 Pedro Alves <palves@redhat.com>
7969
7970 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7971
f5fb825b
PA
79722013-04-16 Pedro Alves <palves@redhat.com>
7973
85d494ea 7974 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7975 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7976
e1154999
PA
79772013-04-16 Pedro Alves <palves@redhat.com>
7978
7979 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7980 * common/glibc_thread_db.h: ... this new file ...
7981 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7982
e3b50a7f
PA
79832013-04-16 Will Newton <will.newton@gmail.com>
7984 Pedro Alves <palves@redhat.com>
7985
7986 PR build/11881
7987
7988 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7989 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7990 HAVE_THREAD_DB_H.
7991
1c2e4450
PA
79922013-04-16 Pedro Alves <palves@redhat.com>
7993 Eli Zaretskii <eliz@gnu.org>
7994
7995 * NEWS: Mention "set foo unlimited".
7996
4031ecc5
DE
79972013-04-15 Doug Evans <dje@google.com>
7998
19c3d4c9
DE
7999 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8000 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8001 (create_dwo_cu_reader): Renamed from
8002 create_dwo_debug_info_hash_table_reader.
8003 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8004 Remove support for multiple CUs in a DWO file.
8005 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8006
4031ecc5
DE
8007 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8008 instead of phex.
8009 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8010 (create_dwo_in_dwp): Ditto.
8011
b340913d
TT
80122013-04-15 Tom Tromey <tromey@redhat.com>
8013
8014 * NEWS: Move recent entries into "since 7.6" section.
8015
cc16e6c9
TT
80162013-04-15 Tom Tromey <tromey@redhat.com>
8017
8018 PR c++/13588:
8019 * NEWS: Update.
8020 * break-catch-throw.c (struct exception_catchpoint)
8021 <exception_rx, pattern>: New fields.
8022 (fetch_probe_arguments, dtor_exception_catchpoint)
8023 (check_status_exception_catchpoint)
8024 (print_one_detail_exception_catchpoint): New functions.
8025 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8026 Compile regular expression if needed.
8027 (extract_exception_regexp): New function.
8028 (catch_exception_command_1): Use extract_exception_regexp.
8029 (compute_exception): Use fetch_probe_arguments.
8030 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8031 and check_status fields.
8032 * cp-abi.c (cplus_typename_from_type_info): New function.
8033 * cp-abi.h (cplus_typename_from_type_info): Declare.
8034 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8035 * gdb_regex.h (compile_rx_or_error): Declare.
8036 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8037 comment.
8038 (init_gnuv3_ops): Set get_type_from_type_info field.
8039 * probe.c (compile_rx_or_error): Move...
8040 * utils.c (compile_rx_or_error): ... here.
8041
72f1fe8a
TT
80422013-04-15 Tom Tromey <tromey@redhat.com>
8043
8044 PR c++/15176:
8045 * NEWS: Update.
8046 * break-catch-throw.c (compute_exception): New function.
8047 (exception_funcs): New global.
8048 (_initialize_break_catch_throw): Create $_exception.
8049 * cp-abi.c (cplus_type_from_type_info): New function.
8050 * cp-abi.h (cplus_type_from_type_info): Declare.
8051 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8052 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8053 (gnuv3_get_type_from_type_info): New functions.
8054 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8055
fc4746a2
TT
80562013-04-15 Tom Tromey <tromey@redhat.com>
8057
8058 * break-catch-throw.c (struct exception_names): New.
8059 (exception_functions): Change type.
8060 (re_set_exception_catchpoint): Look for SDT probes.
8061
15a73f56
TT
80622013-04-15 Tom Tromey <tromey@redhat.com>
8063
8064 PR c++/10119:
8065 * break-catch-throw.c (exception_functions): New global.
8066 (gnu_v3_exception_catchpoint_ops): Move earlier.
8067 (struct exception_catchpoint): New.
8068 (classify_exception_breakpoint): Rewrite.
8069 (re_set_exception_catchpoint): New function.
8070 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8071 Allocate a struct exception_catchpoint.
8072 (catch_exception_command_1): Update.
8073 (initialize_throw_catchpoint_ops): Set 're_set' method.
8074
916703c0
TT
80752013-04-15 Tom Tromey <tromey@redhat.com>
8076
8077 * Makefile.in (SFILES): Add break-catch-throw.c
8078 (COMMON_OBS): Add break-catch-throw.o.
8079 * break-catch-throw.c: New file.
8080 * breakpoint.c: Move exception-catching code to new file.
8081 (ep_parse_optional_if_clause): No longer static.
8082 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8083
6e72ca20
TT
80842013-04-15 Tom Tromey <tromey@redhat.com>
8085
8086 PR c++/9065:
8087 * NEWS: Update.
8088 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8089 * c-exp.y (TYPEID): New token.
8090 (exp): Add new TYPEID productions.
8091 (ident_tokens): Add "typeid".
8092 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8093 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8094 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8095 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8096 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8097 case.
8098 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8099 (build_std_type_info_type, gnuv3_get_typeid_type)
8100 (gnuv3_get_typeid): New functions.
8101 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8102 new fields on ABI object.
8103 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8104 * std-operator.def (OP_TYPEID): New.
8105
715c6909
TT
81062013-04-15 Tom Tromey <tromey@redhat.com>
8107
8108 * elfread.c (elf_symtab_read): Install versioned symbol under
8109 unversioned name as well.
8110
8de20a37
TT
81112013-04-15 Tom Tromey <tromey@redhat.com>
8112
8113 PR c++/11990:
8114 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8115 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8116 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8117 (gdb_demangle): New function.
8118 * cp-support.h (gdb_demangle): Declare.
8119 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8120 (dwarf2_name): Use gdb_demangle.
8121 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8122 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8123 suffixes from name.
8124 (gnuv3_print_method_ptr): Use gdb_demangle.
8125 * jv-lang.c (java_demangle): Use gdb_demangle.
8126 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8127 * language.c (unk_lang_demangle): Use gdb_demangle.
8128 * symtab.c (symbol_find_demangled_name)
8129 (demangle_for_lookup): Use gdb_demangle.
8130
591f19e8
TT
81312013-04-15 Tom Tromey <tromey@redhat.com>
8132
8133 PR c++/12824:
8134 * NEWS: Update.
8135 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8136 New constant.
8137 (classify_exception_breakpoint): New function.
8138 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8139 (print_mention_exception_catchpoint)
8140 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8141 (catch_exception_command_1): Handle "rethrow" catchpoint.
8142 (catch_rethrow_command): New function.
8143 (_initialize_breakpoint): Add "catch rethrow" command.
8144
4d40cad2
PM
81452013-04-15 Pierre Muller <muller@sourceware.org>
8146
8147 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8148 set_gdbarch_write_pc as deprecated anymore.
8149
30bcb456
JB
81502013-04-15 Joel Brobecker <brobecker@adacore.com>
8151
8152 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8153 declarations.
8154
da9160e4
YQ
81552013-04-13 Yao Qi <yao@codesourcery.com>
8156
8157 * ctf.c (_initialize_ctf): Include "completer.h".
8158 Call add_target_with_completer instead of add_target.
8159
39ed5604
JK
81602013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8161
8162 Fix GDB regression related to PR binutils/14813.
8163 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8164 * minidebug.c (lzma_close): Add return value comment.
8165 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8166 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8167 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8168
81692013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8170
8171 * config.in: Regenerate.
8172
d521ce57
TT
81732013-04-12 Tom Tromey <tromey@redhat.com>
8174
8175 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8176 const.
8177 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8178 (struct die_reader_specs) <buffer>: Likewise.
8179 (die_reader_func_ftype): Make 'info_ptr' const.
8180 (struct line_header) <include_dirs, statement_program_start,
8181 statement_program_end>: Now const.
8182 (struct file_entry) <name>: Likewise.
8183 (struct partial_die_info) <sibling>: Likewise.
8184 (struct dwarf_block) <data>: Likewise.
8185 (dwarf2_read_section): Remove cast.
8186 (dwarf2_get_section_info): Make 'bufp' const.
8187 (read_index_from_section): Constify.
8188 (dw2_get_file_names_reader): Make 'info_ptr' const.
8189 (dw2_get_primary_filename_reader): Likewise.
8190 (read_comp_unit_head): Make 'info_ptr' and return type const.
8191 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8192 Likewise.
8193 (read_abbrev_offset): Constify.
8194 (dwarf2_create_include_psymtab): Make 'name' const.
8195 (create_debug_types_hash_table): Update.
8196 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8197 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8198 Constify.
8199 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8200 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8201 (read_comp_units_from_section): Constify.
8202 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8203 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8204 const.
8205 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8206 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8207 (create_dwp_hash_table, dwarf2_ranges_read)
8208 (dwarf2_record_block_ranges): Constify.
8209 (read_die_and_children, read_die_and_siblings_1)
8210 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8211 const.
8212 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8213 (abbrev_table_read_table): Constify.
8214 (load_partial_dies): Make 'info_ptr' const.
8215 (read_partial_die, read_attribute_value, read_attribute): Make
8216 'info_ptr' and return type const.
8217 (read_address, read_initial_length)
8218 (read_checked_initial_length_and_offset, read_offset)
8219 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8220 const.
8221 (read_direct_string): Make 'buf' and return type const.
8222 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8223 (read_indirect_string): Make return type const.
8224 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8225 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8226 'info_ptr' const.
8227 (read_str_index): Make return type const.
8228 (add_include_dir): Make 'include_dir' const.
8229 (add_file_name): Make 'name' const.
8230 (dwarf_decode_line_header): Constify.
8231 (psymtab_include_file_name): Make return type const.
8232 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8233 (dwarf2_start_subfile): Make 'filename' const.
8234 (dwarf2_const_value_attr): Make 'bytes' const.
8235 (read_signatured_type_reader): Make 'info_ptr' const.
8236 (decode_locdesc): Constify.
8237 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8238 const.
8239 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8240 'mac_end', and return type const.
8241 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8242 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8243 type const.
8244 (per_cu_header_read_in): Constify.
8245 * symfile.h (dwarf2_get_section_info): Update.
8246
d47a1bc1
TT
82472013-04-12 Tom Tromey <tromey@redhat.com>
8248
8249 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8250
6eaaf48b
EZ
82512013-04-12 Eli Zaretskii <eliz@gnu.org>
8252
fc4c25bf 8253 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8254 * top.c (print_gdb_configuration): New function, displays the
8255 details about GDB configure-time parameters.
8256 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8257 * cli/cli-cmds.c (show_configuration): New function.
8258 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8259 * main.c (captured_main) <print_configuration>: New static var.
8260 <long_options>: Use it.
8261 If --configuration was given, call print_gdb_configuration.
8262
b292c783
JK
82632013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8264 Pedro Alves <palves@redhat.com>
8265
8266 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8267 (generated_files): Add gcore.
8268 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8269 HAVE_NATIVE_GCORE_HOST.
8270 (gcore): New.
8271 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8272 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8273 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8274 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8275 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8276 Add HAVE_NATIVE_GCORE_HOST.
8277 * configure: Regenerate.
8278 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8279 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8280 AC_CONFIG_FILES for gcore.
8281 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8282 gdb_have_gcore.
8283 * gdb_gcore.sh: Rename to ...
8284 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8285 and GCORE_TRANSFORM_NAME substitutions.
8286
c96b3c4f
JK
8287 Fix parsing tabs in ${gdb_target_obs}.
8288 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8289
d6cb50a2
JK
82902013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8291
8292 * remote.c (unpush_and_perror): Add output message final dot.
8293
cf2cb5ec
YQ
82942013-04-11 Yao Qi <yao@codesourcery.com>
8295
8296 * tracepoint.c (tfile_interp_line): Fit parameters line and
8297 utpp in one line.
8298
07293be4
JB
82992013-04-10 Joel Brobecker <brobecker@adacore.com>
8300
8301 * solib.c (solib_map_sections): Remove code overwriting
8302 SO->SO_NAME with the bfd's filename.
8303
f81d1120
PA
83042013-04-10 Pedro Alves <palves@redhat.com>
8305
8306 * cli/cli-decode.c (integer_unlimited_completer): New function.
8307 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8308 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8309 completer.
8310 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8311 (is_unlimited_literal): New function.
8312 (do_set_command): Handle literal "unlimited" arguments.
8313 * frame.c (_initialize_frame) <set backtrace limit>: Document
8314 "unlimited".
8315 * printcmd.c (_initialize_printcmd) <set print
8316 max-symbolic-offset>: Add help text.
8317 * record-full.c (_initialize_record_full) <set record full
8318 insn-number-max>: Likewise.
8319 * record.c (_initialize_record) <set record
8320 instruction-history-size, set record function-call-history-size>:
8321 Add help text.
8322 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8323 help text.
8324 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8325 Likewise.
8326 * source.c (_initialize_source) <set listsize>: Add help text.
8327 * utils.c (initialize_utils) <set height, set width>: Likewise.
8328 <set pagination>: Mention "set height unlimited".
8329 * valprint.c (_initialize_valprint) <set print elements, set print
8330 repeats>: Document "unlimited".
8331
2f9d54cf
PA
83322013-04-10 Pedro Alves <palves@redhat.com>
8333
8334 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8335 instead of disconnect_tracing.
8336 * infcmd.c (detach_command, disconnect_command): Call
8337 query_if_trace_running. Adjust.
8338 * top.c: Include "tracepoint.h".
8339 (quit_target): Delete. Contents moved ...
8340 (quit_force): ... here. Wrap each stage of teardown in
8341 TRY_CATCH. Call disconnect_tracing before detaching.
8342
393fd4c3
YQ
83432013-04-10 Hui Zhu <hui@codesourcery.com>
8344 Yao Qi <yao@codesourcery.com>
8345
8346 * configure.ac: Check libbabeltrace is installed.
8347 * config.in: Regenerate.
8348 * configure: Regenerate.
8349 * Makefile.in (LIBBABELTRACE): New.
8350 (CLIBS): Add LIBBABELTRACE.
8351 * ctf.c: Include "exec.h".
8352 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8353 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8354 (ctf_save_metadata_header): Define new type aliases in
8355 metadata.
8356 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8357 in metadata. Start a new faked packet for trace status.
8358 (ctf_write_status): Write trace status to CTF.
8359 (ctf_write_uploaded_tsv): Write TSV to CTF.
8360 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8361 (ctf_write_definition_end): End the faked packet.
8362
8363 (ctx, ctf_iter, trace_dirname): New.
8364 (start_pos): New variable.
8365 (ctf_destroy, ctf_open_dir, ctf_open): New.
8366 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8367 macros.
8368 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8369 (ctf_fetch_registers, ctf_xfer_partial): New.
8370 (ctf_get_trace_state_variable_value): New.
8371 (ctf_get_tpnum_from_frame_event): New.
8372 (ctf_get_traceframe_address): New.
8373 (ctf_trace_find, ctf_has_stack): New.
8374 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8375 (ctf_get_trace_status, ctf_read_status): New.
8376 (_initialize_ctf): New.
8377 * tracepoint.c (get_tracepoint_number): New
8378 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8379 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8380 * tracepoint.h: ... here.
8381 (get_tracepoint_number): Declare it.
8382 (get_uploaded_tsv): Declare it.
8383
8384 * NEWS: Mention new configure option.
8385
5c2b4418
HZ
83862013-04-10 Pedro Alves <palves@redhat.com>
8387 Hui Zhu <hui@codesourcery.com>
8388
8389 * breakpoint.c (dprintf_re_set): New.
8390 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8391 to dprintf_re_set.
8392
a5c66735
JB
83932013-04-09 Joel Brobecker <brobecker@adacore.com>
8394
8395 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8396 Remove solib-svr4.o from the list.
8397
9e77999c
JB
83982013-04-09 Joel Brobecker <brobecker@adacore.com>
8399
8400 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8401 Use gdb_assert_not_reached instead of invalid boolean expression.
8402
1927e618
PA
84032013-04-09 Pedro Alves <palves@redhat.com>
8404
8405 * remote.c (unpush_and_perror): New function.
8406 (readchar, remote_serial_write): Use it.
8407
10782d74
MM
84082013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8409
8410 * NEWS: Mention new btrace RSP packets.
8411
4c8429ef
TT
84122013-04-08 Tom Tromey <tromey@redhat.com>
8413
8414 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8415 long.
8416
8625fc1b
TT
84172013-04-08 Tom Tromey <tromey@redhat.com>
8418
8419 * maint.c (print_bfd_section_info): Print the section index.
8420 * symmisc.c (dump_msymbols): Print the section index.
8421
e27d198c
TT
84222013-04-08 Tom Tromey <tromey@redhat.com>
8423
8424 PR symtab/8424:
8425 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8426 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8427 * breakpoint.c (resolve_sal_pc): Update.
8428 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8429 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8430 (minsym_lookup_iterator_cb): Use it.
8431 (default_read_var_value): Update.
8432 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8433 Update.
8434 * infcmd.c (jump_command): Update.
8435 * linespec.c (minsym_found): Update.
8436 * maint.c (maintenance_translate_address): Update.
8437 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8438 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8439 * parse.c (write_exp_msymbol): Update.
8440 * printcmd.c (address_info): Update.
8441 * psymtab.c (find_pc_sect_psymbol): Update.
8442 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8443 SYMBOL_OBJ_SECTION.
8444 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8445 Don't initialize SYMBOL_OBJ_SECTION.
8446 * spu-tdep.c (spu_catch_start): Update.
8447 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8448 * symmisc.c (dump_msymbols, print_symbol): Update.
8449 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8450 how fallback section is computed.
8451 (fixup_symbol_section): Update.
8452 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8453 Update.
8454 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8455 Initialize SYMBOL_SECTION.
8456 * symtab.h (struct general_symbol_info) <section>: Update comment.
8457 <obj_section>: Remove.
8458 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8459 (SYMBOL_OBJFILE): New macro.
8460
e6dc44a8
TT
84612013-04-08 Tom Tromey <tromey@redhat.com>
8462
8463 * coffread.c (record_minimal_symbol): Update.
8464 * dbxread.c (record_minimal_symbol): Update.
8465 * elfread.c (record_minimal_symbol): Update.
8466 * machoread.c (macho_symtab_add_minsym): Update.
8467 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8468 Update.
8469 * minsyms.c (prim_record_minimal_symbol): Update.
8470 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8471 argument.
8472 (prim_record_minimal_symbol_and_info): Likewise.
8473 * minsyms.h (prim_record_minimal_symbol_full)
8474 (prim_record_minimal_symbol_and_info): Update.
8475 * symtab.c (allocate_symbol, initialize_symbol)
8476 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8477 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8478 Update.
8479
36192a8d
TT
84802013-04-08 Tom Tromey <tromey@redhat.com>
8481
8482 PR symtab/8423:
8483 * solib-som.c (som_solib_section_offsets): Use BFD section
8484 indices. Set offsets for all sections.
8485 * somread.c (som_symtab_read): Compute BFD section for
8486 symbol. Use prim_record_minimal_symbol_and_info.
8487 (som_symfile_read): Fix comment.
8488 (struct find_section_offset_arg): New.
8489 (find_section_offset, set_section_index): New functions.
8490 (som_symfile_offsets): Use set_section_index to compute
8491 section indices.
8492
65cf3563
TT
84932013-04-08 Tom Tromey <tromey@redhat.com>
8494
8495 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8496 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8497 gdb_bfd_section_index.
8498 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8499 New functions.
8500 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8501 Declare.
8502 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8503 Update.
8504 * objfiles.c (add_to_objfile_sections_full): New function.
8505 (add_to_objfile_sections): Use it.
8506 (build_section_table): Rewrite.
8507 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8508 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8509 (struct objfile) <sections>: Update comment.
8510 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8511 is NULL.
8512 (ALL_OBJSECTIONS): Use it.
8513 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8514 * solib-frv.c (frv_relocate_main_executable): Update.
8515 * solib-target.c (solib_target_relocate_section_addresses):
8516 Use gdb_bfd_section_index.
8517 * symfile.c (build_section_addr_info_from_section_table):
8518 Use gdb_bfd_section_index.
8519 (build_section_addr_info_from_bfd, place_section): Likewise.
8520 * symtab.c (fixup_section): Update.
8521 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8522
7cbd4a93
TT
85232013-04-08 Tom Tromey <tromey@redhat.com>
8524
8525 * minsyms.h (struct bound_minimal_symbol): New.
8526 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8527 Remove objfile argument.
8528 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8529 Return bound_minimal_symbol.
8530 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8531 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8532 Return bound_minimal_symbol.
8533 (in_gnu_ifunc_stub): Update.
8534 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8535 Remove 'objfile_p' argument.
8536 (lookup_solib_trampoline_symbol_by_pc): Update.
8537 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8538 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8539 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8540 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8541 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8542 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8543 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8544 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8545 stack.c, symtab.c, tui/tui-disasm.c: Update.
8546
f85f34ed
TT
85472013-04-08 Tom Tromey <tromey@redhat.com>
8548
8549 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8550 Use symbol's obstack, not an objfile.
8551 * coffread.c (process_coff_symbol): Update.
8552 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8553 * jv-lang.c (add_class_symbol): Update.
8554 * mdebugread.c (new_symbol): Update.
8555 * minsyms.c (prim_record_minimal_symbol_full)
8556 (terminate_minimal_symbol_table): Update.
8557 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8558 * stabsread.c (define_symbol, read_enum_type): Update.
8559 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8560 Handle Ada specially.
8561 (symbol_set_language): Add 'obstack' argument.
8562 (symbol_set_names): Update.
8563 (symbol_natural_name, symbol_demangled_name): Always use
8564 ada_decode_symbol.
8565 * symtab.h (struct general_symbol_info)
8566 <language_specific::obstack>: New field.
8567 <ada_mangled>: New field.
8568 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8569 (symbol_set_language): Update.
8570
ccde22c0
TT
85712013-04-08 Tom Tromey <tromey@redhat.com>
8572
8573 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8574 Take an obstack, not an objfile.
8575 (symbol_set_names): Update.
8576 * symtab.h (symbol_set_demangled_name): Update.
8577
e623cf5d
TT
85782013-04-08 Tom Tromey <tromey@redhat.com>
8579
8580 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8581 allocate_symbol.
8582 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8583 (read_func_scope): Call allocate_template_symbol.
8584 (new_symbol_full): Call allocate_symbol.
8585 * jit.c (finalize_symtab): Call allocate_symbol.
8586 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8587 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8588 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8589 (common_block_end): Call allocate_symbol.
8590 * symtab.c (allocate_symbol, initialize_symbol)
8591 (allocate_template_symbol): New functions.
8592 * symtab.c (allocate_symbol, initialize_symbol)
8593 (allocate_template_symbol): Declare.
8594 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8595
f6de8ec2
PA
85962013-04-08 Pedro Alves <palves@redhat.com>
8597 Keith Seitz <keiths@redhat.com>
8598
8599 * breakpoint.c (create_breakpoint): Rename
8600 "parse_condition_and_thread" parameter to "parse_arg". Update
8601 describing comment. If !PARSE_ARG, then error out if ARG is not
8602 the empty string after extracting the location.
8603 * breakpoint.h (create_breakpoint): Rename
8604 "parse_condition_and_thread" parameter to "parse_arg".
8605
f65ce5fb
AR
86062013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8607
8608 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8609
cc5925ad
YQ
86102013-04-07 Yao Qi <yao@codesourcery.com>
8611
8612 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8613 and 'addr2' to CORE_ADDR.
8614 * target.c (update_current_target): Update.
8615 * target.h (struct target_ops) <to_trace_find>: Change parameter
8616 type to CORE_ADDR.
8617 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8618 'addr2' to CORE_ADDR.
8619 (tfile_trace_find): Likewise.
8620 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8621 Change local variable 'addr' to type CORE_ADDR.
8622 * tracepoint.h (tfind_1): Update declaration.
8623
d9ac0664
EZ
86242013-04-06 Eli Zaretskii <eliz@gnu.org>
8625
8626 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8627 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8628 Include main.h.
8629
8630 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8631 here...
8632 * main.h (windows_get_absolute_argv0): ...to here.
8633
02142a6c
DE
86342013-04-05 Doug Evans <dje@google.com>
8635
8636 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8637 (read_cutu_die_from_dwo): Add comments.
8638 (read_structure_type): Update comment.
8639 (read_enumeration_type, read_namespace_type): Update comment.
8640 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8641
43662968
JK
86422013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8643
8644 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8645 * Makefile.in (gdb.z): Remove.
8646 (install-only): Remove $(man1dir) and gdb.1 installation.
8647 * gdb.1: Remove.
8648
9ead1b84
JK
86492013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8650
8651 Fix compatibility with Linux kernel 3.8.3.
8652 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8653 to more inner block. Remove parsing of NUMBER from outer block.
8654 Parse NUMBER only if KEYWORD has been identified.
8655
d1794952
JK
86562013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8657
8658 Fix variable name shadowing.
8659 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8660 filename to mapsfilename and update its uses.
8661
9025569e
EZ
86622013-04-05 Eli Zaretskii <eliz@gnu.org>
8663
8664 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8665 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8666 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8667 details of the problem.
8668
c9a6ce02
PA
86692013-04-04 Pedro Alves <palves@redhat.com>
8670 Hui Zhu <hui@codesourcery.com>
8671
8672 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8673 tracepoint, reset its STEP_COUNT and call validate_actionline.
8674
5ff888ce
DE
86752013-04-03 Doug Evans <dje@google.com>
8676
bf6af496
DE
8677 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8678 read_die_and_siblings.
8679 (read_die_and_siblings): New function.
8680 (read_cutu_die_from_dwo): Dump die if requested.
8681 (read_die_and_children): Call read_full_die_1 and
8682 read_die_and_siblings_1.
8683 (read_full_die): Dump die if requested.
8684
8685 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8686
0ac5b59e
DE
8687 * dwarf2read.c (struct dwo_file): New member comp_dir.
8688 Rename member name to dwo_name. All uses updated.
8689 (hash_dwo_file): Include comp_dir in computation.
8690 (eq_dwo_file): Ditto.
8691 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8692 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8693
5ff888ce
DE
8694 * psymtab.c (read_psymtabs_with_fullname): Don't call
8695 psymtab_to_fullname if the basenames are different.
8696
ec83d211
JK
86972013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8698
8699 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8700 New entry about "fullname" presence.
8701
4f4352f7
PA
87022013-04-03 Pedro Alves <palves@redhat.com>
8703
8704 * NEWS: Mention x86_64/Cygwin as new native configuration.
8705
3d1d5ea3
DE
87062013-04-02 Doug Evans <dje@google.com>
8707
8708 * dwarf2read.c (read_structure_type): Fix typo in comment.
8709
be9a8770
PA
87102013-04-02 Pedro Alves <palves@redhat.com>
8711
8712 * NEWS: Mention "set/show debug aarch64", "set/show debug
8713 coff-pe-read" and "set/show debug mach-o".
8714
a46c1e42
PA
87152013-04-02 Pedro Alves <palves@redhat.com>
8716
8717 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8718
3ad18b19
EZ
87192013-04-02 Eli Zaretskii <eliz@gnu.org>
8720
8721 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8722 gdb_string.h is now in common/.
8723
e9f1758d
PA
87242013-04-02 Pedro Alves <palves@redhat.com>
8725
8726 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8727 under "New options".
8728
049dc89b
JK
87292013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8730
8731 Revert this patch:
8732 PR gdb/15275
8733 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8734
c33e31fd
PA
87352013-04-02 Pedro Alves <palves@redhat.com>
8736
8737 PR gdb/15275
8738
8739 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8740 (remote_serial_write): New function.
8741 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8742
ea5f3910
JW
87432013-04-01 Jiong Wang <jiwang@tilera.com>
8744
8745 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8746 "New targets" sections.
ea5f3910 8747
5c6fa7ab
DE
87482013-04-01 Doug Evans <dje@google.com>
8749
c0f78cd4
DE
8750 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8751 (process_enumeration_scope): Simplify.
8752
0186c6a7
DE
8753 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8754 type_unit_group ...
8755 (struct signatured_type): ... to here.
8756 (sig_type_ptr): New typedef.
8757 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8758 out of union 't'. All uses updated.
8759 (dw2_get_file_names_reader): Assert not called for a type unit.
8760 (dw2_get_file_names): Assert not called for a type unit or type
8761 unit group.
8762 (build_type_psymtabs_reader): Assert called for a type unit.
8763 (build_type_psymtab_dependencies): Assert called for a type unit group.
8764
5c6fa7ab
DE
8765 * dwarf2read.c (free_dwo_file): Add comment.
8766 (dwarf2_per_objfile_free): Unref dwp bfd.
8767
b3c0ad67 87682013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8769
8770 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8771 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8772 (read_pe_exported_syms): Remove unused 'exportix'.
8773 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8774 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8775 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8776
e2df1547
AR
87772013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8778
8779 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8780 (print_it_watchpoint): Remove unused 'bl'.
8781 (say_where): Remove unused 'uiout'.
8782 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8783 (bkpt_breakpoint_hit): Remove unused 'b'.
8784 (internal_bkpt_print_it): Remove unused 'uiout'.
8785 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8786
d81e75c0
TD
87872013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8788
8789 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8790 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8791
5a8b3f62
DE
87922013-03-29 Doug Evans <dje@google.com>
8793
ab5088bf
DE
8794 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8795 Delete arg is_dwp. All callers updated.
8796 (open_dwp_file): New function.
8797 (open_and_init_dwp_file): Call it.
8798 (get_dwp_file): New function.
8799 (lookup_dwo_cutu): Call it.
8800
a8ad1e57
DE
8801 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8802 unnecessary, cleanup.
8803
6296d8c1
DE
8804 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8805
b0c7bfa9
DE
8806 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8807 (lookup_dwo_unit): New function.
8808 (init_cutu_and_read_dies): Move DWO handling to new functions.
8809
c88ee1f0
DE
8810 * dwarf2read.c (struct signatured_type): Tweak comment.
8811 (struct dwo_unit): Tweak comment.
8812 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8813 (create_dwo_debug_info_hash_table): Tweak comment.
8814 (dwarf2_per_cu_offset_and_type): Tweak comment.
8815
5a8b3f62
DE
8816 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8817 missing .debug_types section.
8818
9852c492
YQ
88192013-03-29 Yao Qi <yao@codesourcery.com>
8820
8821 * corelow.c: Include "completer.h".
8822 (_initialize_corelow): Call add_target_with_completer with
8823 argument 'filename_completer'.
8824 * tracepoint.c: Likewise.
8825 * exec.c (_initialize_exec): Likewise.
8826 * target.c (add_target): Rename to ...
8827 (add_target_with_completer): ... this. Call set_cmd_completer
8828 if parameter completer is not NULL.
8829 (add_target): New.
8830 * target.h: Include "command.h".
8831 (add_target_with_completer): Declare it.
8832
af312be7
JB
88332013-03-28 Joel Brobecker <brobecker@adacore.com>
8834
8835 * coffread.c (is_import_fixup_symbol): New function.
8836 (record_minimal_symbol): Use is_import_fixup_symbol to
8837 detect import fixup symbols, and discard them.
8838
8a0459fd
DE
88392013-03-28 Doug Evans <dje@google.com>
8840
0349ea22
DE
8841 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8842 types hash table until we know we need it.
8843
f652bce2
DE
8844 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8845 index numbers.
8846
e4a48d9d
DE
8847 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8848 All callers updated.
8849 (dw2_print_stats): Print #read CUs too.
8850 (dump_die_shallow): Print signatured types better.
8851
8a0459fd
DE
8852 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8853 info_or_types_section to section. All uses updated.
8854 (struct dwo_unit): Ditto.
8855
bd3eecc3
PA
88562013-03-28 Pedro Alves <palves@redhat.com>
8857
8858 * NEWS (New options): New section.
8859 (New options): Mention set/show remote trace-status-packet.
8860 * remote.c (PACKET_qTStatus): New enumeration value.
8861 (remote_get_trace_status): Skip sending qTStatus if the packet is
8862 disabled. Use packet_ok.
8863 (_initialize_remote): Register a configuration command for
8864 qTStatus packet.
8865
41245087
DE
88662013-03-28 Doug Evans <dje@google.com>
8867
7edbb660
DE
8868 * symfile.c (find_separate_debug_file): Add comment.
8869 (terminate_after_last_dir_separator): Tweak comment.
8870
0018ea6f
DE
8871 * dwarf2read.c (create_partial_symtab): Add forward decl.
8872 (create_partial_symtab): Move to be closer to other psymtab functions.
8873 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8874
ca69b9e6
DE
8875 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8876 (compute_symtab_includes): Remove unnecessary forward declaration.
8877 (die_needs_namespace): Add comment marking group of functions for
8878 dwarf2 name computation.
8879
a9375afe
DE
8880 * typeprint.c (_initialize_typeprint): Improve type help text.
8881
41245087
DE
8882 * python/python.c (finish_python_initialization): Provide suggestion
8883 for how to tell gdb to find its python files.
8884
7f7cc265
PA
88852013-03-28 Pedro Alves <palves@redhat.com>
8886
8887 PR gdb/15294
8888
8889 * source.c (_initialize_source): Change back "set listsize" to an
8890 integer command.
8891
ec21308c
JK
88922013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8893
8894 PR gdb/15275
8895 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8896
840a9a1f
PA
88972013-03-27 Pedro Alves <palves@redhat.com>
8898
8899 * top.c (history_size): Rename to ...
8900 (history_size_setshow_var): ... this. Add comment.
8901 (show_commands): Use readline's 'history_length' instead of
8902 computing the history length by calling history_get in a loop.
8903 (set_history_size_command): Error out for sizes over INT_MAX.
8904 Restore previous history size on invalid size.
8905 (init_history): If HISTSIZE is negative, leave the history size as
8906 zero. Add comments.
8907 (init_main): Adjust.
8908
826ecc4d
PA
89092013-03-27 Pedro Alves <palves@redhat.com>
8910
8911 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8912 coff_pe_read" command to "set debug coff-pe-read".
8913
0ccfeeae
MM
89142013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8915
8916 * record.c (command_size_to_target_size): Fix size comparison.
8917 Change parameter type from pointer to integer to integer.
8918 Update all users.
8919
40653b35
PM
89202013-03-27 Pierre Muller <muller@sourceware.org>
8921
8922 * windows-nat.c (handle_output_debug_string): Avoid typecast
8923 from integer of different size warning.
8924
c62fa0e2
JB
89252013-03-26 Joel Brobecker <brobecker@adacore.com>
8926
8927 * windows-nat.c (handle_output_debug_string): Add empty line
8928 after local block variable definition.
8929
2c619be2
PA
89302013-03-26 Pedro Alves <palves@redhat.com>
8931
8932 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8933 (net_open): Make 'polls' local unsigned.
8934
1b493192
PA
89352013-03-26 Pedro Alves <palves@redhat.com>
8936
8937 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8938 a zuinteger command instead of uinteger.
8939
7ee70bf5
PA
89402013-03-26 Pedro Alves <palves@redhat.com>
8941
8942 * record-full.c (record_full_insn_num): Make it unsigned.
8943 (record_full_check_insn_num, record_full_message)
8944 (record_full_registers_change, record_full_xfer_partial): Remove
8945 record_full_insn_max_num check (it's always != 0).
8946 (record_full_info, record_full_restore): Use %u as format string.
8947 (): Use %u as format string.
8948 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8949 check (it's always != 0).
8950
dfd1f9bb
PA
89512013-03-26 Pedro Alves <palves@redhat.com>
8952
8953 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8954 and "set dcache size" commands zuinteger instead of uinteger.
8955
addb4faf
PA
89562013-03-26 Pedro Alves <palves@redhat.com>
8957
8958 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8959 command zuinteger instead of uinteger.
8960
b75bf488
PA
89612013-03-26 Pedro Alves <palves@redhat.com>
8962
8963 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8964 zuinteger instead of uinteger.
8965
42c634cb
PA
89662013-03-26 Pedro Alves <palves@redhat.com>
8967
8968 * record.c (record_insn_history_size_setshow_var)
8969 (record_call_history_size_setshow_var): New globals.
8970 (command_size_to_target_size): New function.
8971 (cmd_record_insn_history, cmd_record_call_history): Use
8972 command_size_to_target_size instead of cast.
8973 (validate_history_size, set_record_insn_history_size)
8974 (set_record_call_history_size): New functions.
8975 (_initialize_record): Install set_record_insn_history_size and
8976 set_record_call_history_size as "set" hooks of "set record
8977 instruction-history-size" and "set record
8978 function-call-history-size".
8979
1fb2e2b5
PA
89802013-03-26 Pedro Alves <palves@redhat.com>
8981
8982 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8983 use with history_max_entries use. Remove FIXME note.
8984
99c819ee
MM
89852013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8986
8987 * record-btrace.c (record_btrace_close): Call
8988 record_btrace_auto_disable.
8989
9f9e404c
JB
89902013-03-25 Joel Brobecker <brobecker@adacore.com>
8991
8992 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8993
ebcdfe33
DE
89942013-03-25 Doug Evans <dje@google.com>
8995
8996 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8997
24955f63
TT
89982013-03-25 Tom Tromey <tromey@redhat.com>
8999
9000 PR symtab/11462:
9001 * c-exp.y (exp): Add new productions for destructors after '.' and
9002 '->'.
9003 (write_destructor_name): New function.
9004
fce632b6
TT
90052013-03-25 Tom Tromey <tromey@redhat.com>
9006
9007 PR c++/9197:
9008 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9009 value_struct_elt, not lookup_struct_elt_type.
9010 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9011 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9012 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9013
a4341769
YQ
90142013-03-25 Yao Qi <yao@codesourcery.com>
9015
9016 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9017 instead of '_mkdir'.
9018
b5981e5a
EZ
90192013-03-23 Eli Zaretskii <eliz@gnu.org>
9020
9021 * windows-nat.c (windows_get_absolute_argv0): New function.
9022 * windows-nat.h: Add its prototype.
9023
9024 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9025 Use IS_DIR_SEPARATOR instead of looking for a character inside
9026 SLASH_STRING. Include filenames.h.
9027 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9028 relocate_gdb_directory works when passed gdb_program_name.
9029 Include windows-nat.h.
9030
598d3636
JK
90312013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9032
9033 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9034 * remote.c (trace_error): Remove the special handling of '2'.
9035 (readchar) <SERIAL_EOF>
9036 (readchar) <SERIAL_ERROR>
9037 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9038 (remote_get_trace_status): Call throw_exception if EX is
9039 TARGET_CLOSE_ERROR.
9040 * utils.c (perror_with_name): Rename to ...
9041 (throw_perror_with_name): ... here. New parameter errcode, describe it
9042 in the function comment.
9043 (perror_with_name): New function wrapper.
9044 * utils.h (enum errors): New stub declaration.
9045 (throw_perror_with_name): New declaration.
9046
82b821e9
PA
90472013-03-22 Pedro Alves <palves@redhat.com>
9048 Yao Qi <yao@codesourcery.com>
9049 Mark Kettenis <kettenis@gnu.org>
9050
9051 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9052 Don't let the user set the value to UINT_MAX directly.
9053 <var_integer>: Don't let the user set the value to INT_MAX
9054 directly.
9055
78a095c3
JK
90562013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9057
9058 * remote.c (remote_unpush_target): New function.
9059 (remote_open_1): Remove two pop_target calls, update one comment, add
9060 comment to target_preopen call. Replace pop_target call by
9061 remote_unpush_target call.
9062 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9063 pop_target calls by remote_unpush_target calls.
9064
3e74e146
PA
90652013-03-22 Pedro Alves <palves@redhat.com>
9066
9067 * linux-nat.c (linux_child_follow_fork): Don't call
9068 linux_enable_event_reporting.
9069 (linux_handle_extended_wait): Don't call
9070 linux_enable_event_reporting.
9071
a2213dca
PA
90722013-03-22 Pedro Alves <palves@redhat.com>
9073
9074 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9075 use it to rewrite the trampoline buffers with type gdb_byte[], and
9076 undefine the macro. Remove char* cast.
9077
bd712aed
DE
90782013-03-21 Doug Evans <dje@google.com>
9079
9080 New commands "mt set per-command {space,time,symtab} {on,off}".
9081 * NEWS: Add entry.
9082 * event-top.c: #include "maint.h".
9083 * main.c: #include "maint.h".
9084 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9085 timeval-utils.h, maint.h, cli/cli-setshow.h.
9086 (per_command_time, per_command_space): New static globals.
9087 (per_command_symtab): New static global.
9088 (per_command_setlist, per_command_showlist): New static globals.
9089 (struct cmd_stats): Move here from utils.c.
9090 (set_per_command_time): Renamed from set_display_time in utils.c
9091 and moved here. All callers updated.
9092 (set_per_command_space): Renamed from set_display_space in utils.c
9093 and moved here. All callers updated.
9094 (count_symtabs_and_blocks): New function.
9095 (report_command_stats): Moved here from utils.c. Add support for
9096 printing symtab stats. Only print data if enabled before command
9097 executed.
9098 (make_command_stats_cleanup): Ditto.
9099 (sert_per_command_cmd, show_per_command_cmd): New functions.
9100 (_initialize_maint_cmds): Add new commands
9101 mt set per-command {space,time,symtab} {on,off}.
9102 * maint.h: New file.
9103 * top.c: #include "maint.h".
9104 * utils.c (reset_prompt_for_continue_wait_time): New function.
9105 (get_prompt_for_continue_wait_time): New function.
9106 * utils.h (reset_prompt_for_continue_wait_time): Declare
9107 (get_prompt_for_continue_wait_time): Declare.
9108 (make_command_stats_cleanup): Moved to maint.h.
9109 (set_display_time, set_display_space): Moved to maint.h and renamed
9110 to set_per_command_time, set_per_command_space.
9111 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9112 parse_binary_operation and made non-static. Don't call error,
9113 just return an error marker. All callers updated.
9114 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9115
d76488d8
TT
91162013-03-21 Tom Tromey <tromey@redhat.com>
9117
9118 * symfile.c (alloc_section_addr_info): Update header. Don't set
9119 'num_sections' field.
9120 (build_section_addr_info_from_section_table): Set 'num_sections'.
9121 (build_section_addr_info_from_bfd): Likewise.
9122 (build_section_addr_info_from_objfile): Remove dead loop
9123 condition.
9124 (free_section_addr_info): Unconditionally call xfree.
9125 (relative_addr_info_to_section_offsets, addrs_section_sort)
9126 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9127 condition.
9128 (syms_from_objfile_1): Remove dead 'if' condition. Check
9129 'num_sections'.
9130 (add_symbol_file_command): Set 'num_sections'.
9131 * symfile-mem.c (symbol_file_add_from_memory): Set
9132 'num_sections'.
9133 * somread.c (som_symfile_offsets): Remove dead loop condition.
9134 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9135 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9136
a72e5169 91372013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9138
9139 * tracepoint.h (decode_agent_options): Add 'trace_string'
9140 argument.
9141 * tracepoint.c (decode_agent_options): Add 'trace_string'
9142 argument.
9143 (validate_actionline): Update.
9144 (collect_symbol): Add 'trace_string' argument.
9145 (struct add_local_symbols_data) <trace_string>: New field.
9146 (do_collect_symbol): Update.
9147 (add_local_symbols): Add 'trace_string' argument.
9148 (encode_actions_1): Update.
9149 (trace_dump_actions): Update.
9150 * dwarf2loc.c (access_memory): Update.
9151 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9152 * ax-general.c (new_agent_expr): Update.
9153 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9154 (gen_trace_for_return_address): Add argument.
9155 (trace_kludge, trace_string_kludge): Remove.
9156 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9157 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9158 (gen_trace_for_var): Add 'trace_string' argument.
9159 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9160 (gen_printf, agent_eval_command_one): Update.
9161
b2f83c08
TT
91622013-03-21 Tom Tromey <tromey@redhat.com>
9163
9164 PR exp/15109:
9165 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9166 Handle FILENAME token.
9167
9507860e
TT
91682013-03-21 Tom Tromey <tromey@redhat.com>
9169
9170 * c-exp.y (YYPRINT): Define.
9171 (c_print_token): New function.
9172
e403aa4b
TT
91732013-03-21 Tom Tromey <tromey@redhat.com>
9174
9175 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9176
af307d6a
YQ
91772013-03-21 Yao Qi <yao@codesourcery.com>
9178
9179 * ctf.c: Include "gdb_stat.h".
9180 [USE_WIN32API]: New macro 'mkdir'.
9181 (ctf_start): Use permission bits macros if they are defined.
9182
fb81d016
KS
91832013-03-20 Keith Seitz <keiths@redhat.com>
9184
9185 * breakpoint.h (struct breakpoint): Add comment to
9186 extra_string indicating that this member is mallod'd.
9187 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9188
ef0026f0
PA
91892013-03-20 Pedro Alves <palves@redhat.com>
9190
9191 PR gdb/15289
9192
9193 * cli/cli-setshow.c (do_set_command)
9194 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9195 the result of parsing the command argument. Throw error if the
9196 value is greater than UINT_MAX. Print the invalid value with
9197 plongest.
9198 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9199 result of parsing the command argument. Throw error if the value
9200 is greater than INT_MAX, not greater or equal. Also throw error
9201 if the value is less than INT_MIN. Print the invalid value with
9202 plongest.
9203 <var_zuinteger_unlimited>: Throw error if the value is greater
9204 than INT_MAX, not greater or equal.
9205 (do_show_command) <var_integer, var_zinteger,
9206 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9207
24d6c2a0
TT
92082013-03-20 Tom Tromey <tromey@redhat.com>
9209
9210 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9211 if possible.
9212 * dwarf2read.c (read_func_scope): Remove old FIXME.
9213 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9214 not LOC_COMPUTED.
9215 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9216 Unconditionally call via computed ops, if possible.
9217 * printcmd.c (address_info): Unconditionally call via computed ops,
9218 if possible.
9219 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9220 if possible.
9221 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9222 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9223 if possible.
9224
f1e6e072
TT
92252013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9226 Tom Tromey <tromey@redhat.com>
9227
9228 PR symtab/8421:
9229 * coffread.c (coff_register_index): New global.
9230 (process_coff_symbol, coff_read_enum_type): Set
9231 SYMBOL_ACLASS_INDEX.
9232 (_initialize_coffread): Initialize new global.
9233 * dwarf2loc.c (locexpr_find_frame_base_location)
9234 (dwarf2_block_frame_base_locexpr_funcs)
9235 (loclist_find_frame_base_location)
9236 (dwarf2_block_frame_base_loclist_funcs): New.
9237 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9238 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9239 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9240 (dwarf2_block_frame_base_loclist_funcs): New.
9241 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9242 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9243 globals.
9244 (read_func_scope): Update.
9245 (fixup_go_packaging, mark_common_block_symbol_computed)
9246 (var_decode_location, new_symbol_full, dwarf2_const_value):
9247 Set SYMBOL_ACLASS_INDEX.
9248 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9249 (_initialize_dwarf2_read): Initialize new globals.
9250 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9251 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9252 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9253 globals.
9254 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9255 (_initialize_mdebugread): Initialize new globals.
9256 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9257 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9258 (stab_register_index, stab_regparm_index): New globals.
9259 (define_symbol, read_enum_type, common_block_end): Set
9260 SYMBOL_ACLASS_INDEX.
9261 (_initialize_stabsread): Initialize new globals.
9262 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9263 globals.
9264 (MAX_SYMBOL_IMPLS): New define.
9265 (register_symbol_computed_impl, register_symbol_block_impl)
9266 (register_symbol_register_impl)
9267 (initialize_ordinary_address_classes): New functions.
9268 (_initialize_symtab): Call initialize_ordinary_address_classes.
9269 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9270 (struct symbol_impl): New.
9271 (SYMBOL_ACLASS_BITS): New define.
9272 (struct symbol) <aclass, ops>: Remove fields.
9273 <aclass_index>: New field.
9274 (symbol_impls): Declare.
9275 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9276 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9277 (register_symbol_computed_impl, register_symbol_block_impl)
9278 (register_symbol_register_impl): Declare.
9279 (struct symbol_computed_ops): Add location_has_loclist.
9280 (struct symbol_block_ops): New.
9281 (SYMBOL_BLOCK_OPS): New.
9282 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9283
dbccfd4c
TT
92842013-03-20 Tom Tromey <tromey@redhat.com>
9285
9286 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9287 (print_partial_symbols, recursively_search_psymtabs): Use
9288 PSYMBOL_CLASS.
9289
e3f1ad4f
PM
92902013-03-20 Pierre Muller <muller@sourceware.org>
9291
9292 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9293 addtion, subtraction, multiplication and division binary operator.
9294
460014f5
JK
92952013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9296
9297 Code cleanup.
9298 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9299 * bsd-kvm.c (bsd_kvm_close): Likewise.
9300 * bsd-uthread.c (bsd_uthread_close): Likewise.
9301 * corelow.c (core_close): Likewise.
9302 (core_close_cleanup): Remove parameter quitting from a caller.
9303 * event-top.c (async_disconnect): Likewise.
9304 * exec.c (exec_close_1): Remove parameter quitting.
9305 * go32-nat.c (go32_close): Likewise.
9306 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9307 parameter quitting from a caller.
9308 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9309 variable.
9310 (mips_linux_close): Remove parameter quitting. Remove parameter
9311 quitting from a caller.
9312 * monitor.c (monitor_close): Remove parameter quitting.
9313 * monitor.h (monitor_close): Likewise.
9314 * record-btrace.c (record_btrace_close): Likewise.
9315 * record-full.c (record_full_close): Likewise.
9316 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9317 it also from fprintf_unfiltered.
9318 * remote-mips.c (mips_close): Remove parameter quitting.
9319 (mips_detach): Remove parameter quitting from a caller.
9320 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9321 (gdbsim_close): Remove duplicate function comment. Remove parameter
9322 quitting and remove it also from printf_filtered.
9323 * remote.c (remote_close): Remove parameter quitting.
9324 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9325 * target.c (update_current_target): Remove parameter int from to_close
9326 de_fault.
9327 (push_target, unpush_target, pop_target): Remove parameter quitting from
9328 a caller.
9329 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9330 Remove parameter quitting from a caller.
9331 (target_preopen): Remove parameter quitting from a caller.
9332 (target_close): Remove parameter quitting. Remove parameter quitting
9333 from a caller two times. Remove parameter quitting also from
9334 fprintf_unfiltered.
9335 * target.h (struct target_ops): Remove parameter quitting and as int
9336 from fields to_xclose and to_close.
9337 (extern struct target_ops current_target):
9338 (target_close, pop_all_targets): Remove parameter quitting. Update the
9339 comment.
9340 (pop_all_targets_above): Remove parameter quitting.
9341 * top.c (quit_target): Remove parameter quitting from a caller.
9342 * tracepoint.c (tfile_close): Remove parameter quitting.
9343 * windows-nat.c (windows_close): Remove parameter quitting.
9344
35a7120b
CV
93452013-03-20 Corinna Vinschen <vinschen@redhat.com>
9346
9347 * windows-nat.c (handle_output_debug_string): Replace call
9348 to string_to_core_addr with call to strtoull.
9349
8249a5a9
YQ
93502013-03-20 Yao Qi <yao@codesourcery.com>
9351
9352 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9353 and write it to CTF metadata.
9354
2c15ef43
CV
93552013-03-19 Corinna Vinschen <vinschen@redhat.com>
9356
9357 * windows-nat.c (handle_output_debug_string): Change type of n to
9358 SIZE_T to avoid crash on 64 bit systems.
9359
1cdd3232
EZ
93602013-03-17 Eli Zaretskii <eliz@gnu.org>
9361
9362 * python/python-internal.h (HAVE_SNPRINTF)
9363 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9364 about redefinition of snprintf by pyerrors.h.
9365
3cb2ab1a
SE
93662013-03-15 Steve Ellcey <sellcey@mips.com>
9367
9368 * remote-sim.c (sim_command_completer): Make char arguments const.
9369
9ce98649
TT
93702013-03-15 Tom Tromey <tromey@redhat.com>
9371
9372 PR c++/15116:
9373 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9374
dccee2de
TT
93752013-03-14 Tom Tromey <tromey@redhat.com>
9376
9377 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9378 New fields.
9379 (get_file_crc): Move from symfile.c.
9380 (gdb_bfd_crc): New function.
9381 * gdb_bfd.h (gdb_bfd_crc): Declare.
9382 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9383 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9384 (separate_debug_file_exists): Use gdb_bfd_crc.
9385
cc0ea93c
TT
93862013-03-14 Tom Tromey <tromey@redhat.com>
9387
9388 * symfile.c (get_debug_link_info): Remove.
9389 (find_separate_debug_file_by_debuglink): Use
9390 bfd_get_debug_link_info.
9391
08c23b0d
TT
93922013-03-14 Tom Tromey <tromey@redhat.com>
9393
9394 * symtab.c (error_in_psymtab_expansion): New function.
9395 (lookup_symbol_aux_quick)
9396 (basic_lookup_transparent_type_quick): Remove "last resort"
9397 code. Use error_in_psymtab_expansion.
9398
288e77a7
JK
93992013-03-14 Doug Evans <dje@google.com>
9400 Jan Kratochvil <jan.kratochvil@redhat.com>
9401
9402 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9403 any successful compare_filenames_for_search or FILENAME_CMP.
9404 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9405 * symtab.c (iterate_over_some_symtabs): Likewise.
9406
8f1b8b82
JK
94072013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9408
9409 * source.c (print_source_lines_base): Make a local copy of
9410 symtab_to_fullname.
9411
23eb71e4
JK
94122013-03-14 Hui Zhu <hui_zhu@mentor.com>
9413 Jan Kratochvil <jan.kratochvil@redhat.com>
9414
9415 * source.c (print_source_lines_base): Suppress "file" for TUI.
9416
bb869963
SDJ
94172013-03-14 Keith Seitz <keiths@redhat.com>
9418 Alan Matsuoka <alanm@redhat.com>
9419
9420 PR c++/15203
9421 PR c++/15210
9422 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9423 TYPE_CODE_METHOD.
9424 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9425 symbols.
9426
d6682f9e
YQ
94272013-03-14 Yao Qi <yao@codesourcery.com>
9428
9429 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9430 status to tfile if trace is stopped by command 'tstop'.
9431
a22fa6e4
YQ
94322013-03-14 Yao Qi <yao@codesourcery.com>
9433
9434 * tracepoint.c (tfile_write_status): Write trace notes and user
9435 name into tfile if they are not NULL.
9436
d0353e76
YQ
94372013-03-14 Hui Zhu <hui@codesourcery.com>
9438 Yao Qi <yao@codesourcery.com>
9439
9440 * Makefile.in (REMOTE_OBS): Add ctf.o.
9441 (SFILES): Add ctf.c.
9442 (HFILES_NO_SRCDIR): Add ctf.h.
9443 * ctf.c, ctf.h: New files.
9444 * tracepoint.c: Include 'ctf.h'.
9445 (collect_pseudocommand): Remove static.
9446 (trace_save_command): Parse option "-ctf".
9447 Produce different trace file writers per option.
9448 Adjust output message.
9449 (trace_save_tfile, trace_save_ctf): New.
9450 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9451 * mi/mi-main.c: Include 'ctf.h'.
9452 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9453 trace_save_tfile or trace_save_ctf.
9454 * NEWS: Mention these changes.
9455
3f43bc09
YQ
94562013-03-14 Yao Qi <yao@codesourcery.com>
9457
9458 * tracepoint.c (trace_file_writer_xfree): New.
9459 (struct tfile_writer_data): New.
9460 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9461 (tfile_write_header, tfile_write_regblock_type): New.
9462 (tfile_write_status, tfile_write_uploaded_tsv): New.
9463 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9464 (tfile_write_raw_data, (tfile_end): New.
9465 (tfile_write_ops): New global variable.
9466 (TRACE_WRITE_R_BLOCK): New macro.
9467 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9468 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9469 (TRACE_WRITE_V_BLOCK): New macro.
9470 (trace_save): Add extra one parameter WRITER. Make it static.
9471 Use WRITER to writer trace.
9472 (tfile_trace_file_writer_new): New.
9473 (trace_save_command): Caller update.
9474 (trace_save_tfile): Write trace data in TFILE format.
9475 * tracepoint.h (struct trace_frame_write_ops): New.
9476 (struct trace_file_write_ops): New.
9477 (struct trace_file_writer): New.
9478 (trace_save): Remove its declaration.
9479 (trace_save_tfile): Declare it.
9480 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9481 instead of trace_save.
9482
58665b40
PA
94832013-03-13 Pedro Alves <palves@redhat.com>
9484
9485 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9486
10217050
PA
94872013-03-13 Pedro Alves <palves@redhat.com>
9488
9489 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9490 commented out code.
9491 * demangle.c (current_demangling_style_string): Make it const.
9492 (set_demangling_command): Assert the demangling style is known.
9493 Remove all handling of unknown styles. Set
9494 'current_demangling_style_string' to an element of the
9495 demangling_style_names array.
9496 (set_demangling_style): Delete.
9497 (_initialize_demangler): Set current_demangling_style_string to the
9498 element of the demangling_style_names array that corresponds to
9499 the default demangling style. Remove FIXME note. Don't call
9500 set_demangling_style.
9501 * gdb-demangle.h (set_demangling_style): Remove declaration.
9502
6f937416
PA
95032013-03-13 Pedro Alves <palves@redhat.com>
9504
9505 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9506 fields const.
9507 (ada_make_symbol_completion_list): Make "text0" parameter const.
9508 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9509 * breakpoint.c (condition_completer): Make "text" and "word"
9510 parameters const. Adjust.
9511 (check_tracepoint_command): Adjust to validate_actionline
9512 prototype change.
9513 (catch_syscall_completer): Make "text" and "word" parameters
9514 const.
9515 * cli/cli-cmds.c (show_user): Make "comname" local const.
9516 (valid_command_p): Make "command" parameter const.
9517 (alias_command): Make "alias_prefix" and "command_prefix" locals
9518 const.
9519 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9520 (add_alias_cmd): Make "name" and "oldname" parameters const.
9521 Adjust. No longer make copy of OLDNAME.
9522 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9523 (add_setshow_cmd_full, add_setshow_enum_cmd)
9524 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9525 (add_setshow_filename_cmd, add_setshow_string_cmd)
9526 (add_setshow_string_noescape_cmd)
9527 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9528 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9529 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9530 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9531 Make "name" parameter const.
9532 (help_cmd): Rename "command" parameter to "arg". New const local
9533 "command".
9534 (find_cmd): Make "command" parameter const.
9535 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9536 deprecated_cmd_warning prototype change.
9537 (undef_cmd_error): Make "cmdtype" parameter const.
9538 (lookup_cmd): Make "line" parameter const.
9539 (deprecated_cmd_warning): Change type of "text" parameter to
9540 pointer to const char, from pointer to pointer to char. Adjust.
9541 (lookup_cmd_composition): Make "text" parameter const.
9542 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9543 parameters const.
9544 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9545 const.
9546 * cli/cli-script.c (validate_comname): Make "tem" local const.
9547 (define_command): New const local "tem_c". Use it in calls to
9548 lookup_cmd.
9549 (document_command): Make "tem" and "comfull" locals const.
9550 (show_user_1): Make "prefix" and "name" parameters const.
9551 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9552 const.
9553 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9554 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9555 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9556 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9557 (complete_on_enum, add_setshow_enum_cmd)
9558 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9559 (add_setshow_filename_cmd, add_setshow_string_cmd)
9560 (add_setshow_string_noescape_cmd)
9561 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9562 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9563 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9564 Change prototypes, constifying strings.
9565 * completer.c (noop_completer, filename_completer): Make "text"
9566 and "prefix" parameters const.
9567 (location_completer, expression_completer)
9568 (complete_line_internal): Make "text" and "prefix" parameters
9569 const and adjust.
9570 (command_completer, signal_completer): Make "text" and "prefix"
9571 parameters const.
9572 * completer.h (noop_completer, filename_completer)
9573 (expression_completer, location_completer, command_completer)
9574 (signal_completer): Change prototypes.
9575 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9576 parameters const.
9577 * cp-abi.c (cp_abi_completer): Likewise.
9578 * expression.h (parse_expression_for_completion): Change
9579 prototype.
9580 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9581 parameters const.
9582 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9583 * infrun.c (handle_completer): Make "text" and "word" parameters
9584 const.
9585 * interps.c (interpreter_completer): Make "text" and "word"
9586 parameters const.
9587 * language.h (struct language_defn)
9588 <la_make_symbol_completion_list>: Make "text" and "word"
9589 parameters const.
9590 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9591 (parse_exp_in_context): Rename to ...
9592 (parse_exp_in_context_1): ... this.
9593 (parse_exp_in_context): Reimplement, with const hack from
9594 parse_exp_1.
9595 (parse_expression_for_completion): Make "string" parameter const.
9596 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9597 to pointer to const char. Adjust.
9598 (print_command_1): Make "exp" parameter const.
9599 (output_command): Rename to ...
9600 (output_command_const): ... this. Make "exp" parameter const.
9601 (output_command): Reimplement.
9602 (x_command): Adjust.
9603 (display_command): Rename "exp" parameter to "arg". New "exp"
9604 local, const version of "arg".
9605 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9606 "cmd_name" local const.
9607 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9608 call.
9609 (cmdpy_completer): Make "text" and "word" parameters const.
9610 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9611 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9612 const.
9613 * remote.c (_initialize_remote): Make "cmd_name" local const.
9614 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9615 parameters const. Adjust.
9616 (completion_list_add_fields): Make "sym_text", "text" and "word"
9617 parameters const.
9618 (struct add_name_data) <sym_text, text, word>: Make fields const.
9619 (default_make_symbol_completion_list_break_on): Make "text" and
9620 "word" parameters const. Adjust locals.
9621 (default_make_symbol_completion_list)
9622 (make_symbol_completion_list, make_symbol_completion_type)
9623 (make_symbol_completion_list_fn): Make "text" and "word"
9624 parameters const.
9625 (make_file_symbol_completion_list): Make "text", "word" and
9626 "srcfile" parameters const. Adjust locals.
9627 (add_filename_to_list): Make "text" and "word" parameters const.
9628 (struct add_partial_filename_data) <text, word>: Make fields
9629 const.
9630 (make_source_files_completion_list): Make "text" and "word"
9631 parameters const.
9632 * symtab.h (default_make_symbol_completion_list_break_on)
9633 (default_make_symbol_completion_list, make_symbol_completion_list)
9634 (make_symbol_completion_type enum type_code)
9635 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9636 (make_source_files_completion_list): Change prototype.
9637 * top.c (execute_command): Adjust to pass pointer to pointer to
9638 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9639 change.
9640 (set_verbose): Make "cmdname" local const.
9641 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9642 and adjust.
9643 (validate_actionline): Make "line" parameter a pointer to const
9644 char, and adjust.
9645 (encode_actions_1): Make "action_exp" local const, and adjust.
9646 (encode_actions): Adjust.
9647 (replace_comma): Delete.
9648 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9649 const, and adjust. Don't frob the action string while splitting
9650 it at commas. Instead, make a copy of each split substring in
9651 turn.
9652 (trace_dump_command): Adjust to validate_actionline prototype
9653 change.
9654 * tracepoint.h (decode_agent_options, decode_agent_options)
9655 (encode_actions, validate_actionline): Change prototypes.
9656 * valprint.h (output_command): Delete declaration.
9657 (output_command_const): Declare.
9658 * value.c (function_destroyer): Cast const away in xfree call.
9659
a0bcdaa7
PA
96602013-03-13 Pedro Alves <palves@redhat.com>
9661
9662 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9663 rather than casting 'const char * const *' to 'const char **'.
9664 * ada-lex.l (processInt): Make "trailer" local const. Remove
9665 'const char **' cast.
9666 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9667 locals, and use those as strtol output pointer, instead than doing
9668 invalid casts to from 'const char **' to 'char **'.
9669 (_initialize_demangle): Remove cast.
9670 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9671 locals, and use those as strtol output pointer, instead than doing
9672 invalid casts to from 'const char **' to 'char **'.
9673 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9674 casts.
9675 * stap-probe.c (stap_parse_register_operand)
9676 (stap_parse_single_operand): Likewise.
9677
8ddb1965
YQ
96782013-03-13 Yao Qi <yao@codesourcery.com>
9679
9680 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9681 the last matched 'V' blcok in trace frame.
9682
2d450646
JB
96832013-03-12 Joel Brobecker <brobecker@adacore.com>
9684
9685 * NEWS: Create a new section for the next release branch.
9686 Rename the section of the current branch, now that it has
9687 been cut.
9688
b4b79973 96892013-03-12 Joel Brobecker <brobecker@adacore.com>
9690
9691 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9692 * version.in: Bump version to 7.6.50.20130312-cvs.
9693
ee047554
KS
96942013-03-12 Keith Seitz <keiths@redhat.com>
9695
9696 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9697 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9698 Remove temporary copy of input string.
9699 (mi_execute_command_wrapper): Make "cmd" const.
9700 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9701 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9702 Use const strings.
9703 (mi_parse): Make "cmd" const.
9704 Use const strings.
9705 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9706
bbc13ae3
KS
97072013-03-12 Keith Seitz <keiths@redhat.com>
9708
9709 * ada-lang.c (ada_read_renaming_var_value): Pass const
9710 pointer to expression string to parse_exp_1.
9711 (create_excep_cond_exprs): Likewise.
9712 * ax-gdb.c (agent_eval_command_one): Likewise.
9713 (maint_agent_printf_command): Likewise.
9714 Constify much of the string handling/parsing.
9715 * breakpoint.c (set_breakpoint_condition): Pass const
9716 pointer to expression string to parse_exp_1.
9717 (update_watchpoint): Likewise.
9718 (parse_cmd_to_aexpr): Constify string handling.
9719 Pass const pointer to parse_exp_1.
9720 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9721 (find_condition_and_thread): Likewise.
9722 Make TOK const.
9723 (watch_command_1): Make "arg" const.
9724 Constify string handling.
9725 Copy the expression string instead of changing the input
9726 string.
9727 (update_breakpoint_location): Pass const pointer to
9728 parse_exp_1.
9729 * eval.c (parse_and_eval_address): Make "exp" const.
9730 (parse_to_comma_and_eval): Make "expp" const.
9731 (parse_and_eval): Make "exp" const.
9732 * expression.h (parse_expression): Make argument const.
9733 (parse_exp_1): Make first argument const.
9734 * findcmd.c (parse_find_args): Treat "args" as const.
9735 * linespec.c (parse_linespec): Pass const pointer to
9736 linespec_expression_to_pc.
9737 (linespec_expression_to_pc): Make "exp_ptr" const.
9738 * parse.c (parse_exp_1): Make "stringptr" const.
9739 Make a copy of the expression to pass to parse_exp_in_context until
9740 this whole interface can be constified.
9741 (parse_expression): Make "string" const.
9742 * printcmd.c (ui_printf): Treat "arg" as const.
9743 Handle const strings.
9744 * tracepoint.c (validate_actionline): Pass const pointer to
9745 all calls to parse_exp_1.
9746 (encode_actions_1): Likewise.
9747 * value.h (parse_to_comma_and_eval): Make argument const.
9748 (parse_and_eval_address): Likewise.
9749 (parse_and_eval): Likewise.
9750 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9751 (varobj_set_value): Likewise.
9752 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9753 constify string handling.
9754 Pass const pointers to parse_and_eval_address and
9755 parse_to_comman_and_eval.
9756 * cli/cli-utils.c (skip_to_space): Rename to ...
9757 (skip_to_space_const): ... this. Handle const strings.
9758 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9759 skip_to_space_const.
9760 (skip_to_space_const): Declare.
9761 * common/format.c (parse_format_string): Make "arg" const.
9762 Handle const strings.
9763 * common/format.h (parse_format_string): Make "arg" const.
9764 * gdbserver/ax.c (ax_printf): Make "format" const.
9765 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9766 of the expression string.
9767
f3cec7e6
HZ
97682013-03-12 Hui Zhu <hui@codesourcery.com>
9769
9770 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9771
9df7235c
HZ
97722013-03-12 Yao Qi <yao@codesourcery.com>
9773 Hui Zhu <hui@codesourcery.com>
9774
9775 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9776 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9777 DW_OP_deref_size.
9778
82d049ab
PH
97792013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9780
5f8e0b8f
MF
9781 * ada-lex.l (rules): Only recognize 'thread' as a
9782 delimiter when followed by numerals, as for c-exp.y.
9783 Use new rewind_to_char function to rewind the input for
9784 expression-delimiting tokens.
9785 (rewind_to_char): New function.
82d049ab 9786
8c1fb155
JK
97872013-03-11 Pedro Alves <palves@redhat.com>
9788 Jan Kratochvil <jan.kratochvil@redhat.com>
9789
9790 * configure: Regenerate.
9791 * configure.ac (check dynamic export flag): Link python test with
9792 $PYTHON_LIBS.
9793
cc81e1c6
DE
97942013-03-11 Doug Evans <dje@google.com>
9795 Keith Seitz <keiths@redhat.com>
9796
9797 * linespec.c (find_linespec_symbols): Call find_function_symbols
9798 first, and then call lookup_prefix_sym/find_method.
9799
39086a0e
PA
98002013-03-11 Pedro Alves <palves@redhat.com>
9801
9802 * charset.c (convert_between_encodings): Don't cast between
9803 different pointer to pointer types. Instead, make the 'inp' local
9804 be of the type iconv expects.
9805 (wchar_iterate): Don't cast between different pointer to pointer
9806 types. Instead, use new pointer local of the type iconv expects.
9807 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9808 Add new local of type char pointer, and use it to get a
9809 char/string view of the byte buffer, instead of casting between
9810 pointer to pointer types.
9811
90585175
HAQ
98122013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9813
9814 * remote.c (remote_set_trace_buffer_size): Move != operator
9815 to the start of next line to fix an ARI warning.
9816
59ea5688
MM
98172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9818
9819 * NEWS: Add record changes.
9820
946287b7
MM
98212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9822
9823 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9824 the instruction history disassembly.
9825 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9826 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9827
afedecd3
MM
98282013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9829
9830 * Makefile.in (SFILES): Add record-btrace.c
9831 (COMMON_OBS): Add record-btrace.o
9832 * record-btrace.c: New.
9833 * objfiles.c: Include btrace.h.
9834 (free_objfile): call btrace_free_objfile.
9835
15984c13
MM
98362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9837
9838 * target.c (target_call_history, target_call_history_from,
9839 target_call_history_range): New.
9840 * target.h (target_ops) <to_call_history, to_call_history_from,
9841 to_call_history_range>: New fields.
9842 (target_call_history, target_call_history_from,
9843 target_call_history_range): New declaration.
9844 * record.c (get_call_history_modifiers, cmd_record_call_history,
9845 record_call_history_size): New.
9846 (_initialize_record): Add the "record function-call-history" command.
9847 Add "set/show record function-call-history-size" commands.
9848 * record.h (record_print_flag): New.
9849
67c86d06
MM
98502013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9851
9852 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9853 to_insn_history_range>: New fields.
9854 (target_insn_history): New.
9855 (target_insn_history_from): New.
9856 (target_insn_history_range): New.
9857 * target.c (target_insn_history): New.
9858 (target_insn_history_from): New.
9859 (target_insn_history_range): New.
9860 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9861 (record_insn_history_size): New.
9862 (get_insn_number): New.
9863 (get_context_size): New.
9864 (no_chunk): New.
9865 (get_insn_history_modifiers): New.
9866 (cmd_record_insn_history): New.
9867 (_initialize_record): Add "set/show record instruction-history-size"
9868 command. Add "record instruction-history" command.
9869
7c1687a9
MM
98702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9871
9872 * record.h (record_disconnect): New.
9873 (record_detach): New.
9874 (record_mourn_inferior): New.
9875 (record_kill): New.
9876 * record-full.c (record_disconnect, record_detach,
9877 record_mourn_inferior, record_kill): Move to...
9878 * record.c: ...here.
9879 (DEBUG): New.
9880 (record_stop): New.
9881 (record_unpush): New.
9882 (cmd_record_stop): Call record_stop. Replace unpush_target
9883 call with record_unpush call.
9884 (record_disconnect, record_detach): Assert that the target
9885 is of record stratum. Call record_unpush, record_stop, and
9886 DEBUG.
9887 (record_mourn_inferior, record_kill): Assert that the target
9888 is of record stratum. Call record_unpush and DEBUG.
9889
25ea693b
MM
98902013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9891
9892 * record-full.h, record-full.c (record_memory_query): Rename
9893 to ...
9894 (record_full_memory_query): ...this. Update all users.
9895 (record_arch_list_add_reg): Rename to ...
9896 (record_full_arch_list_add_reg): ...this. Update all users.
9897 (record_arch_list_add_mem): Rename to ...
9898 (record_full_arch_list_add_mem): ...this. Update all users.
9899 (record_arch_list_add_end): Rename to ...
9900 (record_full_arch_list_add_end): ...this. Update all users.
9901 (record_gdb_operation_disable_set): Rename to ...
9902 (record_full_gdb_operation_disable_set): ...this.
9903 Update all users.
9904
88d1aa9d
MM
99052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9906
9907 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9908 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9909 (RECORD_IS_REPLAY): Renamed to ...
9910 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9911 (RECORD_FILE_MAGIC): Renamed to ...
9912 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9913 (record_mem_entry): Renamed to ...
9914 (record_full_mem_entry): ... this. Updated all users.
9915 (record_reg_entry): Renamed to ...
9916 (record_full_reg_entry): ... this. Updated all users.
9917 (record_end_entry): Renamed to ...
9918 (record_full_end_entry): ... this. Updated all users.
9919 (record_type) <record_end, record_reg, record_mem>: Renamed
9920 to ...
9921 (record_full_type) <record_full_end, record_full_reg,
9922 record_full_mem>: ... this. Updated all users.
9923 (record_entry): Renamed to ...
9924 (record_full_entry): ... this. Updated all users.
9925 (record_core_buf_entry): Renamed to ...
9926 (record_full_core_buf_entry): ... this. Updated all users.
9927 (record_core_regbuf): Renamed to ...
9928 (record_full_core_regbuf): ... this. Updated all users.
9929 (record_core_start): Renamed to ...
9930 (record_full_core_start): ... this. Updated all users.
9931 (record_core_end): Renamed to ...
9932 (record_full_core_end): ... this. Updated all users.
9933 (record_core_buf_list): Renamed to ...
9934 (record_full_core_buf_list): ... this. Updated all users.
9935 (record_first): Renamed to ...
9936 (record_full_first): ... this. Updated all users.
9937 (record_list): Renamed to ...
9938 (record_full_list): ... this. Updated all users.
9939 (record_arch_list_head): Renamed to ...
9940 (record_full_arch_list_head): ... this. Updated all users.
9941 (record_arch_list_tail): Renamed to ...
9942 (record_full_arch_list_tail): ... this. Updated all users.
9943 (record_stop_at_limit): Renamed to ...
9944 (record_full_stop_at_limit): ... this. Updated all users.
9945 (record_insn_max_num): Renamed to ...
9946 (record_full_insn_max_num): ... this. Updated all users.
9947 (record_insn_num): Renamed to ...
9948 (record_full_insn_num): ... this. Updated all users.
9949 (record_insn_count): Renamed to ...
9950 (record_full_insn_count): ... this. Updated all users.
9951 (record_ops): Renamed to ...
9952 (record_full_ops): ... this. Updated all users.
9953 (record_core_ops): Renamed to ...
9954 (record_full_core_ops): ... this. Updated all users.
9955 (set_record_cmdlist): Renamed to ...
9956 (set_record_full_cmdlist): ... this. Updated all users.
9957 (show_record_cmdlist): Renamed to ...
9958 (show_record_full_cmdlist): ... this. Updated all users.
9959 (record_cmdlist): Renamed to ...
9960 (record_full_cmdlist): ... this. Updated all users.
9961 (record_beneath_to_resume_ops): Renamed to ...
9962 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9963 (record_beneath_to_resume): Renamed to ...
9964 (record_full_beneath_to_resume): ... this. Updated all users.
9965 (record_beneath_to_wait_ops): Renamed to ...
9966 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9967 (record_beneath_to_wait): Renamed to ...
9968 (record_full_beneath_to_wait): ... this. Updated all users.
9969 (record_beneath_to_store_registers_ops): Renamed to ...
9970 (record_full_beneath_to_store_registers_ops): ... this.
9971 Updated all users.
9972 (record_beneath_to_store_registers): Renamed to ...
9973 (record_full_beneath_to_store_registers): ... this.
9974 Updated all users.
9975 (record_beneath_to_xfer_partial_ops): Renamed to ...
9976 (record_full_beneath_to_xfer_partial_ops): ... this.
9977 Updated all users.
9978 (record_beneath_to_xfer_partial): Renamed to ...
9979 (record_full_beneath_to_xfer_partial): ... this.
9980 Updated all users.
9981 (record_beneath_to_insert_breakpoint): Renamed to ...
9982 (record_full_beneath_to_insert_breakpoint): ... this.
9983 Updated all users.
9984 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9985 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9986 Updated all users.
9987 (record_beneath_to_stopped_data_address): Renamed to ...
9988 (record_full_beneath_to_stopped_data_address): ... this.
9989 Updated all users.
9990 (record_beneath_to_async): Renamed to ...
9991 (record_full_beneath_to_async): ... this. Updated all users.
9992 (record_goto_insn): Renamed to ...
9993 (record_full_goto_insn): ... this. Updated all users.
9994 (record_save): Renamed to ...
9995 (record_full_save): ... this. Updated all users.
9996 (record_reg_alloc): Renamed to ...
9997 (record_full_reg_alloc): ... this. Updated all users.
9998 (record_reg_release): Renamed to ...
9999 (record_full_reg_release): ... this. Updated all users.
10000 (record_mem_alloc): Renamed to ...
10001 (record_full_mem_alloc): ... this. Updated all users.
10002 (record_mem_release): Renamed to ...
10003 (record_full_mem_release): ... this. Updated all users.
10004 (record_end_alloc): Renamed to ...
10005 (record_full_end_alloc): ... this. Updated all users.
10006 (record_end_release): Renamed to ...
10007 (record_full_end_release): ... this. Updated all users.
10008 (record_entry_release): Renamed to ...
10009 (record_full_entry_release): ... this. Updated all users.
10010 (record_list_release): Renamed to ...
10011 (record_full_list_release): ... this. Updated all users.
10012 (record_list_release_following): Renamed to ...
10013 (record_full_list_release_following): ... this.
10014 Updated all users.
10015 (record_list_release_first): Renamed to ...
10016 (record_full_list_release_first): ... this. Updated all users.
10017 (record_arch_list_add): Renamed to ...
10018 (record_full_arch_list_add): ... this. Updated all users.
10019 (record_get_loc): Renamed to ...
10020 (record_full_get_loc): ... this. Updated all users.
10021 (record_check_insn_num): Renamed to ...
10022 (record_full_check_insn_num): ... this. Updated all users.
10023 (record_arch_list_cleanups): Renamed to ...
10024 (record_full_arch_list_cleanups): ... this. Updated all users.
10025 (record_message): Renamed to ...
10026 (record_full_message): ... this. Updated all users.
10027 (record_message_wrapper): Renamed to ...
10028 (record_full_message_wrapper): ... this. Updated all users.
10029 (record_message_wrapper_safe): Renamed to ...
10030 (record_full_message_wrapper_safe): ... this. Updated all users.
10031 (record_gdb_operation_disable): Renamed to ...
10032 (record_full_gdb_operation_disable): ... this. Updated all users.
10033 (record_hw_watchpoint): Renamed to ...
10034 (record_full_hw_watchpoint): ... this. Updated all users.
10035 (record_exec_insn): Renamed to ...
10036 (record_full_exec_insn): ... this. Updated all users.
10037 (record_restore): Renamed to ...
10038 (record_full_restore): ... this. Updated all users.
10039 (record_async_inferior_event_token): Renamed to ...
10040 (record_full_async_inferior_event_token): ... this.
10041 Updated all users.
10042 (record_async_inferior_event_handler): Renamed to ...
10043 (record_full_async_inferior_event_handler): ... this.
10044 Updated all users.
10045 (record_core_open_1): Renamed to ...
10046 (record_full_core_open_1): ... this. Updated all users.
10047 (record_open_1): Renamed to ...
10048 (record_full_open_1): ... this. Updated all users.
10049 (record_open): Renamed to ...
10050 (record_full_open): ... this. Updated all users.
10051 (record_close): Renamed to ...
10052 (record_full_close): ... this. Updated all users.
10053 (record_resume_step): Renamed to ...
10054 (record_full_resume_step): ... this. Updated all users.
10055 (record_resumed): Renamed to ...
10056 (record_full_resumed): ... this. Updated all users.
10057 (record_execution_dir): Renamed to ...
10058 (record_full_execution_dir): ... this. Updated all users.
10059 (record_resume): Renamed to ...
10060 (record_full_resume): ... this. Updated all users.
10061 (record_get_sig): Renamed to ...
10062 (record_full_get_sig): ... this. Updated all users.
10063 (record_sig_handler): Renamed to ...
10064 (record_full_sig_handler): ... this. Updated all users.
10065 (record_wait_cleanups): Renamed to ...
10066 (record_full_wait_cleanups): ... this. Updated all users.
10067 (record_wait_1): Renamed to ...
10068 (record_full_wait_1): ... this. Updated all users.
10069 (record_wait): Renamed to ...
10070 (record_full_wait): ... this. Updated all users.
10071 (record_stopped_by_watchpoint): Renamed to ...
10072 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10073 (record_disconnect): Renamed to ...
10074 (record_full_disconnect): ... this. Updated all users.
10075 (record_detach): Renamed to ...
10076 (record_full_detach): ... this. Updated all users.
10077 (record_mourn_inferior): Renamed to ...
10078 (record_full_mourn_inferior): ... this. Updated all users.
10079 (record_kill): Renamed to ...
10080 (record_full_kill): ... this. Updated all users.
10081 (record_stopped_data_address): Renamed to ...
10082 (record_full_stopped_data_address): ... this. Updated all users.
10083 (record_registers_change): Renamed to ...
10084 (record_full_registers_change): ... this. Updated all users.
10085 (record_store_registers): Renamed to ...
10086 (record_full_store_registers): ... this. Updated all users.
10087 (record_xfer_partial): Renamed to ...
10088 (record_full_xfer_partial): ... this. Updated all users.
10089 (record_breakpoint): Renamed to ...
10090 (record_full_breakpoint): ... this. Updated all users.
10091 (record_breakpoint_p): Renamed to ...
10092 (record_full_breakpoint_p): ... this. Updated all users.
10093 (record_breakpoints): Renamed to ...
10094 (record_full_breakpoints): ... this. Updated all users.
10095 (record_sync_record_breakpoints): Renamed to ...
10096 (record_full_sync_record_breakpoints): ... this.
10097 Updated all users.
10098 (record_init_record_breakpoints): Renamed to ...
10099 (record_full_init_record_breakpoints): ... this.
10100 Updated all users.
10101 (record_insert_breakpoint): Renamed to ...
10102 (record_full_insert_breakpoint): ... this. Updated all users.
10103 (record_remove_breakpoint): Renamed to ...
10104 (record_full_remove_breakpoint): ... this. Updated all users.
10105 (record_can_execute_reverse): Renamed to ...
10106 (record_full_can_execute_reverse): ... this. Updated all users.
10107 (record_get_bookmark): Renamed to ...
10108 (record_full_get_bookmark): ... this. Updated all users.
10109 (record_goto_bookmark): Renamed to ...
10110 (record_full_goto_bookmark): ... this. Updated all users.
10111 (record_async): Renamed to ...
10112 (record_full_async): ... this. Updated all users.
10113 (record_can_async_p): Renamed to ...
10114 (record_full_can_async_p): ... this. Updated all users.
10115 (record_is_async_p): Renamed to ...
10116 (record_full_is_async_p): ... this. Updated all users.
10117 (record_execution_direction): Renamed to ...
10118 (record_full_execution_direction): ... this. Updated all users.
10119 (record_info): Renamed to ...
10120 (record_full_info): ... this. Updated all users.
10121 (record_delete): Renamed to ...
10122 (record_full_delete): ... this. Updated all users.
10123 (record_is_replaying): Renamed to ...
10124 (record_full_is_replaying): ... this. Updated all users.
10125 (record_goto_entry): Renamed to ...
10126 (record_full_goto_entry): ... this. Updated all users.
10127 (record_goto_begin): Renamed to ...
10128 (record_full_goto_begin): ... this. Updated all users.
10129 (record_goto_end): Renamed to ...
10130 (record_full_goto_end): ... this. Updated all users.
10131 (record_goto): Renamed to ...
10132 (record_full_goto): ... this. Updated all users.
10133 (init_record_ops): Renamed to ...
10134 (init_record_full_ops): ... this. Updated all users.
10135 (record_core_resume): Renamed to ...
10136 (record_full_core_resume): ... this. Updated all users.
10137 (record_core_kill): Renamed to ...
10138 (record_full_core_kill): ... this. Updated all users.
10139 (record_core_fetch_registers): Renamed to ...
10140 (record_full_core_fetch_registers): ... this. Updated all users.
10141 (record_core_prepare_to_store): Renamed to ...
10142 (record_full_core_prepare_to_store): ... this. Updated all users.
10143 (record_core_store_registers): Renamed to ...
10144 (record_full_core_store_registers): ... this. Updated all users.
10145 (record_core_xfer_partial): Renamed to ...
10146 (record_full_core_xfer_partial): ... this. Updated all users.
10147 (record_core_insert_breakpoint): Renamed to ...
10148 (record_full_core_insert_breakpoint): ... this. Updated all users.
10149 (record_core_remove_breakpoint): Renamed to ...
10150 (record_full_core_remove_breakpoint): ... this. Updated all users.
10151 (record_core_has_execution): Renamed to ...
10152 (record_full_core_has_execution): ... this. Updated all users.
10153 (init_record_core_ops): Renamed to ...
10154 (init_record_full_core_ops): ... this. Updated all users.
10155 (cmd_record_restore): Renamed to ...
10156 (cmd_record_full_restore): ... this. Updated all users.
10157 (record_save_cleanups): Renamed to ...
10158 (record_full_save_cleanups): ... this. Updated all users.
10159 (cmd_record_start): Renamed to ...
10160 (cmd_record_full_start): ... this. Updated all users.
10161 (set_record_insn_max_num): Renamed to ...
10162 (set_record_full_insn_max_num): ... this. Updated all users.
10163 (set_record_command): Renamed to ...
10164 (set_record_full_command): ... this. Updated all users.
10165 (show_record_command): Renamed to ...
10166 (show_record_full_command): ... this. Updated all users.
10167 (_initialize_record): Renamed to ...
10168 (_initialize_record_full): ... this. Updated all users.
10169
d02ed0bb
MM
101702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10171
10172 * record.h: Split into this and ...
10173 * record-full.h: ... this.
10174 * record.c: Split into this and ...
10175 * record-full.c: ... this.
10176 * target.h (target_ops): Add new fields to_info_record,
10177 to_save_record, to_delete_record, to_record_is_replaying,
10178 to_goto_record_begin, to_goto_record_end, to_goto_record.
10179 (target_info_record): New.
10180 (target_save_record): New.
10181 (target_supports_delete_record): New.
10182 (target_delete_record): New.
10183 (target_record_is_replaying): New.
10184 (target_goto_record_begin): New.
10185 (target_goto_record_end): New.
10186 (target_goto_record): New.
10187 * target.c (target_info_record): New.
10188 (target_save_record): New.
10189 (target_supports_delete_record): New.
10190 (target_delete_record): New.
10191 (target_record_is_replaying): New.
10192 (target_goto_record_begin): New.
10193 (target_goto_record_end): New.
10194 (target_goto_record): New.
10195 * record.h: Declare struct cmd_list_element.
10196 (record_cmdlist): New declaration.
10197 (set_record_cmdlist): New declaration.
10198 (show_record_cmdlist): New declaration.
10199 (info_record_cmdlist): New declaration.
10200 (cmd_record_goto): New declaration.
10201 * record.c: Remove unnecessary includes.
10202 Include inferior.h.
10203 (cmd_record_goto): Remove declaration.
10204 (record_cmdlist): Now extern. Initialize.
10205 (set_record_cmdlist): Now extern. Initialize.
10206 (show_record_cmdlist): Now extern. Initialize.
10207 (info_record_cmdlist): Now extern. Initialize.
10208 (find_record_target): New.
10209 (require_record_target): New.
10210 (cmd_record_start): Update.
10211 (cmd_record_delete): Remove target-specific code.
10212 Call target_delete_record.
10213 (cmd_record_stop): Unpush any record target.
10214 (set_record_insn_max_num): Move to record-full.c
10215 (set_record_command): Add comment.
10216 (show_record_command): Add comment.
10217 (info_record_command): Update comment.
10218 Remove target-specific code.
10219 Call the record target's to_info_record.
10220 (cmd_record_start): New.
10221 (cmd_record_goto): Now extern.
10222 Remove target-specific code.
10223 Call target_goto_begin, target_goto_end, or target_goto.
10224 (_initialize_record): Move record target ops initialization to
10225 record-full.c.
10226 Change "record" command help text.
10227 Move "record restore", "record set", and "record show" commands to
10228 record-full.c.
10229 * Makefile.in (SFILES): Add record-full.c.
10230 (HFILES_NO_SRCDIR): Add record-full.h.
10231 (COMMON_OBS): Add record-full.o.
10232 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10233 * arm-tdep.c: Include record-full.h.
10234 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10235 * i386-tdep.c: Include record-full.h.
10236 * infrun.c: Include record-full.h.
10237 * linux-record.c: Include record-full.h.
10238 * moxie-tdep.c: Include record-full.h.
10239 * record-full.c: Include record-full.h.
10240 Change module comment.
10241 (set_record_full_cmdlist): New.
10242 (show_record_full_cmdlist): New.
10243 (record_full_cmdlist): New.
10244 (record_goto_insn): New declaration.
10245 (record_save): New declaration.
10246 (record_check_insn_num): Change query string.
10247 (record_info): New.
10248 (record_delete): New.
10249 (record_is_replaying): New.
10250 (record_goto_entry): New.
10251 (record_goto_begin): New.
10252 (record_goto_end): New.
10253 (record_goto): New.
10254 (init_record_ops): Update.
10255 (init_record_core_ops): Update.
10256 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10257 (cmd_record_start): New.
10258 (set_record_insn_max_num): Moved from record.c
10259 (set_record_full_command): New.
10260 (show_record_full_command): New.
10261 (_initialize_record_full): New.
10262
b48d48eb
MM
102632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10264
10265 * target.h (add_deprecated_target_alias): New.
10266 * target.c (add_deprecated_target_alias): New.
10267
a950d57c
MM
102682013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10269
10270 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10271 and signal.h.
10272 (linux_supports_btrace): Add kernel and
10273 cpuid check.
10274 (kernel_supports_btrace): New function.
10275 (cpu_supports_btrace): New function.
10276 (intel_supports_btrace): New function.
10277
9accd112
MM
102782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10279
10280 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10281 * remote.c: Include btrace.h.
10282 (struct btrace_target_info): New struct.
10283 (remote_supports_btrace): New function.
10284 (send_Qbtrace): New function.
10285 (remote_enable_btrace): New function.
10286 (remote_disable_btrace): New function.
10287 (remote_teardown_btrace): New function.
10288 (remote_read_btrace): New function.
10289 (init_remote_ops): Add btrace ops.
10290 (enum <unnamed>): Add btrace packets.
10291 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10292 (_initialize_remote): Add packet configuration for branch tracing.
10293
c12a2917
MM
102942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10295
10296 * features/btrace.dtd: New file.
10297 * Makefile.in (XMLFILES): Add btrace.dtd.
10298 * btrace.h (parse_xml_btrace): New declaration.
10299 * btrace.c: Include xml-support.h.
10300 (parse_xml_btrace): New function.
10301 (parse_xml_btrace_block): New function.
10302 (block_attributes): New struct.
10303 (btrace_attributes): New struct.
10304 (btrace_children): New struct.
10305 (btrace_elements): New struct.
10306
3e3aea48
MM
103072013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10308
10309 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10310 (amd64_linux_enable_btrace): New.
10311 (amd64_linux_disable_btrace): New.
10312 (amd64_linux_teardown_btrace): New.
10313 (_initialize_amd64_linux_nat): Initialize btrace ops.
10314 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10315 (i386_linux_enable_btrace): New.
10316 (i386_linux_disable_btrace): New.
10317 (i386_linux_teardown_btrace): New.
10318 (_initialize_i386_linux_nat): Initialize btrace ops.
10319 * config/i386/linux.mh: Add linux-btrace.o.
10320 * config/i386/linux64.mh: Add linux-btrace.o.
10321
7c97f91e
MM
103222013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10323
10324 * common/linux_btrace.h: New file.
10325 * common/linux_btrace.c: New file.
10326 * Makefile.in (SFILES): Add btrace.c.
10327 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10328 (COMMON_OBS): Add btrace.o.
10329 (linux-btrace.o): New rule.
10330
1999790b 103312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10332
10333 * target.h: Include btrace.h.
10334 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10335 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10336 * target.c (target_supports_btrace): New function.
10337 (target_enable_btrace): New function.
10338 (target_disable_btrace): New function.
10339 (target_teardown_btrace): New function.
10340 (target_read_btrace): New function.
10341 * btrace.h: New file.
10342 * btrace.c: New file.
10343 * Makefile.in: Add btrace.c.
10344 * gdbthread.h: Include btrace.h.
10345 (struct thread_info): Add btrace field.
10346 * thread.c: Include btrace.h.
10347 (clear_thread_inferior_resources): Call target_teardown_btrace.
10348 * common/btrace-common.h: New file.
10349
61a31a67
JK
103502013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10351
10352 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10353 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10354 kill_status to outer block.
10355
05c56a9d
JK
103562013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10357
10358 Fix entry-values if the callee called a noreturn function.
10359 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10360 get_frame_address_in_block. Add new comment.
10361
9112db09
JK
103622013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10363
10364 Fix entry-values in C++ across CUs.
10365 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10366 lookup_minimal_symbol. Add a comment.
10367 * dwarf2read.c
10368 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10369 DW_AT_linkage_name.
10370
9b67fcec
YQ
103712013-03-08 Yao Qi <yao@codesourcery.com>
10372
10373 * tracepoint.c (_initialize_tracepoint): Indent the code.
10374
6221be90
PA
103752013-03-08 Pedro Alves <palves@redhat.com>
10376
10377 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10378 (parse_find_args, find_command): Change type of pattern buffer
10379 locals to 'gdb_byte *'.
10380
be9a119c 103812013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10382 Hafiz Abid Qadeer <abidh@codesourcery.com>
10383
10384 * NEWS: Mention set and show trace-buffer-size commands.
10385 Mention new packet.
10386 * target.h (struct target_ops): New method
10387 to_set_trace_buffer_size.
10388 (target_set_trace_buffer_size): New macro.
10389 * target.c (update_current_target): Set up new method.
10390 * tracepoint.c (trace_buffer_size): New global.
10391 (start_tracing): Send it to the target.
10392 (set_trace_buffer_size): New function.
10393 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10394 * remote.c (remote_set_trace_buffer_size): New function.
10395 (_initialize_remote): Use it.
10396 (QTBuffer:size) New remote command.
10397 (PACKET_QTBuffer_size): New enum.
10398 (remote_protocol_features): Add an entry for
10399 PACKET_QTBuffer_size.
10400
7da3ab79
TT
104012013-03-08 Tom Tromey <tromey@redhat.com>
10402
10403 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10404 variable.
10405
0c1f71e7
PA
104062013-03-07 Pedro Alves <palves@redhat.com>
10407
10408 * target.c (target_read_stralloc, target_fileio_read_alloc):
10409 *Cast pointer to 'gdb_byte *' in target call.
10410
c8af03a2
PA
104112013-03-07 Pedro Alves <palves@redhat.com>
10412
10413 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10414 call.
10415
529480d0
KS
104162013-03-07 Keith Seitz <keiths@redhat.com>
10417
10418 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10419 (trace_pass_command): Likewise.
10420 * cli/cli-cmds.c: Include cli/cli-utils.h.
10421 (source_command): Use skip-spaces.
10422 (disassemble_command): Likewise.
10423 * findcmd.c: Include cli/cli-utils.h.
10424 (parse_find_args): Use skip_spaces.
10425 * go32-nat.c: Include cli/cli-utils.h.
10426 (go32_sldt): Use skip_spaces.
10427 (go32_sgdt): Likewise.
10428 (go32_sidt): Likewise.
10429 (go32_pde): Likewise.
10430 (go32_pte): Likewise.
10431 (go32_pte_for_address): Likewise.
10432 * infcmd.c: Include cli/cli-utils.h.
10433 (registers_info): Use skip_spaces.
10434 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10435 (linux_info_proc): Likewise.
10436 * linux-thread-db.c: Include cli/cli-utils.h.
10437 (info_auto_load_libthread_db): Use skip_spaces_const.
10438 * m32r-rom.c: Include cli/cli-utils.h.
10439 (m32r_upload_command): Use skip_spaces.
10440 * maint.c: Include cli/cli-utils.h.
10441 (maintenance_translate_address): Use skip_spaces.
10442 * mi/mi-parse.c: Include cli/cli-utils.h.
10443 (mi_parse_argv): Use skip_spaces.
10444 (mi_parse): Likewise.
10445 * minsyms.c: Include cli/cli-utils.h.
10446 (msymbol_hash_iw): Use skip_spaces_const.
10447 * objc-lang.c: Include cli/cli-utils.h.
10448 (parse_selector): Use skip_spaces.
10449 (parse_method): Likewise.
10450 * python/python.c: Include cli/cli-utils.h.
10451 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10452 (python_command)[HAVE_PYTHON]: Likewise.
10453 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10454 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10455 (m32r_load): Use skip_spaces.
10456 * serial.c: Include cli/cli-utils.h.
10457 (serial_open): Use skip_spaces_const.
10458 * stack.c: Include cli/cli-utils.h.
10459 (parse_frame_specification_1): Use skip_spaces_const.
10460 * symfile.c: Include cli/cli-utils.h.
10461 (set_ext_lang_command): Use skip_spaces.
10462 * symtab.c: Include cli/cli-utils.h.
10463 (rbreak_command): Use skip_spaces.
10464 * thread.c (thread_name_command): Use skip_spaces.
10465 * tracepoint.c (validate_actionline): Use skip_spaces.
10466 (encode_actions_1): Likewise.
10467 (trace_find_range_command): Likewise.
10468 (trace_find_outside_command): Likewise.
10469 (trace_dump_actions): Likewise.
10470
ac91cd70
PA
104712013-03-07 Pedro Alves <palves@redhat.com>
10472
10473 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10474 * expprint.c (print_subexp_standard): Likewise.
10475 * utils.c (host_char_to_target): Likewise.
10476 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10477 * varobj.c (value_get_print_value): Change type of local to char*.
10478 Cast it gdb_byte * in call to language printer.
10479
2898e560
PA
104802013-03-07 Pedro Alves <palves@redhat.com>
10481
10482 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10483 gdb_byte *'.
10484 (make_wchar_iterator): Remove cast to char*.
10485 (wchar_iterate): Change type of local.
10486
a09b4448
PA
104872013-03-07 Pedro Alves <palves@redhat.com>
10488
10489 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10490 for 'regcache->register_status'.
10491
20ced3e4
PA
104922013-03-07 Pedro Alves <palves@redhat.com>
10493
c2d6a675 10494 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10495 int.
10496
fe106009
PA
104972013-03-07 Pedro Alves <palves@redhat.com>
10498
10499 * stap-probe.c (handle_stap_probe): Add cast to char*.
10500
8ac2c12b
PA
105012013-03-07 Pedro Alves <palves@redhat.com>
10502
10503 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10504 RECORD_MSGRCV>: Pass a signed variable to
10505 regcache_raw_read_signed, instead of an unsigned one.
10506
99f0a309
PA
105072013-03-07 Pedro Alves <palves@redhat.com>
10508
10509 * remote-notif.c (notif_debug): Change type to int.
10510 * remote-notif.h (notif_debug): Likewise.
10511
964b8317
PA
105122013-03-07 Pedro Alves <palves@redhat.com>
10513
10514 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10515
f0cc8ad4
PA
105162013-03-07 Pedro Alves <palves@redhat.com>
10517
10518 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10519 * remote.h (hex2bin, bin2hex): ... here.
10520 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10521
77dec115
EZ
105222013-03-07 Eli Zaretskii <eliz@gnu.org>
10523
10524 * utils.c (initialize_utils): Improve doc strings of "set/show
10525 width", "set/show height", and "set/show pagination".
10526
741d92cf
KS
105272013-03-06 Keith Seitz <keiths@redhat.com>
10528
10529 * ax-gdb.c (gen_printf): Make FORMAT const.
10530 * ax-gdb.h (gen_printf): Likewise.
10531 * ax-general.c (ax_string): Make STR const.
10532 * ax.h (ax_string): Likewise.
10533
7b6c814e
DE
105342013-03-06 Doug Evans <dje@google.com>
10535
10536 * elfread.c (elf_symfile_read): Move debugging printf to more
10537 logical location.
10538
634334ab
PA
105392013-03-06 Pedro Alves <palves@redhat.com>
10540
10541 * python/py-utils.c (target_string_to_unicode): Delete function.
10542 * python/python-internal.h (target_string_to_unicode): Delete
10543 declaration.
10544
e482a1a7
PM
105452013-03-06 Pierre Muller <muller@sourceware.org>
10546
10547 * linespec.c (get_current_search_block): ARI fix, use (void)
10548 for empty parameter list.
10549
4eeaa230
DE
105502013-03-05 Doug Evans <dje@google.com>
10551
10552 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10553 of old ada_lookup_symbol_list. In !full_search case, don't
10554 search superblocks.
10555 (ada_lookup_symbol_list): Delete arg full_search, all callers
10556 updated. Call ada_lookup_symbol_list_worker.
10557 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10558 * ada-lang.h (ada_lookup_symbol_list): Update.
10559 * language.h (language_defn): Update comment for
10560 la_iterate_over_symbols.
10561 * linespec.c (iterate_over_file_blocks): New function.
10562 (iterate_over_all_matching_symtabs): Call it.
10563 (lookup_prefix_sym): Ditto.
10564 (get_current_search_block): New function.
10565 (get_search_block): Delete.
10566 (find_label_symbols): Call get_current_search_block.
10567 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10568 * symtab.c (iterate_over_symbols): Don't search superblocks.
10569
b69b1fb1
YQ
105702013-03-05 Yao Qi <yao@codesourcery.com>
10571
10572 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10573 parameter VAR's type from "unsigned int" to "int".
10574 * command.h (var_zuinteger_unlimited): Update its comments.
10575 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10576
3c095f49
CV
105772013-03-05 Corinna Vinschen <vinschen@redhat.de>
10578
10579 * NEWS: Mention new target x86_64-*-cygwin*.
10580
b5b0b0af
CV
105812013-03-05 Corinna Vinschen <vinschen@redhat.de>
10582
10583 * configure.host: Add x86_64-*-cygwin* as host.
10584 * configure.tgt: Add x86_64-*-cygwin* as target.
10585 * config/i386/cygwin64.mh: New file.
10586
f6f99966
JK
105872013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10588
10589 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10590
33f448b1
JK
105912013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10592
10593 * linespec.c (struct linespec_canonical_name): New.
10594 (struct linespec_state): Change canonical_names type to it.
10595 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10596 xrealloc element size. Initialize the different CANONICAL fields.
10597 (canonical_to_fullform): New.
10598 (filter_results): Use it. Add variables canonical, fullform and
10599 cleanup.
10600 (struct decode_line_2_item, decode_line_2_compare_items): New.
10601 (decode_line_2): Remove variables iter and item_names, add variables
10602 items and items_count. Modify the code for these new variables.
10603
feb14725
CV
106042013-03-04 Corinna Vinschen <vinschen@redhat.com>
10605
10606 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10607 calling do_cleanup.
10608
e83b17ba
HZ
106092013-03-04 Luis Machado <lgustavo@codesourcery.com>
10610
10611 * tracepoint.c (build_traceframe_info): Add code for byte order.
10612
a2d13a0d
KB
106132013-03-02 Kevin Buettner <kevinb@redhat.com>
10614
8dddcae8
KB
10615 * v850-tdep.c: (v850e2_register_name): Revise system register
10616 names to match current V850E2M architecture specifications.
10617 Update register number enum comments too.
f5aee5ee 10618
d79e58d8
JW
106192013-03-01 Jiong Wang <jiwang@tilera.com>
10620 Pedro Alves <palves@redhat.com>
10621
10622 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10623 to END_ADDR.
10624 (tilegx_skip_prologue): Limit prologue analysis to section end.
10625
c4be5165
JK
106262013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10627
10628 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10629 use it.
10630
e362b510
PA
106312013-03-01 Pedro Alves <palves@redhat.com>
10632
10633 Use gdb_byte for bytes from the program being debugged.
10634
10635 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10636 Change type of local 'buf' to gdb_byte.
10637 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10638 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10639 * cris-tdep.c (cris_sigcontext_addr)
10640 (cris_sigtramp_frame_unwind_cache): Likewise.
10641 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10642 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10643 Likewise.
10644 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10645 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10646 (hppa32_hpux_search_dummy_call_sequence)
10647 (hppa_hpux_supply_save_state): Likewise.
10648 * hppa-linux-tdep.c (insns_match_pattern)
10649 (hppa_linux_find_global_pointer): Likewise.
10650 * hppa-tdep.c (hppa_in_function_epilogue_p)
10651 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10652 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10653 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10654 (i386fbsd_collect_uthread): Likewise.
10655 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10656 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10657 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10658 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10659 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10660 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10661 (ia64_libunwind_frame_prev_register)
10662 (ia64_libunwind_sigtramp_frame_this_id)
10663 (ia64_find_global_pointer_from_dynamic_section)
10664 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10665 (ia64_unwind_pc): Likewise.
10666 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10667 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10668 (m68hc11_extract_return_value): Likewise.
10669 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10670 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10671 (mep_get_insn, mep_push_dummy_call): Likewise.
10672 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10673 (mips_linux_in_dynsym_stub): Likewise.
10674 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10675 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10676 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10677 to gdb_byte.
10678 * remote-mips.c (mips_set_register): Likewise.
10679 * remote-sim.c (gdbsim_fetch_register): Likewise.
10680 * score-tdep.c (score7_fetch_inst): Change type of parameter
10681 'memblock' and local 'buf' to gdb_byte.
10682 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10683 Change type of local 'buf' to gdb_byte. Adjust.
10684 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10685 to gdb_byte**.
10686 (score7_analyze_prologue): Change type of 'memblock' and
10687 'memblock_ptr' locals to gdb_byte*.
10688 * sh64-tdep.c (sh64_extract_return_value)
10689 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10690 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10691 * solib-pa64.c (pa64_solib_create_inferior_hook)
10692 (pa64_open_symbol_file_object): Remove local 'buf'.
10693 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10694 (som_open_symbol_file_object): Likewise.
10695 * solib-spu.c (spu_current_sos): Likewise.
10696 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10697 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10698 (spu_store_registers): Likewise.
10699 * target.c (debug_print_register): Likewise.
10700 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10701 * xstormy16-tdep.c (xstormy16_store_return_value)
10702 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10703 (xstormy16_find_jmp_table_entry): Likewise.
10704
75cc61ca 107052013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10706
10707 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10708 (tilegx_gdbarch_init): Install it.
10709
ddb08e9c
TT
107102013-02-28 Tom Tromey <tromey@redhat.com>
10711
10712 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10713 PyLong_Check.
10714
62d7fb51
DE
107152013-02-28 Doug Evans <dje@google.com>
10716
10717 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10718 * python/python.c (gdbpy_find_pc_line): Ditto.
10719
c4a9e8b4
TT
107202013-02-28 Tom Tromey <tromey@redhat.com>
10721
10722 * contrib/excheck.py: New file.
10723 * contrib/exsummary.py: New file.
10724 * contrib/gcc-with-excheck: New file.
10725
7f6a5dde
TT
107262013-02-28 Tom Tromey <tromey@redhat.com>
10727
10728 * python/python.c (gdbpy_print_stack): Call begin_line and
10729 fprintf_filtered inside TRY_CATCH.
10730
9e974e55
TT
107312013-02-28 Tom Tromey <tromey@redhat.com>
10732
10733 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10734 inside TRY_CATCH.
10735
dd5fa3e7
TT
107362013-02-28 Tom Tromey <tromey@redhat.com>
10737
10738 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10739 frame_object_to_frame_info inside TRY_CATCH.
10740
86a3263f
TT
107412013-02-28 Tom Tromey <tromey@redhat.com>
10742
10743 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10744 TRY_CATCH.
10745
81b52a3a
TT
107462013-02-28 Tom Tromey <tromey@redhat.com>
10747
10748 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10749
d50a0ce2
CV
107502013-02-27 Corinna Vinschen <vinschen@redhat.com>
10751
10752 * windows-nat.c: Throughout, fix format strings and casts of
10753 printf-like functions to avoid type related warnings on all
10754 platforms.
10755 (handle_output_debug_string): Fetch context information address
10756 from debug string using string_to_core_addr.
10757
e1f58301
JW
107582013-02-27 Jiong Wang <jiwang@tilera.com>
10759
10760 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10761 * regformats/reg-tilegx32.dat: New.
10762
4fcd89fc
JW
107632013-02-27 Jiong Wang <jiwang@tilera.com>
10764
10765 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10766
748d24e6
JW
107672013-02-27 Jiong Wang <jiwang@tilera.com>
10768
10769 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10770
6c8e944d
YQ
107712013-02-27 Yao Qi <yao@codesourcery.com>
10772 Pedro Alves <palves@redhat.com>
10773
10774 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10775 pc/tp/range/outside, look for the next trace frame instead of
10776 always starting from frame 0.
6c8e944d 10777
acd7db30
AG
107782013-02-26 Anthony Green <green@moxielogic.com>
10779
10780 * configure.tgt: Add support for moxie-*-rtems* target.
10781
025e6dce
PA
107822013-02-25 Pedro Alves <palves@redhat.com>
10783
10784 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10785 warning text.
10786
ca9c94ef
MR
107872013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10788
10789 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10790 if $fp is used as the virtual frame pointer.
10791
24c274a1
AM
107922013-02-23 Alan Modra <amodra@gmail.com>
10793
10794 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10795 symbol size.
10796 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10797 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10798 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10799 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10800
bfada189
JK
108012013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10802
10803 Code cleanup.
10804 * elfread.c (build_id_bfd_get): Make the return type const.
10805 (build_id_verify): Make the check parameter const.
10806 (build_id_to_debug_filename): Make the build_id parameter and variable
10807 data const.
10808 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10809
c0355132
AM
108102013-02-21 Alan Modra <amodra@gmail.com>
10811
10812 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10813
9f44fbc0
SCR
108142013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10815
10816 Add a new method 'disassemble' to gdb.Architecture class.
10817 * python/py-arch.c (archpy_disassmble): Implementation of the
10818 new method gdb.Architecture.disassemble.
10819 (arch_object_methods): Add entry for the new method.
10820
b74ea3eb
JW
108212013-02-20 Jiong Wang <jiwang@tilera.com>
10822
10823 * MAINTAINERS (Write After Approval): Add myself to the list.
10824
61a672f1
PA
108252013-02-19 Pedro Alves <palves@redhat.com>
10826
10827 Garbage collect 'struct monitor_ops'::load_routine.
10828
10829 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10830 * monitor.c (monitor_load): No longer call
10831 current_monitor->load_routine.
10832 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10833 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10834 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10835
40e397df
PA
108362013-02-19 Pedro Alves <palves@redhat.com>
10837
10838 PR gdb/15161
10839
10840 Harmonize with generic_load.
10841
10842 * monitor.c: Include "readline/readline.h".
10843 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10844 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10845 long/strtol for the 'load_offset' local. Error out if no argument
10846 is given or if too many arguments are given. Tilde expand the
10847 passed in file name.
10848
f698ca8e
KT
108492013-02-19 Kai Tietz <ktietz@redhat.com>
10850
10851 PR gdb/15161
10852 * symfile.c (load_section_data): Change type of load_offset
10853 to CORE_ADDR.
10854 (generic_load): User strtoulst instead of strtoul for conversion
10855 of load_offset.
10856
3361b059
WL
108572013-02-19 Jiong Wang <jiwang@tilera.com>
10858
10859 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10860 for return address, "lr" register, saved on stack.
10861 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10862 after we invoke tilegx_analyze_prologue.
10863
3e9d5130
WL
108642013-02-19 Jiong Wang <jiwang@tilera.com>
10865
bb1bcd86
WL
10866 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10867
3361b059 108682013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10869
b74ea3eb 10870 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10871
4aaf2503
WL
108722013-02-19 Jiong Wang <jiwang@tilera.com>
10873
b74ea3eb 10874 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10875 (tilegx_write_pc): New function.
10876 (tilegx_cannot_reference_register): Return zero if REGNO
10877 is TILEGX_FAULTNUM_REGNUM.
10878 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10879 (tilegx_register_name): Add handling of "faultnum" register.
10880 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10881 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10882 handling of TILEGX_FAULTNUM_REGNUM.
10883 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10884
bc23a956
WL
108852013-02-19 Jiong Wang <jiwang@tilera.com>
10886
10887 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10888 should be aligned to 64bit.
bc23a956 10889
42f45f1a
KT
108902013-02-19 Kai Tietz <ktietz@redhat.com>
10891
10892 * windows-nat.c (windows_xfer_memory): Fix debug-output
10893 for LLP64.
10894
6ce4c112
LL
108952013-02-19 Lei Liu <lei.liu2@windriver.com>
10896
10897 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10898 Don't check DSP register number if HAVE_DSP is not set.
10899
30e8ee25
AM
109002013-02-19 Alan Modra <amodra@gmail.com>
10901
10902 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10903 throughout file instead.
10904 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10905 Don't xmalloc return value.
10906 (build_id_verify): Similarly. Don't xfree.
10907 (build_id_to_debug_filename): Update.
10908 (find_separate_debug_file_by_buildid): Update, don't xfree.
10909
4c9ad8c2
TT
109102013-02-18 Tom Tromey <tromey@redhat.com>
10911
10912 PR gdb/15102:
10913 * dwarf2read.c (read_subrange_type): Use result of
10914 'check_typedef'.
10915
983dc440
YQ
109162013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10917
10918 * frame.c: Remove one extra white space after #include
10919 directive.
10920
7fb2b84a
JK
109212013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10922
10923 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10924
edceb2a9
JK
109252013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10926
10927 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10928 and dir commands into an if block.
10929
e81b7af8
TT
109302013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10931
10932 * python/py-breakpoint (struct pybp_code): Use int instead of
10933 enum type_code.
10934
f5911ea1
HAQ
109352013-02-15 Pedro Alves <pedro@codesourcery.com>
10936 Hafiz Abid Qadeer <abidh@codesourcery.com>
10937
10938 * NEWS: Mention new field "trace-file".
10939 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10940 (tfile_open): Record the trace file's filename in the trace
10941 status.
10942 (tfile_files_info): Mention the name of the trace file.
10943 Check the "filename" field explicitely.
10944 (trace_status_command): Explicitely check "filename" field.
10945 (trace_find_command): Ditto.
10946 (trace_find_pc_command): Ditto.
10947 (trace_find_tracepoint_command): Ditto.
10948 (trace_find_line_command): Ditto.
10949 (trace_find_range_command): Ditto.
10950 (trace_find_outside_command): Ditto.
10951 * tracepoint.h (struct trace_status) <from_file>: Rename it
10952 to "filename" and make it hold the trace file's filename
10953 instead of a boolean.
10954 * remote.c (remote_get_trace_status): Initialize "filename"
10955 field with NULL instead of 0.
10956
796cb314
YQ
109572013-02-15 Yao Qi <yao@codesourcery.com>
10958
10959 * remote.c: Fix a typo.
10960
42e79b1d
PM
109612013-02-14 Pierre Muller <muller@sourceware.org>
10962
10963 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10964
baea0dae
PA
109652013-02-14 Pedro Alves <palves@redhat.com>
10966
10967 * utils.c (savestring): Don't #undef it. Move function to
10968 common/common-utils.c.
10969 * common/common-utils.c: Include gdb_string.h.
10970 (savestring): Move here from utils.c.
10971 * common/common-utils.h (savestring): Declare.
10972
57c3b6ed
PA
109732013-02-14 Pedro Alves <palves@redhat.com>
10974
10975 * utils.c (savestring): Rename parameter 'size' to 'len'.
10976
d6c44983
YZ
109772013-02-14 Pedro Alves <palves@redhat.com>
10978 Yufeng Zhang <yufeng.zhang@arm.com>
10979
10980 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10981 (aarch64_inferior_data, struct aarch64_inferior_data):
10982 Delete.
10983 (struct aarch64_process_info): New.
10984 (aarch64_process_list): New global.
10985 (aarch64_find_process_pid, aarch64_add_process)
10986 (aarch64_process_info_get): New functions.
10987 (aarch64_inferior_data_get): Delete.
10988 (aarch64_process_info_get): New function.
10989 (aarch64_forget_process): New function.
10990 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10991 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10992 aarch64_get_debug_reg_state.
10993 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10994 instead of linux_nat_iterate_watchpoint_lwps.
10995 (aarch64_linux_new_fork): New function.
10996 (aarch64_linux_child_post_startup_inferior): Use
10997 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10998 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10999 (aarch64_linux_remove_hw_breakpoint)
11000 (aarch64_handle_aligned_watchpoint)
11001 (aarch64_handle_unaligned_watchpoint)
11002 (aarch64_linux_insert_watchpoint)
11003 (aarch64_linux_remove_watchpoint)
11004 (aarch64_linux_stopped_data_address): Adjust to pass the current
11005 process id to aarch64_debug_reg_state.
11006 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11007 linux_nat_new_fork hook, and aarch64_forget_process as
11008 linux_nat_forget_process hook; remove the call to
11009 register_inferior_data_with_cleanup.
11010
4819b3f8
PA
110112013-02-14 Pedro Alves <palves@redhat.com>
11012
11013 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11014 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11015 lval_memory.
11016
1773c82c
HAQ
110172013-02-14 Pedro Alves <pedro@codesourcery.com>
11018 Hafiz Abid Qadeer <abidh@codesourcery.com>
11019
11020 * tracepoint.h (validate_trace_state_variable_name): Declare.
11021 * tracepoint.c (validate_trace_state_variable_name): New.
11022 (trace_variable_command): Parse the trace state variable's name
11023 without using parse_expression. Do several validations.
11024 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11025 trace state variable's name with parse_expression. Validate it.
11026
53778a97
YQ
110272013-02-14 Yao Qi <yao@codesourcery.com>
11028
11029 * infcmd.c (breakpoint_proceeded): Remove it.
11030
7b3ae3a6
YQ
110312013-02-14 Yao Qi <yao@codesourcery.com>
11032
11033 * tracepoint.c (end_actions_pseudocommand): Make it static.
11034 (while_stepping_pseudocommand): Likewise.
11035 * tracepoint.h (end_actions_pseudocommand): Remove the
11036 declaration.
11037 (while_stepping_pseudocommand): Likewise.
11038
64580925
YQ
110392013-02-14 Yao Qi <yao@codesourcery.com>
11040
11041 * cli/cli-decode.c (help_cmd): Remove the declaration of
11042 "cmdlist".
11043 (help_all): Likewise.
11044
26cb8b7c
PA
110452013-02-13 Pedro Alves <palves@redhat.com>
11046
11047 * amd64-linux-nat.c (update_debug_registers_callback):
11048 Update comment.
11049 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11050 iterate_over_lwps.
11051 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11052 i386_debug_reg_state.
11053 (amd64_linux_new_fork): New function.
11054 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11055 linux_nat_new_fork hook, and i386_forget_process as
11056 linux_nat_forget_process hook.
11057 * i386-linux-nat.c (update_debug_registers_callback):
11058 Update comment.
a8256ea1 11059 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11060 iterate_over_lwps.
11061 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11062 i386_debug_reg_state.
11063 (i386_linux_new_fork): New function.
11064 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11065 linux_nat_new_fork hook, and i386_forget_process as
11066 linux_nat_forget_process hook.
11067 * i386-nat.c (i386_init_dregs): Delete.
11068 (i386_inferior_data, struct i386_inferior_data):
11069 Delete.
11070 (struct i386_process_info): New.
11071 (i386_process_list): New global.
11072 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11073 New functions.
11074 (i386_inferior_data_get): Delete.
11075 (i386_process_info_get): New function.
11076 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11077 (i386_forget_process): New function.
11078 (i386_cleanup_dregs): Rewrite.
11079 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11080 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11081 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11082 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11083 to i386_debug_reg_state.
11084 (i386_use_watchpoints): Don't register inferior data.
11085 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11086 adjust comment.
11087 (i386_forget_process): Declare.
11088 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11089 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11090 New static globals.
11091 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11092 (add_initial_lwp): New, factored out from ...
11093 (add_lwp): ... this. Don't check the number of lwps before
11094 calling linux_nat_new_thread.
11095 (linux_nat_iterate_watchpoint_lwps): Delete.
11096 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11097 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11098 forks and vforks.
11099 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11100 initial lwp.
11101 (linux_nat_kill, linux_nat_mourn_inferior): Call
11102 linux_nat_forget_process.
11103 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11104 (linux_nat_forget_process): New functions.
11105 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11106 type.
11107 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11108 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11109 types.
11110 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11111 (linux_nat_forget_process): New declarations.
11112
11113 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11114 (amd64fbsd_mourn_inferior): New function.
11115 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11116 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11117
5befea72
MS
111182013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11119
55015247
YQ
11120 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11121 Adding _().
5befea72 11122
1d3ffd6b
MS
111232013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11124
11125 * aarch64-linux-nat.c (debug_reg_change_callback)
11126 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11127 %s and phex().
11128
6eb04473
MS
111292013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11130
11131 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11132 with LONGEST.
11133
a016fc87
HAQ
111342013-02-13 Pedro Alves <palves@redhat.com>
11135 Hafiz Abid Qadeer <abidh@codesourcery.com>
11136
11137 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11138
e234dfaf
TT
111392013-02-12 Tom Tromey <tromey@redhat.com>
11140
11141 PR symtab/11464:
11142 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11143 NAME return.
11144 (classify_inner_name): Remove 'first_name' argument, add
11145 'context'. Remove unused variable.
11146 (yylex): Explicitly maintain the context type. Exit loop earlier
11147 if NAME result is seen.
11148
0b1afbb3
PA
111492013-02-12 Pedro Alves <palves@redhat.com>
11150
11151 * amd64-darwin-tdep.c: Add (C) after Copyright.
11152 * cli/cli-cmds.h: Ditto.
11153 * cli/cli-decode.c: Ditto.
11154 * cli/cli-decode.h: Ditto.
11155 * cli/cli-dump.c: Ditto.
11156 * cli/cli-dump.h: Ditto.
11157 * cli/cli-interp.c: Ditto.
11158 * cli/cli-logging.c: Ditto.
11159 * cli/cli-script.c: Ditto.
11160 * cli/cli-script.h: Ditto.
11161 * cli/cli-setshow.c: Ditto.
11162 * cli/cli-setshow.h: Ditto.
11163 * cli/cli-utils.c: Ditto.
11164 * cli/cli-utils.h: Ditto.
11165 * config/alpha/nm-osf3.h: Ditto.
11166 * config/djgpp/djconfig.sh: Ditto.
11167 * config/i386/nm-fbsd.h: Ditto.
11168 * config/i386/nm-i386gnu.h: Ditto.
11169 * config/nm-linux.h: Ditto.
11170 * config/nm-nto.h: Ditto.
11171 * config/rs6000/nm-rs6000.h: Ditto.
11172 * config/sparc/nm-sol2.h: Ditto.
11173 * darwin-nat-info.c: Ditto.
11174 * dfp.c: Ditto.
11175 * dfp.h: Ditto.
11176 * gdb-demangle.h: Ditto.
11177 * i386-darwin-nat.c: Ditto.
11178 * i386-darwin-tdep.c: Ditto.
11179 * linux-fork.h: Ditto.
11180 * m32c-tdep.c: Ditto.
11181 * microblaze-linux-tdep.c: Ditto.
11182 * microblaze-rom.c: Ditto.
11183 * microblaze-tdep.c: Ditto.
11184 * microblaze-tdep.h: Ditto.
11185 * mips-linux-tdep.h: Ditto.
11186 * ppc-ravenscar-thread.c: Ditto.
11187 * ppc-ravenscar-thread.h: Ditto.
11188 * prologue-value.c: Ditto.
11189 * prologue-value.h: Ditto.
11190 * ravenscar-thread.c: Ditto.
11191 * ravenscar-thread.h: Ditto.
11192 * sparc-ravenscar-thread.c: Ditto.
11193 * sparc-ravenscar-thread.h: Ditto.
11194 * tilegx-linux-tdep.c: Ditto.
11195 * unwind_stop_reasons.def: Ditto.
11196 * windows-nat.h: Ditto.
11197 * xtensa-linux-tdep.c: Ditto.
11198 * xtensa-xtregs.c: Ditto.
11199 * regformats/regdat.sh: Ditto.
11200 * regformats/regdef.h: Ditto.
11201
6c01dd94
PA
112022013-02-12 Pedro Alves <palves@redhat.com>
11203
11204 * break-catch-sig.c: Update copyright years.
11205
b65a2bd9
SCR
112062013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11207
11208 Add support for a destructor for ui_out data and use it to
11209 provide a ui_out destructor.
11210 * ui-out.h: Declare the new ui_out destructor.
11211 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11212 * ui-out.c (default_data_destroy): Add a default data destructor
11213 which does nothing.
11214 (default_ui_out_impl): Set the new data_destroy field to
11215 default_data_destroy
11216 (uo_data_destroy): Local function which invokes the data
11217 destructor if present.
11218 (clear_table): Local function which clears the table data of a
11219 ui_out object.
11220 (ui_out_destroy): Public function which frees a ui_out object.
11221 (ui_out_table_end): Use the new clear_table function.
11222 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11223 NULL.
11224 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11225 to NULL.
11226
c2792f5a
DE
112272013-02-11 Doug Evans <dje@google.com>
11228
11229 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11230 (printf_decfloat): New function. Broken out from ui_printf.
11231 Remove unnecessary code to shift the entire format string down.
11232 (printf_pointer): New function.
11233 (ui_printf): Code to print C strings, wide C strings, decfloats,
11234 and pointers moved to separate functions.
11235
d9e98382
SDJ
112362013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11237
11238 * valops.c (value_assign): Handling bitfield offset in
11239 `lval_internalvar_component' case.
11240
4ff3ce77
DE
112412013-02-08 Doug Evans <dje@google.com>
11242
11243 * common/format.c (parse_format_string): Fix whitespace.
11244
901900c4
MGD
112452013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11246
11247 * stack.c (return_command): Work around uninitialized variable
11248 warning.
11249
b5dbc8d4
YZ
112502013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11251
11252 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11253 number of the registers from 36 to 34.
11254
51d66578
MS
112552013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11256
11257 * NEWS: Mention new AArch64 native and target support.
11258
176b1c95
MS
112592013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11260
11261 * MAINTAINERS (Write After Approval): Add myself.
11262
9d19df75
MS
112632013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11264 Marcus Shawcroft <marcus.shawcroft@arm.com>
11265 Nigel Stephens <nigel.stephens@arm.com>
11266 Yufeng Zhang <yufeng.zhang@arm.com>
11267
11268 * aarch64-linux-nat.c: New file.
11269 * config/aarch64/linux.mh: New file.
11270 * configure.host: Add AArch64.
11271 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11272
7e1e0340
DE
112732013-02-07 Doug Evans <dje@google.com>
11274
11275 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11276 disassemble command.
11277
45e25a36
MS
112782013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11279
11280 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11281 set_gdbarch_fetch_tls_load_module_address.
11282
bbfdfe1c
DM
112832013-02-06 David S. Miller <davem@davemloft.net>
11284
11285 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11286 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11287 * value.c (struct_return_convention): New function.
11288 (using_struct_return): Implement in terms of struct_return_convention.
11289 * value.h (struct_return_convention): Declare.
11290 * stack.c (return_command): Allow successful overriding of the return
11291 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11292
bc9abe4a
TT
112932013-02-06 Tom Tromey <tromey@redhat.com>
11294
11295 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11296 outside of TRY_CATCH.
11297
134a2066
YQ
112982013-02-06 Yao Qi <yao@codesourcery.com>
11299
11300 * mi/mi-interp.c: Include "tracepoint.h".
11301 (mi_tsv_modified): Declare.
11302 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11303 (mi_interpreter_init): Call observer_attach_tsv_modified.
11304 (mi_tsv_modified): New.
11305 (mi_tsv_created, mi_tsv_deleted): Update.
11306 * tracepoint.c (trace_variable_command): Call
11307 observer_notify_tsv_modified if the initial value of tsv is
11308 changed.
11309 (delete_trace_state_variable): Call
11310 observer_notify_tsv_deleted earlier.
11311 (trace_variable_command): Caller update.
11312 (create_tsv_from_upload): Likewise.
11313 * observer.sh: Declare "struct trace_state_variable".
11314
11315 * NEWS: Mention the new MI notification "=tsv-modified".
11316
59be2b6a
DE
113172013-02-05 Doug Evans <dje@google.com>
11318
11319 * completer.c (location_completer): Fix typo in comment.
11320
d30113d4
JK
113212013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11322
11323 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11324 ADDRESS sorted.
11325
14ac654f
MS
113262013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11327
11328 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11329 Refactor if statement to avoid trailing || operator.
11330
543bf33d
AT
113312013-02-05 Andreas Tobler <andreast@fgznet.ch>
11332
11333 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11334
dc18f110
AT
113352013-02-04 Andreas Tobler <andreast@fgznet.ch>
11336
11337 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11338 * configure.host: Add powerpc*-*-freebsd* target.
11339 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11340 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11341 * config/powerpc/fbsd.mh: New file.
11342
b3ac9c77
SDJ
113432013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11344 Denys Vlasenko <dvlasenk@redhat.com>
11345 Pedro Alves <palves@redhat.com>
11346
11347 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11348 (struct elf_internal_linux_prpsinfo): Forward declare.
11349 * gdbarch.h, gdbarch.c: Regenerate.
11350 * linux-tdep.c: Include `cli/cli-utils.h'.
11351 (linux_fill_prpsinfo): New function.
11352 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11353 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11354 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11355 depending on gdbarch pointer bitness.
11356 * ppc-linux-tdep.c: Include elf-bfd.h.
11357 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11358 on 32-bit.
11359
176eb98c
MS
113602013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11361 Marcus Shawcroft <marcus.shawcroft@arm.com>
11362 Nigel Stephens <nigel.stephens@arm.com>
11363 Yufeng Zhang <yufeng.zhang@arm.com>
11364
11365 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11366
cf0dbd6f
MS
113672013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11368 Marcus Shawcroft <marcus.shawcroft@arm.com>
11369 Nigel Stephens <nigel.stephens@arm.com>
11370 Yufeng Zhang <yufeng.zhang@arm.com>
11371
11372 * aarch64-newlib-tdep.c: New file.
11373 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11374 aarch64*-*-elf.
11375 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11376 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11377 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11378 * osabi.c (gdb_osabi_names): Add "Newlib".
11379
1ae3db19
MS
113802013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11381 Marcus Shawcroft <marcus.shawcroft@arm.com>
11382 Nigel Stephens <nigel.stephens@arm.com>
11383 Yufeng Zhang <yufeng.zhang@arm.com>
11384
11385 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11386 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11387 * aarch64-linux-tdep.c: New file.
11388 * aarch64-linux-tdep.h: New file.
11389 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11390 * configure.tgt: Add aarch64-none-linux-gnu.
11391
07b287a0
MS
113922013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11393 Marcus Shawcroft <marcus.shawcroft@arm.com>
11394 Nigel Stephens <nigel.stephens@arm.com>
11395 Yufeng Zhang <yufeng.zhang@arm.com>
11396
11397 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11398 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11399 (ALLDEPFILES): Add aarch64-tdep.c.
11400 * aarch64-tdep.c: New file.
11401 * aarch64-tdep.h: New file.
11402 * configure.tgt: Add AArch64.
11403 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11404 (aarch64-expedite): New definition.
11405 * features/aarch64-core.xml: New file.
11406 * features/aarch64-fpu.xml: New file.
11407 * features/aarch64-without-fpu.c: New file (generated).
11408 * features/aarch64-without-fpu.xml: New file.
11409 * features/aarch64.c: New file (generated).
11410 * features/aarch64.xml: New file.
11411 * regformats/aarch64-without-fpu.dat: New file (generated).
11412 * regformats/aarch64.dat: New file (generated).
11413
0f1b18ab
JK
114142013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11415
11416 * contrib/expect-read1.c: New file.
11417 * contrib/expect-read1.sh: New file.
11418
233d95b5
JK
114192013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11420
11421 * dwarf2read.c (file_file_name): New function with code from
11422 file_full_name.
11423 (file_full_name): Move most of the code to file_file_name.
11424 (macro_start_file): Rename variable full_name to file_name and use
11425 file_file_name for it. Add comp_dir parameter to new_macro_table.
11426 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11427 macro_source_file->filename access by macro_source_fullname call.
11428 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11429 caller.
11430 * macrotab.c (struct macro_table): New field comp_dir.
11431 (macro_include): New variables link_fullname and source_fullname.
11432 Replace any macro_source_file->filename access by macro_source_fullname
11433 call.
11434 (macro_lookup_inclusion): Remove the partial filenames checking code.
11435 (check_for_redefinition): New variables source_fullname and
11436 found_key_fullname. Replace any macro_source_file->filename access by
11437 macro_source_fullname call.
11438 (macro_undef): New variables source_fullname and key_fullname. Replace
11439 any macro_source_file->filename access by macro_source_fullname call.
11440 (macro_lookup_definition): New variables retval and source_fullname.
11441 Replace any macro_source_file->filename access by macro_source_fullname
11442 call.
11443 (foreach_macro): New variable key_fullname. Replace any
11444 macro_source_file->filename access by macro_source_fullname call.
11445 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11446 macro_source_file->filename access by macro_source_fullname call.
11447 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11448 (macro_source_fullname): New function.
11449 * macrotab.h (struct macro_source_file): Extent the filename field
11450 comment.
11451 (new_macro_table): New parameter comp_dir, add a comment for it.
11452 (macro_source_fullname): new declaration.
11453
da235a7c
JK
114542013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11455
11456 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11457 this_real_name to outer block. Use it also for
11458 compare_filenames_for_search.
11459 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11460 with dw2_get_real_path for file_matcher, considering also
11461 BASENAMES_MAY_DIFFER.
11462 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11463
fbd9ab74
JK
114642013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11465
11466 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11467 to the file_matcher parameter. Pass 0 to it.
11468 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11469 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11470 NULL psymtab_to_fullname result.
11471 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11472 an expected filename instead.
11473 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11474 file_matcher parameter. Call also psymtab_to_fullname, after newly
11475 considering BASENAMES_MAY_DIFFER.
11476 * source.c (rewrite_source_path): Remove static.
11477 * source.h (rewrite_source_path): New declaration.
11478 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11479 the expand_symtabs_matching field. Comment it.
11480 * symtab.c (file_matches): New function comment. Add parameter
11481 basenames, implement it.
11482 (search_symbols_file_matches): Add basenames parameter. Update the
11483 file_matches caller.
11484 (search_symbols): Match FILES also against symtab_to_fullname.
11485 Optimize it for BASENAMES_MAY_DIFFER.
11486
56d397a3
JK
114872013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11488
11489 * source.c (print_source_lines_base): Print for TUI also "fullname".
11490 * tui/tui-data.c (init_content_element): Change tui_locator_element
11491 field to full_name.
11492 * tui/tui-data.h (struct tui_locator_element): Likewise.
11493 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11494 tui_update_locator_filename calls to tui_update_locator_fullname.
11495 Replace symtab->filename refererence by symtab_to_fullname call.
11496 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11497 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11498 field to full_name. Replace symtab->filename refererence by
11499 symtab_to_fullname call.
11500 (tui_show_symtab_source): Rename parameter to fullname. Change
11501 tui_locator_element field to full_name.
11502 * tui/tui-stack.c: Include source.h.
11503 (tui_set_locator_filename): Rename the declaration to ...
11504 (tui_set_locator_fullname): ... here. Rename its parameter to
11505 fullname, updates its comment.
11506 (tui_set_locator_info): Rename its parameter to fullname.
11507 (tui_set_locator_filename): Rename the definition to ...
11508 (tui_set_locator_fullname): ... here. Rename its parameter to
11509 fullname, updates its comment. Change tui_locator_element field to
11510 full_name.
11511 (tui_set_locator_info): Rename its parameter to fullname.
11512 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11513 (tui_update_locator_filename): Rename to ...
11514 (tui_update_locator_fullname): ... here. Rename callee to
11515 tui_set_locator_fullname.
11516 (tui_show_frame_info): Replace symtab->filename refererence by
11517 symtab_to_fullname call.
11518 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11519 (tui_update_locator_fullname): ... here.
11520 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11521 tui_update_locator_fullname. Replace symtab->filename refererence by
11522 symtab_to_fullname call.
11523 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11524 Rename the callee to tui_update_locator_fullname.
11525 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11526
05cba821
JK
115272013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11528
11529 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11530 by symtab_to_filename_for_display calls.
11531 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11532 (clear_command): New variable sal_fullname, initialize it. Replace
11533 compare_filenames_for_search by filename_cmp with sal_fullname.
11534 (say_where, update_static_tracepoint): Replace symtab->filename
11535 refererences by symtab_to_filename_for_display calls.
11536 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11537 Likewise.
11538 * dwarf2read.c: Include source.h.
11539 (fixup_go_packaging): Replace symtab->filename refererences by
11540 symtab_to_filename_for_display calls.
11541 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11542 Replace symtab->filename refererences by symtab_to_filename_for_display
11543 calls.
11544 (create_sals_line_offset, convert_linespec_to_sals): New variable
11545 fullname, initialize it, replace symtab->filename reference by the
11546 variable.
11547 * linux-fork.c: Include source.h.
11548 (info_checkpoints_command): Replace symtab->filename refererences by
11549 symtab_to_filename_for_display calls.
11550 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11551 by symtab_to_filename_for_display calls.
11552 * mdebugread.c: Include source.h.
11553 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11554 symtab_to_filename_for_display calls.
11555 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11556 (mi_cmd_file_list_exec_source_files): Likewise.
11557 * printcmd.c: Include source.h.
11558 (build_address_symbolic): Replace symtab->filename refererences by
11559 symtab_to_filename_for_display calls.
11560 * psymtab.c (partial_map_symtabs_matching_filename)
11561 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11562 with psymtab_to_fullname.
11563 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11564 by symtab_to_filename_for_display calls.
11565 (stpy_get_filename): New variable filename, initialize it, use instead
11566 of symtab->filename refererences.
11567 (salpy_str): Make variable filename const char *. Replace
11568 symtab->filename refererences by symtab_to_filename_for_display calls.
11569 * skip.c: Include source.h and filenames.h.
11570 (skip_file_command): Remove const from the symtab variable. Replace
11571 symtab->filename refererences by symtab_to_fullname call.
11572 (function_name_is_marked_for_skip): New variables searched_for_fullname
11573 and fullname. Use them to search also with symtab's fullname.
11574 * source.c (find_source_lines): Replace symtab->filename refererences
11575 by symtab_to_filename_for_display calls.
11576 (print_source_lines_base): New variable filename, use it instead of
11577 symtab->filename. Replace symtab->filename refererences by
11578 symtab_to_filename_for_display calls.
11579 (line_info, forward_search_command): Replace symtab->filename
11580 refererences by symtab_to_filename_for_display calls.
11581 (reverse_search_command): Replace symtab->filename refererences by
11582 symtab_to_filename_for_display calls. New variable filename for it.
11583 * stack.c (frame_info): Likewise.
11584 * symmisc.c: Include source.h.
11585 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11586 (maintenance_info_symtabs): Replace symtab->filename refererences by
11587 symtab_to_filename_for_display calls.
11588 * symtab.c (iterate_over_some_symtabs): Call
11589 compare_filenames_for_search also with symtab_to_fullname.
11590 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11591 symtab->filename refererences by symtab_to_filename_for_display calls.
11592 (find_line_symtab): Replace symtab->filename refererences by
11593 symtab_to_filename_for_display calls.
11594 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11595 (print_symbol_info): Make the last parameter const char *. New
11596 variable s_filename. Use it in the function.
11597 (symtab_symbol_info): Make the last_filename variable const char *.
11598 Replace symtab->filename refererences by symtab_to_filename_for_display
11599 calls.
11600 (rbreak_command): New variable fullname. Use it. Replace
11601 symtab->filename refererence by symtab_to_filename_for_display call.
11602 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11603 (print_one_static_tracepoint_marker): Replace symtab->filename
11604 refererences by symtab_to_filename_for_display calls.
11605 * tui/tui-source.c (tui_set_source_content): New variables filename and
11606 s_filename. Replace symtab->filename refererences by this variable.
11607 Replace other symtab->filename refererences by
11608 symtab_to_filename_for_display calls.
11609
1b56eb55
JK
116102013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11611 Jan Kratochvil <jan.kratochvil@redhat.com>
11612
11613 Add a new variable that controls a way in which filenames are
11614 displayed.
11615 * NEWS (set filename-display): New entry.
11616 * source.c (filename_display_basename, filename_display_relative)
11617 (filename_display_absolute, filename_display_kind_names)
11618 (filename_display_string, show_filename_display_string)
11619 (symtab_to_filename_for_display): New.
11620 (_initialize_source): Added initialization of 'filename-display'
11621 variable.
11622 * source.h (symtab_to_filename_for_display): Added declaration.
11623 * stack.c (print_frame): Added new variable and calling of a new
11624 function and condition with this variable. Changed third argument of
11625 calling of a function.
11626
aa079c93
JK
116272013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11628
11629 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11630 Rename field reference filename to fullname.
11631 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11632 fullname. New comment for it.
11633 * tui/tui-source.c (tui_set_source_content): Rename field reference
11634 filename to fullname. Initialize field by symtab_to_fullname now.
11635 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11636 reference filename to fullname. Use symtab_to_fullname during
11637 comparison.
11638
652a8996
JK
116392013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11640
11641 Code cleanup.
11642 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11643 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11644 filename to fullname. Rename variable this_name to this_fullname.
11645 Lowercase FILENAME_CMP call.
11646 (dw2_find_symbol_file): New comment for the returned string.
11647 (dwarf2_gdb_index_functions): Rename the function to
11648 dw2_expand_symtabs_with_fullname.
11649 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11650 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11651 fullname.
11652 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11653 * symfile.h (struct quick_symbol_functions): Rename field
11654 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11655 parameter filename to fullname. Document returned string meaning for
11656 find_symbol_file.
11657 * symtab.c (find_line_symtab): Rename the called function to
11658 expand_symtabs_with_fullname.
11659
af529f8f
JK
116602013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11661
11662 Code cleanup.
11663 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11664 call of filename_cmp with compare_filenames_for_search.
11665 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11666 is_abs, unify the call of FILENAME_CMP with
11667 compare_filenames_for_search. New gdb_asserts for real_path and name.
11668 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11669 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11670 * symfile.h (struct quick_symbol_functions): Extend the comment for
11671 map_symtabs_matching_filename.
11672 * symtab.c (compare_filenames_for_search): Remove the function comment
11673 relative path requirement. Handle absolute filenames, with a comment.
11674 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11675 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11676 real_path and name. Unify the call of compare_filenames_for_search
11677 with FILENAME_CMP.
11678 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11679
2f202fde
JK
116802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11681
11682 Code cleanup.
11683 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11684 source_file references by symtab field references. Remove variables
11685 sal and fullname.
11686 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11687 (clear_command, say_where): Replace bp_location field source_file
11688 references by symtab field references.
11689 (bp_location_dtor): Remove the source_file reference.
11690 (update_static_tracepoint): Replace bp_location field source_file
11691 references by symtab field references.
11692 (breakpoint_free_objfile): New function.
11693 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11694 Replace the field source_file by field symtab, extend its comment.
11695 (breakpoint_free_objfile): New declaration.
11696 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11697 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11698 field source_file references by symtab field references.
11699
f5b95b50
JK
117002013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11701
11702 Replace xfullpath calls by gdb_realpath calls.
11703 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11704 function comment.
11705 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11706 Remove it from the iterate_over_some_symtabs call.
11707 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11708 Remove it from the dw2_map_expand_apply calls, remove a block handling
11709 it.
11710 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11711 Remove it from the iterate_over_some_symtabs call.
11712 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11713 Remove it from the partial_map_expand_apply calls, remove a block
11714 handling it. Drop gdb_realpath call and cleanups from the real_path
11715 handling.
11716 * source.c (openp): Drop the comment part about xfullpath. Replace
11717 xfullpath calls by gdb_realpath calls.
11718 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11719 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11720 from method map_symtabs_matching_filename and its comment.
11721 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11722 gdb_realpath call.
11723 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11724 remove it also from the function comment, remove a block handling it.
11725 Drop gdb_realpath call and cleanups from the real_path handling.
11726 (iterate_over_symtabs): Drop variable full_path and its use.
11727 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11728 * utils.c (xfullpath): Remove.
11729 * utils.h (xfullpath): Remove.
11730
d78489bf
AT
117312013-02-01 Andreas Tobler <andreast@fgznet.ch>
11732
11733 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11734 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11735 (ALLDEPFILES): Add ppc64-tdep.c.
11736 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11737 ppc64-tdep.o to gdb_target_obs.
11738 * ppc64-tdep.h: New file.
11739 * ppc64-tdep.c: New file.
11740 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11741 ppc-linux-tdep.c to here.
11742 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11743 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11744 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11745 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11746 from ppc-linux-tdep.c to here.
11747 (ppc64_convert_from_func_ptr_addr): Rename from
11748 ppc64_linux_convert_from_func_ptr_addr to
11749 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11750 here.
11751 * rs6000-tdep.c:
11752 (read_insn): Move from ppc-linux-tdep.c to here.
11753 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11754 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11755 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11756 Removed above functions.
11757 (ppc_linux_init_abi): Adjust.
11758
8db60374
AR
117592013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11760
11761 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11762
f2e5f4ce
AR
117632013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11764
11765 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11766
c1f7d745
PA
117672013-02-01 Pedro Alves <palves@redhat.com>
11768
11769 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11770 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11771
8a92335b
JK
117722013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11773
11774 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11775 files with no separate debug info.
11776 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11777 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11778 only for files with no separate debug info.
11779
8eacb197
TT
117802013-01-31 Tom Tromey <tromey@redhat.com>
11781
11782 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11783 change type.
11784 (struct jit_program_space_data): Rename from jit_inferior_data.
11785 Update comments.
11786 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11787 Change return type. Attach data to program space.
11788 (jit_program_space_data_cleanup): Rename from
11789 jit_inferior_data_cleanup; change argument type.
11790 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11791 change type.
11792 (jit_register_code): Update.
11793 (jit_update_inferior_cache): Remove.
11794 (jit_breakpoint_deleted): Get jit data from the location's program
11795 space.
11796 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11797 'ps_data', change type.
11798 (jit_inferior_init, jit_breakpoint_re_set_internal)
11799 (jit_event_handler): Update.
11800 (free_objfile_data): Get data from objfile's program space.
11801 (_initialize_jit): Update.
11802
f25c0135
TT
118032013-01-31 Tom Tromey <tromey@redhat.com>
11804
11805 PR gdb/13987:
11806 * jit.c (struct jit_inferior_data) <cached_code_address,
11807 jit_breakpoint>: New fields.
11808 (jit_breakpoint_re_set_internal): Fix logging. Only create
11809 breakpoint if cached address has changed.
11810 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11811 functions.
11812 (_initialize_jit): Register breakpoint deleted observer.
11813
974a734b
AR
118142013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11815
11816 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11817 (save_infcall_suspend_state): Ifdef out unused inf.
11818 (restore_infcall_suspend_state): Ifdef out unused inf.
11819 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11820 (jit_frame_sniffer): Remove unused inf_data.
11821
df54f8eb
AR
118222013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11823
11824 * c-exp.y (classify_inner_name): Remove unused type.
11825 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11826 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11827 need_escape.
11828 (c_get_string): Remove unused kind.
11829 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11830
5799c0b9
AR
118312013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11832
11833 * charset.c (intermediate_encoding): Remove unused i.
11834 * completer.c (signal_completer): Remove unused i.
11835 * continuations.c (discard_my_continuations_1): Remove unused
11836 continuation_ptr.
11837 * corelow.c (core_close): Remove unuseD name.
11838 (get_core_siginfo): Remove unused pid.
11839 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11840 i, cps.
11841 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11842 (loclist_describe_location): Remove unused first.
11843 * event-top.c (command_line_handler): Remove unused got_eof.
11844 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11845 (resize_section_table): Remove unused old_value.
11846 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11847 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11848 * i386-tdep.c (i386_process_record): Remove unused rex.
11849 * infcmd.c (get_return_value): Remove unused uiout.
11850 * jv-lang.c (type_from_class): Remove unused is_array.
11851 * jv-valprint.c (java_val_print): Remove unused i.
11852 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11853 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11854 * m2-typeprint.c (m2_print_type): Remove unused code.
11855 * macroexp.c (get_character_constant): Remove unused body_start.
11856 (macro_stringify): Remove unused result.
11857 * objc-lang.c (find_methods): Remove unused gdbarch.
11858 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11859 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11860 * stack.c (print_frame_args): Remove unused summary.
11861 * thread.c (thread_apply_command): Remove unused p.
11862 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11863 * valops.c (search_struct_method): Remove unused skip.
11864 * valprint.c (generic_val_print): Remove unused byte_order.
11865 * varobj.c (varobj_update): Remove unused changed.
11866 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11867 (alias_command): Remove unused c.
11868 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11869 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11870 format.
11871 (mi_cmd_data_write_memory): Remove unused word_format.
11872 (mi_cmd_data_write_memory_bytes): Remove unused r.
11873 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11874 p_start, p_end.
11875 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11876 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11877 line_width.
11878
c656bca5
AR
118792013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11880
11881 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11882 * symtab.c (iterate_over_symtabs): Remove unused s.
11883 (find_pc_sect_symtab): Remove unused pspAce.
11884 (find_pc_sect_line): Remove unused alt_symtab.
11885 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11886 (completion_list_add_name): Remove unused newsize.
11887
7078baeb
TT
118882013-01-31 Tom Tromey <tromey@redhat.com>
11889
11890 PR c++/14998:
11891 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11892 TYPE_CODE_FUNC.
11893
c2e8b827
AR
118942013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11895
11896 * target.c (target_read_string): Remove unused origlen.
11897
0e43993a
AR
118982013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11899
11900 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11901 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11902 * ax-general.c (ax_print): Remove unused is_float.
11903 * blockframe.c (block_innermost_frame): Remove unused start, end.
11904 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11905
765a97ab
AR
119062013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11907
11908 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11909 (svr4_read_so_list): Remove unused lmo.
11910 * solib-target.c (solib_target_relocate_section_addresses): Remove
11911 unused flags.
11912
a99dad3d
TT
119132013-01-30 Tom Tromey <tromey@redhat.com>
11914
11915 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11916
3bff1ecd
TT
119172013-01-30 Tom Tromey <tromey@redhat.com>
11918
11919 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11920 * utils.c (gnu_debuglink_crc32): Remove.
11921 * utils.h (gnu_debuglink_crc32): Don't declare.
11922
7d455152
TT
119232013-01-30 Tom Tromey <tromey@redhat.com>
11924
11925 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11926 (read_structure_type, read_enumeration_type): Remove cast.
11927
abee88f2
TT
119282013-01-30 Tom Tromey <tromey@redhat.com>
11929
11930 * dwarf2read.c (read_namespace_type): Remove cast.
11931 (read_typedef): Likewise.
11932
8d9878a4
TT
119332013-01-29 Tom Tromey <tromey@redhat.com>
11934
11935 * dwarf2read.c (free_dwo_file): Remove assert.
11936
a543d2a9
TT
119372013-01-29 Tom Tromey <tromey@redhat.com>
11938
11939 * value.c (deprecated_set_value_modifiable): Remove.
11940 * value.h (deprecated_set_value_modifiable): Remove.
11941
bed911e5
DE
119422013-01-28 Doug Evans <dje@google.com>
11943
11944 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11945 to addresses from dwo files.
11946
28c64fc2
SCR
119472013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11948
11949 * valops.c (find_overload_match): Remove unused argument 'lax'.
11950 * value.h: Remove unused argument 'lax' from the declaration of
11951 find_overload_match.
11952 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11953 to find_overload_match.
11954 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11955 argument to find_overload_match.
11956
4d4ec4e5
TT
119572013-01-25 Tom Tromey <tromey@redhat.com>
11958
11959 * dwarf2read.c (processing_has_namespace_info): Remove.
11960 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11961 (process_die, read_func_scope, dwarf2_start_symtab)
11962 (new_symbol_full): Update.
11963
195a3f6c
TT
119642013-01-25 Tom Tromey <tromey@redhat.com>
11965
11966 * cp-namespace.c (cp_set_block_scope): Remove.
11967 * cp-support.h (cp_set_block_scope): Remove.
11968 * dbxread.c: Include block.h.
11969 (cp_set_block_scope): New function.
11970 (process_one_symbol): Update.
11971 * dwarf2read.c (read_func_scope): Use block_set_scope.
11972
8ba0730a
PA
119732013-01-25 Pedro Alves <palves@redhat.com>
11974
11975 * remote.c (add_current_inferior_and_thread): Tweak comment.
11976
12aaed36
TT
119772013-01-25 Tom Tromey <tromey@redhat.com>
11978
11979 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11980 (cp_add_using_directive): Add 'copy_names' argument.
11981 * cp-support.h (cp_add_using_directive): Update.
11982 (struct using_direct) <import_src, import_dest, alias,
11983 declaration>: Now const.
11984 * dwarf2read.c (read_import_statement): Use obconcat.
11985 Don't copy names passed to cp_add_using_directive.
11986
7fc75ca7
TT
119872013-01-25 Tom Tromey <tromey@redhat.com>
11988
11989 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11990
3405876a
PA
119912013-01-25 Pedro Alves <palves@redhat.com>
11992
11993 * remote.c (stop_reply_extract_thread): New.
11994 (add_current_inferior_and_thread): New parameter 'wait_status'.
11995 Handle it.
11996 (remote_start_remote): Pass wait status to
11997 add_current_inferior_and_thread.
11998 (extended_remote_run): Update comment.
11999 (extended_remote_create_inferior_1): Pass wait status to
12000 add_current_inferior_and_thread.
12001
8954db33
AB
120022013-01-25 Andrew Burgess <aburgess@broadcom.com>
12003 Ulrich Weigand <uweigand@de.ibm.com>
12004
12005 * valarith.c (value_vector_widen): New function for replicating a
12006 scalar into a vector.
12007 (value_binop): Use value_vector_widen to widen scalar to vector
12008 rather than casting, this better matches gcc C behaviour.
12009 * valops.c (value_casst): Update logic for casting between vector
12010 types, and for casting from scalar to vector, try to match gcc C
12011 behaviour.
12012 * value.h (value_vector_widen): Declare.
12013 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12014 function, handle special case for casting scalar to vector.
12015 (opencl_relop): Use opencl_value_cast.
12016 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12017 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12018 in order to use opencl_value_cast.
12019
843b20dc
YQ
120202013-01-25 Yao Qi <yao@codesourcery.com>
12021
12022 * event-loop.c: Include "queue.h".
12023 (gdb_event_p): New typedef.
12024 (DECLARE_QUEUE_P): Use.
12025 (DEFINE_QUEUE_P): Use.
12026 (async_queue_event): Remove.
12027 (gdb_event_xfree): New.
12028 (initialize_event_loop): New.
12029 (process_event): Use QUEUE macros.
12030 (event_queue): Remove.
12031 (gdb_wait_for_event): Caller update.
12032 (check_async_event_handlers): Likewise.
12033 (poll_timers): Likewise.
12034 * event-loop.h (initialize_event_loop): Declare.
12035 * event-loop.c (gdb_event_xfree): New.
12036 * top.c (gdb_init): Call initialize_event_loop.
12037
20ad8856
YQ
120382013-01-25 Yao Qi <yao@codesourcery.com>
12039
12040 * event-loop.c (async_queue_event): Remove one parameter
12041 'position'. Remove code handling 'position' == TAIL.
12042 (gdb_wait_for_event): Caller update.
12043 (check_async_event_handlers): Caller update.
12044 (poll_timers): Caller update.
12045 * event-loop.h (enum queue_position): Remove.
12046
3bbbe775
MK
120472013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12048
12049 * MAINTAINERS: Update my email.
12050
a87d9ac4
YQ
120512013-01-25 Yao Qi <yao@codesourcery.com>
12052
12053 * main.c (print_gdb_help): Remove "--epoch" from the help
12054 message.
12055
2077afdd
TD
120562013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12057
12058 * symtab.c (skip_prologue_using_sal): Consider a file
12059 change the same as an increased line number
12060
63da4037
TD
120612013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12062
30e8ee25 12063 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12064
45e6c716
TT
120652013-01-24 Tom Tromey <tromey@redhat.com>
12066
12067 * ada-lang.h (ada_decode_symbol): Make return type const.
12068 * ada-lang.c (ada_decode_symbol): Likewise.
12069
b1ae631a
DE
120702013-01-23 Doug Evans <dje@google.com>
12071
12072 * linespec.c (find_linespec_symbols): Make static.
12073
55a78401
SDJ
120742013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12075
12076 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12077 type on float conversion for complex type.
12078
bea883fd
SCR
120792013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12080
12081 Add a new class gdb.Architecture which exposes GDB's
12082 internal representation of architecture via GDB Python API.
12083 * Makefile.in: Add entries corresponding to the new file
12084 python/py-arch.c.
12085 * NEWS (Python Scripting): Add entries for the new class
12086 gdb.Architecture and the new method gdb.Frame.architecture.
12087 * python/py-arch.c: Implement gdb.Architecture class.
12088 * python/py-frame.c (frapy_arch): Implement the method
12089 gdb.Frame.architecture().
12090 (frame_object_methods): Add 'architecture' to the method table.
12091 * python/python-internal.h: Add declarations of new utility
12092 functions.
12093 * python/python.c (_initialize_python): Initialize
12094 gdb.Architecture class.
12095
796a7ff8
DE
120962013-01-23 Doug Evans <dje@google.com>
12097
12098 Work around binutils/15021.
12099 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12100 type_unit_group out of union s. All uses updated.
12101 (read_index_from_section): Watch for index version 8.
12102 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12103 an imported symtab.
12104 (write_psymtabs_to_index): Increment version number to 8.
12105
0928e93d
PA
121062013-01-22 Pedro Alves <palves@redhat.com>
12107
12108 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12109 user-visible.
12110
9c97429f
PA
121112013-01-22 Pedro Alves <palves@redhat.com>
12112
12113 * annotate.c (annotate_breakpoints_changed): Rename to ...
12114 (annotate_breakpoints_invalid): ... this. Make static.
12115 (breakpoint_changed): Adjust.
12116 (_initialize_annotate): Always install the observers. Install a
12117 "breakpoint_created" observer.
12118 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12119 * breakpoint.c (set_breakpoint_condition)
12120 (breakpoint_set_commands, do_map_commands_command)
12121 (init_raw_breakpoint, clear_command, set_ignore_count)
12122 (enable_breakpoint_disp): No longer call
12123 annotate_breakpoints_changed.
12124
bd00c694
PA
121252013-01-22 Pedro Alves <palves@redhat.com>
12126
12127 * annotate.c: Include "inferior.h".
12128 (frames_invalid_emitted)
12129 (breakpoints_invalid_emitted): New globals.
12130 (async_background_execution_p): New function.
12131 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12132 emitting the annotation if it has already been emitted.
12133 (annotate_display_prompt): New function.
12134 * annotate.h (annotate_display_prompt): New declaration.
12135 * event-top.c: Include annotate.h.
12136 (display_gdb_prompt): Call annotate_display_prompt.
12137
187d10dd
PA
121382013-01-22 Pedro Alves <palves@redhat.com>
12139
12140 * annotate.c (ignore_count_changed): Delete.
12141 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12142 (annotate_ignore_count_change): Delete.
12143 (annotate_stopped): Don't emit a delayed breakpoints-changed
12144 annotation.
12145 * annotate.h (annotate_ignore_count_change): Delete.
12146 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12147 annotate_ignore_count_change.
12148
d84cf7eb
TT
121492013-01-22 Tom Tromey <tromey@redhat.com>
12150
12151 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12152 require_rvalue for a register location.
12153
8f1d5693
MK
121542013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12155
12156 * breakpoint.c (print_one_breakpoint_location): Add MI
12157 field 'thread-groups' when printing a breakpoint.
12158 (output_thread_groups): New function.
12159
aa6199c6
SCR
121602013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12161
12162 * python/lib/gdb/commands/explore.py
12163 (CompoundExplorer.explore_expr): Correct the name of a method
12164 being invoked.
12165 (ExploreTypeCommand.invoke): Add a missing 'return'.
12166
d2afef13
TT
121672013-01-21 Tom Tromey <tromey@redhat.com>
12168
12169 * gdb_obstack.h (obconcat): Move declaration here, from...
12170 * symfile.h (obconcat): ... here.
12171 * gdb_obstack.c: New file.
12172 (obconcat): Move from...
12173 * symfile.c (obconcat): ... here.
12174 * Makefile.in (SFILES): Add gdb_obstack.c.
12175 (COMMON_OBS): Add gdb_obstack.o.
12176
10f0c4bb
TT
121772013-01-21 Tom Tromey <tromey@redhat.com>
12178
12179 * symfile.h (obsavestring): Don't declare.
12180 * symfile.c (obsavestring): Remove.
12181 * ada-exp.y: Use obstack_copy0, not obsavestring.
12182 * ada-lang.c: Use obstack_copy0, not obsavestring.
12183 * coffread.c: Use obstack_copy0, not obsavestring.
12184 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12185 * dbxread.c: Use obstack_copy0, not obsavestring.
12186 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12187 * jit.c: Use obstack_copy0, not obsavestring.
12188 * mdebugread.c: Use obstack_copy0, not obsavestring.
12189 * psymtab.c: Use obstack_copy0, not obsavestring.
12190 * stabsread.c: Use obstack_copy0, not obsavestring.
12191 * xcoffread.c: Use obstack_copy0, not obsavestring.
12192
86f62fd7
TT
121932013-01-21 Tom Tromey <tromey@redhat.com>
12194
12195 * dwarf2read.c (fixup_go_packaging): Save package name
12196 on objfile obstack.
12197 * gdbtypes.c (init_type): Don't copy name.
12198
15d034d0
TT
121992013-01-21 Tom Tromey <tromey@redhat.com>
12200
12201 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12202 const.
12203 (struct attribute) <u.str>: Now const.
12204 (struct fnfieldlist) <name>: Now const.
12205 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12206 (partial_die_parent_scope): Make return type const.
12207 (partial_die_full_name, add_partial_symbol): Update.
12208 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12209 'name' const.
12210 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12211 (read_file_scope, read_func_scope, dwarf2_add_field)
12212 (dwarf2_add_member_fn, read_structure_type)
12213 (process_enumeration_scope, read_array_type, read_module_type)
12214 (read_base_type, read_subrange_type): Update.
12215 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12216 (new_symbol_full, guess_full_die_structure_name): Update.
12217 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12218 (dwarf2_name): Return const type.
12219 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12220 const.
12221
748e18ae
TT
122222013-01-21 Tom Tromey <tromey@redhat.com>
12223
12224 * gdbtypes.c (init_type): Make 'name' const.
12225 * gdbtypes.h (init_type): Update.
12226
46212e0b
TT
122272013-01-21 Tom Tromey <tromey@redhat.com>
12228
12229 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12230 (start_symtab): Make 'name' and 'dirname' const. Use
12231 set_last_source_file.
12232 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12233 (last_source_file): Define. Now static.
12234 (set_last_source_file, get_last_source_file): New functions.
12235 * buildsym.h (last_source_file): Don't declare.
12236 (start_symtab): Update.
12237 (set_last_source_file, get_last_source_file): Declare.
12238 * coffread.c (complete_symtab): Use set_last_source_file.
12239 (coff_end_symtab): Likewise.
12240 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12241 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12242 set_last_source_file.
12243 (process_one_symbol): Use get_last_source_file.
12244 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12245 (psymtab_to_symtab_1): Use get_last_source_file.
12246 * xcoffread.c (process_linenos): Use get_last_source_file.
12247 (complete_symtab): Use set_last_source_file.
12248 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12249 (scan_xcoff_symtab): Use set_last_source_file.
12250
9d2ceabe
TT
122512013-01-21 Tom Tromey <tromey@redhat.com>
12252
12253 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12254 (symbol_set_names): Remove casts. Handle field const-ness.
12255
cfc594ee
TT
122562013-01-21 Tom Tromey <tromey@redhat.com>
12257
12258 * dwarf2read.c (new_symbol_full): Remove cast.
12259 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12260 * symtab.h (symbol_set_demangled_name): Update.
12261
5484b13a
TT
122622013-01-21 Tom Tromey <tromey@redhat.com>
12263
12264 * main.c (captured_main): Call bfd_init.
12265
1605ef26
TT
122662013-01-21 Tom Tromey <tromey@redhat.com>
12267
12268 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12269 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12270 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12271 * NEWS: Update.
12272
3b74cdc3
JK
122732013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12274
12275 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12276
5a352474
JK
122772013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12278
12279 Fix gdb.fortran/common-block.exp crash in PIE mode.
12280 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12281 LOC_COMMON_BLOCK.
12282 * f-valprint.c (info_common_command_for_block): Expect
12283 LOC_COMMON_BLOCK in gdb_assert.
12284 * symtab.h (struct general_symbol_info): Update comment for the
12285 common_block member.
12286 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12287 (enum address_class): New member LOC_COMMON_BLOCK.
12288
c60797fd
DB
122892013-01-18 David Blaikie <dblaikie@gmail.com>
12290
12291 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12292
46f35228
TT
122932013-01-18 Tom Tromey <tromey@redhat.com>
12294
12295 PR c++/14999:
12296 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12297 Call require_rvalue.
12298
257e7a09
YQ
122992013-01-18 Yao Qi <yao@codesourcery.com>
12300
12301 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12302 (dbx_read_symtab): New declaration.
12303 (dbx_psymtab_to_symtab): Delete.
12304 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12305 Rename parameter PST to SELF. Exchanged two parameters.
12306 (start_psymtab): Caller update.
12307 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12308 (dwarf2_read_symtab): New declaration.
12309 (dwarf2_psymtab_to_symtab): Delete.
12310 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12311 Rename parameter PST to SELF. Exchanged two parameters.
12312 (create_partial_symtab): Caller update.
12313 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12314 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12315 Rename parameter PST to SELF. Exchanged two parameters.
12316 (parse_partial_symbols, new_psymtab): Caller update.
12317 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12318 two parameters.
12319 * psymtab.c (psymtab_to_symtab): Caller update.
12320 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12321 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12322 Rename parameter PST to SELF. Exchanged two parameters.
12323 (xcoff_start_psymtab): Caller update.
12324
0de5618e
YQ
123252013-01-18 Yao Qi <yao@codesourcery.com>
12326
12327 * infrun.c (proceed): Rename local variable 'oneproc' to
12328 'force_step'.
12329
5c04624b
DE
123302013-01-17 Doug Evans <dje@google.com>
12331
848e3e78
DE
12332 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12333 (dw2_build_type_unit_groups): Delete. All uses updated.
12334
5c04624b
DE
12335 * symtab.h (struct symbol_search): Add comment.
12336
d84fca2c
JK
123372013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12338
12339 * symtab.c (compare_filenames_for_search): New comment for
12340 HAS_DRIVE_SPEC.
12341
6108433d
TT
123422013-01-17 Tom Tromey <tromey@redhat.com>
12343
12344 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12345
c89ffd86
JK
123462013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12347
12348 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12349 initialize it by existing make_cleanup. Call new do_cleanups.
12350
db2b2972
TT
123512013-01-17 Tom Tromey <tromey@redhat.com>
12352
12353 * cp-abi.c (cp_abi_completer): New function.
12354 (_initialize_cp_abi): Set completer for "set cp-abi".
12355
be7d37a2
TT
123562013-01-17 Tom Tromey <tromey@redhat.com>
12357
12358 * mem-break.c: Remove obsolete comment.
12359 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12360
c9fb1240
SD
123612012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12362
12363 * jit.c (jit_reader_load_command): Interpret the jit reader name
12364 as an absolute path if it begins with a forward slash.
12365
db334a01
SD
123662012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12367
12368 PR gdb/14550
12369
12370 * jit.c (finalize_symtab): Ensure that only the global block has a
12371 NULL superblock.
12372
7d928dac
PA
123732013-01-17 Pedro Alves <palves@redhat.com>
12374
12375 * acinclude.m4: Include ../config/plugins.m4,
12376 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12377 * Makefile.in (aclocal_m4_deps): Update.
12378 * aclocal.m4: Renegerate.
12379
fb8cf7c5
DE
123802013-01-16 Doug Evans <dje@google.com>
12381
12382 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12383
ab04a2af
TT
123842013-01-16 Pedro Alves <palves@redhat.com>
12385 Tom Tromey <tromey@redhat.com>
12386
12387 PR cli/7221:
12388 * NEWS: Add "catch signal".
12389 * breakpoint.c (base_breakpoint_ops): No longer static.
12390 (bpstat_explains_signal): New function.
12391 (init_catchpoint): No longer static.
12392 (base_breakpoint_explains_signal): New function.
12393 (base_breakpoint_ops): Initialize new field.
12394 * breakpoint.h (enum bpstat_signal_value): New.
12395 (struct breakpoint_ops) <explains_signal>: New field.
12396 (bpstat_explains_signal): Remove macro, declare as function.
12397 (base_breakpoint_ops, init_catchpoint): Declare.
12398 * break-catch-sig.c: New file.
12399 * inferior.h (signal_catch_update): Declare.
12400 * infrun.c (signal_catch): New global.
12401 (handle_syscall_event): Update for change to
12402 bpstat_explains_signal.
12403 (handle_inferior_event): Likewise. Always handle random signals
12404 via bpstats.
12405 (signal_cache_update): Check signal_catch.
12406 (signal_catch_update): New function.
12407 (_initialize_infrun): Initialize signal_catch.
12408 * Makefile.in (SFILES): Add break-catch-sig.c.
12409 (COMMON_OBS): Add break-catch-sig.o.
12410
8ac3646f
TT
124112013-01-16 Tom Tromey <tromey@redhat.com>
12412
12413 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12414 (print_one_catch_solib, print_one_catch_syscall)
12415 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12416 "catch-type".
12417
5a18e302
YQ
124182013-01-16 Yao Qi <yao@codesourcery.com>
12419
12420 * printcmd.c (current_display_number): Make it static.
12421
3f01d0d0
YQ
124222013-01-16 Yao Qi <yao@codesourcery.com>
12423
12424 * infcmd.c (step_once): Don't check '!single_inst' as it was
12425 checked before.
12426
1ed59174
JK
124272013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12428
12429 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12430
44478ab3
TT
124312013-01-14 Tom Tromey <tromey@redhat.com>
12432
12433 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12434 set command.
12435 * command.h (add_setshow_string_noescape_cmd): Update.
12436 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12437 (complete_set_gnutarget): New function.
12438 (_initialize_core): Set the "set gnutarget" completer.
12439
06d66ee9
TT
124402013-01-14 Tom Tromey <tromey@redhat.com>
12441
12442 PR symtab/14442:
12443 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12444 (c_type_print_modifier): Likewise.
12445 * dwarf2read.c (read_tag_restrict_type): New function.
12446 (read_type_die_1): Handle DW_TAG_restrict_type.
12447 * gdbtypes.c (make_restrict_type): New function.
12448 (recursive_dump_type): Handle TYPE_RESTRICT.
12449 * gdbtypes.h (enum type_flag_values): Renumber.
12450 (enum type_instance_flag_value): Add
12451 TYPE_INSTANCE_FLAG_RESTRICT.
12452 (TYPE_RESTRICT): New macro.
12453 (make_restrict_type): Declare.
12454
c9bf0622
TT
124552013-01-14 Tom Tromey <tromey@redhat.com>
12456
12457 PR symtab/14931:
12458 * psymtab.c (struct psymtab_state): New.
12459 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12460 functions.
12461 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12462 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12463
44d594fd
PA
124642013-01-14 Richard Sharman <richard_sharman@mitel.com>
12465 Pedro Alves <palves@redhat.com>
12466
12467 PR remote/14786
12468
12469 * remote.c (remote_threads_info): Make a copy of the reply from
12470 qfThreadInfo and use that instead of rs->buf.
12471
442e4d9c
YQ
124722013-01-14 Yao Qi <yao@codesourcery.com>
12473
12474 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12475 (dbx_psymtab_to_symtab): Likewise.
12476 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12477 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12478 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12479
5b12a61c
JK
124802013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12481
12482 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12483 make_cleanup_restore_current_language. Call set_language. Move
12484 OLD_CHAIN and INNER_CHAIN cleanups.
12485 * utils.c (do_restore_current_language)
12486 (make_cleanup_restore_current_language): New functions.
12487 * utils.h (make_cleanup_restore_current_language): New declaration.
12488
f0a4b570
JK
124892013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12490
12491 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12492 non-existing files.
12493
57b3c00c
JK
12494 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12495 non-existing files if FILENAME is already absolute.
12496
daefa854
JK
124972013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12498
12499 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12500 fputs_filtered. Append trailing newline.
12501
ca9c6ee2
YQ
125022013-01-11 Yao Qi <yao@codesourcery.com>
12503 Stan Shebs <stan@codesourcery.com>
12504
12505 * psymtab.c (init_psymbol_list): Clarify the comment.
12506
f28045c2
YQ
125072013-01-11 Yao Qi <yao@codesourcery.com>
12508
12509 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12510 (update_dprintf_command_list): Assert that 'printf_line' is
12511 non-null. Remove condition check.
12512
da5132d3
JK
125132013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12514
12515 Code cleanup.
12516 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12517 type const char *.
12518 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12519 const char *.
12520 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12521
843e694d
AG
125222013-01-09 Anthony Green <green@moxielogic.com>
12523
12524 * cp-abi.c (cplus_print_vtable): Don't return value from void
12525 function.
12526 * ada-lang.c (re_set_catch_assert): Ditto.
12527
da51c347
DE
125282013-01-09 Doug Evans <dje@google.com>
12529
12530 * symfile.h (quick_symbol_functions): Delete member
12531 pre_expand_symtabs_matching. All uses removed.
12532 * dwarf2read.c (dw2_lookup_symbol): Implement.
12533 (dw2_do_expand_symtabs_matching): Delete.
12534 (dw2_pre_expand_symtabs_matching): Delete.
12535 (struct dw2_symtab_iterator): New type.
12536 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12537 (dw2_expand_symtabs_for_function): Rewrite.
12538 (dwarf2_gdb_index_functions): Update.
12539 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12540 (psym_functions): Update.
12541
b2259038
TT
125422013-01-09 Tom Tromey <tromey@redhat.com>
12543
12544 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12545 * configure: Rebuild.
12546 * configure.ac: Add somread.o to the build if BFD has SOM
12547 support.
12548 * somread.c: Include som/aout.h, not syms.h.
12549 (som_symtab_read): Use som_external_symbol_dictionary_record.
12550 Unpack records manually.
12551 (_initialize_somread): Declare.
12552
bdad4180
MF
125532012-01-08 Mike Frysinger <vapier@gentoo.org>
12554
12555 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12556 Cast return_address to 64bits.
12557
03cdf680
HZ
125582013-01-08 Hui Zhu <hui_zhu@mentor.com>
12559
12560 * printcmd.c: Remove define of function output_command.
12561 * tracepoint.c: Remove extern of function output_command.
12562 * valprint.h: (output_command): New extern.
12563
8a808554
TT
125642013-01-07 Tom Tromey <tromey@redhat.com>
12565
12566 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12567 Remove.
12568 (objc_language_defn): Use c_printchar, c_printstr,
12569 c_emit_char.
12570
e93a8774
TT
125712013-01-07 Tom Tromey <tromey@redhat.com>
12572
12573 PR cli/7719:
12574 * NEWS: Update.
12575 * ada-valprint.c (printstr, print_field_values): Remove
12576 "inspect_it" code.
12577 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12578 code.
12579 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12580 code.
12581 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12582 * main.c (captured_main): Remove "epoch" argument.
12583 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12584 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12585 * p-valprint.c (pascal_object_print_value_fields): Remove
12586 "inspect_it" code.
12587 * printcmd.c (print_command_1): Remove 'inspect' argument.
12588 (print_command, call_command): Update.
12589 (inspect_command): Remove.
12590 (_initialize_printcmd): Make "inspect" an alias for "print".
12591 * top.c (epoch_interface): Remove.
12592 * top.h (epoch_interface): Remove.
12593 * valprint.c (user_print_options): Update.
12594 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12595 * valprint.h (struct value_print_options) <inspect_it>: Remove
12596 field.
12597
125982013-01-04 Tom Tromey <tromey@redhat.com>
12599
12600 * valprint.h (read_string): Add 'extern'.
12601
b967eb24
JB
126022013-01-07 Joel Brobecker <brobecker@adacore.com>
12603
12604 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12605 used to decide whether to define darwin_read_dyld_info or not.
12606
78a8b30e
PM
126072013-01-03 Pierre Muller <muller@sourceware.org>
12608
12609 * main.c (relocate_gdb_directory): Avoid calling stat function
12610 if DIR is empty.
12611
50da2f25
YQ
126122013-01-03 Yao Qi <yao@codesourcery.com>
12613
12614 * psymtab.c (fixup_psymbol_section): Update declaration.
12615 (fixup_psymbol_section): Remove code returning value.
12616
e7e8980f
YQ
126172013-01-03 Yao Qi <yao@codesourcery.com>
12618
12619 * symtab.h: Remove some out of date comments.
12620 (enum exception_event_kind): Move it ...
12621 * breakpoint.c: ... here.
12622
569283d4
MF
126232013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12624
9f9d9a96 12625 PR gdb/14405
569283d4
MF
12626 * darwin-nat.c (darwin_read_dyld_info): Only build if
12627 TASK_DYLD_INFO_COUNT is defined.
12628 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12629 TASK_DYLD_INFO_COUNT is defined.
12630
2e36fbea
TT
126312013-01-02 Tom Tromey <tromey@redhat.com>
12632
12633 * symfile.h (struct ecoff_debug_hack): Remove.
12634 * objfiles.c: Don't include mdebugread.h.
12635
4f05add4
TT
126362013-01-02 Tom Tromey <tromey@redhat.com>
12637
12638 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12639 * configure.ac: Check for Mach-O support in BFD. Update
12640 CONFIG_OBS.
12641 * configure: Rebuild.
12642
def63ff0
TT
126432013-01-02 Tom Tromey <tromey@redhat.com>
12644
12645 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12646 * configure.ac: Use GDB_AC_CHECK_BFD.
12647 * configure: Rebuild.
12648
60c5dd93
MK
126492013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12650
12651 * MAINTAINERS: Update my email.
12652
6e58437e
JB
126532013-01-01 Joel Brobecker <brobecker@adacore.com>
12654
12655 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12656
627fe805
JB
126572013-01-01 Joel Brobecker <brobecker@adacore.com>
12658
12659 * rs6000-nat.c (bss_data_overlap): New function.
12660 (vmap_symtab): Use it to adjust the .bss section's offset.
12661
28e7fd62
JB
126622013-01-01 Joel Brobecker <brobecker@adacore.com>
12663
12664 Update year range in copyright notice of all files.
12665
e93a8774 126662013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12667
12668 * top.c (print_gdb_version): Update copyright year.
12669
72b20e9c 12670For older changes see ChangeLog-2012.
c906108c
SS
12671\f
12672Local Variables:
12673mode: change-log
12674left-margin: 8
12675fill-column: 74
12676version-control: never
57da7796 12677coding: utf-8
c906108c 12678End:
This page took 2.230968 seconds and 4 git commands to generate.