Make "set debug frame 1" output print <not saved> instead of <optimized out>.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-27 Pedro Alves <palves@redhat.com>
2
3 * frame-unwind.c (frame_unwind_got_optimized): Return
4 an lval_register value instead of a not_lval value.
5
6 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
7
8 * frame.c: Include "valprint.h".
9 (frame_unwind_register_value): Use value_optimized_out.
10 * value.c (value_fetch_lazy): Likewise.
11
12 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
13
14 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
15
16 2013-11-26 Tom Tromey <tromey@redhat.com>
17
18 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
19 2013-11-22.
20
21 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
22
23 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
24 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
25 (HAS_MPX): New macro.
26 (HAS_AVX): New macro.
27 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
28
29 2013-11-25 Keith Seitz <keiths@redhat.com>
30
31 PR c++/14819
32 * c-exp.y (classify_inner_name): If no matching symbol was
33 found, try looking up the token as a base class.
34 Likewise if a constructor was found.
35 * cp-namespace.c (find_type_baseclass_by_name): New function.
36 * cp-support.h (find_type_baseclass_by_name): Declare.
37 * valops.c (value_struct_elt_for_reference): If we get
38 a non-static field, try to get a value based on the
39 current instance, if any.
40
41 2013-11-24 Yao Qi <yao@codesourcery.com>
42
43 * disasm.c (dis_asm_read_memory): Call target_read_code
44 instead of target_read_memory.
45
46 2013-11-24 Yao Qi <yao@codesourcery.com>
47
48 * NEWS: Add note on new "set code-cache" option.
49 * target-dcache.c (code_cache_enabled_1): New variable.
50 (code_cache_enabled): New variable.
51 (show_code_cache, set_code_cache): New function.
52 (code_cache_enabled_p): New function.
53 (_initialize_target_dcache): Register command.
54 * target-dcache.h (code_cache_enabled_p): Declare.
55 * target.c (memory_xfer_partial_1):Handle
56 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
57 (target_read_code): New function.
58 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
59 New.
60 (target_read_code): Declare.
61
62 2013-11-24 Yao Qi <yao@codesourcery.com>
63
64 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
65 (stack_cache_enabled_1): ... this. New variable.
66 (stack_cache_enabled_p): Rename to ...
67 (stack_cache_enabled): ... this. New variable.
68 (set_stack_cache_enabled_p): Rename to ...
69 (set_stack_cache): ... this. Update caller.
70 (show_stack_cache_enabled_p): Rename to ...
71 (show_stack_cache): ... this. Update caller.
72 (stack_cache_enabled): Rename to ...
73 (stack_cache_enabled_p): ... this. Update caller.
74 (_initialize_target_dcache): Replace "data cache" with
75 "target memory cache".
76 * target-dcache.h (stack_cache_enabled): Remove declaration.
77 (stack_cache_enabled_p): Add declaration.
78
79 2013-11-23 Doug Evans <xdje42@gmail.com>
80
81 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
82 superfluous.
83
84 2013-11-23 Doug Evans <xdje42@gmail.com>
85
86 * python/py-frame.c (frapy_block): Fix error message text.
87
88 2013-11-23 Doug Evans <xdje42@gmail.com>
89
90 * cli/cli-script.c (multi_line_command_p): New function.
91 (recurse_read_control_structure, read_command_lines_1): Call it.
92 (execute_control_command): Consistently have a blank line between
93 each case.
94
95 2013-11-22 Sterling Augustine <saugustine@google.com>
96
97 PR gdb/16196:
98 * valprint.c (read_string): Set new variable fetchlen based on
99 fetchlimit and size. Use it in call to partial_memory_read.
100 Update comment.
101
102 2013-11-22 Tom Tromey <tromey@redhat.com>
103
104 PR backtrace/16155:
105 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
106 the return address column is unspecified.
107
108 2013-11-22 Tom Tromey <tromey@redhat.com>
109 Pedro Alves <palves@redhat.com>
110
111 PR backtrace/16155
112 * value.c (value_fetch_lazy): Internal error if
113 get_frame_register_value returns the same register.
114
115 2013-11-22 Pedro Alves <palves@redhat.com>
116 Tom Tromey <tromey@redhat.com>
117
118 * frame.c (frame_stash_add): Now returns whether a frame with the
119 same ID was already known.
120 (compute_frame_id): New function, factored out from get_frame_id.
121 (get_frame_id): No longer lazilly compute the frame id here.
122 (get_prev_frame_if_no_cycle): New function. Detects wider stack
123 cycles.
124 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
125 and checking for stack cycles here.
126
127 2013-11-22 Pedro Alves <palves@redhat.com>
128
129 PR 16155
130 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
131 this frame and the new previous frame, not between this frame and
132 the next frame.
133
134 2013-11-22 Pedro Alves <palves@redhat.com>
135
136 PR 16155
137 * dwarf2-frame.c (struct dwarf2_frame_cache)
138 <checked_tailcall_bottom, entry_cfa_sp_offset,
139 entry_cfa_sp_offset_p>: New fields.
140 (dwarf2_frame_cache): Adjust to use the new cache fields instead
141 of locals. Don't call dwarf2_tailcall_sniffer_first here.
142 (dwarf2_frame_prev_register): Call it here, but only once.
143
144 2013-11-21 Doug Evans <xdje42@gmail.com>
145
146 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
147 (type_equality_entry): Move here from python/py-type.c.
148 (type_equality_entry_d): Ditto.
149 (compare_maybe_null_strings, check_types_equal): Ditto.
150 (check_types_worklist, types_deeply_equal): Ditto.
151 * gdbtypes.h (types_deeply_equal): Declare.
152 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
153 (typy_richcompare): Update.
154
155 2013-11-20 Joel Brobecker <brobecker@adacore.com>
156
157 * python/py-value.c (is_intlike): Delete.
158 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
159 by use of is_integral_type.
160 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
161 by use of is_integral_type and check for TYPE_CODE_PTR.
162
163 2013-11-20 Tom Tromey <tromey@redhat.com>
164
165 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
166 strerror module.
167 * gnulib/aclocal.m4: Update.
168 * gnulib/config.in: Update.
169 * gnulib/configure: Update.
170 * gnulib/import/Makefile.am: Update.
171 * gnulib/import/Makefile.in: Update.
172 * gnulib/import/errno.in.h: Remove.
173 * gnulib/import/intprops.h: Remove.
174 * gnulib/import/m4/errno_h.m4: Remove.
175 * gnulib/import/m4/gnulib-cache.m4: Update.
176 * gnulib/import/m4/gnulib-comp.m4: Update.
177 * gnulib/import/m4/strerror.m4: Remove.
178 * gnulib/import/m4/sys_socket_h.m4: Remove.
179 * gnulib/import/strerror-override.c: Remove.
180 * gnulib/import/strerror-override.h: Remove.
181 * gnulib/import/strerror.c: Remove.
182 * gnulib/update-gnulib.sh: Update.
183
184 2013-11-20 Yao Qi <yao@codesourcery.com>
185
186 * target-dcache.c (target_dcache_get_or_init): Call
187 set_address_space_data if 'dcache' is NULL.
188
189 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
190
191 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
192
193 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
194
195 * python/lib/gdb/command/bound_register.py: New file.
196 * data-directory/Makefile.in: Copy bond_register.py to the right path
197 to be initialized at gdb startup.
198
199 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
200
201 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
202 Add MPX registers.
203 (amd64_linux_read_description): Add initialization for MPX and
204 AVX independently.
205 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
206 (amd64_linux_gregset_reg_offset): Add MPX registers.
207 (amd64_linux_core_read_description): Add initialization for MPX
208 registers.
209 (_initialize_amd64_linux_tdep): Initialize MPX targets.
210 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
211 register on the list.
212 (tdesc_amd64_mpx_linux) Add new target for MPX.
213 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
214 (amd64_mpx_names): MPX register names.
215 (amd64_init_abi): Add MPX register while initializing the ABI.
216 (_initialize_amd64_tdep): Initialize MPX targets.
217 * amd64-tdep.h (amd64_regnum): Add MPX registers.
218 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
219
220 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
221
222 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
223 registers on the range of registers to be read from
224 xsave buffer.
225 (i386_linux_read_description): Add case for MPX.
226 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
227 (i386_linux_gregset_reg_offset): Add MPX registers.
228 (i386_linux_core_read_description): Initialize also MPX.
229 (_initialize_i386_linux_tdep): Add mpx initialization.
230 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
231 mpx_register_names.
232 (i386_regnum): Add MPX registers.
233 (I386_MPX_NUM_REGS): New macro.
234 (i386_bnd_regnum_p): New function.
235 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
236 number of registers to be the number of BNDSTATUS.
237 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
238 * i386-tdep.c: Include features/i386/i386-mpx.c.
239 (i386_mpx_names): Add MPX register names array.
240 (i386_bnd_names): Add bnd pseudo register names array.
241 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
242 registers.
243 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
244 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
245 registers.
246 (i386_bnd_type): New function.
247 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
248 register types.
249 (i386_pseudo_register_read_into_value): Add bnd case.
250 (i386_pseudo_register_write): Add bnd pseudo registers.
251 (i386_register_reggroup_p): Add MPX register to the group all.
252 (i386_validate_tdesc_p): Add MPX to the target description
253 validation.
254 (i386_pseudo_register_name): Add bnd pseudo registers.
255 (i386_gdbarch_init): Add MPX for architecture initialization.
256 (_initia_initialize_i386_tdep): Add mpx initialization.
257 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
258 XSAVE buffer.
259 (XSAVE_MPX_ADDR): New macro.
260 (i387_supply_xsave): Add MPX case.
261 (i387_collect_xsave): Add MPX case.
262 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
263 (I387_BNDCFGU_REGNUM): New macro.
264 (I387_NUM_MPX_REGS): New macro.
265 (I387_NUM_BND_REGS): New macro.
266 (I387_NUM_MPX_CTRL_REGS): New macro.
267 (I387_MPXEND_REGNUM): New macro.
268 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
269 (I386_XSTATE_BNDCFG): Likewise.
270 (I386_XSTATE_MPX_MASK): Likewise.
271 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
272 (I386_XSTATE_BNDREGS_SIZE): New macro.
273 (I386_XSTATE_BNDCFG_SIZE): Likewise.
274 (I386_XSTATE_SIZE): Adapt for MPX.
275 (I386_XSTATE_MAX_SIZE): Likewise.
276
277 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
278
279 * features/i386/Makefile: Adapts for using MPX registers.
280 * features/i386/32bit-mpx.xml: New file.
281 * features/i386/64bit-mpx.xml: Likewise.
282 * features/i386/amd64-mpx-linux.c: Likewise.
283 * features/i386/amd64-mpx-linux.xml: Likewise.
284 * features/i386/amd64-mpx.c: Likewise.
285 * features/i386/amd64-mpx.xml: Likewise.
286 * features/i386/i386-mpx-linux.c: Likewise.
287 * features/i386/i386-mpx-linux.xml: Likewise.
288 * features/i386/i386-mpx.c: Likewise.
289 * features/i386/i386-mpx.xml: Likewise.
290 * regformats/i386/amd64-mpx-linux.dat: New file.
291 * regformats/i386/amd64-mpx.dat: Likewise.
292 * regformats/i386/i386-mpx-linux.dat: Likewise.
293 * regformats/i386/i386-mpx.dat: Likewise.
294
295 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
296
297 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
298 Modified logic of creating a bitfield to be in sync with
299 tdesc_gdb_type.
300
301 2013-11-20 Will Newton <will.newton@linaro.org>
302
303 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
304 error message.
305
306 2013-11-20 Yao Qi <yao@codesourcery.com>
307
308 * progspace.h (struct address_space_data): Declare.
309 * target-dcache.c: Include "progspace.h".
310 (target_dache): Remove.
311 (target_dcache_aspace_key): New.
312 (target_dcache_cleanup): New function.
313 (target_dcache_init_p): Get data through
314 target_dcache_aspace_key.
315 (target_dcache_invalidate): Likewise.
316 (target_dcache_get): Likewise.
317 (target_dcache_get_or_init): Likewise.
318 (_initialize_target_dcache): Initialize
319 target_dcache_aspace_key.
320
321 2013-11-20 Yao Qi <yao@codesourcery.com>
322
323 * progspace.c (struct address_space): Update comments.
324 <REGISTRY_FIELDS>: New fields.
325 DEFINE_REGISTRY for address_space.
326 (new_address_space): Call address_space_alloc_data.
327 (free_address_space): Call address_space_free_data.
328 * progspace.h: Use DECLARE_REGISTRY.
329
330 2013-11-20 Yao Qi <yao@codesourcery.com>
331
332 * Makefile.in (SFILES):Add target-dcache.c.
333 (HFILES_NO_SRCDIR): Add target-dcache.h.
334 (COMMON_OBS): Add target-dcache.o.
335 * dcache.c: Remove inclusion to "target.h". Include
336 "target-dcache.h".
337 * memattr.c: Include "target-dcache.h".
338 * top.c: Likewise.
339 * tracepoint.c: Likewise.
340 * target.c: (stack_cache_enabled_p_1): Move to
341 target-dcache.c.
342 (stack_cache_enabled_p): Likewise.
343 (set_stack_cache_enabled_p): Likewise.
344 (show_stack_cache_enabled_p): Likewise.
345 (target_dcache, target_dcache_init_p): Likewise.
346 (target_dcache_invalidate): Likewise.
347 (target_dcache_get, target_dcache_get_or_init): Likewise.
348 (memory_xfer_partial_1): Call function stack_cache_enabled.
349 (initialize_target): Move code to target-dcache.c.
350 * target.h (target_dcache_invalidate): Move to
351 target-dcache.h.
352 (target_dcache_get): Likewise.
353 * target-dcache.c: New.
354 * target-dcache.h: New.
355
356 2013-11-20 Yao Qi <yao@codesourcery.com>
357
358 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
359 it is initialized.
360
361 2013-11-20 Yao Qi <yao@codesourcery.com>
362
363 * dcache.c (last_cache): Remove.
364 (dcache_free, dcache_init): Update.
365 (dcache_update):
366 (dcache_print_line): Add parameter 'dcache'. Replace
367 'target_dcache' with 'dcache'.
368 (dcache_info): Move code to dcache_info_1. Call
369 'dcache_info_1'.
370 (dcache_info_1): New function.
371 (set_dcache_size): Call target_dcache_invalidate.
372 (set_dcache_line_size): Call target_dcache_invalidate.
373 * target.c (target_dcache_init_p): New function.
374 (target_dcache_invalidate): Check target_dcache_init_p first.
375 (target_dcache_get, target_dcache_get_or_init): New function.
376 (memory_xfer_partial_1): Adjust.
377 (initialize_target): Don't initialize 'target_dcache'.
378 * target.h (struct dcache_struct): Declare.
379 (target_dcache_get): Declare.
380
381 2013-11-19 Yao Qi <yao@codesourcery.com>
382
383 * varobj.c (varobj_get_type): Fix typo.
384
385 2013-11-19 Joel Brobecker <brobecker@adacore.com>
386
387 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
388
389 2013-11-19 Joel Brobecker <brobecker@adacore.com>
390
391 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
392 "stat.h".
393
394 2013-11-18 Tom Tromey <tromey@redhat.com>
395
396 * common/gdb_stat.h: Remove.
397 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
398 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
399 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
400 * corefile.c: Use sys/stat.h, not gdb_stat.h.
401 * ctf.c: Use sys/stat.h, not gdb_stat.h.
402 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
403 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
404 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
405 * exec.c: Use sys/stat.h, not gdb_stat.h.
406 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
407 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
408 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
409 * jit.c: Use sys/stat.h, not gdb_stat.h.
410 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
411 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
412 * main.c: Use sys/stat.h, not gdb_stat.h.
413 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
414 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
415 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
416 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
417 * procfs.c: Use sys/stat.h, not gdb_stat.h.
418 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
419 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
420 * remote.c: Use sys/stat.h, not gdb_stat.h.
421 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
422 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
423 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
424 * source.c: Use sys/stat.h, not gdb_stat.h.
425 * symfile.c: Use sys/stat.h, not gdb_stat.h.
426 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
427 * symtab.c: Use sys/stat.h, not gdb_stat.h.
428 * top.c: Use sys/stat.h, not gdb_stat.h.
429 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
430
431 2013-11-18 Tom Tromey <tromey@redhat.com>
432
433 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
434 sys_stat.
435 * gnulib/aclocal.m4: Update.
436 * gnulib/config.in: Update.
437 * gnulib/configure: Update.
438 * gnulib/import/Makefile.am: Update.
439 * gnulib/import/Makefile.in: Update.
440 * gnulib/import/m4/gnulib-cache.m4: Update.
441 * gnulib/import/m4/gnulib-comp.m4: Update.
442 * gnulib/import/m4/sys_stat_h.m4: New.
443 * gnulib/import/m4/time_h.m4: New.
444 * gnulib/import/sys_stat.in.h: New.
445 * gnulib/import/time.in.h: New.
446
447 2013-11-18 Tom Tromey <tromey@redhat.com>
448
449 * configure: Rebuild.
450 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
451
452 2013-11-18 Tom Tromey <tromey@redhat.com>
453
454 * configure: Rebuild.
455 * configure.ac: Don't check for unistd.h.
456
457 2013-11-18 Tom Tromey <tromey@redhat.com>
458
459 * configure: Rebuild.
460 * configure.ac: Don't check for stdlib.h
461 * defs.h: Include stdlib.h unconditionally.
462
463 2013-11-18 Tom Tromey <tromey@redhat.com>
464
465 * config.in: Rebuild.
466 * configure: Rebuild.
467 * configure.ac: Don't check for stddef.h.
468 * defs.h: Unconditionally include stddef.h. Remove duplicate
469 inclusion.
470
471 2013-11-18 Tom Tromey <tromey@redhat.com>
472
473 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
474 * common/gdb_dirent.h: Remove.
475 * common/filestuff.c: Use dirent.h.
476 * common/linux-osdata.c: Use dirent.h.
477 (NAMELEN): Define.
478 * config.in: Rebuild.
479 * configure: Rebuild.
480 * configure.ac: Don't use AC_HEADER_DIRENT.
481 * linux-fork.c: Use dirent.h
482 * linux-nat.c: Use dirent.h.
483 * nto-procfs.c: Use dirent.h.
484 * procfs.c: Use dirent.h.
485
486 2013-11-18 Tom Tromey <tromey@redhat.com>
487
488 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
489 * gnulib/aclocal.m4: Update.
490 * gnulib/config.in: Update.
491 * gnulib/configure: Update.
492 * gnulib/import/Makefile.am: Update.
493 * gnulib/import/Makefile.in: Update.
494 * gnulib/import/dirent.in.h: New.
495 * gnulib/import/m4/dirent_h.m4: New.
496 * gnulib/import/m4/gnulib-cache.m4: Update.
497 * gnulib/import/m4/gnulib-comp.m4: Update.
498
499 2013-11-18 Tom Tromey <tromey@redhat.com>
500
501 * configure: Rebuild.
502 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
503 strings.h.
504
505 2013-11-18 Tom Tromey <tromey@redhat.com>
506
507 * common/gdb_string.h: Remove.
508 * aarch64-tdep.c: Use string.h, not gdb_string.h.
509 * ada-exp.y: Use string.h, not gdb_string.h.
510 * ada-lang.c: Use string.h, not gdb_string.h.
511 * ada-lex.l: Use string.h, not gdb_string.h.
512 * ada-typeprint.c: Use string.h, not gdb_string.h.
513 * ada-valprint.c: Use string.h, not gdb_string.h.
514 * aix-thread.c: Use string.h, not gdb_string.h.
515 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
516 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
517 * alpha-nat.c: Use string.h, not gdb_string.h.
518 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
519 * alpha-tdep.c: Use string.h, not gdb_string.h.
520 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
521 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
522 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
523 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
524 * amd64-nat.c: Use string.h, not gdb_string.h.
525 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
526 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
527 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
528 * arch-utils.c: Use string.h, not gdb_string.h.
529 * arm-linux-nat.c: Use string.h, not gdb_string.h.
530 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
531 * arm-tdep.c: Use string.h, not gdb_string.h.
532 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
533 * armbsd-tdep.c: Use string.h, not gdb_string.h.
534 * armnbsd-nat.c: Use string.h, not gdb_string.h.
535 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
536 * armobsd-tdep.c: Use string.h, not gdb_string.h.
537 * avr-tdep.c: Use string.h, not gdb_string.h.
538 * ax-gdb.c: Use string.h, not gdb_string.h.
539 * ax-general.c: Use string.h, not gdb_string.h.
540 * bcache.c: Use string.h, not gdb_string.h.
541 * bfin-tdep.c: Use string.h, not gdb_string.h.
542 * breakpoint.c: Use string.h, not gdb_string.h.
543 * build-id.c: Use string.h, not gdb_string.h.
544 * buildsym.c: Use string.h, not gdb_string.h.
545 * c-exp.y: Use string.h, not gdb_string.h.
546 * c-lang.c: Use string.h, not gdb_string.h.
547 * c-typeprint.c: Use string.h, not gdb_string.h.
548 * c-valprint.c: Use string.h, not gdb_string.h.
549 * charset.c: Use string.h, not gdb_string.h.
550 * cli-out.c: Use string.h, not gdb_string.h.
551 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
552 * cli/cli-decode.c: Use string.h, not gdb_string.h.
553 * cli/cli-dump.c: Use string.h, not gdb_string.h.
554 * cli/cli-interp.c: Use string.h, not gdb_string.h.
555 * cli/cli-logging.c: Use string.h, not gdb_string.h.
556 * cli/cli-script.c: Use string.h, not gdb_string.h.
557 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
558 * cli/cli-utils.c: Use string.h, not gdb_string.h.
559 * coffread.c: Use string.h, not gdb_string.h.
560 * common/common-utils.c: Use string.h, not gdb_string.h.
561 * common/filestuff.c: Use string.h, not gdb_string.h.
562 * common/linux-procfs.c: Use string.h, not gdb_string.h.
563 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
564 * common/signals.c: Use string.h, not gdb_string.h.
565 * common/vec.h: Use string.h, not gdb_string.h.
566 * core-regset.c: Use string.h, not gdb_string.h.
567 * corefile.c: Use string.h, not gdb_string.h.
568 * corelow.c: Use string.h, not gdb_string.h.
569 * cp-abi.c: Use string.h, not gdb_string.h.
570 * cp-support.c: Use string.h, not gdb_string.h.
571 * cp-valprint.c: Use string.h, not gdb_string.h.
572 * cris-tdep.c: Use string.h, not gdb_string.h.
573 * d-lang.c: Use string.h, not gdb_string.h.
574 * dbxread.c: Use string.h, not gdb_string.h.
575 * dcache.c: Use string.h, not gdb_string.h.
576 * demangle.c: Use string.h, not gdb_string.h.
577 * dicos-tdep.c: Use string.h, not gdb_string.h.
578 * disasm.c: Use string.h, not gdb_string.h.
579 * doublest.c: Use string.h, not gdb_string.h.
580 * dsrec.c: Use string.h, not gdb_string.h.
581 * dummy-frame.c: Use string.h, not gdb_string.h.
582 * dwarf2-frame.c: Use string.h, not gdb_string.h.
583 * dwarf2loc.c: Use string.h, not gdb_string.h.
584 * dwarf2read.c: Use string.h, not gdb_string.h.
585 * elfread.c: Use string.h, not gdb_string.h.
586 * environ.c: Use string.h, not gdb_string.h.
587 * eval.c: Use string.h, not gdb_string.h.
588 * event-loop.c: Use string.h, not gdb_string.h.
589 * exceptions.c: Use string.h, not gdb_string.h.
590 * exec.c: Use string.h, not gdb_string.h.
591 * expprint.c: Use string.h, not gdb_string.h.
592 * f-exp.y: Use string.h, not gdb_string.h.
593 * f-lang.c: Use string.h, not gdb_string.h.
594 * f-typeprint.c: Use string.h, not gdb_string.h.
595 * f-valprint.c: Use string.h, not gdb_string.h.
596 * fbsd-nat.c: Use string.h, not gdb_string.h.
597 * findcmd.c: Use string.h, not gdb_string.h.
598 * findvar.c: Use string.h, not gdb_string.h.
599 * fork-child.c: Use string.h, not gdb_string.h.
600 * frame.c: Use string.h, not gdb_string.h.
601 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
602 * frv-tdep.c: Use string.h, not gdb_string.h.
603 * gdb.c: Use string.h, not gdb_string.h.
604 * gdb_bfd.c: Use string.h, not gdb_string.h.
605 * gdbarch.c: Use string.h, not gdb_string.h.
606 * gdbtypes.c: Use string.h, not gdb_string.h.
607 * gnu-nat.c: Use string.h, not gdb_string.h.
608 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
609 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
610 * go-exp.y: Use string.h, not gdb_string.h.
611 * go-lang.c: Use string.h, not gdb_string.h.
612 * go32-nat.c: Use string.h, not gdb_string.h.
613 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
614 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
615 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
616 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
617 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
618 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
619 * i386-linux-nat.c: Use string.h, not gdb_string.h.
620 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
621 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
622 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
623 * i386-tdep.c: Use string.h, not gdb_string.h.
624 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
625 * i386gnu-nat.c: Use string.h, not gdb_string.h.
626 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
627 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
628 * i387-tdep.c: Use string.h, not gdb_string.h.
629 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
630 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
631 * inf-child.c: Use string.h, not gdb_string.h.
632 * inf-ptrace.c: Use string.h, not gdb_string.h.
633 * inf-ttrace.c: Use string.h, not gdb_string.h.
634 * infcall.c: Use string.h, not gdb_string.h.
635 * infcmd.c: Use string.h, not gdb_string.h.
636 * inflow.c: Use string.h, not gdb_string.h.
637 * infrun.c: Use string.h, not gdb_string.h.
638 * interps.c: Use string.h, not gdb_string.h.
639 * iq2000-tdep.c: Use string.h, not gdb_string.h.
640 * irix5-nat.c: Use string.h, not gdb_string.h.
641 * jv-exp.y: Use string.h, not gdb_string.h.
642 * jv-lang.c: Use string.h, not gdb_string.h.
643 * jv-typeprint.c: Use string.h, not gdb_string.h.
644 * jv-valprint.c: Use string.h, not gdb_string.h.
645 * language.c: Use string.h, not gdb_string.h.
646 * linux-fork.c: Use string.h, not gdb_string.h.
647 * linux-nat.c: Use string.h, not gdb_string.h.
648 * lm32-tdep.c: Use string.h, not gdb_string.h.
649 * m2-exp.y: Use string.h, not gdb_string.h.
650 * m2-typeprint.c: Use string.h, not gdb_string.h.
651 * m32c-tdep.c: Use string.h, not gdb_string.h.
652 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
653 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
654 * m32r-rom.c: Use string.h, not gdb_string.h.
655 * m32r-tdep.c: Use string.h, not gdb_string.h.
656 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
657 * m68k-tdep.c: Use string.h, not gdb_string.h.
658 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
659 * m68klinux-nat.c: Use string.h, not gdb_string.h.
660 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
661 * m88k-tdep.c: Use string.h, not gdb_string.h.
662 * macrocmd.c: Use string.h, not gdb_string.h.
663 * main.c: Use string.h, not gdb_string.h.
664 * mdebugread.c: Use string.h, not gdb_string.h.
665 * mem-break.c: Use string.h, not gdb_string.h.
666 * memattr.c: Use string.h, not gdb_string.h.
667 * memory-map.c: Use string.h, not gdb_string.h.
668 * mep-tdep.c: Use string.h, not gdb_string.h.
669 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
670 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
671 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
672 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
673 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
674 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
675 * mi/mi-console.c: Use string.h, not gdb_string.h.
676 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
677 * mi/mi-interp.c: Use string.h, not gdb_string.h.
678 * mi/mi-main.c: Use string.h, not gdb_string.h.
679 * mi/mi-parse.c: Use string.h, not gdb_string.h.
680 * microblaze-rom.c: Use string.h, not gdb_string.h.
681 * microblaze-tdep.c: Use string.h, not gdb_string.h.
682 * mingw-hdep.c: Use string.h, not gdb_string.h.
683 * minidebug.c: Use string.h, not gdb_string.h.
684 * minsyms.c: Use string.h, not gdb_string.h.
685 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
686 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
687 * mips-tdep.c: Use string.h, not gdb_string.h.
688 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
689 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
690 * mipsread.c: Use string.h, not gdb_string.h.
691 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
692 * mn10300-tdep.c: Use string.h, not gdb_string.h.
693 * monitor.c: Use string.h, not gdb_string.h.
694 * moxie-tdep.c: Use string.h, not gdb_string.h.
695 * mt-tdep.c: Use string.h, not gdb_string.h.
696 * nbsd-tdep.c: Use string.h, not gdb_string.h.
697 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
698 * nto-procfs.c: Use string.h, not gdb_string.h.
699 * nto-tdep.c: Use string.h, not gdb_string.h.
700 * objc-lang.c: Use string.h, not gdb_string.h.
701 * objfiles.c: Use string.h, not gdb_string.h.
702 * opencl-lang.c: Use string.h, not gdb_string.h.
703 * osabi.c: Use string.h, not gdb_string.h.
704 * osdata.c: Use string.h, not gdb_string.h.
705 * p-exp.y: Use string.h, not gdb_string.h.
706 * p-lang.c: Use string.h, not gdb_string.h.
707 * p-typeprint.c: Use string.h, not gdb_string.h.
708 * parse.c: Use string.h, not gdb_string.h.
709 * posix-hdep.c: Use string.h, not gdb_string.h.
710 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
711 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
712 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
713 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
714 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
715 * printcmd.c: Use string.h, not gdb_string.h.
716 * procfs.c: Use string.h, not gdb_string.h.
717 * prologue-value.c: Use string.h, not gdb_string.h.
718 * python/py-auto-load.c: Use string.h, not gdb_string.h.
719 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
720 * ravenscar-thread.c: Use string.h, not gdb_string.h.
721 * regcache.c: Use string.h, not gdb_string.h.
722 * registry.c: Use string.h, not gdb_string.h.
723 * remote-fileio.c: Use string.h, not gdb_string.h.
724 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
725 * remote-mips.c: Use string.h, not gdb_string.h.
726 * remote-sim.c: Use string.h, not gdb_string.h.
727 * remote.c: Use string.h, not gdb_string.h.
728 * reverse.c: Use string.h, not gdb_string.h.
729 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
730 * ser-base.c: Use string.h, not gdb_string.h.
731 * ser-go32.c: Use string.h, not gdb_string.h.
732 * ser-mingw.c: Use string.h, not gdb_string.h.
733 * ser-pipe.c: Use string.h, not gdb_string.h.
734 * ser-tcp.c: Use string.h, not gdb_string.h.
735 * ser-unix.c: Use string.h, not gdb_string.h.
736 * serial.c: Use string.h, not gdb_string.h.
737 * sh-tdep.c: Use string.h, not gdb_string.h.
738 * sh64-tdep.c: Use string.h, not gdb_string.h.
739 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
740 * skip.c: Use string.h, not gdb_string.h.
741 * sol-thread.c: Use string.h, not gdb_string.h.
742 * solib-dsbt.c: Use string.h, not gdb_string.h.
743 * solib-frv.c: Use string.h, not gdb_string.h.
744 * solib-osf.c: Use string.h, not gdb_string.h.
745 * solib-spu.c: Use string.h, not gdb_string.h.
746 * solib-target.c: Use string.h, not gdb_string.h.
747 * solib.c: Use string.h, not gdb_string.h.
748 * somread.c: Use string.h, not gdb_string.h.
749 * source.c: Use string.h, not gdb_string.h.
750 * sparc-nat.c: Use string.h, not gdb_string.h.
751 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
752 * sparc-tdep.c: Use string.h, not gdb_string.h.
753 * sparc64-tdep.c: Use string.h, not gdb_string.h.
754 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
755 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
756 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
757 * spu-linux-nat.c: Use string.h, not gdb_string.h.
758 * spu-multiarch.c: Use string.h, not gdb_string.h.
759 * spu-tdep.c: Use string.h, not gdb_string.h.
760 * stabsread.c: Use string.h, not gdb_string.h.
761 * stack.c: Use string.h, not gdb_string.h.
762 * std-regs.c: Use string.h, not gdb_string.h.
763 * symfile.c: Use string.h, not gdb_string.h.
764 * symmisc.c: Use string.h, not gdb_string.h.
765 * symtab.c: Use string.h, not gdb_string.h.
766 * target.c: Use string.h, not gdb_string.h.
767 * thread.c: Use string.h, not gdb_string.h.
768 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
769 * tilegx-tdep.c: Use string.h, not gdb_string.h.
770 * top.c: Use string.h, not gdb_string.h.
771 * tracepoint.c: Use string.h, not gdb_string.h.
772 * tui/tui-command.c: Use string.h, not gdb_string.h.
773 * tui/tui-data.c: Use string.h, not gdb_string.h.
774 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
775 * tui/tui-file.c: Use string.h, not gdb_string.h.
776 * tui/tui-layout.c: Use string.h, not gdb_string.h.
777 * tui/tui-out.c: Use string.h, not gdb_string.h.
778 * tui/tui-regs.c: Use string.h, not gdb_string.h.
779 * tui/tui-source.c: Use string.h, not gdb_string.h.
780 * tui/tui-stack.c: Use string.h, not gdb_string.h.
781 * tui/tui-win.c: Use string.h, not gdb_string.h.
782 * tui/tui-windata.c: Use string.h, not gdb_string.h.
783 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
784 * typeprint.c: Use string.h, not gdb_string.h.
785 * ui-file.c: Use string.h, not gdb_string.h.
786 * ui-out.c: Use string.h, not gdb_string.h.
787 * user-regs.c: Use string.h, not gdb_string.h.
788 * utils.c: Use string.h, not gdb_string.h.
789 * v850-tdep.c: Use string.h, not gdb_string.h.
790 * valarith.c: Use string.h, not gdb_string.h.
791 * valops.c: Use string.h, not gdb_string.h.
792 * valprint.c: Use string.h, not gdb_string.h.
793 * value.c: Use string.h, not gdb_string.h.
794 * varobj.c: Use string.h, not gdb_string.h.
795 * vax-tdep.c: Use string.h, not gdb_string.h.
796 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
797 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
798 * windows-nat.c: Use string.h, not gdb_string.h.
799 * xcoffread.c: Use string.h, not gdb_string.h.
800 * xml-support.c: Use string.h, not gdb_string.h.
801 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
802 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
803
804 2013-11-18 Tom Tromey <tromey@redhat.com>
805
806 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
807 and strstr.
808 * gnulib/aclocal.m4: Update.
809 * gnulib/config.in: Update.
810 * gnulib/configure: Update.
811 * gnulib/import/Makefile.am: Update.
812 * gnulib/import/Makefile.in: Update.
813 * gnulib/import/errno.in.h: New.
814 * gnulib/import/intprops.h: New.
815 * gnulib/import/m4/errno_h.m4: New.
816 * gnulib/import/m4/gnulib-cache.m4: Update.
817 * gnulib/import/m4/gnulib-comp.m4: Update.
818 * gnulib/import/m4/strerror.m4: New.
819 * gnulib/import/m4/strstr.m4: New.
820 * gnulib/import/m4/sys_socket_h.m4: New.
821 * gnulib/import/strerror-override.c: New.
822 * gnulib/import/strerror-override.h: New.
823 * gnulib/import/strerror.c: New.
824 * gnulib/import/strstr.c: New.
825
826 2013-11-18 Tom Tromey <tromey@redhat.com>
827
828 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
829 multiple lines.
830
831 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
832
833 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
834 * sparc-tdep.h: And its prototype.
835
836 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
837 function.
838 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
839
840 2013-11-18 Pedro Alves <palves@redhat.com>
841
842 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
843 use unpack_pointer.
844
845 2013-11-18 Joel Brobecker <brobecker@adacore.com>
846
847 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
848 to -list-features output.
849
850 2013-11-17 Joel Brobecker <brobecker@adacore.com>
851
852 * dwarf2expr.h (struct dwarf_expr_context_funcs)
853 <read_addr_from_reg>: Renames "read_reg".
854 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
855 Adjust comment.
856 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
857 Use read_addr_from_reg in place of read_reg.
858 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
859 in place of read_reg.
860 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
861 dwarf_expr_read_reg.
862 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
863 with dwarf_expr_read_addr_from_reg.
864 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
865 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
866 needs_frame_read_addr_from_reg.
867
868 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
869
870 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
871
872 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
873
874 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
875 NULL.
876
877 2013-11-15 Tom Tromey <tromey@redhat.com>
878
879 PR c++/16117:
880 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
881 (classify_name): Likewise. Prefer a field of "this" over a
882 filename.
883 (classify_inner_name, yylex): Update.
884
885 2013-11-15 Joel Brobecker <brobecker@adacore.com>
886
887 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
888 Extend the documentation a bit.
889 <get_reg_value>: New field.
890 * dwarf2loc.c (dwarf_expr_get_reg_value)
891 (needs_frame_get_reg_value): New functions.
892 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
893 callback.
894 * dwarf2-frame.c (get_reg_value): New function.
895 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
896 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
897 Use new callback to compute result_val.
898
899 2013-11-15 Alan Modra <amodra@gmail.com>
900
901 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
902 (ppc64_desc_entry_point): ..this. Update comments here and at
903 call points.
904 (ppc64_standard_linkage1, ppc64_standard_linkage2,
905 ppc64_standard_linkage3): Update comments.
906 (ppc64_standard_linkage4, ppc64_standard_linkage5,
907 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
908 patterns.
909 (ppc64_standard_linkage4_target): New function.
910 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
911 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
912 nop match. Fix comment wrap.
913
914 2013-11-14 Pedro Alves <palves@redhat.com>
915
916 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
917 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
918
919 2013-11-14 Pedro Alves <palves@redhat.com>
920
921 * infrun.c (struct execution_control_state)
922 <stepped_after_stopped_by_watchpoint>: New field.
923 (get_inferior_stop_soon): New function.
924 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
925 moved to struct execution_control_state -- adjust. Use
926 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
927 new function.
928 (handle_signal_stop): New function, factored out from
929 handle_inferior_event.
930
931 2013-11-14 Pedro Alves <palves@redhat.com>
932
933 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
934 return a boolean.
935 * breakpoint.c (bpstat_explains_signal): Adjust to return a
936 boolean.
937 (explains_signal_watchpoint, base_breakpoint_explains_signal):
938 Adjust to return a boolean.
939 * breakpoint.h (enum bpstat_signal_value): Delete.
940 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
941 (bpstat_explains_signal): Likewise.
942 * infrun.c (handle_inferior_event) <random signal checks>:
943 bpstat_explains_signal now returns a boolean - adjust. No longer
944 consider hiding signals.
945
946 2013-11-14 Pedro Alves <palves@redhat.com>
947
948 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
949 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
950 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
951 BPSTAT_SIGNAL_HIDE.
952 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
953 instead of BPSTAT_SIGNAL_HIDE.
954 * infrun.c (handle_inferior_event): Rework random signal checks.
955
956 2013-11-14 Pedro Alves <palves@redhat.com>
957
958 * infrun.c (struct execution_control_state): Remove
959 'random_signal' field.
960 (handle_syscall_event): Use bpstat_causes_stop instead of
961 bpstat_explains_signal. Don't set ecs->random_signal.
962 (handle_inferior_event): New 'random_signal' local.
963 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
964 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
965 bpstat_explains_signal. Don't set ecs->random_signal.
966 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
967 ecs->random_signal.
968
969 2013-11-14 Pedro Alves <palves@redhat.com>
970
971 * infrun.c (handle_inferior_event): Move comment from the
972 function's body to the function's description, adjusted.
973
974 2013-11-14 Pedro Alves <palves@redhat.com>
975
976 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
977 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
978 Assert we never fall through out of the TARGET_WAITKIND_LOADED
979 case.
980
981 2013-11-14 Tom Tromey <tromey@redhat.com>
982
983 * python/py-linetable.c (ltpy_has_line)
984 (ltpy_get_all_source_lines): Fix loop termination condition.
985
986 2013-11-14 Joel Brobecker <brobecker@adacore.com>
987
988 * mi/mi-parse.h (struct mi_parse) <language>: New field.
989 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
990 PARSE->LANGUAGE during command execution, if set.
991 * mi/mi-parse.c: Add "language.h" #include.
992 (mi_parse): Add parsing of "--language" command option.
993
994 * NEWS: Add entry mentioning the new "--language" command option.
995
996 2013-11-14 Pedro Alves <palves@redhat.com>
997 Joel Brobecker <brobecker@adacore.com>
998
999 * cli/cli-utils.h (extract_arg_const): Add declaration.
1000 * cli/cli-utils.c (extract_arg_const): New function.
1001 (extract_arg): Reimplement using extract_arg_const.
1002
1003 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1004
1005 * language.h: Add "symtab.h" #include.
1006
1007 2013-11-13 Doug Evans <xdje42@gmail.com>
1008
1009 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1010 specific breakpoints, don't evaluate breakpoint condition if
1011 different thread.
1012
1013 2013-11-13 Keith Seitz <keiths@redhat.com>
1014
1015 PR c++/7935
1016 PR c++/10541
1017 * cp-support.c (insepct_type): Add support for substituting
1018 namespace aliases, too.
1019 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1020 for DW_TAG_imported_declaration.
1021 (add_partial_symbol): Likewise.
1022 (process_die): Handle namespace aliases with
1023 read_namespace_alias.
1024 (die_needs_namespace): Add DW_TAG_imported_declaration.
1025 (read_namespace_alias): New function.
1026 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1027 (new_symbol_full): Handle DW_TAG_imported_declaration.
1028
1029 2013-11-13 Keith Seitz <keiths@redhat.com>
1030
1031 * p-exp.y (uptok): Make first parameter const.
1032 (yylex): Make `tokstart' and `tokptr' const.
1033 Don't copy the lexer input to a temporary buffer.
1034 Make `p' const.
1035 Remove const workaround for parse_escape.
1036 Create a temporary buffer for a convenience variable instead
1037 of doing in-place modification of the input.
1038 If a match is found with a different case from the input,
1039 do not change the input at all.
1040 Use `tmp' to construct the resultant stoken instead of
1041 `tokstart'.
1042
1043 2013-11-13 Doug Evans <xdje42@gmail.com>
1044
1045 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1046
1047 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1048
1049 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1050 entry with "ada-exceptions".
1051
1052 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1053
1054 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1055 after re-initialization of OBJFILE's obstack.
1056
1057 2013-11-12 Doug Evans <xdje42@gmail.com>
1058
1059 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1060 bs->stop != 0 on entry. Update function comment. Simplify early
1061 exit for frame mismatch. Reindent rest of function.
1062
1063 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1064
1065 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1066 NULL.
1067
1068 2013-11-12 Doug Evans <dje@google.com>
1069
1070 Work around gold/15646.
1071 * dwarf2read.c (read_index_from_section): Update comment.
1072 (struct dw2_symtab_iterator): New member global_seen.
1073 (dw2_symtab_iter_init): Initialize it.
1074 (dw2_symtab_iter_next): Skip duplicate global symbols.
1075 (dw2_expand_symtabs_matching): Ditto.
1076
1077 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1078
1079 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1080 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1081 command.
1082 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1083 (mi_cmd_info_ada_exceptions): New function.
1084 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1085
1086 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1087
1088 * ada-lang.h: #include "vec.h".
1089 (struct ada_exc_info): New.
1090 (ada_exc_info): New typedef.
1091 (DEF_VEC_O(ada_exc_info)): New vector.
1092 (ada_exceptions_list): Add declaration.
1093 * ada-lang.c (ada_is_exception_sym)
1094 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1095 (sort_remove_dups_ada_exceptions_list)
1096 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1097 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1098 (ada_exceptions_list_1, ada_exceptions_list)
1099 (info_exceptions_command): New function.
1100 (_initialize_ada_language): Add "info exception" command.
1101
1102 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1103
1104 PR python/15629
1105 * NEWS: Add linetable feature.
1106 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1107 * python/py-linetable.c: New file.
1108 * python/py-symtab.c (stpy_get_linetable): New function.
1109 * python/python-internal.h (symtab_to_linetable_object): Declare.
1110 (gdbpy_initialize_linetable): Ditto.
1111 * python/python.c (_initialize_python): Call
1112 gdbpy_initialize_linetable.
1113
1114 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1115
1116 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1117 the documentation of fields "except_string" and "condition".
1118 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1119 CONDITION on the heap before passing it to
1120 create_ada_exception_catchpoint.
1121 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1122 CONDITION.
1123
1124 2013-11-11 Tom Tromey <tromey@redhat.com>
1125
1126 * config.in, configure: Rebuild.
1127 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1128
1129 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1130
1131 * remote-sim.c (gdbsim_detach): Break declaration into
1132 shorter lines. No code change.
1133
1134 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1135
1136 * remote-sim.c (gdbsim_detach): Fix prototype.
1137
1138 2013-11-08 Doug Evans <dje@google.com>
1139
1140 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1141 (create_debug_types_hash_table): Only print debugging messages for
1142 each TU if dwarf2-read >= 2.
1143 (process_queue): Ditto.
1144 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1145 Update doc string.
1146
1147 2013-11-08 Tom Tromey <tromey@redhat.com>
1148
1149 * configure: Rebuild.
1150 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1151
1152 2013-11-08 Tom Tromey <tromey@redhat.com>
1153
1154 * configure, config.in: Rebuild.
1155 * configure.ac: Remove unused configury.
1156
1157 2013-11-08 Tom Tromey <tromey@redhat.com>
1158
1159 * m32c-tdep.c: Use gdb_string.h.
1160
1161 2013-11-08 Tom Tromey <tromey@redhat.com>
1162
1163 * configure, config.in: Rebuild.
1164 * configure.ac: Remove all link.h-related checks.
1165
1166 2013-11-08 Tom Tromey <tromey@redhat.com>
1167
1168 * acinclude.m4: Include common.m4.
1169 * common/common.m4: New file.
1170 * configure, config.in: Rebuild.
1171 * configure.ac: Use GDB_AC_COMMON.
1172
1173 2013-11-08 Doug Evans <dje@google.com>
1174
1175 * NEWS: Mention that "set debug symtab-create" now accepts a
1176 verbosity level.
1177 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1178 to set the symtab's primary flag.
1179 * jit.c (finalize_symtab): Ditto.
1180 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1181 * symfile.c (allocate_symtab): Only print debugging messages for
1182 symtab_create_debug levels 2 and higher.
1183 * symtab.c (symtab_create_debug): Change type to unsigned int.
1184 (set_symtab_primary): New function.
1185 (_initialize_symtab): Change "set debug symtab-create" to a
1186 zuinteger option.
1187 * symtab.h (set_symtab_primary): Declare.
1188 (symtab_create_debug): Update decl.
1189
1190 2013-11-08 Tom Tromey <tromey@redhat.com>
1191
1192 * aix-thread.c (aix_thread_detach): Update.
1193 * corelow.c (core_detach): Update.
1194 * darwin-nat.c (darwin_detach): Update.
1195 * dec-thread.c (dec_thread_detach): Update.
1196 * gnu-nat.c (gnu_detach): Update.
1197 * go32-nat.c (go32_detach): Update.
1198 * inf-ptrace.c (inf_ptrace_detach): Update.
1199 * inf-ttrace.c (inf_ttrace_detach): Update.
1200 * linux-fork.c (linux_fork_detach): Update.
1201 * linux-fork.h (linux_fork_detach): Update.
1202 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1203 local for const-correctness.
1204 * linux-thread-db.c (thread_db_detach): Update.
1205 * monitor.c (monitor_detach): Update.
1206 * nto-procfs.c (procfs_detach): Update.
1207 * procfs.c (procfs_detach): Update.
1208 * record.c (record_detach): Update.
1209 * record.h (record_detach): Update.
1210 * remote-m32r-sdi.c (m32r_detach): Update.
1211 * remote-mips.c (mips_detach): Update.
1212 * remote-sim.c (gdbsim_detach): Update.
1213 * remote.c (remote_detach_1, remote_detach)
1214 (extended_remote_detach): Update.
1215 * sol-thread.c (sol_thread_detach): Update.
1216 * target.c (target_detach): Make "args" const.
1217 (init_dummy_target): Update.
1218 * target.h (struct target_ops) <to_detach>: Make argument const.
1219 (target_detach): Likewise.
1220 * windows-nat.c (windows_detach): Update.
1221
1222 2013-11-07 Doug Evans <dje@google.com>
1223
1224 PR 11786
1225 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1226 and align fields for PT_GNU_RELRO segments.
1227
1228 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1229
1230 PR python/15747
1231 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1232
1233 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1234
1235 * NEWS: Document Python temporary breakpoint support.
1236 * python/py-breakpoint.c (bppy_get_temporary): New function.
1237 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1238 to temporary if True.
1239
1240 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1241
1242 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1243 removed to allow analyzing unconditional branch instructions
1244 with PC-relative offsets of zero.
1245
1246 2013-11-07 Yao Qi <yao@codesourcery.com>
1247
1248 * mi/mi-cmd-var.c: Include "language.h".
1249 (mi_cmd_var_info_expression): Get language name from
1250 language_defn.
1251 * varobj.c (varobj_language_string): Remove.
1252 (variable_language): Remove declaration.
1253 (languages): Remove.
1254 (varobj_get_language): Change the type of return value.
1255 (variable_language): Remove.
1256 * varobj.h (enum varobj_languages): Remove.
1257 (varobj_language_string): Remove declaration.
1258 (varobj_get_language): Update declaration.
1259
1260 2013-11-07 Yao Qi <yao@codesourcery.com>
1261
1262 * language.h (struct language_defn) <la_natural_name>: New
1263 field.
1264 * ada-lang.c (ada_language_defn): Initialize field
1265 'la_natural_name'.
1266 * c-lang.c (c_language_defn): Likewise.
1267 (cplus_language_defn, asm_language_defn): Likewise.
1268 * d-lang.c (d_language_defn): Likewise.
1269 * f-lang.c (f_language_defn): Likewise.
1270 * go-lang.c (go_language_defn): Likewise.
1271 * jv-lang.c (java_language_defn): Likewise.
1272 * language.c (unknown_language_defn ): Likewise.
1273 (auto_language_defn): Likewise.
1274 * m2-lang.c (m2_language_defn): Likewise.
1275 * objc-lang.c (objc_language_defn): Likewise.
1276 * opencl-lang.c (opencl_language_defn): Likewise.
1277 * p-lang.c (pascal_language_defn): Likewise.
1278
1279 2013-11-07 Yao Qi <yao@codesourcery.com>
1280
1281 * language.c (language_str): Return const char *.
1282 (add_language): Add const to 'language_names'
1283 * language.h (struct language_defn) <la_name>: Add const.
1284 (language_str: Update declaration.
1285
1286 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1287
1288 * s390-linux-nat.c (s390_read_description): Consider the TE field
1289 in the HWCAP for determining 'have_regset_tdb'.
1290
1291 2013-11-06 Will Newton <will.newton@linaro.org>
1292
1293 PR gdb/12866
1294 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1295 values. (read_partial_die): Likewise.
1296
1297 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1298
1299 PR cli/16122
1300 * top.c (command_line_input): Unify interactivity tests to use
1301 input_from_terminal_p.
1302 * event-top.c (command_line_handler): Likewise.
1303
1304 2013-11-06 Yao Qi <yao@codesourcery.com>
1305
1306 * Makefile.in (check-perf): New target.
1307
1308 2013-11-05 Will Newton <will.newton@linaro.org>
1309
1310 PR gdb/7670
1311 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1312 (arm_print_float_info): Likewise.
1313
1314 2013-11-04 Anton Blanchard <anton@samba.org>
1315
1316 * target.c (memory_xfer_partial): Cap write to 4KB.
1317
1318 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1319
1320 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1321 probe scan even when the arch provides no get_longjmp_target.
1322
1323 2013-10-31 Pedro Alves <palves@redhat.com>
1324
1325 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1326 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1327 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1328 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1329 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1330 <bpstat handling>: If the bpstat chain wants the signal to be
1331 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1332 GDB_SIGNAL_TRAP.
1333
1334 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1335
1336 * breakpoint.c (update_watchpoint): Update error message and add
1337 an additional error message.
1338
1339 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1340
1341 * s390-tdep.h: Rename to...
1342 * s390-linux-tdep.h: ...here.
1343 * s390-tdep.c: Rename to...
1344 * s390-linux-tdep.c: ...here. Adjust #include.
1345 * s390-nat.c: Rename to...
1346 * s390-linux-nat.c: ...here. Adjust #include.
1347 * config/s390/s390.mh: Rename to...
1348 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1349 s390-linux-nat.o.
1350 * configure.host: Reflect host rename "s390" -> "linux".
1351 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1352 * Makefile.in (ALL_TARGET_OBS): Likewise.
1353 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1354 s390-linux-tdep.h.
1355 (ALLDEPFILES): Reflect rename of .c files.
1356
1357 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1358
1359 * s390-nat.c: Whitespace cleanup.
1360 * s390-tdep.c: Likewise.
1361 * s390-tdep.h: Remove empty line at end of file.
1362
1363 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1364
1365 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1366 siginfo_size.
1367
1368 2013-10-29 Tom Tromey <tromey@redhat.com>
1369
1370 * utils.c (reg): Move undefinition...
1371 * gdb_curses.h: ... here. Update comment to mention AIX.
1372
1373 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1374
1375 * exec.h (add_target_sections_of_objfile): New declaration.
1376 * exec.c (add_target_sections_of_objfile): New function.
1377 * symfile.c (add_symbol_file_command): Update current target sections.
1378 (remove_symbol_file_command): New command.
1379 (symfile_free_objfile): New function.
1380 (_initialize_symfile): Register observer for free_objfile events.
1381 * NEWS: Add description of the remove-symbol-file command.
1382 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1383 * objfiles.c (free_objfile): Notify free_objfile.
1384 (is_addr_in_objfile): New function.
1385 * objfiles.h (is_addr_in_objfile): New declaration.
1386 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1387 events instead of solib_unloaded events.
1388 (_initialize_printcmd): Register observer for free_objfile instead
1389 of solib_unloaded notifications.
1390 * solib.c (remove_user_added_objfile): New function.
1391 (_initialize_symfile): Add remove-symbol-file.
1392
1393 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1394
1395 * infcmd.c (default_print_one_register_info): Use val_print to
1396 print all values even optimized out or unavailable ones. Don't
1397 try to print a raw form of optimized out or unavailable values.
1398
1399 2013-10-29 Yao Qi <yao@codesourcery.com>
1400
1401 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1402 parameter 'arg' instead of from program_space_data.
1403 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1404 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1405 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1406 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1407 * inflow.c (inflow_inferior_data_cleanup): Get data from
1408 parameter 'arg' instead of inferior_data.
1409 * registry.h: Add comments.
1410
1411 2013-10-28 Pedro Alves <palves@redhat.com>
1412
1413 * breakpoint.c (watchpoints_triggered)
1414 <!target_stopped_data_address>: Hardcode return 1.
1415
1416 2013-10-28 Pedro Alves <palves@redhat.com>
1417
1418 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1419 level and reindent.
1420
1421 2013-10-28 Pedro Alves <palves@redhat.com>
1422
1423 * infrun.c (process_event_stop_test): New function, factored out
1424 from handle_inferior_event.
1425 (handle_inferior_event): 'process_event_stop_test' is now a
1426 function instead of a goto label -- adjust.
1427
1428 2013-10-28 Pedro Alves <palves@redhat.com>
1429
1430 * infrun.c (handle_inferior_event): Move process_event_stop_test
1431 goto label to the else branch of the ecs->random_signal check,
1432 along with FRAME and GDBARCH re-fetching.
1433
1434 2013-10-28 Pedro Alves <palves@redhat.com>
1435
1436 * infrun.c (switch_back_to_stepped_thread): New function, factored
1437 out from handle_inferior_event.
1438 (handle_inferior_event): Adjust to call
1439 switch_back_to_stepped_thread. Call it also at the tail of the
1440 random signal handling, and return, instead of also handling
1441 random signals just before the stepping tests.
1442
1443 2013-10-28 Pedro Alves <palves@redhat.com>
1444
1445 * infrun.c (clear_stop_func): Delete.
1446 (handle_inferior_event): Don't call clear_stop_func and don't
1447 clear 'ecs->random_signal'.
1448
1449 2013-10-27 Yao Qi <yao@codesourcery.com>
1450
1451 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1452 (varobj_create, varobj_get_path_expr): Update.
1453 (varobj_value_has_mutated, varobj_update): Likewise.
1454 (create_child_with_value, new_root_variable): Likewise.
1455 (number_of_children, name_of_variable): Likewise.
1456 (value_of_child, my_value_of_variable): Likewise.
1457 (varobj_value_is_changeable_p): Likewise.
1458
1459 2013-10-25 Yao Qi <yao@codesourcery.com>
1460
1461 * language.h (struct lang_varobj_ops): Declare.
1462 (struct language_defn) <la_varobj_ops>: New field.
1463 * ada-lang.c: Include "varobj.h"
1464 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1465 ada_varobj_ops.
1466 * c-lang.c: Include "varobj.h"
1467 (c_language_defn): Initialize field 'la_varobj_ops' with
1468 c_varobj_ops.
1469 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1470 cplus_varobj_ops.
1471 (asm_language_defn): Initialize field 'la_varobj_ops' with
1472 default_varobj_ops.
1473 (minimal_language_defn): Likewise.
1474 * d-lang.c (d_language_defn): Likewise.
1475 * f-lang.c (f_language_defn): Likewise.
1476 * go-lang.c (go_language_defn): Likewise.
1477 * m2-lang.c (m2_language_defn): Likewise.
1478 * objc-lang.c (objc_language_defn): Likewise.
1479 * opencl-lang.c (opencl_language_defn): Likewise.
1480 * p-lang.c (pascal_language_defn): Likewise.
1481 * language.c (unknown_language_defn): Likewise.
1482 (auto_language_defn): Likewise.
1483 (local_language_defn): Likewise.
1484 * jv-lang.c (java_language_defn): Initialize field
1485 'la_varobj_ops' with java_varobj_ops.
1486 * varobj.c (varobj_create): Update.
1487 * varobj.h (default_varobj_ops): Define macro.
1488
1489 2013-10-25 Pedro Alves <palves@redhat.com>
1490
1491 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1492 static field value.
1493 (cp_print_static_field): If the value is entirely optimized out,
1494 print <optimized out> here.
1495 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1496 static field value.
1497 * p-valprint.c (pascal_object_print_static_field): If the value is
1498 entirely optimized out, print <optimized out> here.
1499 * valops.c (do_search_struct_field)
1500 (value_struct_elt_for_reference): No longer handle a NULL static
1501 field value.
1502 * value.c (value_static_field): Return an optimized out value
1503 instead of NULL.
1504
1505 2013-10-25 Yao Qi <yao@codesourcery.com>
1506
1507 * remote.c (remote_traceframe_info): Return early if
1508 traceframe is not selected.
1509
1510 2013-10-25 Yao Qi <yao@codesourcery.com>
1511
1512 * tracepoint.c (traceframe_fun): Remove.
1513 (traceframe_sal): Remove.
1514 (set_traceframe_context): Add local variables.
1515
1516 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1517
1518 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1519 and parameter name.
1520
1521 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1522
1523 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1524 failure from register information collection.
1525
1526 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1527
1528 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1529 member.
1530 (linux_corefile_thread_callback): Update accordingly.
1531 (linux_make_corefile_notes): Likewise.
1532
1533 2013-10-24 Pedro Alves <palves@redhat.com>
1534
1535 * NEWS (New options): Mention set/show startup-with-shell.
1536 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1537 instead of 3.
1538 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1539 startup-with-shell'.
1540 (show_startup_with_shell): New function.
1541 (_initialize_fork_child): Register the set/show startup-with-shell
1542 commands.
1543 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1544 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1545 * procfs.c (procfs_init_inferior): Remove comment.
1546 * infcmd.c (startup_with_shell): New global.
1547 * inferior.h (startup_with_shell): Declare global.
1548 (STARTUP_WITH_SHELL): Delete.
1549 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1550
1551 2013-10-23 Pedro Alves <palves@redhat.com>
1552
1553 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1554 * common/signals.c: Include "gdb_assert.h".
1555 (signals): New field 'symbol'.
1556 (SET): Use the 'symbol' parameter.
1557 (gdb_signal_to_symbol_string): New function.
1558 * infrun.c (handle_inferior_event) <random signal>: In debug
1559 output, print the random signal enum as string in addition to its
1560 number.
1561 * target/waitstatus.c (target_waitstatus_to_string): Print the
1562 signal's enum value as string instead of the (POSIX) signal name.
1563
1564 2013-10-23 Gary Benson <gbenson@redhat.com>
1565
1566 PR 16013
1567 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1568 from 32 to 18. Adjusted fscanf format string accordingly.
1569 (Avoids leaving cmd unterminated.)
1570 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1571 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1572 that local_address and remote_address will not overflow.
1573 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1574 leaving dependencies unterminated. Parse size as "%u" to match
1575 definition.
1576
1577 2013-10-22 Pedro Alves <palves@redhat.com>
1578
1579 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1580 set ecs->random signal.
1581
1582 2013-10-22 Pedro Alves <palves@redhat.com>
1583
1584 * infrun.c (keep_going): Update comments.
1585
1586 2013-10-22 Pedro Alves <palves@redhat.com>
1587
1588 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1589 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1590
1591 2013-10-22 Pedro Alves <palves@redhat.com>
1592
1593 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1594 GDB_EXC_BAD_ACCESS.
1595 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1596 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1597 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1598 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1599 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1600 (GDB_SIGNAL_LAST): Change description string.
1601 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1602 Adjust to signal renaming.
1603 * darwin-nat.c (darwin_decode_message): Likewise.
1604
1605 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1606
1607 * MAINTAINERS (Write After Approval): Add myself to the list.
1608
1609 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1610
1611 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1612 forced off, downgrade them to software watchpoints if possible,
1613 and error out if not possible.
1614 (watch_command_1): Move watchpoint type selection closer to
1615 watchpoint creation, and extend the comments.
1616
1617 2013-10-18 Pedro Alves <palves@redhat.com>
1618
1619 PR gdb/16062
1620 * infrun.c (handle_inferior_event): Keep going if we got a random
1621 signal we should not stop for, instead of falling through to the
1622 step tests.
1623
1624 2013-10-18 Yao Qi <yao@codesourcery.com>
1625
1626 * c-varobj.c (cplus_number_of_children): Fix indentation.
1627
1628 2013-10-17 Tom Tromey <tromey@redhat.com>
1629
1630 PR gdb/15995:
1631 * printcmd.c (printcmd): Call gdb_flush.
1632
1633 2013-10-17 Tom Tromey <tromey@redhat.com>
1634
1635 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1636 (elf_locate_sections): Update.
1637
1638 2013-10-17 Yao Qi <yao@codesourcery.com>
1639
1640 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1641 * ada-varobj.c: Remove the include of ada-varobj.h.
1642 (ada_varobj_get_number_of_children): Declare.
1643 (ada_varobj_get_name_of_child): Make it static.
1644 (ada_varobj_get_path_expr_of_child): Likewise.
1645 (ada_varobj_get_value_of_child): Likewise.
1646 (ada_varobj_get_type_of_child): Likewise.
1647 (ada_varobj_get_value_of_array_variable): Likewise.
1648 * ada-varobj.h: Remove.
1649
1650 2013-10-17 Yao Qi <yao@codesourcery.com>
1651
1652 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1653 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1654 * ada-varobj.c: Include "varobj.h".
1655 (ada_number_of_children): New. Moved from varobj.c.
1656 (ada_name_of_variable, ada_name_of_child): Likewise.
1657 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1658 (ada_type_of_child, ada_value_of_variable): Likewise.
1659 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1660 (ada_varobj_ops): New.
1661 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1662 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1663 * gdbtypes.h (get_target_type): Declare.
1664 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1665 "ada-lang.h".
1666 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1667 (ANONYMOUS_UNION_NAME): Likewise.
1668 (get_type, get_value_type, get_target_type): Remove declarations.
1669 (value_get_print_value, varobj_value_get_print_value): Likewise.
1670 (c_number_of_children, c_name_of_variable): Likewise.
1671 (c_name_of_child, c_path_expr_of_child): Likewise.
1672 (c_value_of_child, c_type_of_child): Likewise.
1673 (c_value_of_variable, cplus_number_of_children): Likewise.
1674 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1675 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1676 (cplus_value_of_child, cplus_type_of_child): Likewise.
1677 (cplus_value_of_variable, java_number_of_children): Likewise.
1678 (java_name_of_variable, java_name_of_child): Likewise.
1679 (java_path_expr_of_child, java_value_of_child): Likewise.
1680 (java_type_of_child, java_value_of_variable): Likewise.
1681 (ada_number_of_children, ada_name_of_variable): Likewise.
1682 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1683 (ada_value_of_child, ada_type_of_child): Likewise.
1684 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1685 (ada_value_has_mutated): Likewise.
1686 (struct language_specific): Move it to varobj.h.
1687 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1688 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1689 Callers update.
1690 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1691 Make it extern.
1692 (is_anonymous_child): Move it to c-varobj.c and rename to
1693 varobj_is_anonymous_child. Caller update.
1694 (get_type): Move it to c-varobj.c.
1695 (get_value_type): Rename it varobj_get_value_type. Make it
1696 extern.
1697 (get_target_type): Move it gdbtypes.c.
1698 (varobj_formatted_print_options): New function.
1699 (value_get_print_value): Rename it to
1700 varobj_value_get_print_value and make it extern.
1701 (varobj_value_is_changeable_p): Make it extern.
1702 (adjust_value_for_child_access): Move it to c-varobj.c.
1703 (default_value_is_changeable_p): Rename it to
1704 varobj_default_value_is_changeable_p. Make it extern.
1705 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1706 (c_name_of_child, c_path_expr_of_child): Likewise.
1707 (c_value_of_child, c_type_of_child): Likewise.
1708 (c_value_of_variable, cplus_number_of_children): Likewise.
1709 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1710 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1711 (cplus_value_of_child, cplus_type_of_child): Likewise.
1712 (cplus_value_of_variable): Likewise.
1713 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1714 (java_name_of_child, java_path_expr_of_child): Likewise.
1715 (java_value_of_child, java_type_of_child): Likewise.
1716 (java_value_of_variable): Likewise.
1717 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1718 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1719 (ada_value_of_child, ada_type_of_child): Likewise.
1720 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1721 (ada_value_has_mutated): Likewise.
1722 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1723 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1724 (c_varobj_ops, cplus_varobj_ops): Declare.
1725 (java_varobj_ops, ada_varobj_ops): Declare.
1726 (varobj_default_value_is_changeable_p): Declare.
1727 (varobj_value_is_changeable_p): Declare.
1728 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1729 (varobj_get_path_expr_parent): Declare.
1730 (varobj_value_get_print_value): Declare.
1731 (varobj_formatted_print_options): Declare.
1732 (varobj_restrict_range): Declare.
1733
1734 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1735
1736 * target/waitstatus.h (target_waitkind): Remove spurious
1737 character from the comments.
1738
1739 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1740
1741 * gdbarch.sh (get_longjmp_target): Add method documentation.
1742 * gdbarch.h: Regenerate.
1743
1744 2013-10-16 Tom Tromey <tromey@redhat.com>
1745
1746 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1747 label.
1748
1749 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1750
1751 * gcore.in: Call GDB using the full path to the gcore script.
1752 Error out if the GDB binary is not found.
1753
1754 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1755
1756 PR gdb/16014
1757 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1758 sizeof.
1759
1760 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1761
1762 PR gdb/16042
1763 * target.c (target_disable_btrace): Fix invalid return value for
1764 void function.
1765 (target_teardown_btrace): Likewise.
1766
1767 2013-10-14 Yao Qi <yao@codesourcery.com>
1768
1769 * varobj.c (struct varobj): Move most of the fields to
1770 varobj.h.
1771 (struct varobj_dynamic): New struct.
1772 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1773 (varobj_has_more): Likewise.
1774 (dynamic_varobj_has_child_method): Likewise.
1775 (update_dynamic_varobj_children): Likewise.
1776 (varobj_get_num_children): Likewise.
1777 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1778 (install_new_value_visualizer): Likewise.
1779 (install_new_value_visualizer, install_new_value): Likewise.
1780 (varobj_update, new_variable, free_variable): Likewise.
1781 (my_value_of_variable, value_get_print_value): Likewise.
1782 (install_visualizer): Change the type of parameter 'var' to
1783 'struct varobjd_dynamic *'. Callers update.
1784 * varobj.h (struct varobj): Moved from varobj.c.
1785 (struct varobj) <dynamic>: New field.
1786
1787 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1788
1789 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1790 as the preferred name of r30.
1791 * nios2-linux-tdep.c (reg_offsets): Likewise.
1792 * features/nios2-cpu.xml: Likewise.
1793 * features/nios2-linux.c: Regenerated.
1794 * features/nios2.c: Regenerated.
1795 * regformats/nios2-linux.dat: Regenerated.
1796
1797 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1798
1799 Canonicalize directories for EXEC_FILENAME.
1800 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1801 exec_filename.
1802 * utils.c (gdb_realpath_keepfile): New function.
1803 * utils.h (gdb_realpath_keepfile): New declaration.
1804
1805 2013-10-11 Doug Evans <dje@google.com>
1806
1807 * Makefile.in (GDBFLAGS): New variable.
1808 (run): New rule.
1809
1810 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1811
1812 * NEWS: Add entry documenting the new "-catch-assert" and
1813 "-catch-exception" GDB/MI commands.
1814
1815 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1816
1817 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1818 "enabled".
1819 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1820 "enabled". Set B->ENABLE_STATE accordingly.
1821 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1822 ada-lang.c.
1823 (create_ada_exception_catchpoint): Add declaration.
1824 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1825 (create_ada_exception_catchpoint): Make non-static. Add new
1826 parameter "disabled". Use it in call to
1827 init_ada_exception_breakpoint.
1828 (catch_ada_exception_command): Add parameter "enabled" in call
1829 to create_ada_exception_catchpoint.
1830 (catch_assert_command): Likewise.
1831
1832 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1833 Add declarations.
1834 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1835 "catch-exception" commands.
1836 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1837 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1838
1839 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1840
1841 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1842 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1843 of all its enumerates with "ada_". Update the rest of this
1844 file throughout.
1845
1846 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1847
1848 * ada-lang.c (ada_decode_exception_location): Delete.
1849 (create_ada_exception_catchpoint): Remove arguments "sal",
1850 "addr_string" and "ops". Add argument "ex_kind" instead.
1851 Adjust implementation accordingly, calling ada_exception_sal
1852 to get the entities it no longer gets passed as arguments.
1853 Document the function's arguments.
1854 (catch_ada_exception_command): Use catch_ada_exception_command_split
1855 instead of ada_decode_exception_location, and update call to
1856 create_ada_exception_catchpoint.
1857 (catch_ada_assert_command_split): Renames
1858 ada_decode_assert_location. Remove parameters "addr_string" and
1859 "ops", and now returns void. Adjust implementation accordingly.
1860 Update the function documentation.
1861 (catch_assert_command): Use catch_ada_assert_command_split
1862 instead of ada_decode_assert_location. Update call to
1863 create_ada_exception_catchpoint.
1864
1865 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1866
1867 * utils.h (perror_warning_with_name): Add declaration.
1868 * utils.c (perror_warning_with_name): New function.
1869 * cli/cli-cmds.c (source_script_with_search): Add call to
1870 perror_warning_with_name if from_tty is nul.
1871
1872 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1873
1874 * utils.c (perror_string): New function, extracted out of
1875 throw_perror_with_name.
1876 (throw_perror_with_name): Rework to use perror_string.
1877
1878 2013-10-11 Yao Qi <yao@codesourcery.com>
1879
1880 * remote.c (discard_pending_stop_replies_in_queue): Update
1881 declaration.
1882 (struct stop_reply) <rs>: New field.
1883 (remove_stop_reply_of_remote_state): New function.
1884 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1885 Callers update. Pass remove_stop_reply_of_remote_state to
1886 QUEUE_iterate.
1887 (remote_parse_stop_reply): Initialize field 'rs'.
1888
1889 2013-10-10 Will Newton <will.newton@linaro.org>
1890
1891 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1892 linux_init_abi.
1893
1894 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1895
1896 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1897 serial_baud_show_cmd.
1898 (_initialize_cli_cmds): Delete the code creating the
1899 "set/show remotebaud" commands.
1900 * serial.c (baud_rate): Move here from top.c.
1901 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1902 (_initialize_serial): Create "set/show serial baud" commands.
1903 Add "set/show remotebaud" command aliases.
1904 * top.c (baud_rate): Moved to serial.c.
1905 * NEWS: Document the new "set/show serial baud" commands,
1906 replacing "set/show remotebaud".
1907
1908 2013-10-09 Pedro Alves <palves@redhat.com>
1909
1910 * breakpoint.c (insert_bp_location): Use memory_error_message to
1911 build the memory error string.
1912 * c-lang.c: Include "gdbcore.h".
1913 (c_get_string): Use memory_error to throw error.
1914 (target_xfer_memory_error): Delete.
1915 (memory_error_message): New, factored out from
1916 target_xfer_memory_error.
1917 (memory_error): Change parameter type to target_xfer_error.
1918 Rewrite.
1919 (read_memory): Use memory_error instead of
1920 target_xfer_memory_error.
1921 * gdbcore.h: Include "target.h".
1922 (memory_error): Change parameter type to target_xfer_error.
1923 (memory_error_message): Declare function.
1924 * target.c (target_read_memory, target_read_stack)
1925 (target_write_memory, target_write_raw_memory): Return
1926 TARGET_XFER_E_IO on error. Adjust comments.
1927 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1928 instead of EIO.
1929 * target.h (target_read, target_insert_breakpoint)
1930 (target_remove_breakpoint): Adjust comments.
1931 * valprint.c (partial_memory_read): Rename parameter, and adjust
1932 comment.
1933 (val_print_string): Use memory_error_message to build the memory
1934 error string.
1935
1936 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1937
1938 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1939 result variable. Rename variable fopen_e_ever_failed to
1940 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1941
1942 2013-10-09 Pedro Alves <palves@redhat.com>
1943
1944 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1945 (monitor_write_memory_longlongs, monitor_write_memory_block):
1946 Constify 'myaddr' parameter.
1947 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1948 helper.
1949 (monitor_xfer_partial): New function.
1950 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1951 hook. Install a to_xfer_partial hook.
1952
1953 2013-10-09 Tom Tromey <tromey@redhat.com>
1954
1955 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1956 bfd_get_alt_debug_link_info.
1957
1958 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1959
1960 New flag OBJF_NOT_FILENAME.
1961 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1962 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1963 allocate_objfile.
1964 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1965 symbol_file_add_from_bfd.
1966 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1967 allocate_objfile.
1968 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1969 NULL.
1970 * objfiles.h (OBJF_NOT_FILENAME): New.
1971
1972 2013-10-08 Tom Tromey <tromey@redhat.com>
1973
1974 * Makefile.in (SFILES): Add build-id.c.
1975 (HFILES_NO_SRCDIR): Add build-id.h.
1976 * build-id.c: New file, largely from elfread.c. Modified
1977 most functions.
1978 * build-id.h: New file.
1979 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1980 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1981 Search for dwz file using build-id.
1982 * elfread.c (build_id_bfd_get, build_id_verify)
1983 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1984
1985 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1986
1987 * ada-lang.c (compare_names_with_case): Renamed from
1988 compare_names, adding a new parameter "casing" and its handling.
1989 New function documentation.
1990 (compare_names): New function, implemented using
1991 compare_names_with_case.
1992
1993 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1994
1995 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1996
1997 2013-10-07 Tom Tromey <tromey@redhat.com>
1998
1999 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2000 demangled_names_hash.
2001 (free_objfile): Don't delete the demangled_names_hash.
2002 * objfiles.h (struct objfile_per_bfd_storage)
2003 <demangled_names_hash>: New field.
2004 (struct objfile) <demangled_names_hash>: Move to
2005 objfile_per_bfd_storage.
2006 * symfile.c (reread_symbols): Don't delete the
2007 demangled_names_hash.
2008 * symtab.c (create_demangled_names_hash): Update.
2009 (symbol_set_names): Update.
2010
2011 2013-10-07 Tom Tromey <tromey@redhat.com>
2012
2013 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2014 needs_relocations>: New fields.
2015 (gdb_bfd_requires_relocations): New function.
2016 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2017 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2018 the BFD needs relocations applied.
2019
2020 2013-10-07 Pedro Alves <palves@redhat.com>
2021
2022 PR breakpoints/11568
2023 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2024 the thread list" instead of "gone".
2025
2026 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2027
2028 * NEWS: Mention new convenience variable $_exitsignal.
2029 * corelow.c (core_open): Reset exit convenience variables. Set
2030 $_exitsignal to the uncaught signal which generated the corefile.
2031 * infrun.c (handle_inferior_event): Reset exit convenience
2032 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2033 (clear_exit_convenience_vars): New function.
2034 * inferior.h (clear_exit_convenience_vars): New prototype.
2035
2036 2013-10-06 Yao Qi <yao@codesourcery.com>
2037
2038 * varobj.h: Add comments to enum varobj_languages.
2039
2040 2013-10-04 Doug Evans <dje@google.com>
2041
2042 Add support for DWP file format version 2.
2043 * NEWS: Mention support for DWP file format version 2.
2044 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2045 union of asection, containing_section. New fields virtual_offset
2046 and is_virtual. Change type of readin filed from int to char.
2047 (dwo_sections, dwo_file): Tweak comments.
2048 (dwp_v2_section_ids): New enum.
2049 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2050 str_offsets, types.
2051 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2052 All uses updated.
2053 (virtual_v2_dwo_sections): New struct.
2054 (dwp_hash_table): New fields version, nr_columns. Change type of
2055 section_pool field to a union.
2056 (dwp_file): New field version.
2057 (dwarf2_has_info): Check for virtual sections.
2058 (get_containing_section): New function.
2059 (get_section_bfd_owner, get_section_bfd_section): Call it.
2060 (dwarf2_locate_sections): Update.
2061 (dwarf2_section_empty_p): Update.
2062 (dwarf2_read_section): Handle virtual sections.
2063 (locate_dwz_sections): Update.
2064 (create_dwp_hash_table): Document and handle V2 format.
2065 (locate_v1_virtual_dwo_sections): Renamed from
2066 locate_virtual_dwo_sections and update. All callers updated.
2067 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2068 Delete arg htab. Rename arg section_index to unit_index.
2069 All callers updated.
2070 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2071 All uses updated.
2072 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2073 (lookup_dwo_unit_in_dwp): Add V2 support.
2074 (dwarf2_locate_dwo_sections): Update.
2075 (dwarf2_locate_common_dwp_sections): Renamed from
2076 dwarf2_locate_dwp_sections and update. All callers updated.
2077 (dwarf2_locate_v2_dwp_sections): New function.
2078 (open_and_init_dwp_file): Add V2 support.
2079 (read_str_index): New locals str_section, str_offsets_section.
2080
2081 2013-10-04 Pedro Alves <palves@redhat.com>
2082
2083 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2084 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2085 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2086 describing comments with references to ptid.h.
2087 * common/ptid.h: Remove intro description of constructors,
2088 accessors and predicates.
2089 (struct ptid): Reformat.
2090 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2091 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2092 describing comments.
2093
2094 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2095
2096 * aix-thread.c (sync_threadlists): Add missing ')' in call
2097 to ptid_build.
2098
2099 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2100
2101 * procfs.c (procfs_init_inferior): Fix typo causing the build
2102 to fail.
2103
2104 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2105
2106 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2107
2108 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2109
2110 * mi/mi-main.c (run_one_inferior): Add function description.
2111 Make ARG a pointer to an integer whose value determines whether
2112 we should "run" or "start" the program.
2113 (mi_cmd_exec_run): Add handling of the "--start" option.
2114 Reject all other command-line options.
2115 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2116
2117 2013-10-04 Yao Qi <yao@codesourcery.com>
2118
2119 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2120 (struct notif_client) <pending_event>: Moved
2121 to struct remote_notif_state.
2122 <id>: New field.
2123 (struct remote_notif_state) <pending_event>: New field.
2124 (notif_event_xfree): Declare.
2125 * remote-notif.c (handle_notification): Adjust.
2126 (notif_event_xfree): New function.
2127 (do_notif_event_xfree): Call notif_event_xfree.
2128 (remote_notif_state_xfree): Call notif_event_xfree to free
2129 each element in field pending_event.
2130 * remote.c (discard_pending_stop_replies): Remove declaration.
2131 (discard_pending_stop_replies_in_queue): Declare.
2132 (remote_close): Call discard_pending_stop_replies_in_queue
2133 instead of discard_pending_stop_replies.
2134 (remote_start_remote): Adjust.
2135 (stop_reply_xfree): Call notif_event_xfree.
2136 (notif_client_stop): Adjust initialization.
2137 (remote_notif_remove_all): Rename it to ...
2138 (remove_stop_reply_for_inferior): ... this. Update comments.
2139 Don't check INF is NULL.
2140 (discard_pending_stop_replies): Return early if notif_state is
2141 NULL. Adjust. Don't check INF is NULL.
2142 (remote_notif_get_pending_events): Adjust.
2143 (discard_pending_stop_replies_in_queue): New function.
2144 (remote_wait_ns): Likewise.
2145
2146 2013-10-04 Yao Qi <yao@codesourcery.com>
2147
2148 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2149 (notif_queue): Remove.
2150 (remote_notif_process): Add one parameter 'notif_queue'.
2151 Update comments. Callers update.
2152 (remote_async_get_pending_events_token): Remove.
2153 (remote_notif_register_async_event_handler): Remove.
2154 (remote_notif_unregister_async_event_handler): Remove.
2155 (handle_notification): Add parameter 'notif_queue'. Update
2156 comments. Callers update.
2157 (notif_xfree): Remove.
2158 (remote_notif_state_allocate): New function.
2159 (remote_notif_state_xfree): New function.
2160 (_initialize_notif): Remove code to allocate queue.
2161 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2162 (struct remote_notif_state): New.
2163 (handle_notification): Update declaration.
2164 (remote_notif_process): Likewise.
2165 (remote_notif_register_async_event_handler): Remove.
2166 (remote_notif_unregister_async_event_handler): Remove.
2167 (remote_notif_state_allocate): Declare.
2168 (remote_notif_state_xfree): Declare.
2169 * remote.c (struct remote_state) <notif_state>: New field.
2170 (remote_close): Don't call
2171 remote_notif_unregister_async_event_handler. Call
2172 remote_notif_state_xfree.
2173 (remote_open_1): Don't call
2174 remote_notif_register_async_event_handler. Call
2175 remote_notif_state_allocate.
2176
2177 2013-10-04 Yao Qi <yao@codesourcery.com>
2178
2179 * varobj.c (create_child_with_value): Remove 'const' from the
2180 type of parameter 'name'.
2181 (varobj_add_child): Likewise.
2182 (install_dynamic_child): Remove 'const' from the type of
2183 parameter 'name'.
2184 (varobj_add_child): Likewise.
2185 (create_child_with_value): Likewise. Update comments. Don't
2186 duplicate 'name'.
2187 (update_dynamic_varobj_children): Duplicate 'name'
2188 and pass it to install_dynamic_child.
2189
2190 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2191
2192 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2193 conversion logic to occur after PyLong_Check. Comment on order
2194 change significance.
2195 * python/py-arch.c (archpy_disassemble): Comment on order of
2196 conversion for integers and longs.
2197
2198 2013-10-03 Pedro Alves <palves@redhat.com>
2199
2200 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2201 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2202 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2203 PTRACE_O_TRACEFORK is not supported.
2204 (linux_test_for_tracesysgood): New function.
2205 (linux_test_for_tracefork): New function, factored out from
2206 linux_check_ptrace_features, and also don't kill child_pid here.
2207
2208 2013-10-03 Tristan Gingold <gingold@adacore.com>
2209
2210 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2211 Remove verbose error reporting. Use detected state to
2212 thread_set_state call.
2213 (i386_darwin_dr_get): Fix return type. Remove verbose error
2214 report.
2215 Remove trailing spaces.
2216
2217 2013-10-02 Pedro Alves <palves@redhat.com>
2218
2219 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2220 val_print_optimized_out.
2221 * jv-valprint.c (java_print_value_fields): Likewise.
2222 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2223 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2224 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2225 new optimized out value.
2226 * findvar.c (address_from_register): Likewise.
2227 * frame.c (put_frame_register): Tweak error string to say the
2228 register was not saved, rather than optimized out.
2229 * infcmd.c (default_print_one_register_info): Adjust call to
2230 val_print_optimized_out. Use value_of_register instead of
2231 get_frame_register_value.
2232 * mi/mi-main.c (output_register): Use value_of_register instead of
2233 get_frame_register_value.
2234 * valprint.c (valprint_check_validity): Likewise.
2235 (val_print_optimized_out): New value parameter. If the value is
2236 lval_register, print <not saved> instead.
2237 (value_check_printable, val_print_scalar_formatted): Adjust calls
2238 to val_print_optimized_out.
2239 * valprint.h (val_print_optimized_out): New value parameter.
2240 * value.c (struct value) <optimized_out>: Extend comment.
2241 (error_value_optimized_out): New function.
2242 (require_not_optimized_out): Use it. Use a different string for
2243 lval_register values.
2244 * value.h (error_value_optimized_out): New declaration.
2245 * NEWS: Mention <not saved>.
2246
2247 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2248
2249 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2250 strcmp to compare two symtab filenames.
2251
2252 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2253
2254 * symtab.c (search_symbols_equal): Delete.
2255 (sort_search_symbols_remove_dups): Replace call to
2256 search_symbols_equal by call to compare_search_syms,
2257 adjusting as necessary.
2258
2259 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2260
2261 PR python/15579
2262 * python/python.c: Document gdb.execute command in Python help.
2263
2264 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2265
2266 * python/py-frame.c (frame_info_to_frame_object): Use
2267 gdbpy_convert_exception. Clean up Python object on failure.
2268
2269 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2270
2271 * python/lib/gdb/command/frame_filters.py
2272 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2273 (ShowFrameFilterPriority.invoke): Ditto.
2274
2275 2013-10-01 Keith Seitz <keiths@redhat.com>
2276
2277 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2278 (parse_linespec): Make 'argptr' const.
2279 Remove temporary cast of 'argptr' to const char **.
2280 (decode_line_full): Pass const pointer to parse_linespec.
2281 (decode_line_1): Likewise.
2282 (decode_objc): Make local variable 'new_argptr' const.
2283 (find_function_symbols): Remove temporary cast to char *
2284 to find_imps.
2285 * objc-lang.c (find_imps): Make argument 'method' const.
2286 Return const.
2287 * objc-lang.h (find_imps): Likewise.
2288
2289 2013-10-01 Keith Seitz <keiths@redhat.com>
2290
2291 * completer.c (skip_quoted_chars): Make all arguments const.
2292 Return const.
2293 (skip_quoted): Likewise.
2294 * completer.h (skip_quoted_chars): Likewise.
2295 (skip_quoted): Likewise.
2296 * defs.h (skip_quoted): Remove duplicate declaration.
2297 * jv-exp.y: Include completer.h.
2298 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2299 * p-exp.y: Include completer.h.
2300
2301 2013-10-01 Keith Seitz <keiths@redhat.com>
2302
2303 * c-exp.y (parse_number): Make first argument const.
2304 Make a copy of the input to manipulate.
2305 (c_parse_escape): Make first argument const.
2306 Make local variable 'tokptr' const.
2307 (parse_string_or_char): Make first two arguments const.
2308 (macro_original_text): Make const.
2309 (lex_one_token): Make local variable 'tokstart' const.
2310 Likewise for local variables named 'p'.
2311 Cast away const for struct stoken (temporary).
2312 * c-lang.h (c_parse_escpae): Make first argument const.
2313 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2314 const.
2315 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2316 var_string case.
2317 * f-exp.y (parse_number): Make first argument const.
2318 (match_string_literal): Make local variable 'tokstart'
2319 const.
2320 (yylex): Make local variable 'p' const.
2321 Cast away const for struct stoken (temporary).
2322 * go-exp.y (parse_number): Make first argument const.
2323 (parse_string_or_char): Likewise.
2324 Make local variable 'tokstart' const.
2325 (lex_one_token): Likewise for numerous locals called 'p'.
2326 Cast away const for struct stoken (temporary).
2327 * jv-exp.y (parse_number): Make first argument const.
2328 Make local variables 'tokstart' and 'tokptr' const.
2329 Cast away const for call to skip_quoted (temporary).
2330 (yylex): Make local variable 'p' const.
2331 Cast away const for struct stoken (temporary).
2332 * m2-exp.y (parse_number): Make local variable 'p' const.
2333 (yylex): Likewise for 'tokstart'.
2334 Cast away const for struct stoken (temporary).
2335 Make local variable 'p' const.
2336 * macroexp.c (get_character_constant): Pass a const string
2337 to c_parse_escape.
2338 (get_string_literal): Likewise.
2339 (macro_expand_next): Make first argument const.
2340 Cast away const for init_shared_buffer.
2341 * macroexp.h (macro_expand_next): Make first argument const.
2342 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2343 Pass a const string to c_parse_escape.
2344 Make local variables 'p' and 'namestart' const.
2345 * parse.c (lexptr): Make const.
2346 (prev_lexptr): Likewise.
2347 (find_template_name_end): Return const.
2348 Make argument const, too.
2349 (parse_exp_in_context): Make first argument const.
2350 Remove the entire const_hack.
2351 (parse_exp_in_context_1): Make first argument const.
2352 * parser-defs.h (find_template_name_end): Return const.
2353 Make argument const, too.
2354 (lexptr): Make const.
2355 (prev_lexptr): Likewise.
2356 * utils.c (parse_escape): Make second argument const.
2357 * utils.h (parse_escape): Likewise.
2358
2359 2013-10-01 Keith Seitz <keiths@redhat.com>
2360
2361 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2362 is now const.
2363 (block_lookup): Make 'raw_name' and 'name' const.
2364 * ada-lex.l (processString): Update for struct stoken.ptr.
2365 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2366 (operator_stoken): Likewise.
2367 (lex_one_token): Remove temporary cast to char * for
2368 'yylval.sval.ptr'.
2369 * f-exp.y (yylex): Likewise.
2370 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2371 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2372 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2373 'yylval.sval.ptr'.
2374 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2375 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2376 * linespec.c (struct ls_parser): Make 'stream' const.
2377 (find_parameter_list_end): Make argument 'input' and local
2378 variable 'p' const.
2379 (linespec_lexer_lex_string): Make local variables 'start' and
2380 'p' const.
2381 Use skip_spaces_const instead of skip_spaces.
2382 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2383 const.
2384 (parse_linespec): Temporarily cast 'argptr' to const for
2385 'parser->lexer.stream'.
2386 * m2-exp.y (yylex): Remove temporary cast to char * for
2387 'yylval.sval.ptr'.
2388 * objc-lang.c (add_msglist): Make local variable 'p' const.
2389 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2390 (exp : STRING): Make 'sp' const.
2391 (parse_number): Make argument 'p' const.
2392 * parser-defs.h (struct stoken): Make 'ptr' const.
2393
2394 2013-10-01 Doug Evans <dje@google.com>
2395
2396 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2397
2398 2013-10-01 Yao Qi <yao@codesourcery.com>
2399
2400 * varobj.c (c_value_of_root): Remove declaration.
2401 (cplus_value_of_root, java_value_of_root): Likewise.
2402 (ada_value_of_root): Likewise.
2403 (struct language_specific) <value_of_root>: Remove.
2404 (languages): Update initialization.
2405 (check_scope): Move earlier.
2406 (c_value_of_root): Move earlier and rename to ...
2407 (value_of_root_1): ... this.
2408 (value_of_root): Caller update.
2409 (cplus_value_of_root, java_value_of_root): Remove.
2410 (ada_value_of_root): Remove.
2411
2412 2013-10-01 Yao Qi <yao@codesourcery.com>
2413
2414 * varobj.c (varobj_format_string): Remove "unknown".
2415 (languages): Remove the first element.
2416 * varobj.h (enum varobj_languages): Remove vlang_c.
2417
2418 2013-10-01 Yao Qi <yao@codesourcery.com>
2419
2420 * varobj.c (struct language_specific) <language>: Remove.
2421 (languages): Update the initialization.
2422
2423 2013-10-01 Yao Qi <yao@codesourcery.com>
2424
2425 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2426 "solib-target.h". Include "windows-tdep.h".
2427 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2428 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2429 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2430 windows-tdep.o to gdb_target_obs.
2431
2432 2013-10-01 Yao Qi <yao@codesourcery.com>
2433
2434 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2435 "solib-target.h".
2436 (amd64_windows_init_abi): Don't call set_solib_ops and
2437 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2438 windows_init_abi instead.
2439 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2440 "solib-target.h".
2441 (i386_cygwin_init_abi): Don't call set_solib_ops,
2442 set_gdbarch_has_dos_based_file_system and
2443 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2444 windows_init_abi instead.
2445 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2446 (windows_init_abi): New function.
2447 (windows_iterate_over_objfiles_in_search_order): Make it
2448 static.
2449 * windows-tdep.h (windows_init_abi): Declare.
2450 (windows_iterate_over_objfiles_in_search_order): Remove
2451 declaration.
2452
2453 2013-10-01 Jerome Guitton <guitton@adacore.com>
2454
2455 Checked in by Joel Brobecker <brobecker@adacore.com>
2456 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2457 incomplete dictionnary instead of None in case of missing
2458 environment variables.
2459 (elinos_init): in case of an incomplete environment, best
2460 effort to load system libraries instead of abort.
2461
2462 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2463
2464 * ada-lang.c (ada_has_this_exception_support): Ignore
2465 mst_solib_trampoline minimal symbols.
2466
2467 2013-09-30 Tristan Gingold <gingold@adacore.com>
2468
2469 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2470 hardware watchpoint.
2471 (i386_darwin_dr_set): Support 32 and 64 bit states.
2472 (i386_darwin_dr_get): Likewise.
2473 (i386_darwin_dr_set_control): Make static.
2474 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2475 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2476
2477 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2478
2479 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2480 Replace TIDGET with ptid_get_lwp.
2481 Replace GET_LWP with ptid_get_lwp.
2482 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2483 Replace BUILD_THREAD with ptid_build.
2484 Replace BUILD_LWP with ptid_build.
2485 Replace PIDGET with ptid_get_pid.
2486 Replace TIDGET with ptid_get_lwp.
2487 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2488 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2489 Replace TIDGET with ptid_get_lwp.
2490 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2491 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2492 Replace TIDGET with ptid_get_lwp.
2493 Replace GET_LWP with ptid_get_lwp.
2494 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2495 * auxv.c: Likewise.
2496 * breakpoint.c: Likewise.
2497 * common/ptid.c (ptid_is_pid): Condense check for
2498 null_ptid and minus_one_ptid.
2499 (ptid_lwp_p): New function.
2500 (ptid_tid_p): New function.
2501 * common/ptid.h: Update comments for accessors.
2502 (ptid_lwp_p): New prototype.
2503 (ptid_tid_p): New prototype.
2504 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2505 * gcore.c: Replace PIDGET with ptid_get_pid.
2506 * gdbthread.h: Likewise.
2507 * gnu-nat.c: Likewise.
2508 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2509 Replace TIDGET with ptid_get_lwp.
2510 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2511 * hppanbsd-nat.c: Likewise.
2512 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2513 Replace TIDGET with ptid_get_lwp.
2514 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2515 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2516 * infcmd.c: Likewise.
2517 * inferior.h: Likewise.
2518 * inflow.c: Likewise.
2519 * infrun.c: Likewise.
2520 * linux-fork.c: Likewise.
2521 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2522 Replace GET_PID with ptid_get_pid.
2523 Replace is_lwp with ptid_lwp_p.
2524 Replace GET_LWP with ptid_get_lwp.
2525 Replace BUILD_LWP with ptid_build.
2526
2527 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2528
2529 * common/linux-btrace.c: Move sys/syscall.h out of the
2530 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2531 Also check for SYS_perf_event_open before attempting to buid.
2532
2533 2013-09-27 Doug Evans <dje@google.com>
2534
2535 * dwarf2read.c (dwarf2_section_info): Add comment.
2536 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2537 All uses updated.
2538 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2539 (dwarf2_read_section): Delete unused local "header". Add section
2540 name to error message.
2541 (create_dwo_in_dwp): Tweak comment.
2542 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2543
2544 * dwarf2read.c (die_reader_specs): Tweak comment.
2545 (get_section_bfd_owner, get_section_bfd_section): New functions.
2546 (get_section_name, get_section_file_name): New functions.
2547 (get_section_id, get_section_flags): New functions.
2548 (*): Use new functions to access section fields.
2549
2550 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2551 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2552 arg "htab". All callers updated.
2553 (create_debug_types_hash_table): Remove redundant copy of
2554 abbrev_section.
2555 (create_dwo_in_dwp): Tweak comments.
2556 (read_str_index): Tweak comment. Record dwarf form name in static
2557 local.
2558
2559 2013-09-27 Pedro Alves <palves@redhat.com>
2560
2561 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2562 (remote_filename_p): Add comment.
2563 * remote.c (remote_filename_p): Adjust to use
2564 REMOTE_SYSROOT_PREFIX.
2565 * solib.c (solib_find): When deciding whether we need to add a
2566 directory separator, check whether the sysroot is "remote:"
2567 instead of checking whether the patch has a drive spec. Add
2568 comments.
2569
2570 2013-09-27 Pedro Alves <palves@redhat.com>
2571
2572 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2573 Delete fields.
2574 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2575 directly.
2576
2577 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2578
2579 Fix set debug frame output.
2580 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2581 SENTINEL_FRAME entry lower to match enum frame_type order.
2582
2583 2013-09-26 Pierre Muller <muller@sourceware.org>
2584
2585 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2586 AMD64_R15_REGNUM when a register index is expected.
2587 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2588 Substitute in array.
2589 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2590 (amd64_push_arguments): Substitute in integer_regnum array.
2591
2592 2013-09-25 Doug Evans <dje@google.com>
2593
2594 * objfiles.c (allocate_objfile): Move comment to better place.
2595
2596 New option "set debug symfile on".
2597 * NEWS: Mention "set debug symfile".
2598 * Makefile.in (SFILES): Add symfile-debug.c.
2599 (COMMON_OBS): Add symfile-debug.o.
2600 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2601 objfile's symbol functions.
2602 * objfiles.h (objfile_set_sym_fns): Declare.
2603 * symfile-debug.c: New file.
2604 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2605 objfile's symbol functions.
2606 (reread_symbols): Ditto.
2607
2608 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2609 All uses updated.
2610 (add_symtab_fns): Update prototype.
2611 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2612 (registered_sym_fns): ... this.
2613 (symtab_fns): Update.
2614 (add_symtab_fns): New arg "flavour". All callers updated.
2615 (find_sym_fns): Rewrite to use new sym_fns registry.
2616
2617 * symfile.h (struct sym_fns): Add "objfile" argument to
2618 sym_read_linetable. All uses updated.
2619
2620 * symtab.c (domain_name, search_domain_name): New functions.
2621 * symtab.h (domain_name, search_domain_name): Declare.
2622
2623 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2624 map_matching_symbols so objfile is first. All uses updated.
2625 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2626 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2627
2628 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2629
2630 PR shlibs/8882
2631 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2632 link map entries.
2633
2634 2013-09-24 Doug Evans <dje@google.com>
2635
2636 * objfiles.c (free_objfile): Move comment.
2637
2638 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2639
2640 * ada-exp.y (string_to_operator): Delete.
2641 (dummy_string_to_ada_operator): Delete.
2642
2643 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2644
2645 Revert:
2646 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2647 amd64-tdep.c.
2648 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2649 call_dummy_integer_regs, and classify.
2650 * amd64-tdep.h (amd64_classify): Add declaration.
2651 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2652 (amd64_reg_class): Delete, moved to i386-tdep.h.
2653 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2654 Replace call to amd64_classify by call to tdep->classify.
2655 (amd64_push_arguments): Get the list of registers to use for
2656 passing integer parameters from the gdbarch tdep structure,
2657 rather than using a hardcoded one. Replace calls to amd64_classify
2658 by calls to tdep->classify.
2659 (amd64_push_dummy_call): Get the register number used for
2660 the "hidden" argument from tdep->call_dummy_integer_regs.
2661 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2662 and tdep->call_dummy_integer_regs. Set tdep->classify.
2663
2664 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2665
2666 Revert:
2667 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2668 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2669 where tdep->memory_args_by_pointer is non-zero.
2670
2671 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2672
2673 Revert:
2674 * i386-tdep.h (struct gdbarch_tdep): Add new field
2675 integer_param_regs_saved_in_caller_frame.
2676 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2677 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2678
2679 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2680
2681 * amd64-windows-tdep.c: #include "value.h"
2682 (amd64_windows_classify): Delete.
2683 (amd64_windows_passed_by_integer_register)
2684 (amd64_windows_passed_by_xmm_register)
2685 (amd64_windows_passed_by_pointer)
2686 (amd64_windows_adjust_args_passed_by_pointer)
2687 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2688 (amd64_windows_push_dummy_call): New functions.
2689 (amd64_windows_init_abi): Remove setting of
2690 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2691 tdep->classify, tdep->memory_args_by_pointer and
2692 tdep->integer_param_regs_saved_in_caller_frame.
2693 Add call to set_gdbarch_push_dummy_call.
2694
2695 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2696
2697 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2698 objfile->original_name.
2699
2700 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2701
2702 Pass down original filename for objfile.
2703 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2704 * elfread.c (elf_symfile_read): Likewise.
2705 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2706 longer set ORIGINAL_NAME.
2707 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2708 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2709 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2710 symbol_file_add_from_bfd call.
2711 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2712 (macho_check_dsym): Add parameter filenamep. Change function comment.
2713 Set *filenamep.
2714 (macho_symfile_read): New variable dsym_filename. Update
2715 macho_check_dsym call. Use it for symbol_file_add_separate.
2716 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2717 it. Use it for objfile->original_name.
2718 (objfile_name): Return OBFD's filename, if available.
2719 * objfiles.h (allocate_objfile): Add new parameter name.
2720 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2721 * symfile-mem.c (symbol_file_add_from_memory): Update
2722 symbol_file_add_from_bfd call.
2723 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2724 comment for it.
2725 (symbol_file_add_with_addrs): New parameter name, add function comment
2726 for it. Remove variable name. Update allocate_objfile call.
2727 (symbol_file_add_separate): New parameter name, add function comment
2728 for it. Update symbol_file_add_with_addrs call.
2729 (symbol_file_add_from_bfd): New parameter name. Update
2730 symbol_file_add_with_addrs call.
2731 (symbol_file_add): Update symbol_file_add_from_bfd call.
2732 (reread_symbols): New variable original_name. Save
2733 objfile->original_name by it.
2734 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2735 second parameter.
2736
2737 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2738
2739 Code cleanup: Add objfile_name accessor function.
2740 * ada-lang.c (is_known_support_routine): Use objfile_name.
2741 * auto-load.c (source_gdb_script_for_objfile)
2742 (auto_load_objfile_script): Likewise.
2743 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2744 * dbxread.c (dbx_symfile_read): Likewise.
2745 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2746 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2747 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2748 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2749 (lookup_dwp_signatured_type, lookup_dwo_unit)
2750 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2751 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2752 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2753 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2754 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2755 (read_subrange_type, load_partial_dies, read_partial_die)
2756 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2757 (die_containing_type, build_error_marker_type, lookup_die_type)
2758 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2759 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2760 (get_DW_AT_signature_type, write_psymtabs_to_index)
2761 (save_gdb_index_command): Likewise.
2762 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2763 Likewise.
2764 * expprint.c (dump_subexp_body_standard): Likewise.
2765 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2766 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2767 original_name.
2768 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2769 obj_name, use objfile_name for it, use the variable.
2770 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2771 Use objfile_name.
2772 * machoread.c (macho_symtab_read, macho_check_dsym)
2773 (macho_symfile_relocate): Likewise.
2774 * maint.c (maintenance_translate_address): Likewise.
2775 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2776 * minsyms.c (install_minimal_symbols): Likewise.
2777 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2778 original_name.
2779 (filter_overlapping_sections): Use objfile_name.
2780 (objfile_name): New function.
2781 * objfiles.h (struct objfile): Rename field name to original_name.
2782 (objfile_name): New prototype.
2783 * printcmd.c (sym_info, address_info): Use objfile_name.
2784 * probe.c (parse_probes, collect_probes, compare_probes)
2785 (info_probes_for_ops): Likewise.
2786 * progspace.c (clone_program_space): Likewise.
2787 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2788 (maintenance_info_psymtabs): Likewise.
2789 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2790 (source_section_scripts): Likewise.
2791 * python/py-objfile.c (objfpy_get_filename): Likewise.
2792 * python/py-progspace.c (pspy_get_filename): Likewise.
2793 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2794 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2795 * solib.c (solib_read_symbols): Likewise.
2796 * stabsread.c (scan_file_globals): Likewise.
2797 * stap-probe.c (handle_stap_probe): Likewise.
2798 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2799 (find_separate_debug_file_by_debuglink): Likewise.
2800 (reread_symbols): Likewise. Use the objfile field name renamed to
2801 original_name.
2802 (allocate_symtab): Use objfile_name.
2803 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2804 (dump_objfile, dump_msymbols, dump_symtab_1)
2805 (maintenance_print_msymbols, maintenance_print_objfiles)
2806 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2807 * target.c (target_translate_tls_address, target_info): Likewise.
2808 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2809 objfile_name.
2810
2811 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2812
2813 Code cleanup.
2814 * probe.c (parse_probes): Rename variable objfile_name to
2815 objfile_namestr.
2816
2817 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2818
2819 Remove solib-sunos.c.
2820 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2821 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2822 * objfiles.c (rt_common_objfile): Remove.
2823 (free_objfile): Remove rt_common_objfile comparison.
2824 * objfiles.h (rt_common_objfile): Remove.
2825 * solib-sunos.c: Remove.
2826 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2827
2828 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2829
2830 Remove a.out NetBSD and OpenBSD hosts.
2831 * NEWS (Removed native configurations): New.
2832 * config/arm/nbsdaout.mh: Remove.
2833 * config/i386/nbsdaout.mh: Remove.
2834 * config/i386/obsdaout.mh: Remove.
2835 * config/m68k/nbsdaout.mh: Remove.
2836 * config/sparc/nbsdaout.mh: Remove.
2837 * config/vax/nbsdaout.mh: Remove.
2838 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2839 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2840 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2841 error.
2842 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2843 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2844 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2845
2846 2013-09-23 Tom Tromey <tromey@redhat.com>
2847
2848 * linespec.c (struct minsym_and_objfile): Remove.
2849 (minsym_and_objfile_d): Remove.
2850 (struct linespec, struct collect_info, linespec_parse_basic)
2851 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2852 (compare_msymbols, find_method, find_function_symbols)
2853 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2854 (add_minsym, search_minsyms_for_name): Update.
2855
2856 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2857
2858 * regcache.c: Add include of valprint.h.
2859 (dump_endian_bytes): Delete.
2860 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2861
2862 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2863
2864 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2865
2866 2013-09-19 Pedro Alves <palves@redhat.com>
2867
2868 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2869 breakpoints.
2870
2871 2013-09-19 Pedro Alves <palves@redhat.com>
2872 Thomas Schwinge <thomas@codesourcery.com>
2873 Yue Lu <hacklu.newborn@gmail.com>
2874
2875 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2876 Take a gdb_byte pointer instead of a char pointer.
2877
2878 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2879 gnu_xfer_partial helper.
2880 (gnu_xfer_partial): New function.
2881 (gnu_target): Don't install a deprecated_xfer_memory hook.
2882 Install a to_xfer_partial hook.
2883
2884 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2885
2886 Constification.
2887 * main.c (captured_main): Replace catch_command_errors by
2888 catch_command_errors_const. Twice.
2889 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2890 (symbol_file_add): Make name parameter const.
2891 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2892 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2893 variable name. Change their usage accordingly.
2894 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2895 const.
2896 (symbol_file_add_main): Make args parameter const.
2897
2898 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2899 Ulrich Weigand <uweigand@de.ibm.com>
2900
2901 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2902 of c_value member.
2903 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2904
2905 2013-09-18 Pedro Alves <palves@redhat.com>
2906 Yue Lu <hacklu.newborn@gmail.com>
2907
2908 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2909 (gnu_create_inferior)
2910 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2911 (set_sig_thread_cmd): Use the lwpid field of ptids to
2912 store/extract thread ids instead of the tid field.
2913 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2914
2915 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2916
2917 * infcmd.c (default_print_one_register_info): Add detection of
2918 optimized out values.
2919 (default_print_registers_info): Switch to using
2920 get_frame_register_value.
2921
2922 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2923
2924 * infrun.c (handle_inferior_event): Check if we know the
2925 function start address before setting a resume breakpoint.
2926
2927 2013-09-18 Pedro Alves <palves@redhat.com>
2928
2929 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2930 minus_one_ptid instead of looking at the ptid's tid field and
2931 comparing that to -1.
2932
2933 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2934
2935 * main.h (get_gdb_program_name): Remove extra whitespace.
2936
2937 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2938
2939 * main.h (get_gdb_program_name): Add declaration.
2940 * main.c (get_gdb_program_name): Add definition.
2941
2942 2013-09-17 Doug Evans <dje@google.com>
2943
2944 * dwarf2read.c: Move definitions of complaint functions to after
2945 forward declarations of local functions.
2946
2947 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2948 Pedro Alves <palves@redhat.com>
2949
2950 PR gdb/11568
2951 * breakpoint.c (remove_threaded_breakpoints): New function.
2952 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2953 as thread_exit observer.
2954
2955 2013-09-17 Pedro Alves <palves@redhat.com>
2956
2957 PR gdb/15911
2958 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2959 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2960 * corelow.c (core_open):
2961 * frame.h (print_stack_frame, print_frame_info): New
2962 'set_current_sal' parameter.
2963 * infcmd.c (finish_command, kill_command): Adjust call to
2964 print_stack_frame.
2965 * inferior.c (inferior_command): Likewise.
2966 * infrun.c (normal_stop): Likewise.
2967 * linux-fork.c (linux_fork_context): Likewise.
2968 * record-full.c (record_full_goto_entry, record_full_restore):
2969 Likewise.
2970 * remote-mips.c (common_open): Likewise.
2971 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2972 Use it.
2973 (print_frame_info): New 'set_current_sal' parameter. Set the last
2974 displayed sal depending on the new paremeter instead of looking at
2975 print_what.
2976 (backtrace_command_1, select_and_print_frame, frame_command)
2977 (current_frame_command, up_command, down_command): Adjust call to
2978 print_stack_frame.
2979 * thread.c (print_thread_info, restore_selected_frame)
2980 (do_captured_thread_select): Adjust call to print_stack_frame.
2981 * tracepoint.c (tfind_1): Likewise.
2982 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2983 (mi_cmd_stack_info_frame): Likewise.
2984 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2985 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2986
2987 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2988
2989 * value.c (isvoid_internal_fn): Replace "parameter" with
2990 "argument".
2991
2992 2013-09-16 Stan Shebs <stan@codesourcery.com>
2993
2994 * README: Update references to writing code for GDB.
2995 * configure.ac (build_warnings): Remove obsolete comment.
2996 * configure: Regenerate.
2997 * gdbarch.sh: Remove references to gdbint.texinfo.
2998 * gdbarch.h: Regenerate.
2999 * gdbtypes.c (objfile_type): Remove comments referencing internals
3000 manual and D10V.
3001
3002 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3003
3004 * NEWS: Mention new convenience function $_isvoid.
3005 * value.c (isvoid_internal_fn): New function.
3006 (_initialize_values): Add new convenience function $_isvoid.
3007
3008 2013-09-16 Pierre Muller <muller@sourceware.org>
3009
3010 * arm-linux-tdep.c: Add "elf/common.h" header.
3011 Remove AT_HWCAP macro definintion as it is provided in
3012 added include file.
3013 * s390-tdep.c: Remove system header <elf.h>
3014 Add "elf/common.h" header for AT_HWCAP definition.
3015 (s390_core_read_description): Use correct CORE_ADDR
3016 for hwcap local variable used as third parameter
3017 of function target_auxv_search.
3018
3019 2013-09-14 Pierre Muller <muller@sourceware.org>
3020 Tom Tromey <tromey@redhat.com>
3021 Pedro Alves <palves@redhat.com>
3022
3023 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3024 mode if operating system doesn't know O_CLOEXEC.
3025
3026 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3027
3028 Code cleanup.
3029 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3030 inner block.
3031
3032 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3033
3034 * NEWS: Mention TDB support.
3035 * features/s390-tdb.xml: New file.
3036 * features/s390-te-linux64.xml: New file.
3037 * features/s390x-te-linux64.xml: New file.
3038 * features/Makefile (WHICH): Add new tdescs above.
3039 (s390-te-linux64-expedite): Set.
3040 (s390x-te-linux64-expedite): Set.
3041 * features/s390-te-linux64.c: New file (generated).
3042 * features/s390x-te-linux64.c: New file (generated).
3043 * regformats/s390-te-linux64.dat: New file (generated).
3044 * regformats/s390x-te-linux64.dat: New file (generated).
3045 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3046 (HWCAP_S390_TE): Likewise.
3047 (S390_TDB_DWORD0_REGNUM): Likewise.
3048 (S390_TDB_DWORD0_REGNUM): Likewise.
3049 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3050 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3051 (S390_TDB_ATIA_REGNUM): Likewise.
3052 (S390_TDB_R0_REGNUM): Likewise.
3053 (S390_TDB_R1_REGNUM): Likewise.
3054 (S390_TDB_R2_REGNUM): Likewise.
3055 (S390_TDB_R3_REGNUM): Likewise.
3056 (S390_TDB_R4_REGNUM): Likewise.
3057 (S390_TDB_R5_REGNUM): Likewise.
3058 (S390_TDB_R6_REGNUM): Likewise.
3059 (S390_TDB_R7_REGNUM): Likewise.
3060 (S390_TDB_R8_REGNUM): Likewise.
3061 (S390_TDB_R9_REGNUM): Likewise.
3062 (S390_TDB_R10_REGNUM): Likewise.
3063 (S390_TDB_R11_REGNUM): Likewise.
3064 (S390_TDB_R12_REGNUM): Likewise.
3065 (S390_TDB_R13_REGNUM): Likewise.
3066 (S390_TDB_R14_REGNUM): Likewise.
3067 (S390_TDB_R15_REGNUM): Likewise.
3068 (S390_NUM_REGS): Increase.
3069 (S390_IS_TDBREGSET_REGNUM): New macro.
3070 (s390_regmap_tdb): Declare.
3071 (s390_sizeof_tdbregset): Define.
3072 (tdesc_s390_te_linux64): Declare.
3073 (tdesc_s390x_te_linux64): Likewise.
3074 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3075 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3076 (s390_regmap_tdb): New regmap.
3077 (s390_supply_tdb_regset): New function.
3078 (s390_tdb_regset): New regset.
3079 (s390_linux64v2_regset_sections): Add TDB regset to list.
3080 (s390x_linux64v2_regset_sections): Likewise.
3081 (s390_regset_from_core_section): Recognize TDB core note section.
3082 (s390_core_read_description): If HWCAP indicates TE support,
3083 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3084 (s390_gdbarch_init): Handle TDB regset.
3085 (_initialize_s390_tdep): Initialize new tdescs.
3086 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3087 (have_regset_tdb): New variable.
3088 (s390_native_supply): Support register invalidation.
3089 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3090 (check_regset): Treat ENODATA as "regset exists".
3091 (s390_linux_fetch_inferior_registers): Add TDB.
3092 (s390_read_description): Check for TDB existence and select
3093 appropriate tdesc.
3094 * gdbserver/Makefile.in (clean): Add removal of new makefile
3095 targets.
3096 (s390-te-linux64.c): New makefile target.
3097 (s390x-te-linux64.c): Likewise.
3098 * gdbserver/configure.srv (srv_regobj): Append new objects
3099 s390-te-linux64.o and s390x-te-linux64.o.
3100 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3101 s390x-te-linux64.xml, and s390-tdb.xml.
3102 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3103 declaration.
3104 (tdesc_s390_te_linux64): Likewise.
3105 (init_registers_s390x_te_linux64): Likewise.
3106 (tdesc_s390x_te_linux64): Likewise.
3107 (s390_check_regset): Treat ENODATA as "regset exists".
3108 (s390_arch_setup): Add TDB regset support.
3109 (initialize_low_arch): Initialize registers for new tdescs.
3110
3111 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3112
3113 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3114 (S390_IS_FPREGSET_REGNUM): New macro.
3115 * s390-tdep.c (s390_dwarf_regmap): Make const.
3116 (regnum_is_gpr_full): New function for replacing repeated code.
3117 (s390_pseudo_register_name): Use it.
3118 (s390_pseudo_register_type): Likewise.
3119 (s390_pseudo_register_read): Likewise.
3120 (s390_pseudo_register_write): Likewise.
3121 (s390_unwind_pseudo_register): Likewise.
3122 (s390_regmap_gregset): New format for regmap.
3123 (s390x_regmap_gregset): Likewise.
3124 (s390_regmap_fpregset): Likewise.
3125 (s390_regmap_upper): Likewise.
3126 (s390_regmap_last_break): Likewise.
3127 (s390_regmap_system_call): Likewise.
3128 (s390_supply_regset): Adjust to new regmap format.
3129 (s390_collect_regset): Likewise.
3130 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3131 (s390_native_collect): Likewise.
3132 (supply_gregset): Likewise.
3133 (fill_gregset): Likewise.
3134 (supply_fpregset): Likewise.
3135 (fill_fpregset): Likewise.
3136 (fetch_regset): Likewise.
3137 (store_regset): Likewise.
3138 (s390_linux_fetch_inferior_registers): Likewise.
3139 (s390_linux_fetch_inferior_registers): Likewise.
3140
3141 2013-09-12 Andrew Pinski <apinski@cavium.com>
3142
3143 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3144
3145 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3146
3147 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3148
3149 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3150
3151 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3152
3153 2013-09-06 Pedro Alves <palves@redhat.com>
3154
3155 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3156 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3157 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3158 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3159 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3160 gdb_stdlog.
3161
3162 2013-09-06 Pedro Alves <palves@redhat.com>
3163
3164 * remote-sim.c (dump_mem): Constify buf parameter.
3165 gdbsim_xfer_inferior_memory): Rename to ...
3166 (gdbsim_xfer_memory): ... this. Adjust interface as
3167 target_xfer_partial helper.
3168 (gdbsim_xfer_partial): New function.
3169 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3170 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3171
3172 2013-09-06 Pedro Alves <palves@redhat.com>
3173
3174 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3175 host_address_to_string, and send debug output to gdb_stdlog.
3176
3177 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3178
3179 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3180 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3181 gdb_target_obs for cris target.
3182 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3183 (cris_gdbarch_init): Move calls to
3184 set_gdbarch_fetch_tls_load_module_address and
3185 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3186 Add call to gdbarch_init_osabi.
3187 * cris-linux-tdep.c: New file.
3188 * cris-tdep.h: New file.
3189
3190 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3191
3192 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3193 to deprecated_init_ui_hook.
3194
3195 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3196
3197 * cli/cli-interp.c (_initialize_cli_interp): Add a
3198 command_loop_proc to interp_procs.
3199 * event-top.c (cli_command_loop): Change signature to match
3200 interp_command_loop_ftype.
3201 * event-top.h (cli_command_loop): Same.
3202 * interps.c (interp_new): Require every interpreter to have a
3203 command_loop_proc.
3204 (current_interp_command_loop): Just call the command_loop_proc on
3205 the current interpreter.
3206 * tui/tui-interp.c (_initialize_tui_interp): Add a
3207 command_loop_proc to interp_procs.
3208
3209 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3210
3211 * cris-tdep.c (cris_gdbarch_init): Add call to
3212 get_gdbarch_fetch_tls_load_module_address.
3213
3214 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3215
3216 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3217 (cris_elf_gregset_t): Rename from elf_gregset_t.
3218 (crisv32_elf_gregset_t): Adjust.
3219 (cris_supply_gregset, fetch_core_registers): Adjust.
3220
3221 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3222
3223 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3224
3225 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3226
3227 * defs.h (deprecated_command_loop_hook): Remove, including
3228 references in comments.
3229 * interps.c (current_interp_command_loop): No longer use
3230 deprecated_command_loop_hook.
3231 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3232 setup.
3233 * top.c (deprecated_command_loop_hook): Remove.
3234
3235 2013-09-05 Pedro Alves <palves@redhat.com>
3236
3237 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3238 local is now int instead of ULONGEST. Print it with %d
3239 instead of paddress.
3240
3241 2013-09-05 Tristan Gingold <gingold@adacore.com>
3242
3243 * MAINTAINERS: Remove avr maintainership.
3244
3245 2013-09-05 Pedro Alves <palves@redhat.com>
3246
3247 * findvar.c (value_of_register): Rework in terms of
3248 value_of_register_lazy.
3249
3250 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3251
3252 * symfile.c (add_symbol_file_command): Remove trailing
3253 whitespaces and blank line after comment.
3254
3255 2013-09-05 Pedro Alves <palves@redhat.com>
3256
3257 * tui/tui-regs.c (tui_register_format): Don't look at the
3258 register's name here. Return string representing register
3259 value instead of storing it in the data element.
3260 (tui_get_register): Compare register string representations
3261 instead of register value states and contents.
3262
3263 2013-09-05 Pedro Alves <palves@redhat.com>
3264
3265 PR tui/15933
3266 * tui/tui-regs.c (tui_show_registers): Show registers of the
3267 selected frame, not the current frame.
3268
3269 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3270
3271 * MAINTAINERS (Write After Approval): Add myself to the list.
3272
3273 2013-09-04 Doug Evans <dje@google.com>
3274
3275 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3276 (queue_and_load_dwo_tu): New function.
3277 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3278 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3279 Make dependent_cu optional.
3280 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3281 and an older .gdb_index is in use, queue and load all its TUs too.
3282
3283 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3284
3285 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3286 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3287 variable search_flags.
3288 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3289 (OPF_RETURN_REALPATH): ... here.
3290 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3291 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3292 call. Twice.
3293 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3294 openp call.
3295 * solib.c (solib_find): Likewise. Four times.
3296 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3297 in the function comment and for the realpath_fptr variable.
3298 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3299 (find_and_open_source): Likewise. Twice.
3300 * symfile.c (symfile_bfd_open): Likewise, also twice.
3301
3302 2013-09-04 Doug Evans <dje@google.com>
3303
3304 * progspace.c (save_current_space_and_thread): Remove unnecessary
3305 call to save_current_inferior.
3306
3307 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3308
3309 * sh64-tdep.c (sh64_do_register): Return after printing message
3310 about unavailable register contents.
3311
3312 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3313 Pedro Alves <palves@redhat.com>
3314
3315 * symfile.c (add_symbol_file_command): Error out on unknown
3316 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3317 options and collapse into single conditional branch.
3318
3319 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3320
3321 * inf-child.c (inf_child_follow_fork): New parameter
3322 detach_fork.
3323 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3324 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3325 * inferior.h (detach_fork): Remove.
3326 * infrun.c (detach_fork): Adjust comment and make it
3327 static.
3328 (follow_fork): Pass detach_fork parameter to
3329 target_follow_fork.
3330 * linux-nat.c (linux_child_follow_fork): New parameter
3331 detach_fork.
3332 * target.c (target_follow_fork): New parameter detach_fork.
3333 Pass detach_fork as parameter and print its value.
3334 * target.h (struct target_ops) <to_follow_fork>: New int
3335 parameter.
3336 (target_follow_fork): New parameter detach_fork.
3337
3338 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3339
3340 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3341 Replace sec->bfd by sec->the_bfd_section->owner.
3342
3343 2013-09-03 Yao Qi <yao@codesourcery.com>
3344
3345 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3346 from linux_has_shared_address_space.
3347 (linux_has_shared_address_space): Call linux_is_uclinux.
3348 * linux-tdep.h (linux_is_uclinux): Declare.
3349 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3350 linux_is_uclinux.
3351
3352 2013-09-03 Yao Qi <yao@codesourcery.com>
3353
3354 * config/djgpp/fnchange.lst: Remove entry of
3355 i386-interix-nat.c and i386-interix-tdep.c.
3356 * configure.ac: Remove '*-*-interix*'.
3357 * configure: Re-generated.
3358 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3359 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3360 obsolete comments.
3361 * osabi.c (gdb_osabi_names): Remove "Interix".
3362
3363 2013-09-03 Yao Qi <yao@codesourcery.com>
3364
3365 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3366
3367 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3368
3369 * record.h (record_print_flag) <record_print_src_line,
3370 record_print_insn_range>: Rename into ...
3371 (record_print_flag) <record_print_src_line,
3372 record_print_insn_range>: ... this. Update all users.
3373
3374 2013-09-02 Pierre Muller <muller@sourceware.org>
3375
3376 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3377 error code.
3378
3379 2013-09-02 Pierre Muller <muller@sourceware.org>
3380
3381 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3382 by use of plongest function.
3383
3384 2013-09-02 Tristan Gingold <gingold@adacore.com>
3385
3386 * NEWS: Add entry mentioning support for native Windows x64
3387 SEH data.
3388
3389 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3390 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3391 (struct amd64_windows_frame_cache): New struct.
3392 (amd64_windows_w2gdb_regnum): New global.
3393 (pc_in_range, amd64_windows_frame_decode_epilogue)
3394 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3395 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3396 (amd64_windows_frame_this_id): New functions.
3397 (amd64_windows_frame_unwind): New static global.
3398 (amd64_windows_skip_prologue): New function.
3399 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3400 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3401 with amd64_windows_skip_prologue.
3402
3403 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3404
3405 GDB 7.6.1 released.
3406
3407 2013-08-30 Pedro Alves <palves@redhat.com>
3408
3409 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3410 SRC_AND_LOC.
3411
3412 2013-08-30 Pedro Alves <palves@redhat.com>
3413
3414 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3415 warning text.
3416
3417 2013-08-30 Pedro Alves <palves@redhat.com>
3418
3419 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3420 Adjust arguments to print_stack_frame.
3421
3422 2013-08-30 Pedro Alves <palves@redhat.com>
3423
3424 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3425
3426 2013-08-30 Pedro Alves <palves@redhat.com>
3427
3428 * frame.h (show_and_print_stack_frame): Delete declaration.
3429
3430 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3431
3432 PR python/15461
3433 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3434 (archpy_name): Check for valid architecture.
3435 (archpy_disassemble): Ditto.
3436
3437 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3438
3439 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3440 instead of "long long" in call to ptrace64.
3441
3442 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3443
3444 * mi/mi-interp.c (mi_command_loop): Change signature to match
3445 interp_command_loop_ftype.
3446 (mi1_command_loop): Remove.
3447 (mi2_command_loop): Remove.
3448 (mi3_command_loop): Remove.
3449 (mi_interpreter_resume): Remove setting of
3450 deprecated_command_loop_hook.
3451 (_initialize_mi_interp): Set mi_command_loop as the command loop
3452 callback.
3453
3454 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3455
3456 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3457 value_type.
3458
3459 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3460
3461 * value.c (allocate_value_contents): Make static.
3462 * value.h (allocate_value_contents): Remove prototype.
3463
3464 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3465
3466 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3467 of assembling value via allocate_value_lazy and attribute setter.
3468 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3469 assembling value via allocate_value_lazy and attribute setter.
3470 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3471 assembling value via allocate_value_lazy and attribute setter.
3472
3473 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3474
3475 * value.c (value_from_contents_and_address): Replace allocate_value and
3476 memcpy with value_from_contents.
3477
3478 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3479
3480 * python/py-framefilter.c (py_print_frame): Remove usage of
3481 PyString_AsString. Use python_string_to_host_string instead.
3482 Refactor function to work with a string as a new allocation
3483 instead of a pointer.
3484 (py_print_frame): Ditto.
3485 * python/lib/gdb/frames.py (return_list): Cain iterators together
3486 instead of adding them as a list.
3487 (_sort_list): Call return_list, and remove duplicate code.
3488 (execute_frame_filters): Convert iterator to a list with list().
3489 * python/lib/gdb/command/frame_filters.py
3490 (SetFrameFilterPriority._set_filter_priority): Convert priority
3491 attribute to an integer.
3492 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3493 wrapper function __next__.
3494 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3495 define as "str".
3496
3497 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3498
3499 PR python/15752
3500 * python/py-framefilter.c (apply_frame_filter): Check
3501 gdb_python_initialized. Exit if the Python frame-filter code
3502 cannot be initialized.
3503
3504 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3505
3506 PR cli/15842
3507 * top.c (print_gdb_version): Remove erroneous newline after help
3508 text.
3509
3510 2013-08-29 Yao Qi <yao@codesourcery.com>
3511
3512 * varobj.c (install_dynamic_child): Remove trailing space.
3513 Add one blank line after variable declaration.
3514
3515 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3516
3517 PR gdb/15415
3518 * corefile.c (get_exec_file): Use exec_filename.
3519 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3520 * exec.c (exec_close): Free EXEC_FILENAME.
3521 (exec_file_attach): New variable canonical_pathname. Use
3522 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3523 EXEC_FILENAME.
3524 * exec.h (exec_filename): New.
3525 * inferior.c (print_inferior, inferior_command): Use
3526 PSPACE_EXEC_FILENAME.
3527 * mi/mi-main.c (print_one_inferior): Likewise.
3528 * progspace.c (clone_program_space, print_program_space): Likewise.
3529 * progspace.h (struct program_space): New field pspace_exec_filename.
3530 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3531 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3532
3533 2013-08-28 Will Newton <will.newton@linaro.org>
3534
3535 * common/linux-ptrace.c: Include stdint.h unconditionally.
3536
3537 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3538
3539 Code cleanup.
3540 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3541
3542 2013-08-28 Yao Qi <yao@codesourcery.com>
3543 Pedro Alves <palves@redhat.com>
3544
3545 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3546 instead of stdio_fileopen.
3547 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3548 .Call stderr_fileopen instead of stdio_fileopen.
3549 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3550 [__MINGW32__] (stderr_file_fputs): New function.
3551 (stderr_fileopen): New function.
3552 * ui-file.h (stderr_fileopen): Declare.
3553
3554 2013-08-27 Doug Evans <dje@google.com>
3555
3556 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3557 (struct dwarf2_per_cu_data): Ditto.
3558 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3559 (process_imported_unit_die): Ditto.
3560 (follow_die_sig_1): Simplify assert.
3561
3562 2013-08-27 Pedro Alves <palves@redhat.com>
3563
3564 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3565 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3566 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3567 windows_xfer_memory directly.
3568 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3569
3570 2013-08-27 Pedro Alves <palves@redhat.com>
3571
3572 * darwin-nat.c (darwin_xfer_memory): Delete.
3573 (_initialize_darwin_inferior): Don't install a
3574 deprecated_xfer_memory method.
3575
3576 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3577 Yao Qi <yao@codesourcery.com>
3578
3579 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3580 (parse_no_frames_option): Remove.
3581 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3582 (mi_cmd_stack_list_args): Adjust.
3583 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3584 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3585 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3586 Caller update.
3587 (list_args_or_locals): New parameter 'skip_unavailable'.
3588 Handle it.
3589 * valprint.c (scalar_type_p): Rename to ...
3590 (val_print_scalar_type_p): ... this. Make extern.
3591 (val_print, value_check_printable): Adjust.
3592 * valprint.h (val_print_scalar_type_p): Declare.
3593 * value.c (value_entirely_unavailable): New function.
3594 * value.h (value_entirely_unavailable): Declare.
3595
3596 * NEWS: Mention the new option "--skip-unavailable" to MI
3597 commands '-stack-list-locals', '-stack-list-arguments' and
3598 '-stack-list-variables'.
3599
3600 2013-08-27 Yao Qi <yao@codesourcery.com>
3601
3602 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3603 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3604 options.
3605 * mi/mi-getopt.c (mi_getopt): Remove.
3606 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3607 'error_on_unknown'.
3608 (mi_getopt): Call mi_getopt_1.
3609 (mi_getopt_silent): New.
3610 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3611
3612 2013-08-26 Doug Evans <dje@google.com>
3613
3614 PR symtab/15885
3615 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3616 .gdb_index is in use.
3617 * symfile.c (reread_symbols): Reset objfile->sf.
3618
3619 * NEWS: Document "mt print objfiles" now takes optional regexp.
3620 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3621 regexp of objfiles to print.
3622 (_initialize_symmisc): Update doc string for "mt print objfiles".
3623
3624 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3625 missing debug info checks.
3626
3627 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3628 Ulrich Weigand <uweigand@de.ibm.com>
3629
3630 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3631 line tables generated by XLC compiled binaries.
3632
3633 2013-08-23 Doug Evans <dje@google.com>
3634
3635 * symmisc.c (dump_symtab): Delete prototype.
3636 (dump_msymbols, dump_objfile): Ditto.
3637 (maintenance_info_symtabs): Mark as dont_repeat.
3638 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3639
3640 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3641 debugging printf to better location.
3642
3643 2013-08-23 Pedro Alves <palves@redhat.com>
3644
3645 * target.c (target_read_live_memory): Change type of 'ret' local
3646 to LONGEST.
3647
3648 2013-08-23 Pedro Alves <palves@redhat.com>
3649
3650 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3651 (remote_read_bytes): Change return type to LONGEST, and adjust to
3652 return a target_xfer_error on error.
3653 (remote_xfer_memory): Delete.
3654 (remote_flash_write): Change type of 'ret' local to LONGEST.
3655 (remote_xfer_partial, remote_xfer_partial): Adjust.
3656 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3657
3658 2013-08-23 Pierre Muller <muller@sourceware.org>
3659
3660 ARI fix: Push # directives to start of line.
3661 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3662
3663 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3664
3665 PR gdb/15501
3666 * breakpoint.c (enable_command, disable_command): Iterate over
3667 all specified breakpoint locations.
3668
3669 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3670
3671 * common/linux-ptrace.c (linux_fork_to_function): Push #
3672 directives to the start of the line.
3673 (linux_check_ptrace_features): Fix warning message to use
3674 the "_" markup.
3675
3676 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3677
3678 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3679 nat/linux-waitpid.h.
3680 (linux-waitpid.o): New object file rule.
3681 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3682 (current_ptrace_options): Moved from linux-nat.c.
3683 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3684 parameters.
3685 (linux_fork_to_function): New function.
3686 (linux_grandchild_function): Likewise.
3687 (linux_child_function): Likewise.
3688 (linux_check_ptrace_features): New function, heavily
3689 based on linux-nat.c:linux_test_for_tracefork.
3690 (linux_enable_event_reporting): New function.
3691 (ptrace_supports_feature): Likewise.
3692 (linux_supports_tracefork): Likewise.
3693 (linux_supports_traceclone): Likewise.
3694 (linux_supports_tracevforkdone): Likewise.
3695 (linux_supports_tracesysgood): Likewise.
3696 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3697 gdbserver/linux-low.c.
3698 (linux_enable_event_reporting): New declaration.
3699 (linux_supports_tracefork): Likewise.
3700 (linux_supports_traceclone): Likewise.
3701 (linux_supports_tracevforkdone): Likewise.
3702 (linux_supports_tracesysgood): Likewise.
3703 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3704 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3705 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3706 * config/arm/linux.mh (NATDEPFILES): Likewise.
3707 * config/i386/linux.mh (NATDEPFILES): Likewise.
3708 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3709 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3710 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3711 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3712 * config/mips/linux.mh (NATDEPFILES): Likewise.
3713 * config/pa/linux.mh (NATDEPFILES): Likewise..
3714 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3715 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3716 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3717 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3718 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3719 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3720 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3721 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3722 ptrace's 4th argument's types.
3723 Check the type of PTRACE_TYPE_ARG4.
3724 * configure: Regenerate.
3725 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3726 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3727 (linux_supports_tracefork_flag): Remove.
3728 (linux_supports_tracesysgood_flag): Likewise.
3729 (linux_supports_tracevforkdone_flag): Likewise.
3730 (current_ptrace_options): Moved to
3731 common/linux-ptrace.c.
3732 (linux_tracefork_child): Remove.
3733 (my_waitpid): Remove.
3734 (linux_test_for_tracefork): Renamed to
3735 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3736 (linux_test_for_tracesysgood): Remove.
3737 (linux_supports_tracesysgood): Remove.
3738 (linux_supports_tracefork): Remove.
3739 (linux_supports_tracevforkdone): Remove.
3740 (linux_enable_tracesysgood): Remove.
3741 (linux_enable_event_reporting): Remove.
3742 (linux_init_ptrace): New function.
3743 (linux_child_post_attach): Call linux_init_ptrace.
3744 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3745 (linux_child_follow_fork): Call linux_supports_tracefork
3746 and linux_supports_tracevforkdone.
3747 (linux_child_insert_fork_catchpoint): Call
3748 linux_supports_tracefork.
3749 (linux_child_insert_vfork_catchpoint): Likewise.
3750 (linux_child_set_syscall_catchpoint): Call
3751 linux_supports_tracesysgood.
3752 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3753 * nat/linux-nat.h: New file.
3754 * nat/linux-waitpid.c: New file.
3755 * nat/linux-waitpid.h: New file.
3756
3757 2013-08-22 Samuel Bronson <naesten@gmail.com>
3758
3759 ARM Linux support for `catch syscall'.
3760 * syscalls/arm-linux.py: New file.
3761 * syscalls/arm-linux.xml: Likewise.
3762 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3763 (arm_linux_init_abi): Register the new function and syscall xml file.
3764 * data-directory/Makefile.in: Install the new syscall xml file.
3765 * NEWS: Brag about this.
3766
3767 2013-08-22 Pedro Alves <palves@redhat.com>
3768
3769 PR gdb/15871
3770 * corefile.c (target_xfer_memory_error): New function.
3771 (memory_error): Defer EIO to target_memory_error.
3772 (read_memory): Use target_xfer_partial, and handle finer-grained
3773 target xfer errors.
3774 * target.c (target_xfer_error_to_string): New function.
3775 (memory_xfer_partial_1): If memory is known to be
3776 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3777 (target_xfer_partial): Make extern.
3778 * target.h (enum target_xfer_error): New enum.
3779 (target_xfer_error_to_string): Declare function.
3780 (target_xfer_partial): Declare function.
3781 (struct target_ops) <xfer_partial>: Adjust describing comment.
3782
3783 2013-08-22 Alan Modra <amodra@gmail.com>
3784
3785 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3786 * configure.tgt: Likewise as targets.
3787
3788 2013-08-20 Doug Evans <dje@google.com>
3789
3790 * buildsym.c (subfile_stack): Move here from buildsym.h.
3791 (pending_macros): Ditto.
3792 (get_macro_table): New function.
3793 (buildsym_init): Initialize subfile_stack.
3794 * coffread.c (type_vector,type_vector_length): Moved here from
3795 buildsym.h.
3796 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3797 (coff_symtab_read): Use it.
3798 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3799 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3800 with call to get_macro_table.
3801 * stabsread.c (type_vector,type_vector_length): Moved here from
3802 buildsym.h.
3803 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3804 * buildsym.h (get_macro_table): Declare.
3805
3806 2013-08-20 Tom Tromey <tromey@redhat.com>
3807
3808 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3809 Update.
3810 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3811
3812 2013-08-20 Doug Evans <dje@google.com>
3813
3814 * blockframe.c: Remove #include "psymtab.h".
3815 * cp-support.c: Ditto.
3816 * source.c: Ditto.
3817 * stack.c: Ditto.
3818
3819 2013-08-20 Tom Tromey <tromey@redhat.com>
3820
3821 PR python/15816:
3822 * exceptions.h (return_mask): Now an enum.
3823 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3824 enum constants.
3825
3826 2013-08-20 Tom Tromey <tromey@redhat.com>
3827
3828 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3829 get_objfile_arch.
3830 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3831 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3832 * jit.c (jit_object_close_impl): Update.
3833 * jv-lang.c (get_dynamics_objfile): Update.
3834 * linespec.c (add_minsym): Use get_dynamics_objfile.
3835 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3836 (allocate_objfile): Don't initialize 'gdbarch' field.
3837 (get_objfile_arch): Update.
3838 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3839 moved from...
3840 (struct objfile) <gdbarch>: ... here. Remove.
3841 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3842 get_objfile_arch.
3843 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3844
3845 2013-08-20 Alan Modra <amodra@gmail.com>
3846
3847 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3848 for IBM long double nan and inf.
3849 (floatformat_is_negative, floatformat_classify,
3850 floatformat_mantissa): Similarly.
3851 (floatformat_ieee_single, floatformat_ieee_double,
3852 floatformat_ieee_quad, floatformat_arm_ext,
3853 floatformat_ia64_spill): Delete unused vars.
3854 (_initialize_doublest): Delete unused function.
3855 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3856 little-endian variants of floatformat_ibm_long_double.
3857
3858 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3859
3860 * Makefile.in (SFILES): Remove common/target-common.c and
3861 add target/waitstatus.c.
3862 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3863 target/resume.h, target/wait.h and target/waitstatus.h.
3864 (COMMON_OBS): Remove target-common.o and add
3865 waitstatus.o.
3866 (target-common.o): Remove.
3867 (waitstatus.o): New target object file.
3868 * common/target-common.c: Move contents to
3869 target/waitstatus.c and remove.
3870 * common/target-common.h: Move contents to other files and
3871 remove.
3872 (enum resume_kind: Move to target/resume.h.
3873 (TARGET_WNOHANG): Move to target/wait.h.
3874 (enum target_waitkind): Move to target/waitstatus.h.
3875 (struct target_waitstatus): Likewise.
3876 * target.h: Do not include target-common.h and
3877 include target/resume.h, target/wait.h and
3878 target/waitstatus.h.
3879 * target/resume.h: New file.
3880 * target/wait.h: New file.
3881 * target/waitstatus.h: New file.
3882 * target/waitstatus.c: New file.
3883
3884 2013-08-19 Pedro Alves <palves@redhat.com>
3885
3886 * linux-nat.c (linux_test_for_tracefork)
3887 (linux_test_for_tracesysgood, linux_child_follow_fork)
3888 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3889 (linux_nat_wait_1): Extend comment.
3890 (linux_async_pipe): Add comment.
3891
3892 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3893
3894 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3895 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3896 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3897 Update to account for fact that PC is now a pseudo-register.
3898 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3899 cases for RL78_PC_REGNUM.
3900
3901 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3902
3903 PR cli/15841
3904 * top.c (quit_force): Skip writing history file
3905 if input is not from terminal.
3906
3907 2013-08-14 Tom Tromey <tromey@redhat.com>
3908
3909 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3910 resultthreadlist>: New fields.
3911 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3912 (remote_get_threadlist, remote_threadlist_iterator): Use
3913 new fields. Remove static variables.
3914
3915 2013-08-14 Tom Tromey <tromey@redhat.com>
3916
3917 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3918 remote_watch_data_address>: New fields.
3919 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3920 (process_stop_reply, remote_wait_as)
3921 (remote_check_watch_resources, remote_stopped_data_address): Update.
3922
3923 2013-08-14 Tom Tromey <tromey@redhat.com>
3924
3925 * remote.c (struct remote_state) <async_client_callback,
3926 async_client_context>: New fields.
3927 (async_client_callback, async_client_context): Remove.
3928 (remote_async_serial_handler, remote_async): Update.
3929
3930 2013-08-14 Tom Tromey <tromey@redhat.com>
3931
3932 * remote.c (sizeof_pkt): Remove.
3933 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3934
3935 2013-08-14 Tom Tromey <tromey@redhat.com>
3936
3937 * remote.c (struct remote_state) <use_threadinfo_query,
3938 use_threadextra_query>: New fields.
3939 (remote_threads_info, remote_threads_extra_info)
3940 (remote_open_1): Update.
3941
3942 2013-08-14 Tom Tromey <tromey@redhat.com>
3943
3944 * remote.c (struct remote_state) <finished_object,
3945 finished_annex, finished_offset>: New fields.
3946 (remote_read_qxfer): Use remote_state fields; remove static
3947 variables.
3948
3949 2013-08-14 Tom Tromey <tromey@redhat.com>
3950
3951 * remote.c (struct remote_state) <last_sent_step>:
3952 New field.
3953 (last_sent_step): Remove.
3954 (remote_resume, remote_wait_as): Update.
3955
3956 2013-08-14 Tom Tromey <tromey@redhat.com>
3957
3958 * remote.c (struct remote_state) <last_sent_signal>:
3959 New field.
3960 (last_sent_signal): Remove.
3961 (new_remote_state, remote_resume, remote_wait_as): Update.
3962
3963 2013-08-14 Tom Tromey <tromey@redhat.com>
3964
3965 * remote.c (struct remote_state) <last_program_signals_packet>:
3966 New field.
3967 (last_program_signals_packet): Remove.
3968 (remote_program_signals, remote_open_1): Update.
3969
3970 2013-08-14 Tom Tromey <tromey@redhat.com>
3971
3972 * remote.c (struct remote_state) <last_pass_packet>:
3973 New field.
3974 (last_pass_packet): Remove.
3975 (remote_pass_signals, remote_open_1): Update.
3976
3977 2013-08-14 Tom Tromey <tromey@redhat.com>
3978
3979 * remote.c (struct remote_state) <remote_traceframe_number>:
3980 New field.
3981 (remote_traceframe_number): Remove.
3982 (new_remote_state, remote_open_1, set_remote_traceframe)
3983 (remote_trace_find): Update.
3984
3985 2013-08-14 Tom Tromey <tromey@redhat.com>
3986
3987 * remote.c (struct remote_state) <general_thread, continue_thread>:
3988 New fields.
3989 (general_thread, continue_thread): Remove.
3990 (record_currthread, set_thread, set_general_process)
3991 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3992 (extended_remote_mourn_1): Update.
3993
3994 2013-08-14 Tom Tromey <tromey@redhat.com>
3995
3996 * remote.c (struct remote_state) <remote_desc>: New field.
3997 (remote_desc): Remove.
3998 (remote_threads_info, remote_threads_extra_info, remote_close)
3999 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4000 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4001 (remote_hostio_send_command, remote_file_put, remote_file_get)
4002 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4003 (remote_async, remote_new_objfile, set_range_stepping): Update.
4004
4005 2013-08-14 Tom Tromey <tromey@redhat.com>
4006
4007 * remote.c (remote_state): Now a pointer.
4008 (get_remote_state_raw): Update.
4009 (new_remote_state): New function.
4010 (_initialize_remote): Use new_remote_state.
4011
4012 2013-08-14 Tom Tromey <tromey@redhat.com>
4013
4014 * remote.c (remote_protocol_features): Now const.
4015
4016 2013-08-14 Tom Tromey <tromey@redhat.com>
4017
4018 * remote.c (crc32_table, crc32): Remove.
4019 (remote_verify_memory): Use xcrc32.
4020
4021 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4022
4023 * value.h (create_internalvar_type_lazy): Adjust prototype
4024 declaration.
4025
4026 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4027
4028 * common/format.c (parse_format_string): Don't allow '#' flag for
4029 pointer arguments in format string.
4030
4031 2013-08-13 Pierre Muller <muller@sourceware.org>
4032
4033 * utils.c (init_page_info): Only call tgetnum function
4034 if rl_get_screen_size did not return useful values.
4035
4036 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4037
4038 PR breakpoints/15117
4039 * linespec.c (linespec_parse_basic): Check for convenience
4040 variable or history value while parsing.
4041
4042 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4043
4044 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4045 AVR.
4046 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4047 different signals between the generic Linux kernel implementation
4048 and AVR's.
4049 (avr_linux_gdb_signal_from_target): Delete.
4050 (avr_linux_gdb_signal_to_target): Delete.
4051 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4052
4053 2013-08-09 Doug Evans <dje@google.com>
4054
4055 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4056 entries.
4057
4058 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4059
4060 * linux-tdep.c: Define enum with generic signal numbers.
4061 (linux_gdb_signal_from_target): New function.
4062 (linux_gdb_signal_to_target): Likewise.
4063 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4064 methods to the functions above.
4065 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4066 (linux_gdb_signal_to_target): Likewise.
4067 * alpha-linux-tdep.c: Define new enum with signals different
4068 from generic Linux kernel.
4069 (alpha_linux_gdb_signal_from_target): New function.
4070 (alpha_linux_gdb_signal_to_target): Likewise.
4071 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4072 with the functions mentioned above.
4073 * avr-tdep.c: Define enum with differences between Linux kernel
4074 and AVR signals.
4075 (avr_linux_gdb_signal_from_target): New function.
4076 (avr_linux_gdb_signal_to_target): Likewise.
4077 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4078 the functions mentioned above.
4079 * sparc-linux-tdep.c: Define enum with differences between SPARC
4080 and generic Linux kernel signal numbers.
4081 (sparc32_linux_gdb_signal_from_target): New function.
4082 (sparc32_linux_gdb_signal_to_target): Likewise.
4083 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4084 to the functions defined above.
4085 * xtensa-linux-tdep.c: Define enum with differences between
4086 Xtensa and Linux kernel generic signals.
4087 (xtensa_linux_gdb_signal_from_target): New function.
4088 (xtensa_linux_gdb_signal_to_target): Likewise.
4089 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4090 to the functions defined above.
4091 * mips-linux-tdep.c: Define enum with differences between
4092 signals in MIPS and Linux kernel generic ones.
4093 (mips_gdb_signal_to_target): New function.
4094 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4095 only different signals from the Linux kernel generic.
4096 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4097 the functions defined above.
4098 * mips-linux-tdep.h (enum mips_signals): Remove.
4099
4100 2013-08-09 Pedro Alves <palves@redhat.com>
4101
4102 * avr-tdep.c (XMALLOC): Delete macro.
4103 * cli/cli-dump.c (XMALLOC): Delete macro.
4104
4105 2013-08-09 Pedro Alves <palves@redhat.com>
4106
4107 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4108 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4109 (fopen_with_cleanup, add_dump_command): Make static.
4110 * cli/cli-dump.h: Delete file.
4111 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4112 cli/cli-dump.h.
4113
4114 2013-08-09 Pedro Alves <palves@redhat.com>
4115
4116 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4117 error message.
4118
4119 2013-08-09 Pedro Alves <palves@redhat.com>
4120
4121 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4122 error message.
4123
4124 2013-08-09 Pedro Alves <palves@redhat.com>
4125
4126 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4127 (gcore_command): Use tilde_expand here, and when showing the
4128 filename to the user, show the expanded version.
4129
4130 2013-08-09 Yao Qi <yao@codesourcery.com>
4131
4132 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4133 'entryval' is set.
4134
4135 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4136
4137 * gcore.c (create_gcore_bfd): Use tilde_expand.
4138
4139 2013-08-08 Yao Qi <yao@codesourcery.com>
4140
4141 * frame.h (read_frame_local): Declare.
4142 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4143 read_frame_local.
4144 * stack.c (read_frame_local): New.
4145
4146 2013-08-08 Yao Qi <yao@codesourcery.com>
4147
4148 * mi/mi-cmd-stack.c: Update comments to function
4149 list_args_or_locals.
4150
4151 2013-08-07 Tom Tromey <tromey@redhat.com>
4152
4153 PR symtab/15028:
4154 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4155 (process_psymtab_comp_unit_reader): Use it.
4156 (process_psymtab_comp_unit): Update. Add "pretend_language"
4157 argument.
4158 (dwarf2_build_psymtabs_hard): Update.
4159 (scan_partial_symbols): Pass CU's language to
4160 process_psymtab_comp_unit.
4161
4162 2013-08-07 Tom Tromey <tromey@redhat.com>
4163
4164 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4165 (dwarf2_gdb_index_functions): Update.
4166 * psymtab.c (find_symbol_file_from_partial): Remove.
4167 (psym_functions): Update.
4168 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4169 Remove.
4170
4171 2013-08-07 Tom Tromey <tromey@redhat.com>
4172
4173 * symfile.c (set_initial_language): Look up "main" symbol
4174 and use its language.
4175 * symtab.c (find_main_filename): Remove.
4176 * symtab.h (find_main_filename): Remove.
4177
4178 2013-08-07 Tom Tromey <tromey@redhat.com>
4179
4180 * dwarf2read.c (recursively_compute_inclusions): Add
4181 "immediate_parent" argument. Set symtab's "user" field
4182 if not set.
4183 (compute_symtab_includes): Update.
4184
4185 2013-08-07 Tom Tromey <tromey@redhat.com>
4186
4187 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4188 when adding label symbols.
4189
4190 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4191 Ulrich Weigand <uweigand@de.ibm.com>
4192
4193 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4194 * configure.host (powerpc64-*-aix*): Likewise.
4195
4196 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4197 Ulrich Weigand <uweigand@de.ibm.com>
4198
4199 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4200 is defined.
4201 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4202 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4203 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4204 * configure.ac: Check for ptrace64.
4205 * configure, config.in: Regenerate.
4206
4207 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4208 Ulrich Weigand <uweigand@de.ibm.com>
4209
4210 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4211 Call ptrace64 instead of ptrace if defined.
4212 Add macro addr_ptr to take care of ptrace address argument.
4213 (pdc_read_regs): Likewise.
4214 (pdc_write_regs): Likewise.
4215 (aix_thread_resume): Likewise.
4216 (fetch_regs_kernel_thread): Likewise.
4217 (store_regs_kernel_thread): Likewise.
4218
4219 2013-08-07 Anton Blanchard <anton@samba.org>
4220
4221 * MAINTAINERS: Add myself to Write After Approval.
4222
4223 2013-08-05 Tom Tromey <tromey@redhat.com>
4224
4225 * aix-thread.c (_initialize_aix_thread): Use
4226 complete_target_initialization.
4227 * bsd-uthread.c (_initialize_bsd_uthread): Use
4228 complete_target_initialization.
4229 * dec-thread.c (_initialize_dec_thread): Use
4230 complete_target_initialization.
4231 * ravenscar-thread.c (_initialize_ravenscar): Use
4232 complete_target_initialization.
4233 * sol-thread.c (_initialize_sol_thread): Use
4234 complete_target_initialization.
4235 * spu-multiarch.c (_initialize_spu_multiarch): Use
4236 complete_target_initialization.
4237
4238 2013-08-05 Tom Tromey <tromey@redhat.com>
4239
4240 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4241 * ada-lang.c (ada_lookup_simple_minsym): Return
4242 bound_minimal_symbol.
4243 * ada-lang.h (ada_lookup_simple_minsym): Update.
4244 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4245 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4246 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4247 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4248 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4249 * minsyms.c (msymbol_objfile): Remove.
4250 (lookup_minimal_symbol_internal): New function, from
4251 lookup_minimal_symbol.
4252 (lookup_minimal_symbol): Rewrite using
4253 lookup_minimal_symbol_internal.
4254 (lookup_bound_minimal_symbol): New function.
4255 * minsyms.h (msymbol_objfile): Remove.
4256 (lookup_bound_minimal_symbol): Declare.
4257 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4258 * parse.c (write_exp_msymbol): Change parameter to a
4259 bound_minimal_symbol.
4260 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4261 * parser-defs.h (write_exp_msymbol): Update.
4262 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4263 * symfile.c (simple_read_overlay_table): Use
4264 lookup_bound_minimal_symbol.
4265 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4266 (search_symbols): Likewise.
4267 (print_msymbol_info): Take a bound_minimal_symbol argument.
4268 (symtab_symbol_info, rbreak_command): Update.
4269 * symtab.h (struct symbol_search) <msymbol>: Change type
4270 to bound_minimal_symbol.
4271 * valops.c (find_function_in_inferior): Use
4272 lookup_bound_minimal_symbol.
4273 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4274
4275 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4276
4277 Code cleanup.
4278 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4279 to ...
4280 (async_cleanup_sigint_signal_handler): ... this.
4281 (initialize_sigint_signal_handler): Remove declaration.
4282 (handle_remote_sigint): Rename the declaration to ...
4283 (async_handle_remote_sigint): ... this.
4284 (handle_remote_sigint_twice): Rename the declaration to ...
4285 (async_handle_remote_sigint_twice): ... this.
4286 (async_remote_interrupt, async_remote_interrupt_twice)
4287 (remote_interrupt): Remove the declarations.
4288 (remote_interrupt_twice): Rename the declaration ...
4289 (sync_remote_interrupt_twice): ... this.
4290 (sigint_remote_twice_token): Rename the variable to ...
4291 (async_sigint_remote_twice_token): ... this.
4292 (sigint_remote_token): Rename the variable to ...
4293 (async_sigint_remote_token): ... this.
4294 (initialize_sigint_signal_handler): Rename the function to ...
4295 (async_initialize_sigint_signal_handler): ... this. Update the name
4296 inside.
4297 (handle_remote_sigint): Rename the function to ...
4298 (async_handle_remote_sigint): ... this. Update the names inside.
4299 (handle_remote_sigint_twice): Rename the function to ...
4300 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4301 (cleanup_sigint_signal_handler): Rename the function to ...
4302 (async_cleanup_sigint_signal_handler): ... this.
4303 (remote_interrupt): Rename the function to ...
4304 (sync_remote_interrupt): this. Update the names inside.
4305 (remote_interrupt_twice): Rename the function to ...
4306 (sync_remote_interrupt_twice): this. Update the names inside.
4307 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4308 (_initialize_remote): Update the names inside.
4309
4310 2013-08-02 Tom Tromey <tromey@redhat.com>
4311
4312 PR symtab/15719:
4313 * breakpoint.c (update_watchpoint, watchpoint_check)
4314 (watch_command_1): Update.
4315 * eval.c (fetch_subexp_value): Add "preserve_errors"
4316 parameter.
4317 * ppc-linux-nat.c (check_condition): Update.
4318 * value.h (fetch_subexp_value): Update.
4319
4320 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4321
4322 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4323 add_file_handler.
4324
4325 2013-08-01 Doug Evans <dje@google.com>
4326
4327 PR symtab/15691
4328 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4329 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4330 Add assert of sig_entry->dwo_unit == NULL.
4331 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4332 had already been read.
4333 (read_signatured_type): Set per_cu.tu_read.
4334
4335 PR symtab/15695
4336 * valops.c (value_struct_elt): Add missing call to check_typedef.
4337 (value_find_oload_method_list): Ditto.
4338
4339 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4340 effectively, struct symbol_search **.
4341 (make_cleanup_free_search_symbols): Change arg to struct
4342 symbol_search **. All callers updated.
4343 (compare_search_syms): Compare symtab file name and block as well.
4344 (search_symbols_equal): New function.
4345 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4346 New args new_head, new_tail. Result is now void. Remove dups after
4347 sorting the symbols.
4348 (search_symbols): Sort all found symbols once, after all have been
4349 found, and remove duplicates. Simplify cleanup tracking of result.
4350 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4351
4352 Further workarounds for binutils/15021.
4353 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4354 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4355 Watch for duplicate symtabs coming from type units.
4356 (compute_symtab_includes): Update call to
4357 recursively_compute_inclusions. Build vector of included symtabs
4358 instead of per_cus.
4359 * symtab.h (symtab_ptr): New typedef.
4360 (DEF_VEC_P (symtab_ptr)): New VEC type.
4361 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4362 instead.
4363
4364 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4365
4366 * cli/cli-script.c (script_from_file): Remove use of
4367 error_pre_print.
4368 * main.c (captured_main): Remove use of error_pre_print and
4369 quit_pre_print.
4370 * utils.c (error_pre_print, quit_pre_print): Remove.
4371 * utils.h (error_pre_print, quit_pre_print): Likewise.
4372
4373 2013-08-01 Yao Qi <yao@codesourcery.com>
4374
4375 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4376 with mi_getopt.
4377 (mi_cmd_stack_list_variables): Likewise.
4378
4379 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4380
4381 * exceptions.c (deprecated_throw_reason): Remove.
4382 * exceptions.h (deprecated_throw_reason): Remove.
4383
4384 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4385
4386 * remote-mips.c (mips_error): Replace use of
4387 deprecated_throw_reason with throw_verror. Use the error message
4388 passed to mips_error as the error message for throw_verror.
4389
4390 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4391
4392 * monitor.c (monitor_interrupt_query): Replace use of
4393 deprecated_throw_reason with quit.
4394 * nto-procfs.c (interrupt_query): Likewise.
4395 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4396 * remote-mips.c (mips_kill): Likewise.
4397 * remote.c (interrupt_query): Likewise.
4398
4399 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4400
4401 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4402 with call to fatal.
4403
4404 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4405 Yao Qi <yao@codesourcery.com>
4406
4407 * tracepoint.c (trace_dump_command): Select the current frame.
4408
4409 2013-07-30 Doug Evans <dje@google.com>
4410
4411 * dwarf2read.c (process_queue): Add type signature to debug output.
4412
4413 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4414
4415 * value.c (value_fetch_lazy): Mark optimized out values as such
4416 rather than raising an error.
4417
4418 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4419
4420 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4421 before checking which bits of the parent, not the child, value are
4422 valid.
4423
4424 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4425
4426 PR gdb/15715
4427 * top.c: Include "filenames.h".
4428 (set_history_filename): New function.
4429 (init_main): Install it as set hook of the "set history filename"
4430 command.
4431
4432 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4433
4434 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4435 attribute parameter.
4436 (dwarf2_const_value_data): Constify struct attribute parameter.
4437 (dwarf2_const_value): Constify struct attribute parameter.
4438 (dwarf2_const_value_attr): Constify struct attribute parameter.
4439 (lookup_die_type): Constify struct attribute parameter.
4440 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4441 (follow_die_ref_or_sig): Constify struct attribute parameter.
4442 (follow_die_ref): Constify struct attribute parameter.
4443 (follow_die_sig): Constify struct attribute parameter.
4444 (get_DW_AT_signature_type): Constify struct attribute parameter.
4445 (get_type_unit_group): Constify struct attribute parameter.
4446 (fill_in_loclist_baton): Constify struct attribute parameter.
4447 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4448 (type_unit_group): Constify struct attribute parameter.
4449
4450 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4451
4452 * dwarf2read.c (attr_form_is_block): Make argument const.
4453 (attr_form_is_section_offset): Make argument const.
4454 (attr_form_is_constant): Make argument const.
4455 (attr_form_is_ref): Make argument const.
4456
4457 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4458
4459 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4460 All uses updated.
4461 (attr_form_is_ref): Moved below attr_form_is_constant.
4462
4463 2013-07-29 Doug Evans <dje@google.com>
4464
4465 * main.c (captured_command_loop): Tweak comment.
4466
4467 * target.c (target_async_permitted_1): Fix comment.
4468
4469 * symtab.c (iterate_over_some_symtabs): Add comment.
4470
4471 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4472
4473 2013-07-27 Yao Qi <yao@codesourcery.com>
4474
4475 * NEWS: Mention that GDBserver now supports hardware
4476 watchpoints on the MIPS GNU/Linux target.
4477
4478 2013-07-27 Yao Qi <yao@codesourcery.com>
4479
4480 * Makefile.in (HFILES_NO_SRCDIR): Add
4481 common/mips-linux-watch.h.
4482 (mips-linux-watch.o): New rule.
4483 * common/mips-linux-watch.c: New.
4484 * common/mips-linux-watch.h: New.
4485 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4486 * mips-linux-nat.c: Include mips-linux-watch.h.
4487 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4488 to common/mips-linux-watch.h.
4489 (MAX_DEBUG_REGISTER): Likewise.
4490 (enum pt_watch_style): Likewise.
4491 (struct mips32_watch_regs): Likewise.
4492 (struct mips64_watch_regs): Likewise.
4493 (struct pt_watch_regs): Likewise.
4494 (struct mips_watchpoint): Likewise.
4495 (mips_linux_watch_get_irw_mask): Move to
4496 common/mips-linux-watch.c.
4497 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4498 (mips_linux_watch_get_watchlo): Likewise.
4499 (mips_linux_watch_set_watchlo): Likewise.
4500 (mips_linux_watch_get_watchhi): Likewise.
4501 (mips_linux_watch_set_watchhi): Likewise.
4502 (mips_linux_read_watch_registers): Likewise.
4503 (mips_linux_watch_type_to_irw): Likewise.
4504 (mips_linux_stopped_data_address, fill_mask): Likewise.
4505 (mips_linux_watch_try_one_watch): Likewise.
4506 (mips_linux_watch_populate_regs): Likewise.
4507
4508 2013-07-27 Yao Qi <yao@codesourcery.com>
4509
4510 * mips-linux-nat.c (get_irw_mask): Rename to ...
4511 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4512 'set' to 'n'. Update function comment. All callers changed.
4513 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4514 function comment. All callers changed.
4515 (get_num_valid): Rename to ...
4516 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4517 'set' to 'n'. Update function comment. All callers changed.
4518 (get_watchlo): Rename to ...
4519 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4520 'set' to 'n'. Update function comment. All callers changed.
4521 (set_watchlo): Rename to ...
4522 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4523 'set' to 'n'. Update function comment. All callers changed.
4524 (get_watchhi): Rename to ...
4525 (mips_linux_watch_get_watchhi): ... this. Update function
4526 comment. All callers changed.
4527 (set_watchhi): Rename to ...
4528 (mips_linux_watch_set_watchhi): ... this. Update function
4529 comment. All callers changed.
4530 (mips_linux_read_watch_registers): Update function comment.
4531 Add new parameters 'lwpid', 'watch_readback', and
4532 'watch_readback_valid'. Update.
4533 (type_to_irw): Rename to ...
4534 (mips_linux_watch_type_to_irw): ... this. Update function
4535 comment. All callers changed.
4536 (fill_mask): Update function comment.
4537 (try_one_watch): Rename to ...
4538 (mips_linux_watch_try_one_watch): ... this. Change the type
4539 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4540 (populate_regs_from_watches): Rename to ...
4541 (mips_linux_watch_populate_regs): ... this. Add parameter
4542 'current_watches'. All callers changed.
4543
4544 2013-07-27 Yao Qi <yao@codesourcery.com>
4545
4546 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4547 the code.
4548 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4549 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4550 (struct pt_watch_regs): Likewise.
4551 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4552 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4553 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4554 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4555 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4556
4557 2013-07-27 Yao Qi <yao@codesourcery.com>
4558
4559 * breakpoint.h: Include break-common.h.
4560 (enum target_hw_bp_type): Move to ...
4561 * common/break-common.h: ... here. New.
4562
4563 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4564
4565 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4566 process group regardless of having tty on stdin.
4567
4568 2013-07-25 Doug Evans <dje@google.com>
4569
4570 * linux-fork.h (detach_fork): Delete.
4571
4572 2013-07-25 Tom Tromey <tromey@redhat.com>
4573
4574 PR remote/15256, PR remote/15266:
4575 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4576 * monitor.c (monitor_detach): Use unpush_target.
4577 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4578 * remote-mips.c (mips_detach): Use unpush_target. Don't
4579 call mips_close.
4580 * remote-sim.c (gdbsim_detach): Use unpush_target.
4581 * target.c (pop_target): Remove.
4582 (pop_all_targets_above): Don't call target_close.
4583 (target_close): Assert that the target is unpushed.
4584 * target.h (pop_target): Don't declare.
4585 * tracepoint.c (tfile_open): Use unpush_target.
4586
4587 2013-07-25 Tom Tromey <tromey@redhat.com>
4588
4589 * linux-thread-db.c (init_thread_db_ops): Call
4590 complete_target_initialization.
4591 (_initialize_thread_db): Don't call add_target.
4592 * target.c (complete_target_initialization): New function.
4593 (add_target_with_completer): Call it.
4594 * target.h (complete_target_initialization): Declare.
4595
4596 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4597
4598 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4599 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4600 (HPPANBSD_SIZEOF_GREGS): New define.
4601 (hppaobsd_supply_gregset): Handle additional registers.
4602 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4603 we provide more registers now.
4604 (hppabsd_supply_gregset): Supply additional registers.
4605 (hppabsd_collect_gregset): Collect additional registers.
4606
4607 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4608
4609 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4610 (hppabsd_dwarf2_frame_init_reg): New function.
4611 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4612
4613 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4614
4615 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4616 'z' format code. Remove error for optimized out values, standard
4617 code will handle these fine.
4618
4619 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4620
4621 * NEWS: Mention new 'z' formatter.
4622 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4623 (_initialize_printcmd): Mention 'z' formatter in help text of the
4624 'x' command.
4625
4626 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4627
4628 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4629 formatting.
4630
4631 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4632
4633 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4634 interface can evaluate arguments. Fallback to the old mode if it
4635 cannot.
4636 (create_exception_master_breakpoint): Likewise.
4637 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4638 (struct sym_probe_fns elf_probe_fns): Export function above to the
4639 probe interface.
4640 * probe.c (can_evaluate_probe_arguments): New function.
4641 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4642 function pointer.
4643 (can_evaluate_probe_arguments): New function prototype.
4644 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4645 probe interface can evaluate arguments. Fallback to the old mode
4646 if it cannot.
4647 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4648 interface can evaluate arguments. Warning the user if it cannot.
4649 (stap_can_evaluate_probe_arguments): New function.
4650 (struct probe_ops stap_probe_ops): Export function above to the
4651 probe interface.
4652 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4653 New function pointer.
4654
4655 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4656
4657 * Makefile.in (SFILES): Add common/target-common.c.
4658 Add common/target-common.h to headers.
4659 (COMMON_OBS): Add target-common.o.
4660 (target-common.o): New target.
4661 * linux-nat.h (resume_kind): Move to common/target-common.h.
4662 * target.c (target_waitstatus_to_string): Move to
4663 common/target-common.c.
4664 * target.h: Include target-common.h.
4665 (target_waitkind): Move to common/target-common.h.
4666 (target_waitstatus): Likewise.
4667 (TARGET_WNOHANG): Likewise.
4668 * common/target-common.c: New file.
4669 * common/target-common.h: New file.
4670
4671 2013-07-24 Doug Evans <dje@google.com>
4672
4673 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4674 a warning.
4675
4676 2013-07-23 Yao Qi <yao@codesourcery.com>
4677
4678 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4679 parameter 'gdbarch'.
4680 (i386_stack_tramp_frame_sniffer): Caller update.
4681 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4682 parameter 'gdbarch' and 'target'.
4683 (i386_linux_core_read_description): Caller update.
4684 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4685 Likewise.
4686 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4687 declaration.
4688
4689 2013-07-23 Tom Tromey <tromey@redhat.com>
4690
4691 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4692 2013-07-22.
4693
4694 2013-07-22 Doug Evans <dje@google.com>
4695
4696 * exec.h (remove_target_sections): Delete arg abfd.
4697 * exec.c (exec_close): Update call to remove_target_sections.
4698 (remove_target_sections): Delete arg abfd.
4699 * solib.c (update_solib_list): Ditto.
4700 (reload_shared_libraries_1): Ditto.
4701 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4702 * target.h (struct target_section): Rename key to owner.
4703 All uses updated.
4704
4705 2013-07-22 Tom Tromey <tromey@redhat.com>
4706
4707 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4708
4709 2013-07-22 Tom Tromey <tromey@redhat.com>
4710
4711 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4712 Simplify cleanup handling.
4713
4714 2013-07-22 Tom Tromey <tromey@redhat.com>
4715
4716 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4717 on all return paths.
4718
4719 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4720
4721 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4722 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4723 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4724
4725 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4726
4727 * top.c (print_gdb_version): Add help, apropos description and
4728 url to online documentation.
4729
4730 2013-07-19 Hui Zhu <hui@codesourcery.com>
4731
4732 PR gdb/15692
4733 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4734
4735 2013-07-19 Yao Qi <yao@codesourcery.com>
4736
4737 * target.c (update_current_target): Change the default action
4738 of 'to_traceframe_info' from tcomplain to return_zero.
4739 * target.h (struct target_ops) <to_traceframe_info>: Add more
4740 comments.
4741 * valops.c (read_value_memory): Call
4742 traceframe_available_memory unconditionally.
4743
4744 2013-07-18 Yao Qi <yao@codesourcery.com>
4745
4746 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4747 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4748 symbol without prefix. If found, set its type to
4749 'mst_solib_trampoline'.
4750
4751 2013-07-17 Doug Evans <dje@google.com>
4752
4753 * NEWS: Mention "set print raw frame-arguments".
4754 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4755 * stack.c (print_raw_frame_arguments): New static global.
4756 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4757 (_initialize_stack): New command "set/show print raw frame-arguments".
4758 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4759 (set_print_raw, show_print_raw): New functions.
4760 (_initialize_valprint): New prefix command "set/show print raw".
4761 * valprint.h (value_print_options): Improve comments.
4762
4763 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4764 of all *list variables.
4765
4766 * gdbcmd.h (togglelist): Delete.
4767 * cli/cli-cmds.c (togglelist): Delete.
4768 (init_cmd_lists): Update.
4769 * cli/cli-cmds.h (togglelist): Delete.
4770
4771 2013-07-17 Tom Tromey <tromey@redhat.com>
4772
4773 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4774 dwarf2_per_objfile.
4775
4776 2013-07-16 Doug Evans <dje@google.com>
4777
4778 * nto-tdep.c (nto_relocate_section_addresses): Update,
4779 target_section.bfd deleted.
4780 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4781 * s390-tdep.c (s390_load): Ditto.
4782 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4783
4784 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4785
4786 * common/format.c (parse_format_string): Add checks for NULL
4787 character before calling strchr.
4788
4789 2013-07-16 Doug Evans <dje@google.com>
4790
4791 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4792 temp_pathname argument.
4793 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4794 when opening the file fails.
4795
4796 * target.h (struct target_section): Delete member bfd.
4797 All users updated to use the_bfd_section->owner instead.
4798 * exec.c (add_to_section_table): Assert bfd is expected value.
4799 Remove initialization of target_section.bfd.
4800 (remove_target_sections): Update.
4801 (section_table_available_memory): Update.
4802 (section_table_xfer_memory_partial): Update.
4803 (print_section_info): Update.
4804 (exec_set_section_address): Update.
4805 * record-full.c (record_full_core_xfer_partial): Update.
4806 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4807 * solib-target.c (solib_target_relocate_section_addresses): Update.
4808 * symfile.c (build_section_addr_info_from_section_table): Update.
4809 * target.c (memory_xfer_live_readonly_partial): Update.
4810 (memory_xfer_partial_1): Update.
4811
4812 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4813
4814 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4815 now available for embedded (BookE) and server (BookS) processors,
4816 correct mentions of 'booke' and adjust comments accordingly in order to
4817 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4818 (have_ptrace_booke_interface): Rename function and variable
4819 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4820 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4821 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4822 'hwdebug_point_cmp'. Update all uses.
4823 (booke_find_thread_points_by_tid): Rename function
4824 'booke_find_thread_points_by_tid' to
4825 'hwdebug_find_thread_points_by_tid'. Update all uses.
4826 (booke_insert_point): Rename function 'booke_insert_point' to
4827 'hwdebug_insert_point'. Update all uses.
4828 (booke_remove_point): Rename function 'booke_remove_point' to
4829 'hwdebug_remove_point'. Update all uses.
4830
4831 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4832
4833 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4834 numbers with enum values.
4835
4836 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4837
4838 PR threads/13217
4839 * thread.c (thread_apply_all_command): Check for valid threads
4840 and thread count.
4841 (thread_array_cleanup): New struct.
4842 (set_thread_refcount): New function.
4843
4844 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4845
4846 * infcmd.c (default_print_one_register_info): Reuse function
4847 print_hex_chars.
4848
4849 2013-07-10 Tom Tromey <tromey@redhat.com>
4850
4851 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4852 (ada-exp.o): New target.
4853
4854 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4855
4856 * mt-tdep.c (mt_registers_info): Call
4857 get_no_prettyformat_print_options instead of
4858 get_raw_print_options (regression by last patch from Doug
4859 Evans).
4860
4861 2013-07-09 Pedro Alves <palves@redhat.com>
4862
4863 Checked in by Joel Brobecker <brobecker@adacore.com>.
4864 * ada-lang.c (coerce_unspec_val_to_type): Use
4865 value_optimized_out_const.
4866 * value.c (value_optimized_out_const): New function.
4867 * value.h (value_optimized_out_const): New declaration.
4868
4869 2013-07-09 Doug Evans <dje@google.com>
4870
4871 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4872 Enum values rename as well. All uses updated.
4873 * valprint.h (value_print_options): Rename member pretty to
4874 pretty format. Rename member prettyprint_arrays to
4875 prettyformat_arrays. Rename member prettyprint_structs to
4876 prettyformat_structs. All uses updated.
4877 (get_no_prettyformat_print_options): Renamed from
4878 get_raw_print_options.
4879 * valprint.c (get_no_prettyformat_print_options): Renamed from
4880 get_raw_print_options. All callers updated.
4881 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4882 All callers updated.
4883 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4884 All callers updated.
4885 (_initialize_valprint): Improve help text for "set print pretty" and
4886 "set print arrays".
4887
4888 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4889
4890 * value.c (value_bits_valid): Revert previous change, and change
4891 by Pedro on 2013-07-04, due to regressions in
4892 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4893
4894 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4895 Pedro Alves <palves@redhat.com>
4896
4897 * value.c (value_bits_valid): If the value is not lval_computed
4898 or has no check validity handler then the answer is the
4899 optimized_out flag, otherwise defer to the handler.
4900
4901 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4902
4903 * top.c (print_gdb_configuration): Explain in output of
4904 --configuration what does "relocatable" mean.
4905
4906 * main.c (print_gdb_help): Regroup options in the --help text.
4907 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4908 the relevant discussions.
4909
4910 2013-07-06 Yao Qi <yao@codesourcery.com>
4911
4912 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4913 Remove parameter 'lsal'.
4914 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4915 to inner block. Caller update.
4916 (base_breakpoint_create_breakpoints_sal): Update.
4917 (bkpt_create_breakpoints_sal): Likewise.
4918 (tracepoint_create_breakpoints_sal): Likewise.
4919 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4920 element 0 of vector 'canonical->sals'.
4921
4922 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4923
4924 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4925 register number instead of the pseudo register one.
4926 (rs6000_dwarf2_reg_to_regnum): Likewise.
4927
4928 2013-07-04 Pedro Alves <palves@redhat.com>
4929
4930 * findvar.c (value_of_register): Use allocate_optimized_out_value
4931 if the register has been optimized out, instead of
4932 set_value_optimized_out.
4933 * frame-unwind.c (frame_unwind_got_optimized): Use
4934 allocate_optimized_out_value.
4935
4936 2013-07-04 Pedro Alves <palves@redhat.com>
4937
4938 * value.c (value_bits_valid): If the value is not lval_computed,
4939 or doesn't have a check_validity hook, assume the value is entirely
4940 valid.
4941
4942 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4943
4944 * stack.c (read_frame_arg): No longer fetch lazy values.
4945 * value.c (value_optimized_out): If the value is not already
4946 marked optimized out, and is lazy then fetch it.
4947 (value_primitive_field): Move optimized out check to later in the
4948 function, after we have loaded any lazy values.
4949 (value_fetch_lazy): Use optimized out flag directly rather than
4950 calling optimized_out method.
4951
4952 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4953
4954 * valops.c: Don't include "user-regs.h".
4955 (value_fetch_lazy): Moved to value.c.
4956 * value.c: Include "user-regs.h".
4957 (value_fetch_lazy): Moved from valops.c.
4958
4959 2013-07-04 Yao Qi <yao@codesourcery.com>
4960
4961 Revert:
4962 2013-06-27 Yao Qi <yao@codesourcery.com>
4963
4964 * common/create-version.sh: Update comments. Handle the case
4965 that TARGET_ALIAS is empty.
4966
4967 2013-07-03 Pedro Alves <palves@redhat.com>
4968
4969 * Makefile.in (config.status): Depend on development.sh.
4970 (aclocal_m4_deps): Add libmcheck.m4.
4971 * acinclude.m4: Include libmcheck.m4.
4972 * configure.ac: Source development.sh instead of setting
4973 'development' here. --enable-libmcheck/--disable-libmcheck code
4974 factored out to GDB_AC_LIBMCHECK. Run it.
4975 * development.sh: New file.
4976 * libmcheck.m4: New file.
4977 * configure: Regenerate.
4978
4979 2013-07-02 Tom Tromey <tromey@redhat.com>
4980
4981 * contrib/ari/update-web-ari.sh: Update for version.in change.
4982
4983 2013-07-02 Tom Tromey <tromey@redhat.com>
4984
4985 * common/ptid.h: Comment fixes.
4986
4987 2013-07-01 Tom Tromey <tromey@redhat.com>
4988
4989 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4990 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4991 (dwarf2_read_index, create_all_comp_units): Update.
4992
4993 2013-07-01 Tom Tromey <tromey@redhat.com>
4994
4995 * configure.ac (build_warnings): Add -Wold-style-definition.
4996 * configure: Rebuild.
4997 * machoread.c (_initialize_machoread): Use "(void)".
4998 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4999 use "(void)".
5000
5001 2013-07-01 Tom Tromey <tromey@redhat.com>
5002
5003 * configure.ac (build_warnings): Add -Wold-style-declaration.
5004 * configure: Rebuild.
5005 * dsrec.c (make_srec): Use "static const", not "const static".
5006 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5007 not "const static".
5008 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5009 Use "static const", not "const static".
5010 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5011 not "const static".
5012 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5013 not "const static".
5014 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5015 not "const static".
5016 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5017 not "const static".
5018 (v850_dbtrap_breakpoint_from_pc): Likewise.
5019 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5020 not "const static".
5021
5022 2013-07-01 Tom Tromey <tromey@redhat.com>
5023
5024 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5025 * configure: Rebuild.
5026
5027 2013-07-01 Pedro Alves <palves@redhat.com>
5028
5029 * defs.h: Include "pathmax.h".
5030 * utils.c: Don't include sys/param.h.
5031 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5032 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5033 instead of MAXPATHLEN.
5034 * solib-sunos.c: Don't include sys/param.h.
5035 * xcoffread.c: Don't include sys/param.h.
5036 * bsd-kvm.c: Don't include sys/param.h.
5037 * darwin-nat.c: Don't include sys/param.h.
5038 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5039 * darwin-nat-info.c: Don't include sys/param.h.
5040 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5041 MAXPATHLEN.
5042 * i386obsd-nat.c: Don't include sys/param.h.
5043 * inf-child.c: Don't include sys/param.h.
5044 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5045 * linux-fork.c: Don't include sys/param.h.
5046 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5047 * linux-nat.c: Don't include sys/param.h.
5048 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5049 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5050 * m68klinux-nat.c: Don't include sys/param.h.
5051 * nbsd-nat.c: Don't include sys/param.h.
5052 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5053 * ppc-linux-nat.c: Don't include sys/param.h.
5054 * rs6000-nat.c: Don't include sys/param.h.
5055 * spu-linux-nat.c. Don't include sys/param.h.
5056 * windows-nat.c: Don't include sys/param.h.
5057 * xtensa-linux-nat.c: Don't include sys/param.h.
5058 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5059
5060 2013-07-01 Pedro Alves <palves@redhat.com>
5061
5062 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5063 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5064 * gnulib/aclocal.m4: Regenerate.
5065 * gnulib/config.in: Regenerate.
5066 * gnulib/configure: Regenerate.
5067 * gnulib/import/pathmax.h: New file.
5068 * gnulib/import/Makefile.am: Regenerate.
5069 * gnulib/import/Makefile.in: Regenerate.
5070 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5071 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5072 * gnulib/import/m4/pathmax.m4: New file.
5073
5074 2013-07-01 Pedro Alves <palves@redhat.com>
5075
5076 * configure.ac (GDBINIT): Define, depending on host.
5077 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5078 * top.c (PATH_MAX): Delete fallback definition.
5079 (GDBINIT_FILENAME): Delete.
5080 (gdbinit): Reimplement as const char array set to the GDBINIT
5081 string constant.
5082 * top.h (gdbinit): Make const.
5083 * configure, config.in: Regenerate.
5084
5085 2013-07-01 Pedro Alves <palves@redhat.com>
5086
5087 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5088 * cli/cli-cmds.h (source_script): Likewise.
5089 * exceptions.c (catch_command_errors_const): New function.
5090 * exceptions.h (catch_command_errors_const): Declare.
5091 * main.c (get_init_files): Make parameters const, and adjust.
5092 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5093 'local_gdbinit' locals const. Adjust to use
5094 catch_command_errors_const.
5095 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5096 'local_gdbinit' locals const.
5097
5098 2013-07-01 Pedro Alves <palves@redhat.com>
5099
5100 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5101 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5102 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5103 <unistd.h>.
5104
5105 2013-07-01 Pedro Alves <palves@redhat.com>
5106
5107 Import the "unistd" gnulib module.
5108 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5109 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5110 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5111 import/m4/unistd_h.m4.
5112 * gnulib/aclocal.m4: Renenerate.
5113 * gnulib/config.in: Renenerate.
5114 * gnulib/configure: Renenerate.
5115 * gnulib/import/Makefile.am: Renenerate.
5116 * gnulib/import/Makefile.in: Renenerate.
5117 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5118 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5119 * gnulib/import/m4/off_t.m4: New file.
5120 * gnulib/import/m4/ssize_t.m4: New file.
5121 * gnulib/import/m4/sys_types_h.m4: New file.
5122 * gnulib/import/m4/unistd_h.m4: New file.
5123 * gnulib/import/sys_types.in.h: New file.
5124 * gnulib/import/unistd.c: New file.
5125 * gnulib/import/unistd.in.h: New file.
5126
5127 2013-07-01 Pedro Alves <palves@redhat.com>
5128
5129 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5130 defined instead of checking HAVE_UNISTD_H.
5131
5132 2013-07-01 Pedro Alves <palves@redhat.com>
5133
5134 Reimport gnulib from scratch.
5135 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5136 import/m4/onceonly.m4.
5137 * gnulib/aclocal.m4: Renegerate.
5138 * gnulib/config.in: Renegerate.
5139 * gnulib/configure: Renegerate.
5140 * gnulib/import/Makefile.in: Renegerate.
5141 * gnulib/import/extra/update-copyright: Renegerate.
5142 * gnulib/import/m4/onceonly.m4: Delete.
5143
5144 2013-07-01 Pedro Alves <palves@redhat.com>
5145
5146 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5147
5148 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5149
5150 Code cleanup.
5151 * remote.c (async_remote_interrupt_twice): Make it static.
5152 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5153
5154 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5155
5156 * ia64-linux-tdep.c: Include <ctype.h>.
5157 (ia64_linux_stap_is_single_operand): New function.
5158 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5159
5160 2013-06-28 Tom Tromey <tromey@redhat.com>
5161
5162 * Makefile.in (version.c): Use version.in, not
5163 common/version.in.
5164 * common/create-version.sh: Likewise.
5165 * common/version.in: Move...
5166 * version.in: ...here.
5167
5168 2013-06-28 Pedro Alves <palves@redhat.com>
5169
5170 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5171 here.
5172 * utils.h (pagination_enabled): Declare.
5173
5174 2013-06-28 Pedro Alves <palves@redhat.com>
5175
5176 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5177 Move higher up in file.
5178
5179 2013-06-28 Tom Tromey <tromey@redhat.com>
5180
5181 * tracepoint.c (deprecated_readline_begin_hook)
5182 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5183 declare.
5184
5185 2013-06-28 Pedro Alves <palves@redhat.com>
5186
5187 PR tui/14880
5188 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5189 checking if they're available.
5190 * value.c (value_available_contents_eq): Change comment.
5191 * value.h (value_available_contents_eq): Expand comment.
5192
5193 2013-06-27 Tom Tromey <tromey@redhat.com>
5194
5195 * target.c (find_run_target): Remove.
5196 * target.h (find_run_target): Remove.
5197
5198 2013-06-27 Tom Tromey <tromey@redhat.com>
5199
5200 * corelow.c (core_gdbarch): Now static.
5201
5202 2013-06-27 Tom Tromey <tromey@redhat.com>
5203
5204 * target.c (target_struct_index): Remove.
5205
5206 2013-06-27 Pedro Alves <palves@redhat.com>
5207
5208 * infrun.c: Remove comment describing the 'stepping over runtime
5209 loader dynamic symbol resolution code' mechanism; moved to
5210 gdbint.texinfo.
5211
5212 2013-06-27 Pedro Alves <palves@redhat.com>
5213
5214 * exceptions.c (catch_command_errors): Remove spurious space.
5215 * exceptions.h (catch_command_errors): Second parameter is "arg",
5216 not "command".
5217
5218 2013-06-27 Yao Qi <yao@codesourcery.com>
5219
5220 * common/create-version.sh: Update comments. Handle the case
5221 that TARGET_ALIAS is empty.
5222
5223 2013-06-26 Pedro Alves <palves@redhat.com>
5224
5225 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5226 comment.
5227
5228 2013-06-26 Pedro Alves <palves@redhat.com>
5229
5230 * infrun.c: Update comments on stepping over runtime loader
5231 dynamic symbol resolution code.
5232
5233 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5234
5235 * ax-gdb.h (union exp_element): Forward declare.
5236 * parser-defs.h: Include expression.h.
5237
5238 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5239
5240 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5241
5242 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5243
5244 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5245
5246 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5247
5248 Fix trace-status to output proper start-time and stop-time.
5249 * tracepoint.c (trace_status_command): Fix type of printf arg to
5250 prevent improper type conversion.
5251 (trace_status_mi): Likewise.
5252
5253 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5254
5255 * mips-tdep.c (mips_next_pc): Fix a typo.
5256
5257 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5258
5259 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5260
5261 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5262 Yao Qi <yao@codesourcery.com>
5263
5264 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5265 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5266 * mi/mi-main.c (print_variable_or_computed): New function.
5267 (mi_cmd_trace_frame_collected): New function.
5268 * tracepoint.c (find_trace_state_variable_by_number): New.
5269 (struct traceframe_info): Move to tracepoint.h
5270 (struct collection_list): Likewise.
5271 (do_collect_symbol): Include locals and arguments in the
5272 collected variables list.
5273 (clear_collection_list): Clear wholly collected variables list
5274 and computed variables list.
5275 (append_exp): New function.
5276 (encode_actions_1): Include variables in the wholly
5277 collected variables list. Include memory ranges and
5278 full-fledged expressions in the computed expressions list.
5279 (encode_actions): Move some code to ...
5280 Return the cleanup chain.
5281 (encode_actions_rsp): ... here. New function.
5282 (get_traceframe_location, get_traceframe_info): Remove static.
5283 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5284 (struct collection_list): Moved from tracepoint.c. Add two
5285 new fields 'wholly_collected' and 'computed'.
5286 (find_trace_state_variable_by_number): Declare.
5287 (encode_actions): Adjust declaration.
5288 (encode_actions_rsp): Declare.
5289 (get_traceframe_info, get_traceframe_location): Declare.
5290
5291 * NEWS: Mention new MI command -trace-frame-collected.
5292
5293 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5294 Yao Qi <yao@codesourcery.com>
5295
5296 * ctf.c (ctf_traceframe_info): Push trace state variables
5297 present in the trace data into the traceframe info object.
5298 * breakpoint.c (DEF_VEC_I): Remove.
5299 * common/filestuff.c (DEF_VEC_I): Likewise.
5300 * dwarf2loc.c (DEF_VEC_I): Likewise.
5301 * mi/mi-main.c (DEF_VEC_I): Likewise.
5302 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5303 * features/traceframe-info.dtd: Add tvar element and its
5304 attributes.
5305 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5306 (build_traceframe_info): Push trace state variables present in
5307 the trace data into the traceframe info object.
5308 (traceframe_info_start_tvar): New function.
5309 (tvar_attributes): New.
5310 (traceframe_info_children): Add "tvar" element.
5311 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5312
5313 * NEWS: Mention the change in GDB and GDBserver.
5314
5315 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5316 Yao Qi <yao@codesourcery.com>
5317
5318 * tracepoint.c (trace_dump_command): Move code to ...
5319 (get_traceframe_location): ... here. New.
5320
5321 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5322 Yao Qi <yao@codesourcery.com>
5323
5324 * tracepoint.c (trace_dump_command): GDB emits an error
5325 instead of a warning when a traceframe is not selected.
5326
5327 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5328 Yao Qi <yao@codesourcery.com>
5329
5330 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5331 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5332 in collection_list.
5333 (do_clear_collection_list, init_collection_list): New.
5334 (encode_actions): Add local variables 'tracepoint_list' and
5335 'stepping_list'. Call init_collection_list and make cleanup
5336 which calls do_clear_collection_list. Don't call
5337 clear_collection_list.
5338 (_initialize_tracepoint): Delete references to
5339 'tracepoint_list' and 'stepping_list'.
5340
5341 2013-06-25 Tom Tromey <tromey@redhat.com>
5342
5343 * common/create-version.sh (date): Use "$", not "$$" in sed
5344 expression.
5345
5346 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5347
5348 * NEWS (New targets): Add entry for TI MSP430.
5349
5350 2013-06-25 Yao Qi <yao@codesourcery.com>
5351
5352 * remote.c (remote_start_remote): Move code to upload tsv
5353 earlier.
5354
5355 2013-06-25 Yao Qi <yao@codesourcery.com>
5356 Hui Zhu <hui@codesourcery.com>
5357 Pedro Alves <palves@redhat.com>
5358
5359 PR breakpoints/15075
5360 PR breakpoints/15434
5361 * breakpoint.c (bpstat_stop_status): Call
5362 b->ops->after_condition_true.
5363 (update_dprintf_command_list): Don't append "continue" command
5364 to the command list of dprintf breakpoint.
5365 (base_breakpoint_after_condition_true): New function.
5366 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5367 (dprintf_after_condition_true): New function.
5368 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5369 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5370
5371 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5372
5373 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5374 (ALLDEPFILES): Add msp430-tdep.c.
5375 * configure.tgt (msp430*-*-elf): New target.
5376 * msp430-tdep.c: New file.
5377
5378 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5379
5380 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5381 microMIPS synthetic symbols.
5382
5383 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5384
5385 * objfiles.h (pc_in_section): New prototype.
5386 (in_plt_section): Remove name argument, replace prototype with
5387 static inline function.
5388 * mips-tdep.h: Include "objfiles.h".
5389 (in_mips_stubs_section): New function.
5390 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5391 in_solib_call_trampoline member.
5392 (hppa_in_solib_call_trampoline): Remove name argument.
5393 * objfiles.c (pc_in_section): New function.
5394 (in_plt_section): Remove function.
5395 * mips-linux-tdep.c: Include "objfiles.h".
5396 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5397 name argument. Return 1 rather than the low 16-bit halfword of
5398 any instruction examined.
5399 (mips_linux_in_dynsym_resolve_code): Update
5400 mips_linux_in_dynsym_stub call accordingly.
5401 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5402 rather than an equivalent hand-coded sequence.
5403 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5404 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5405 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5406 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5407 in_opd_section.
5408 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5409 on call to tdep->in_solib_call_trampoline.
5410 (hppa_in_solib_call_trampoline): Remove name argument, update
5411 according to in_plt_section change.
5412 (hppa_skip_trampoline_code): Update according to in_plt_section
5413 change.
5414 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5415 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5416 Likewise.
5417 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5418 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5419 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5420 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5421 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5422 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5423 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5424 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5425 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5426 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5427 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5428 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5429 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5430
5431 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5432
5433 * common/create-version.sh: Fix expansion of $host_alias
5434 and $target_alias in generation of HOST_NAME and TARGET_NAME
5435 (resp.).
5436
5437 2013-06-24 Tom Tromey <tromey@redhat.com>
5438
5439 * common/create-version.sh: New file.
5440 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5441 create-version.sh.
5442 (HFILES_NO_SRCDIR): Use common/version.h.
5443 * version.in: Move to ...
5444 * common/version.in: ... here. Replace date with "DATE".
5445 * version.h: Move to ...
5446 * common/version.h: ... here.
5447
5448 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5449
5450 * gdb/gnulib/Makefile.in: Update date in copyright header.
5451 * gdb/gnulib/configure.ac: Ditto.
5452 * gdb/gnulib/update-gnulib.sh: Ditto.
5453
5454 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5455
5456 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5457 "gdb/gnulib/import".
5458
5459 2013-06-21 Will Newton <will.newton@linaro.org>
5460
5461 * doublest.c (ldfrexp): Remove function.
5462 (convert_doublest_to_floatformat): Call frexpl instead of
5463 ldfrexp.
5464
5465 2013-06-21 Will Newton <will.newton@linaro.org>
5466
5467 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5468 * gnulib/aclocal.m4: Regenerate.
5469 * gnulib/config.in: Regenerate.
5470 * gnulib/configure: Regenerate.
5471 * gnulib/import/Makefile.am: Update.
5472 * gnulib/import/Makefile.in: Update.
5473 * gnulib/import/m4/gnulib-cache.m4: Update.
5474 * gnulib/import/m4/gnulib-comp.m4: Update.
5475 * gnulib/import/float+.h: Import.
5476 * gnulib/import/float.c: Import.
5477 * gnulib/import/float.in.h: Import.
5478 * gnulib/import/fpucw.h: Import.
5479 * gnulib/import/frexp.c: Import.
5480 * gnulib/import/frexpl.c: Import.
5481 * gnulib/import/isnan.c: Import.
5482 * gnulib/import/isnand-nolibm.h: Import.
5483 * gnulib/import/isnand.c: Import.
5484 * gnulib/import/isnanl-nolibm.h: Import.
5485 * gnulib/import/isnanl.c: Import.
5486 * gnulib/import/itold.c: Import.
5487 * gnulib/import/m4/exponentd.m4: Import.
5488 * gnulib/import/m4/exponentl.m4: Import.
5489 * gnulib/import/m4/float_h.m4: Import.
5490 * gnulib/import/m4/fpieee.m4: Import.
5491 * gnulib/import/m4/frexp.m4: Import.
5492 * gnulib/import/m4/frexpl.m4: Import.
5493 * gnulib/import/m4/isnand.m4: Import.
5494 * gnulib/import/m4/isnanl.m4: Import.
5495 * gnulib/import/m4/math_h.m4: Import.
5496 * gnulib/import/math.c: Import.
5497 * gnulib/import/math.in.h: Import.
5498
5499 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5500
5501 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5502 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5503 signature_INTEL_edx comparisons.
5504
5505 2013-06-20 Doug Evans <dje@google.com>
5506
5507 symtab/15652
5508 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5509 All callers updated.
5510 (open_dwp_file): If we can't find the dwp file, search the basename
5511 in debug-file-directory.
5512
5513 * dwarf2read.c (struct dwp_file): Fix comment.
5514 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5515
5516 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5517 better.
5518
5519 2013-06-20 Yao Qi <yao@codesourcery.com>
5520
5521 * breakpoint.c (create_breakpoint): Fix code indentation.
5522
5523 2013-06-20 Yao Qi <yao@codesourcery.com>
5524
5525 * breakpoint.c (create_breakpoints_sal_default): Remove
5526 parameter 'lsal'. Update declaration.
5527 (bkpt_create_breakpoints_sal): Caller update.
5528 (tracepoint_create_breakpoints_sal): Likewise.
5529
5530 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5531 Yao Qi <yao@codesourcery.com>
5532
5533 * NEWS: Mention the new option '--skip-unavailable' of command
5534 -data-list-register-values.
5535 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5536 --skip-unavailable option. Adjust to use output_register.
5537 (output_register): Add new 'skip_unavailable' parameter.
5538 Handle it.
5539
5540 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5541
5542 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5543 common/i386-gcc-cpuid.h.
5544 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5545 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5546 Copy the latest version from upstream gcc.
5547 * common/linux-btrace.c: Include i386-cpuid.h.
5548 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5549 call to i386_cpuid.
5550 (cpu_supports_btrace): Likewise.
5551 * go32-nat.c: Include i386-cpuid.h.
5552 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5553
5554 2013-06-19 Doug Evans <dje@google.com>
5555
5556 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5557 (get_section_index): Ditto.
5558
5559 2013-06-19 Tom Tromey <tromey@redhat.com>
5560
5561 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5562 "dprintf" help.
5563
5564 2013-06-18 Doug Evans <dje@google.com>
5565
5566 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5567 before using it.
5568 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5569 Move test of cu_index closer to use. Print complaint if cu_index
5570 is bad.
5571
5572 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5573
5574 * machoread.c (oso_vector): Delete this global.
5575 (macho_register_oso): Add new parameter "oso_vector_ptr".
5576 Use it instead of the "oso_vector" global.
5577 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5578 (macho_symfile_read): Use a local oso_vector, to be free'ed
5579 at the end of this function, in place of the old "oso_vector"
5580 global. Update various function calls accordingly. Use one
5581 single cleanup chain for the entire function.
5582
5583 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5584
5585 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5586 DWARF2_PER_OBJFILE by uses of DATA instead.
5587
5588 2013-06-18 Tom Tromey <tromey@redhat.com>
5589
5590 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5591 argument.
5592 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5593 Special case signals other than GDB_SIGNAL_TRAP.
5594 (explains_signal_watchpoint): New function.
5595 (base_breakpoint_explains_signal): Add 'sig' argument.
5596 (initialize_breakpoint_ops): Set 'explains_signal' method for
5597 watchpoints.
5598 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5599 signal argument.
5600 (bpstat_explains_signal): Likewise.
5601 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5602
5603 2013-06-18 Tom Tromey <tromey@redhat.com>
5604
5605 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5606
5607 2013-06-18 Tom Tromey <tromey@redhat.com>
5608
5609 * python/python.c (finish_python_initialization): Decref
5610 'pythondir' on failure path as well.
5611
5612 2013-06-18 Tom Tromey <tromey@redhat.com>
5613
5614 PR symtab/15391:
5615 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5616 after taking bits_to_skip into account. Sign extend byte_offset.
5617 * utils.h (gdb_sign_extend): Declare.
5618 * utils.c (gdb_sign_extend): New function.
5619
5620 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5621
5622 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5623
5624 2013-06-17 Pierre Muller <muller@sourceware.org>
5625
5626 * corelow.c (core_open): Print GDB signal name instead of target
5627 signal number.
5628
5629 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5630
5631 * .gitignore: Add /gcore.
5632
5633 2013-06-13 Doug Evans <dje@google.com>
5634
5635 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5636 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5637
5638 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5639
5640 * stack.c (backtrace_command_1): Fix indentation.
5641
5642 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5643
5644 * window-nat.c (thread_rec): Add missing empty line after
5645 local variable declaration.
5646
5647 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5648
5649 * windows-nat.c (thread_rec): Revert format used to print
5650 error code returned by SuspendThread from %d back to %u.
5651
5652 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5653
5654 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5655 ID in debug trace.
5656 (get_windows_debug_event): Likewise, for all debug traces.
5657
5658 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5659
5660 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5661 warning message.
5662
5663 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5664 Yao Qi <yao@codesourcery.com>
5665
5666 * mi/mi-main.c (get_register): Remove declaration.
5667 (output_register): Declare.
5668 (mi_cmd_data_list_register_values): Remove local variable
5669 'tuple_cleanup'. Move some code into output_register.
5670 (get_register): Renamed to ...
5671 (output_register): ... this. Output the register's
5672 "number" ui_out tuple here.
5673
5674 2013-06-07 Pedro Alves <palves@redhat.com>
5675
5676 * darwin-nat.c: Fix formating in copyright header.
5677 * darwin-nat.h: Likewise.
5678 * gnu-nat.c: Likewise.
5679 * machoread.c: Likewise.
5680
5681 2013-06-07 Pedro Alves <palves@redhat.com>
5682
5683 PR server/14823
5684 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5685 static. Output a global target description pointer.
5686 (init_registers_${name}): Adjust to initialize a
5687 target description structure.
5688
5689 2013-06-07 Will Newton <will.newton@linaro.org>
5690
5691 * printcmd.c (build_address_symbolic): Call
5692 gdbarch_addr_bits_remove for text minimal symbols.
5693
5694 2013-06-07 Will Newton <will.newton@linaro.org>
5695
5696 * MAINTAINERS: Add myself to Write After Approval.
5697
5698 2013-06-07 Yao Qi <yao@codesourcery.com>
5699
5700 * tracepoint.c (start_tracing): Move code to ...
5701 (trace_reset_local_state): ... here. New.
5702 (disconnect_tracing): Don't call set_current_traceframe,
5703 set_tracepoint_num, and set_traceframe_context. Call
5704 trace_reset_local_state instead.
5705 (tfile_close): Call trace_reset_local_state.
5706 * ctf.c (ctf_close): Likewise.
5707 * remote.c (remote_close): Likewise.
5708 * tracepoint.h (trace_reset_local_state): Declare.
5709
5710 2013-06-06 Doug Evans <dje@google.com>
5711
5712 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5713 and fix header docs.
5714
5715 2013-06-05 Doug Evans <dje@google.com>
5716 Keith Seitz <keiths@redhat.com>
5717
5718 PR 15519
5719 * cp-namespace.c (find_symbol_in_baseclass): Call
5720 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5721 Check result of call to lookup_symbol_static.
5722 Call lookup_static_symbol_aux unconditionally.
5723 Call check_typedef on base types before accessing them.
5724 (cp_lookup_nested_symbol): Fix comment.
5725
5726 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5727
5728 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5729 minimal symbols pointing to function descriptors.
5730
5731 2013-06-05 Tom Tromey <tromey@redhat.com>
5732
5733 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5734
5735 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5736 Pedro Alves <palves@redhat.com>
5737
5738 * remote.c (remote_wait_as): Restore signal handler before returning
5739 when GDB gets a notification.
5740
5741 2013-06-04 Gary Benson <gbenson@redhat.com>
5742
5743 PR 2328
5744 * breakpoint.h (handle_solib_event): Moved function declaration
5745 to solib.h.
5746 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5747 (bpstat_stop_status): Pass new argument to handle_solib_event.
5748 * solib.h (update_solib_breakpoints): New function declaration.
5749 (handle_solib_event): Moved function declaration from
5750 breakpoint.h.
5751 * solib.c (update_solib_breakpoints): New function.
5752 (handle_solib_event): Moved function from breakpoint.c.
5753 Updated to call solib_ops->handle_event if not NULL.
5754 * solist.h (target_so_ops): New fields "update_breakpoints" and
5755 "handle_event".
5756 * infrun.c (set_stop_on_solib_events): New function.
5757 (_initialize_infrun): Use the above for "set
5758 stop-on-solib-events".
5759 (handle_inferior_event): Pass new argument to handle_solib_event.
5760 * solib-svr4.c (probe.h): New include.
5761 (svr4_free_library_list): New forward declaration.
5762 (probe_action): New enum.
5763 (probe_info): New struct.
5764 (probe_info): New static variable.
5765 (NUM_PROBES): New definition.
5766 (svr4_info): New fields "using_xfer", "probes_table" and
5767 "solib_list".
5768 (free_probes_table): New function.
5769 (free_solib_list): New function.
5770 (svr4_pspace_data_cleanup): Free probes table and solib list.
5771 (svr4_copy_library_list): New function.
5772 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5773 (svr4_read_so_list): New parameter "prev_lm".
5774 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5775 (svr4_current_sos): New function.
5776 (probe_and_action): New struct.
5777 (hash_probe_and_action): New function.
5778 (equal_probe_and_action): Likewise.
5779 (register_solib_event_probe): Likewise.
5780 (solib_event_probe_at): Likewise.
5781 (solib_event_probe_action): Likewise.
5782 (solist_update_full): Likewise.
5783 (solist_update_incremental): Likewise.
5784 (disable_probes_interface_cleanup): Likewise.
5785 (svr4_handle_solib_event): Likewise.
5786 (svr4_update_solib_event_breakpoint): Likewise.
5787 (svr4_update_solib_event_breakpoints): Likewise.
5788 (svr4_create_solib_event_breakpoints): Likewise.
5789 (enable_break): Free probes table before creating breakpoints.
5790 Use svr4_create_solib_event_breakpoints to create breakpoints.
5791 (svr4_solib_create_inferior_hook): Free the solib list.
5792 (_initialize_svr4_solib): Initialise
5793 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5794
5795 2013-06-04 Gary Benson <gbenson@redhat.com>
5796
5797 * target.h (target_ops): New field
5798 "to_augmented_libraries_svr4_read".
5799 (target_augmented_libraries_svr4_read): New macro.
5800 * target.c (update_current_target): Handle
5801 to_augmented_libraries_svr4_read.
5802 * remote.c (remote_state): New field
5803 "augmented_libraries_svr4_read".
5804 (remote_augmented_libraries_svr4_read_feature): New function.
5805 (remote_protocol_features): Add entry for
5806 "augmented-libraries-svr4-read".
5807 (remote_augmented_libraries_svr4_read): New function.
5808 (init_remote_ops): Initialize
5809 remote_ops.to_augmented_libraries_svr4_read.
5810
5811 2013-06-04 Gary Benson <gbenson@redhat.com>
5812
5813 * NEWS: Update.
5814
5815 2013-06-04 Gary Benson <gbenson@redhat.com>
5816
5817 * objfiles.h (inhibit_section_map_updates): New function
5818 declaration.
5819 (resume_section_map_updates): Likewise.
5820 (resume_section_map_updates_cleanup): Likewise.
5821 * objfiles.c (objfile_pspace_info): Removed field
5822 "objfiles_changed_p". New fields "new_objfiles_available",
5823 "section_map_dirty" and "inhibit_updates".
5824 (allocate_objfile): Set new_objfiles_available.
5825 (free_objfile): Set section_map_dirty.
5826 (objfile_relocate1): Likewise.
5827 (in_plt_section): Likewise.
5828 (find_pc_section): Update the conditions under which the
5829 section map will be updated.
5830 (inhibit_section_map_updates): New function.
5831 (resume_section_map_updates): Likewise.
5832 (resume_section_map_updates_cleanup): Likewise.
5833
5834 2013-06-04 Gary Benson <gbenson@redhat.com>
5835
5836 * probe.h (get_probe_argument_count): New declaration.
5837 (evaluate_probe_argument): Likewise.
5838 * probe.c (get_probe_argument_count): New function.
5839 (evaluate_probe_argument): Likewise.
5840 (probe_safe_evaluate_at_pc): Use the above new functions.
5841
5842 2013-06-04 Alan Modra <amodra@gmail.com>
5843
5844 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5845 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5846 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5847 target mem reads on optional insns.
5848 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5849 ppc_insns_match_pattern calls.
5850 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5851 Add match for power7 thread safety insns, and new order of
5852 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5853 invocation in comment, and update rest of comment.
5854 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5855 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5856 (ppc64_standard_linkage2_target): Update insn offsets.
5857 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5858 stubs first. Update calls.
5859
5860 2013-06-04 Yao Qi <yao@codesourcery.com>
5861
5862 * solib.c (solib_find): Don't need dir separator if path has
5863 drive spec.
5864
5865 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5866
5867 Revert (indirectly causes a SIGSEGV):
5868 * machoread.c (macho_symfile_read): Assign first cleanup to
5869 'back_to'.
5870
5871 2013-06-03 Yao Qi <yao@codesourcery.com>
5872
5873 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5874 mi-parse.c. Make them static.
5875 (mi_all_values): Likewise.
5876 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5877 mi_parse_print_values. Make it external.
5878 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5879 Remove the declarations.
5880 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5881 * mi/mi-parse.h (mi_parse_print_values): Declare.
5882 * mi/mi-cmd-stack.c: Include mi-parse.h.
5883 (parse_print_values): Remove
5884 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5885 of parse_print_values.
5886 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5887
5888 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5889 Yao Qi <yao@codesourcery.com>
5890
5891 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5892 (encode_actions): Move code to ...
5893 (all_tracepoint_actions_and_cleanup): ... here. New.
5894 (trace_dump_command): Likewise.
5895
5896 2013-05-30 Tom Tromey <tromey@redhat.com>
5897
5898 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5899
5900 2013-05-30 Tom Tromey <tromey@redhat.com>
5901
5902 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5903 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5904 'old_chain' argument. Add 'parser_result' argument.
5905 (gdb_xml_create_parser_and_cleanup): Remove old version.
5906 (gdb_xml_parse_quick): Update.
5907 (xml_process_xincludes): Update.
5908 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5909 declare.
5910
5911 2013-05-30 Tom Tromey <tromey@redhat.com>
5912
5913 * probe.c (collect_probes): Check arguments for NULL before
5914 calling compile_rx_or_error.
5915 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5916 Remove NULL return.
5917
5918 2013-05-30 Tom Tromey <tromey@redhat.com>
5919
5920 * infrun.c (adjust_pc_after_break): Introduce an outer null
5921 cleanup.
5922
5923 2013-05-30 Tom Tromey <tromey@redhat.com>
5924
5925 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5926
5927 2013-05-30 Tom Tromey <tromey@redhat.com>
5928
5929 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5930 for 'old_chain'. Do not check 'head' before processing
5931 cleanups.
5932
5933 2013-05-30 Tom Tromey <tromey@redhat.com>
5934
5935 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5936 "cleanup_tuple".
5937
5938 2013-05-30 Tom Tromey <tromey@redhat.com>
5939
5940 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5941 inner scope. Unconditionally call do_cleanups.
5942
5943 2013-05-30 Tom Tromey <tromey@redhat.com>
5944
5945 * source.c (find_and_open_source): Call do_cleanups.
5946
5947 2013-05-30 Tom Tromey <tromey@redhat.com>
5948
5949 * linux-thread-db.c (thread_db_load_search): Unconditionally
5950 call do_cleanups.
5951
5952 2013-05-30 Tom Tromey <tromey@redhat.com>
5953
5954 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5955 for 'cleanup'; instead use a later one.
5956
5957 2013-05-30 Tom Tromey <tromey@redhat.com>
5958
5959 * python/py-breakpoint.c (bppy_get_commands): Use
5960 explicit, unconditional return.
5961 * python/py-frame.c (frapy_read_var): Likewise.
5962 * python/python.c (gdbpy_decode_line): Likewise.
5963
5964 2013-05-30 Tom Tromey <tromey@redhat.com>
5965
5966 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5967 do_cleanups on all return paths.
5968
5969 2013-05-30 Tom Tromey <tromey@redhat.com>
5970
5971 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5972
5973 2013-05-30 Tom Tromey <tromey@redhat.com>
5974
5975 * stabsread.c (read_struct_type): Call do_cleanups along
5976 all return paths.
5977
5978 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5979
5980 * mips-linux-tdep.c: Adjust formatting throughout.
5981
5982 2013-05-30 Tom Tromey <tromey@redhat.com>
5983
5984 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5985 along all return paths.
5986
5987 2013-05-30 Tom Tromey <tromey@redhat.com>
5988
5989 * symfile.c (find_separate_debug_file): Call do_cleanups
5990 along all return paths.
5991
5992 2013-05-30 Tom Tromey <tromey@redhat.com>
5993
5994 * symtab.c (search_symbols): Introduce a null cleanup for
5995 'retval_chain'.
5996
5997 2013-05-30 Tom Tromey <tromey@redhat.com>
5998
5999 * python/py-value.c (valpy_binop): Call do_cleanups before
6000 exiting loop.
6001
6002 2013-05-30 Tom Tromey <tromey@redhat.com>
6003
6004 * python/py-prettyprint.c (print_children): Remove extra
6005 do_cleanups call.
6006
6007 2013-05-30 Tom Tromey <tromey@redhat.com>
6008
6009 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6010 all return paths.
6011
6012 2013-05-30 Tom Tromey <tromey@redhat.com>
6013
6014 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6015 along all return paths.
6016
6017 2013-05-30 Tom Tromey <tromey@redhat.com>
6018
6019 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6020 call do_cleanups.
6021
6022 2013-05-30 Tom Tromey <tromey@redhat.com>
6023
6024 * varobj.c (c_value_of_root): Call do_cleanups along all
6025 return paths.
6026
6027 2013-05-30 Tom Tromey <tromey@redhat.com>
6028
6029 * tracepoint.c (trace_dump_command): Unconditionally call
6030 do_cleanups.
6031
6032 2013-05-30 Tom Tromey <tromey@redhat.com>
6033
6034 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6035 do_cleanups earlier.
6036
6037 2013-05-30 Tom Tromey <tromey@redhat.com>
6038
6039 * machoread.c (macho_symfile_read): Assign first cleanup to
6040 'back_to'.
6041
6042 2013-05-30 Tom Tromey <tromey@redhat.com>
6043
6044 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6045
6046 2013-05-30 Tom Tromey <tromey@redhat.com>
6047
6048 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6049
6050 2013-05-30 Tom Tromey <tromey@redhat.com>
6051
6052 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6053 call discard_cleanups.
6054 (inf_ptrace_attach): Likewise.
6055
6056 2013-05-30 Tom Tromey <tromey@redhat.com>
6057
6058 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6059 return paths.
6060 (mips_initialize): Likewise.
6061 (common_open): Call do_cleanups.
6062
6063 2013-05-30 Tom Tromey <tromey@redhat.com>
6064
6065 * utils.c (internal_vproblem): Call do_cleanups.
6066
6067 2013-05-30 Tom Tromey <tromey@redhat.com>
6068
6069 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6070
6071 2013-05-30 Tom Tromey <tromey@redhat.com>
6072
6073 * cli/cli-script.c (setup_user_args): Don't return after error.
6074
6075 2013-05-30 Tom Tromey <tromey@redhat.com>
6076
6077 * somread.c (som_symtab_read): Call do_cleanups.
6078
6079 2013-05-30 Tom Tromey <tromey@redhat.com>
6080
6081 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6082
6083 2013-05-30 Tom Tromey <tromey@redhat.com>
6084
6085 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6086 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6087 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6088 * source.c (show_substitute_path_command): Call do_cleanups.
6089 (unset_substitute_path_command, set_substitute_path_command):
6090 Likewise.
6091 * symfile.c (load_command): Call do_cleanups.
6092
6093 2013-05-30 Tom Tromey <tromey@redhat.com>
6094
6095 * contrib/cleanup_check.py: New file.
6096 * contrib/gcc-with-excheck: Add option parsing.
6097
6098 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6099
6100 * windows-nat.c (windows_delete_thread): Add missing space
6101 in cast expression.
6102
6103 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6104
6105 * inferior.c (top level): Include tilde.h.
6106 (add_inferior_command): Call tilde_expand on the value of 'exec'
6107 argument.
6108
6109 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6110 Yao Qi <yao@codesourcery.com>
6111
6112 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6113 Caller update.
6114 (encode_actions): Likewise.
6115 * remote.c (remote_download_tracepoint): Caller update.
6116 * tracepoint.h (encode_actions): Update declaration.
6117
6118 2013-05-30 Pedro Alves <palves@redhat.com>
6119
6120 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6121 pointer.
6122
6123 2013-05-30 Yao Qi <yao@codesourcery.com>
6124
6125 * remote.c (remote_check_symbols): Remove unused parameter
6126 'objfile'.
6127 Declaration update.
6128 (remote_start_remote, remote_new_objfile): Caller update.
6129
6130 2013-05-30 Yao Qi <yao@codesourcery.com>
6131
6132 * mi/mi-cmds.c (mi_cmds): Define MI command
6133 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6134 DEF_MI_CMD_CLI.
6135
6136 2013-05-29 Pedro Alves <palves@redhat.com>
6137
6138 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6139 (remote_insert_watchpoint, remote_remove_watchpoint)
6140 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6141 (remote_verify_memory, compare_sections_command)
6142 (remote_search_memory): Set the general process/thread on the
6143 remote side.
6144
6145 2013-05-29 Pedro Alves <palves@redhat.com>
6146
6147 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6148 (_initialize_aarch64_tdep): Don't call
6149 initialize_tdesc_aarch64_without_fpu.
6150 * features/Makefile (WHICH): Remove reference to
6151 aarch64-without-fpu.
6152 * features/aarch64-without-fpu.c: Delete file.
6153 * regformats/aarch64-without-fpu.dat: Delete file.
6154
6155 2013-05-28 Yao Qi <yao@codesourcery.com>
6156
6157 * tracepoint.c (stringify_collection_list): Remove parameter
6158 'string'.
6159 (encode_actions): Caller update. Remove local variables.
6160
6161 2013-05-24 Yao Qi <yao@codesourcery.com>
6162
6163 * tracepoint.c (TFILE_PID): Remove.
6164 (tfile_open): Don't add thread and inferior.
6165 (tfile_close): Don't set 'inferior_ptid'. Don't call
6166 exit_inferior_silent.
6167 (tfile_thread_alive): Remove.
6168 (init_tfile_ops): Don't set field 'to_thread_alive' of
6169 tfile_ops.
6170
6171 2013-05-23 Doug Evans <dje@google.com>
6172
6173 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6174
6175 2013-05-23 Pedro Alves <palves@redhat.com>
6176
6177 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6178 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6179 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6180 Only define if HAVE_SOCKETS is defined.
6181 * configure.ac: Check for sys/socket.h.
6182 * config.in, configure: Regenerate.
6183
6184 2013-05-23 Pedro Alves <palves@redhat.com>
6185
6186 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6187 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6188 printing uint32_t variables.
6189
6190 2013-05-23 Pedro Alves <palves@redhat.com>
6191
6192 * NEWS: Mention GDBserver range stepping support.
6193
6194 2013-05-23 Yao Qi <yao@codesourcery.com>
6195 Pedro Alves <palves@redhat.com>
6196
6197 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6198 field.
6199 * infcmd.c (step_once, until_next_command): Enable range stepping.
6200 * infrun.c (displaced_step_prepare): Disable range stepping.
6201 (resume): Disable range stepping if stepping over a breakpoint or
6202 we have software watchpoints. If range stepping is enabled,
6203 assert the thread is in the stepping range.
6204 (clear_proceed_status_thread): Clear may_range_step.
6205 (handle_inferior_event): Disable range stepping as soon as we know
6206 the thread that hit the event. Re-enable it whenever we're going
6207 to step with a step range.
6208 * remote.c (struct vCont_action_support) <r>: New field.
6209 (use_range_stepping): New global.
6210 (remote_vcont_probe): Handle 'r' action.
6211 (append_resumption): Append an 'r' action if the thread may range
6212 step.
6213 (show_range_stepping): New function.
6214 (set_range_stepping): New function.
6215 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6216 'set range-stepping' and 'show range-stepping' commands.
6217 * NEWS: Mention range stepping, the new vCont;r action, and the
6218 new "set/show range-stepping" commands.
6219
6220 2013-05-23 Yao Qi <yao@codesourcery.com>
6221 Pedro Alves <palves@redhat.com>
6222
6223 * remote.c (struct vCont_action_support): New struct.
6224 (struct remote_state) <support_vCont_t>: Remove field.
6225 <vCont_actions_support>: New field.
6226 (remote_vcont_probe, remote_stop_ns): Update.
6227
6228 2013-05-23 Yao Qi <yao@codesourcery.com>
6229 Pedro Alves <palves@redhat.com>
6230
6231 * gdbthread.h (pc_in_thread_step_range): New declaration.
6232 * thread.c (pc_in_thread_step_range): New function.
6233 * infrun.c (handle_inferior_event): Use it.
6234
6235 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6236
6237 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6238 of sprintf.
6239
6240 2013-05-22 Keith Seitz <keiths@redhat.com>
6241
6242 * ada-lang.c (is_known_support_routine): Add explicit free of
6243 'func_name' from find_frame_funname.
6244 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6245 for func_name from find_frame_funname.
6246 * python/py-frame.c (frapy_name): Add explicit free of
6247 'name' from find_frame_funname.
6248 * stack.c (find_frame_funname): Add comment explaining that
6249 funcp must be freed by the caller.
6250 Return copy of symbol names instead of pointers.
6251 (print_frame): Add a cleanup for 'funname' from
6252 find_frame_funname.
6253 * stack.h (find_frame_funname): Remove "const" from
6254 'funname' parameter.
6255
6256 2013-05-22 Tom Tromey <tromey@redhat.com>
6257
6258 PR c++/15401:
6259 * c-valprint.c (c_value_print): Use value_addr for
6260 references. Convert back to reference type with value_ref.
6261
6262 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6263
6264 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6265 unloaded DLL, it will be done by handle_solib_event. See
6266 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6267 details.
6268
6269 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6270
6271 * ui-out.c: Create typedef ui_out_level_p and define vector
6272 operations for that type.
6273 (struct ui_out): Use a vector instead of an array.
6274 (current_level): Return level from a vector.
6275 (push_level): Create a level in a vector.
6276 (pop_level): Delete a level in a vector.
6277 (ui_out_new): Create initial level zero level, and store in a
6278 vector.
6279 (ui_out_destroy): Add vector cleanup.
6280
6281 2013-05-22 Pedro Alves <palves@redhat.com>
6282
6283 * python/python-internal.h (gdb_Py_DECREF): Tag with
6284 "ARI: editCase function".
6285
6286 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6287
6288 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6289
6290 2013-05-21 Pedro Alves <palves@redhat.com>
6291
6292 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6293 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6294 * python/py-utils.c (py_decref): Don't check for NULL before
6295 calling Py_DECREF.
6296
6297 2013-05-21 Pedro Alves <palves@redhat.com>
6298
6299 * python/py-utils.c (py_decref): Remove extra braces.
6300 (gdb_pymodule_addobject): Remove extra braces.
6301 * python-internal.h (gdb_Py_DECREF): New static inline function.
6302 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6303
6304 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6305
6306 * breakpoints.c (detach_breakpoints): Do not
6307 detach breakpoints locations with loc_type bp_loc_other.
6308
6309 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6310
6311 Workaround Python 2.6.
6312 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6313 a block.
6314
6315 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6316
6317 Code cleanup: constification.
6318 * solib.c (solib_ops): Make return type and ops variable type const.
6319 (set_solib_ops): Make the new_ops parameter and ops variable const.
6320 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6321 (solib_add, solib_keep_data_in_core, clear_solib)
6322 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6323 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6324 const.
6325 * solib.h (set_solib_ops): Make the new_ops parameter const.
6326
6327 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6328
6329 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6330 variable.
6331 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6332 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6333 (SYSTEM_GDBINIT_FILES): New variables.
6334 (all): Add stamp-system-gdbinit.
6335 (stamp-system-gdbinit): New rule.
6336 (clean-system-gdbinit, install-system-gdbinit)
6337 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6338 (install-only): Add dependency on install-system-gdbinit.
6339 (uninstall): Add dependency on uninstall-system-gdbinit.
6340 (clean): Add dependency on clean-system-gdbinit.
6341 * system-gdbinit/elinos.py: New file.
6342 * system-gdbinit/wrs-linux.py: New file.
6343
6344 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6345
6346 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6347
6348 2013-05-21 Hui Zhu <hui@codesourcery.com>
6349
6350 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6351 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6352 * mi/mi-cmd-break.c (ctype.h): New include.
6353 (gdb_obstack.h): New include.
6354 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6355 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6356 (mi_cmd_dprintf_insert): New.
6357 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6358 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6359
6360 2013-05-20 Tom Tromey <tromey@redhat.com>
6361
6362 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6363
6364 2013-05-20 Tom Tromey <tromey@redhat.com>
6365
6366 * python/py-value.c (valpy_get_dynamic_type): Simplify
6367 dynamic_type assignment. Use Py_XINCREF.
6368
6369 2013-05-20 Tom Tromey <tromey@redhat.com>
6370
6371 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6372
6373 2013-05-20 Tom Tromey <tromey@redhat.com>
6374
6375 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6376 (gdbpy_selected_frame): Move object-construction code
6377 out of TRY_CATCH.
6378
6379 2013-05-20 Tom Tromey <tromey@redhat.com>
6380
6381 * python/py-arch.c (gdbpy_initialize_arch): Use
6382 gdb_pymodule_addobject.
6383 * python/py-block.c (gdbpy_initialize_blocks): Use
6384 gdb_pymodule_addobject.
6385 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6386 gdb_pymodule_addobject.
6387 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6388 gdb_pymodule_addobject.
6389 * python/py-event.c (gdbpy_initialize_event_generic): Use
6390 gdb_pymodule_addobject.
6391 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6392 gdb_pymodule_addobject.
6393 * python/py-evts.c (add_new_registry): Use
6394 gdb_pymodule_addobject.
6395 (gdbpy_initialize_py_events): Likewise.
6396 * python/py-finishbreakpoint.c
6397 (gdbpy_initialize_finishbreakpoints): Use
6398 gdb_pymodule_addobject.
6399 * python/py-frame.c (gdbpy_initialize_frames): Use
6400 gdb_pymodule_addobject.
6401 * python/py-function.c (gdbpy_initialize_functions): Use
6402 gdb_pymodule_addobject.
6403 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6404 gdb_pymodule_addobject.
6405 * python/py-infthread.c (gdbpy_initialize_thread): Use
6406 gdb_pymodule_addobject.
6407 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6408 gdb_pymodule_addobject.
6409 * python/py-param.c (gdbpy_initialize_parameters): Use
6410 gdb_pymodule_addobject.
6411 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6412 gdb_pymodule_addobject.
6413 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6414 gdb_pymodule_addobject.
6415 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6416 gdb_pymodule_addobject.
6417 * python/py-type.c (gdbpy_initialize_types): Use
6418 gdb_pymodule_addobject.
6419 * python/py-utils.c (gdb_pymodule_addobject): New function.
6420 * python/py-value.c (gdbpy_initialize_values): Use
6421 gdb_pymodule_addobject.
6422 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6423 * python/python.c (_initialize_python): Use
6424 gdb_pymodule_addobject.
6425
6426 2013-05-20 Tom Tromey <tromey@redhat.com>
6427
6428 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6429 * python/py-param.c (get_set_value, get_show_value): Use
6430 explicit decrefs.
6431 * python/python.c (start_type_printers, apply_type_printers):
6432 Use explicit decrefs.
6433
6434 2013-05-20 Tom Tromey <tromey@redhat.com>
6435
6436 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6437 incref the module.
6438
6439 2013-05-20 Tom Tromey <tromey@redhat.com>
6440
6441 * python/python.c (gdbpy_run_events): Decref the result
6442 of PyObject_CallObject.
6443
6444 2013-05-20 Tom Tromey <tromey@redhat.com>
6445
6446 * python/py-symtab.c (set_sal): Use
6447 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6448 (symtab_and_line_to_sal_object): Update.
6449
6450 2013-05-20 Tom Tromey <tromey@redhat.com>
6451
6452 * python/py-param.c (compute_enum_values): Decref 'item'.
6453
6454 2013-05-20 Tom Tromey <tromey@redhat.com>
6455
6456 * mi/mi-main.c: Include python-internal.h.
6457 (mi_cmd_list_features): Check gdb_python_initialized.
6458 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6459 (python_inferior_exit, python_new_objfile, add_thread_object)
6460 (delete_thread_object, py_free_inferior): Check
6461 gdb_python_initialized.
6462 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6463 gdb_python_initialized.
6464 * python/py-type.c (save_objfile_types): Check
6465 gdb_python_initialized.
6466 * python/python-internal.h (gdb_python_initialized): Declare.
6467 * python/python.c (ensure_python_env): Throw exception if
6468 Python not initialized.
6469 (before_prompt_hook, source_python_script_for_objfile)
6470 (start_type_printers, apply_type_printers,
6471 free_type_printers): Check gdb_python_initialized.
6472 * varobj.c (varobj_get_display_hint)
6473 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6474 (install_new_value_visualizer, varobj_set_visualizer)
6475 (value_get_print_value): Check gdb_python_initialized.
6476
6477 2013-05-20 Tom Tromey <tromey@redhat.com>
6478
6479 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6480 Check errors.
6481 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6482 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6483 Check errors.
6484 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6485 Check errors.
6486 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6487 Check errors.
6488 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6489 Check errors.
6490 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6491 init function to return 'int'.
6492 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6493 Return 'int'. Check errors.
6494 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6495 Check errors.
6496 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6497 Return 'int'. Check errors.
6498 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6499 Check errors.
6500 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6501 Check errors.
6502 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6503 Check errors.
6504 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6505 Check errors.
6506 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6507 Check errors.
6508 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6509 Check errors.
6510 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6511 Check errors.
6512 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6513 Check errors.
6514 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6515 Check errors.
6516 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6517 Check errors.
6518 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6519 Check errors.
6520 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6521 Check errors.
6522 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6523 Check errors.
6524 * python/python-internal.h (gdbpy_initialize_auto_load,
6525 gdbpy_initialize_values, gdbpy_initialize_frames,
6526 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6527 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6528 gdbpy_initialize_blocks, gdbpy_initialize_types,
6529 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6530 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6531 gdbpy_initialize_finishbreakpoints,
6532 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6533 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6534 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6535 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6536 gdbpy_initialize_signal_event,
6537 gdbpy_initialize_breakpoint_event,
6538 gdbpy_initialize_continue_event,
6539 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6540 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6541 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6542 * python/python.c (gdb_python_initialized): New global.
6543 (gdbpy_initialize_events): Return 'int'. Check errors.
6544 (_initialize_python): Check errors. Set
6545 gdb_python_initialized.
6546
6547 2013-05-20 Tom Tromey <tromey@redhat.com>
6548
6549 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6550 Decref the reslut of PyObject_CallMethod.
6551
6552 2013-05-20 Tom Tromey <tromey@redhat.com>
6553
6554 * python/py-event.c (gdbpy_initialize_event_generic): Return
6555 early if PyType_Ready fails.
6556
6557 2013-05-20 Tom Tromey <tromey@redhat.com>
6558
6559 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6560 as 'default' in the switch.
6561
6562 2013-05-20 Tom Tromey <tromey@redhat.com>
6563
6564 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6565 get_addr_from_python calls out of TRY_CATCH.
6566 (infpy_write_memory, infpy_search_memory): Likewise.
6567 * python/py-utils.c (get_addr_from_python): Return negative
6568 value on error. Use TRY_CATCH.
6569 * python/python-internal.h (get_addr_from_python): Use
6570 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6571
6572 2013-05-20 Tom Tromey <tromey@redhat.com>
6573
6574 * python/py-event.c (evpy_emit_event): Decref the
6575 result of PyObject_CallFunctionObjArgs.
6576
6577 2013-05-20 Tom Tromey <tromey@redhat.com>
6578
6579 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6580 Correctly decref.
6581
6582 2013-05-20 Tom Tromey <tromey@redhat.com>
6583
6584 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6585
6586 2013-05-20 Tom Tromey <tromey@redhat.com>
6587
6588 * python/py-event.h (gdbpy_initialize_event_generic): Use
6589 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6590 * python/py-evts.c (add_new_registry): Use
6591 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6592 * python/python-internal.h
6593 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6594
6595 2013-05-20 Tom Tromey <tromey@redhat.com>
6596
6597 * python/py-arch.c (archpy_disassemble): Update.
6598 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6599 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6600 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6601 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6602 macro.
6603 (GDB_PY_HANDLE_EXCEPTION): Update.
6604 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6605
6606 2013-05-20 Tom Tromey <tromey@redhat.com>
6607
6608 * python/python-internal.h (events_object_type): Remove.
6609
6610 2013-05-20 Tom Tromey <tromey@redhat.com>
6611
6612 * python/py-event.h (evpy_emit_event): Use
6613 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6614 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6615 New macro.
6616
6617 2013-05-20 Tom Tromey <tromey@redhat.com>
6618
6619 * py-evtregistry.c (create_event_object): Decref
6620 eventregistry_object if PyList_New fails.
6621
6622 2013-05-20 Tom Tromey <tromey@redhat.com>
6623
6624 * py-cmd.c (gdbpy_string_to_argv): Check result of
6625 PyList_New.
6626
6627 2013-05-20 Tom Tromey <tromey@redhat.com>
6628
6629 * python/python.c (before_prompt_hook): Add cleanup to
6630 decref 'hook'.
6631
6632 2013-05-20 Tom Tromey <tromey@redhat.com>
6633
6634 * python/py-function.c (fnpy_init): Decref result of
6635 PyObject_GetAttrString.
6636
6637 2013-05-20 Tom Tromey <tromey@redhat.com>
6638
6639 * python/py-threadevent.c (get_event_thread): Use
6640 CPYCHECKER_RETURNS_BORROWED_REF.
6641 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6642 New define.
6643 (pspace_to_pspace_object, objfile_to_objfile_object)
6644 (find_thread_object): Use it.
6645
6646 2013-05-20 Tom Tromey <tromey@redhat.com>
6647
6648 * python/py-arch.c (arch_object_type): Use
6649 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6650 * python/py-block.c (block_syms_iterator_object_type):
6651 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6652 * python/py-bpevent.c (breakpoint_event_object_type):
6653 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6654 * python/py-cmd.c (cmdpy_object_type): Use
6655 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6656 * python/py-continueevent.c (continue_event_object_type):
6657 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6658 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6659 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6660 * python/py-events.h (thread_event_object_type):
6661 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6662 * python/py-evtregistry.c (eventregistry_object_type): Use
6663 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6664 * python/py-exitedevent.c (exited_event_object_type):
6665 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6666 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6667 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6668 * python/py-function.c (fnpy_object_type): Use
6669 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6670 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6671 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6672 * python/py-infthread.c (thread_object_type): Use
6673 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6674 * python/py-lazy-string.c (lazy_string_object_type):
6675 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6676 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6677 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6678 * python/py-objfile.c (objfile_object_type): Use
6679 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6680 * python/py-param.c (parmpy_object_type):
6681 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6682 * python/py-progspace.c (pspace_object_type):
6683 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6684 * python/py-signalevent.c (signal_event_object_type):
6685 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6686 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6687 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6688 * python/py-type.c (type_object_type, field_object_type)
6689 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6690 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6691 define.
6692 (value_object_type, block_object_type, symbol_object_type)
6693 (event_object_type, stop_event_object_type, breakpoint_object_type)
6694 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6695
6696 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6697
6698 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6699 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6700
6701 2013-05-20 Doug Evans <dje@google.com>
6702
6703 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6704 For Fission.
6705 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6706 reading_dwo_directly.
6707 (struct signatured_type): New member dwo_unit.
6708 (struct die_reader_specs): New member comp_dir.
6709 (create_signatured_type_table_from_index): Use malloc for
6710 all_type_units instead of objfile's obstack.
6711 (create_all_type_units): Ditto.
6712 (fill_in_sig_entry_from_dwo_entry): New function.
6713 (add_type_unit): New function.
6714 (lookup_dwo_signatured_type): New function.
6715 (lookup_dwp_signatured_type): New function.
6716 (lookup_signatured_type): New arg cu. All callers updated.
6717 (init_cu_die_reader): Initialize comp_dir.
6718 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6719 Change assert of matching type signatures to call error on mismatch.
6720 (lookup_dwo_unit): Add assert.
6721 (init_tu_and_read_dwo_dies): New function.
6722 (init_cutu_and_read_dies): Call it.
6723 (build_type_unit_groups): Handle case of no type unit groups created.
6724 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6725 (lookup_dwo_cutu): Tweak complaint.
6726 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6727 (dwarf2_per_objfile_free): Free all_type_units.
6728
6729 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6730
6731 * windows-nat.c (handle_unload_dll): Add missing empty line.
6732
6733 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6734
6735 * dwarf2read.c (prototyped_function_p): New function.
6736 (read_subroutine_type): Use it.
6737
6738 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6739
6740 * rs6000-aix-tdep.c: De-indent some example code provided
6741 as a comment.
6742
6743 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6744
6745 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6746 region is ok for a hardware watchpoint using the new ptrace interface
6747 on Power servers.
6748
6749 2013-05-17 Doug Evans <dje@google.com>
6750
6751 * NEWS: Mention new maintenance commands check-symtabs, and
6752 expand-symtabs, and renamed check-psymtabs.
6753 * psymtab.c (maintenance_check_psymtabs): Renamed from
6754 maintenance_check_symtabs. Only process already-expanded symbol
6755 tables.
6756 (_initialize_psymtab): Update.
6757 * symmisc.c (maintenance_check_symtabs): New function.
6758 (maintenance_expand_name_matcher): New function
6759 (maintenance_expand_file_matcher): New function
6760 (maintenance_expand_symtabs): New function.
6761 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6762 commands.
6763
6764 2013-05-17 Tom Tromey <tromey@redhat.com>
6765
6766 * python/py-inferior.c (infpy_read_memory): Don't call
6767 PyErr_SetString if PyObject_New fails.
6768 * python/py-frame.c (frame_info_to_frame_object): Don't call
6769 PyErr_SetString if PyObject_New fails.
6770
6771 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6772
6773 * acinclude.m4: Add check for dlopen in libdl.
6774 * configure.ac: Ditto.
6775 * configure: Regenerate.
6776
6777 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6778
6779 * frame.c (frame_stash): Convert to htab.
6780 (frame_addr_hash): New function.
6781 (frame_addr_hash_eq): New function.
6782 (frame_stash_create): Convert function to create
6783 a hash table.
6784 (frame_stash_add): Convert function to add an entry to a hash
6785 table.
6786 (frame_stash_find): Convert function to search the hash table.
6787 (frame_stash_invalidate): Convert function to empty the hash
6788 table.
6789 (get_frame_id): Only add to stash if a frame_id is created.
6790 (_initialize_frame): Call frame_stash_create.
6791
6792 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6793
6794 * configure.ac: Ensure MIG is available when building for GNU Hurd
6795 hosts.
6796 * configure: Regenerate.
6797
6798 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6799
6800 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6801
6802 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6803
6804 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6805 all cleanups are done before returning from this function.
6806
6807 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6808
6809 * utils.h: #include "exceptions.h".
6810 (enum errors): Remove partial declaration.
6811
6812 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6813
6814 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6815 * gdbarch.h, gdbarch.c: Regenerate.
6816 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6817 handling.
6818
6819 * rs6000-aix-tdep.h: New file.
6820 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6821 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6822 "xml-utils.h".
6823 (struct field_info, struct ld_info_desc): New types.
6824 (ld_info32_desc, ld_info64_desc): New static constants.
6825 (struct ld_info): New type.
6826 (rs6000_aix_extract_ld_info): New function.
6827 (rs6000_aix_shared_library_to_xml): Likewise.
6828 (rs6000_aix_ld_info_to_xml): Likewise.
6829 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6830 (rs6000_aix_init_osabi): Add call to
6831 set_gdbarch_core_xfer_shared_libraries_aix.
6832 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6833 Remove "xml-utils.h" include.
6834 (LdInfo): Delete typedef.
6835 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6836 Delete macros.
6837 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6838 Adjust code accordingly.
6839 (rs6000_core_ldinfo): Delete, folded into
6840 rs6000_aix_core_xfer_shared_libraries_aix.
6841 (rs6000_xfer_shared_library): Delete.
6842 (rs6000_xfer_shared_libraries): Reimplement.
6843
6844 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6845
6846 * record.c (record_goto_cmdlist): New.
6847 (cmd_record_goto): Split into this ...
6848 (cmd_record_goto_begin): ... this
6849 (cmd_record_goto_end): ... and this.
6850 (_initialize_record): Change "record goto" to prefix command.
6851 Add commands for "record goto begin" and "record goto end".
6852 Add an alias for "record goto start" to "record goto begin".
6853
6854 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6855
6856 * linespec.c (convert_linespec_to_sals): New comment for
6857 SOURCE_FILENAME assignment.
6858
6859 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6860
6861 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6862 internal_warning.
6863
6864 2013-05-14 Tom Tromey <tromey@redhat.com>
6865
6866 * eval.c (parse_and_eval_long): Make 'exp' const.
6867 * value.h (parse_and_eval_long): Update.
6868
6869 2013-05-14 Tom Tromey <tromey@redhat.com>
6870
6871 * ui-file.c (gdb_fopen): Make arguments const.
6872 * ui-file.h (gdb_fopen): Make arguments const.
6873
6874 2013-05-14 Tom Tromey <tromey@redhat.com>
6875
6876 * remote.c (remote_set_trace_notes): Make arguments const.
6877 * target.c (update_current_target): Update cast.
6878 * target.h (to_set_trace_notes): Make arguments const.
6879
6880 2013-05-14 Tom Tromey <tromey@redhat.com>
6881
6882 * go32-nat.c (go32_terminal_info): Make 'args' const.
6883 * inferior.h (child_terminal_info): Update.
6884 * inflow.c (child_terminal_info): Make 'args' const.
6885 * target.c (default_terminal_info): Make 'args' const.
6886 (debug_to_terminal_save_ours): Likewise.
6887 * target.h (struct target_ops) <to_terminal_info>: Make argument
6888 const.
6889
6890 2013-05-13 Tom Tromey <tromey@redhat.com>
6891
6892 * gcore.c (create_gcore_bfd): Make 'filename' const.
6893 * gcore.h (create_gcore_bfd): Make 'filename' const.
6894 * record-full.c (record_full_save): Make 'recfilename' const.
6895 * target.c (target_save_record): Make 'filename' const.
6896 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6897 const.
6898 (target_save_record): Likewise.
6899
6900 2013-05-13 Tom Tromey <tromey@redhat.com>
6901
6902 PR gdb/15338:
6903 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6904 ranges section has been read.
6905
6906 2013-05-13 Tom Tromey <tromey@redhat.com>
6907
6908 PR exp/15364:
6909 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6910 STRUCTOP_PTR>: Return a not_lval value for
6911 EVAL_AVOID_SIDE_EFFECTS.
6912 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6913 for EVAL_AVOID_SIDE_EFFECTS.
6914
6915 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6916
6917 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6918 floating point registers to register type before storing
6919 value.
6920 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6921 Likewise.
6922
6923 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6924 Tom Tromey <tromey@redhat.com>
6925
6926 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6927 New functions.
6928 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6929 Declare.
6930 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6931 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6932 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6933 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6934
6935 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6936 Tom Tromey <tromey@redhat.com>
6937
6938 PR build/15414:
6939 * configure: Rebuild.
6940 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6941 with -Wno-format.
6942
6943 2013-05-10 Pedro Alves <palves@redhat.com>
6944
6945 * remote.c (_initialize_remote): Fix spelling of
6946 qXfer:traceframe-info:read packet in packet config command.
6947
6948 2013-05-10 David Taylor <dtaylor@emc.com>
6949
6950 PR remote/15455
6951
6952 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6953 "QTro" at start of packet.
6954
6955 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6956
6957 * solib-aix.c (solib_aix_relocate_section_addresses):
6958 For the .bss section action, apply the same offset as
6959 the .data section.
6960
6961 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6962
6963 * solib-aix.c (solib_aix_relocate_section_addresses):
6964 Remove FIXME comment.
6965
6966 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6967
6968 PR tdep/15420:
6969 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6970 New functions, directly copied from sparc-sol-thread.c.
6971 * sparc-sol-thread.c: Delete.
6972 * configure.ac: Remove code handling sparc-solaris-thread.c.
6973 * configure: Regenerate.
6974
6975 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6976
6977 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6978 filter logic.
6979 (backtrace_command): Add "no-filters" option parsing.
6980 (_initialize_stack): Alter help to reflect "no-filters" option.
6981 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6982 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6983 (py-frame.o): Add target
6984 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6985 filter files.
6986 * python/python.h: Add new frame filter constants, and flag enum.
6987 (apply_frame_filter): Add definition.
6988 * python/python.c (apply_frame_filter): New non-Python
6989 enabled function.
6990 * python/py-utils.c (py_xdecref): New function.
6991 (make_cleanup_py_xdecref): Ditto.
6992 * python/py-objfile.c: Declare frame_filters dictionary.
6993 (objfpy_dealloc): Add frame_filters dealloc.
6994 (objfpy_new): Initialize frame_filters attribute.
6995 (objfile_to_objfile_object): Ditto.
6996 (objfpy_get_frame_filters): New function.
6997 (objfpy_set_frame_filters): New function.
6998 * python/py-progspace.c: Declare frame_filters dictionary.
6999 (pspy_dealloc): Add frame_filters dealloc.
7000 (pspy_new): Initialize frame_filters attribute.
7001 (pspacee_to_pspace_object): Ditto.
7002 (pspy_get_frame_filters): New function.
7003 (pspy_set_frame_filters): New function.
7004 * python/py-framefilter.c: New file.
7005 * python/lib/gdb/command/frame_filters.py: New file.
7006 * python/lib/gdb/frames.py: New file.
7007 * python/lib/gdb/__init__.py: Initialize global frame_filters
7008 dictionary
7009 * python/lib/gdb/FrameDecorator.py: New file.
7010 * python/lib/gdb/FrameIterator.py: New file.
7011 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7012 * mi/mi-cmds.h: Declare.
7013 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7014 --no-frame-filter logic, and Python frame filter logic.
7015 (stack_enable_frame_filters): New function.
7016 (parse_no_frame_option): Ditto.
7017 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7018 filter logic.
7019 (mi_cmd_stack_list_locals): Ditto.
7020 (mi_cmd_stack_list_args): Ditto.
7021 (mi_cmd_stack_list_variables): Ditto.
7022 * NEWS: Add frame filter note.
7023
7024 2013-05-09 Doug Evans <dje@google.com>
7025
7026 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7027 All callers updated.
7028 (syms_from_objfile): Ditto. Make static.
7029 (symbol_file_add_with_addrs): Renamed from
7030 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7031 num_offsets. All callers updated.
7032 * symfile.h (syms_from_objfile): Delete.
7033
7034 * symfile.c (decrement_reading_symtab): Add assert.
7035 (increment_reading_symtab): Ditto.
7036
7037 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7038
7039 * source.c (forward_search_command): Replace call to getc
7040 by call to fgetc.
7041 (reverse_search_command): Likewise.
7042
7043 2013-05-08 Doug Evans <dje@google.com>
7044
7045 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7046 matching test.
7047
7048 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7049
7050 * sol-thread.c (info_cb): Factorize the code a little.
7051
7052 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7053
7054 * sol-thread.c (info_cb): Rework the output of the "maintenance
7055 info sol-threads" command a bit.
7056
7057 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7058
7059 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7060 Replace ti.ti_startfunc by ti.ti_pc.
7061
7062 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7063
7064 * solib-aix.c (solib_aix_free_library_list): New function
7065 for the case where HAVE_LIBEXPAT is not defined.
7066
7067 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7068
7069 PR breakpoints/15413:
7070 * breakpoint.c (condition_completer): Simplify the code to
7071 disconsider multiple locations of breakpoints when completing the
7072 "condition" command.
7073
7074 2013-05-07 Pierre Muller <muller@sourceware.org>
7075
7076 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7077 instead of <sys/wait.h>.
7078
7079 2013-05-07 Pierre Muller <muller@sourceware.org>
7080
7081 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7082 trailing new line from warning message.
7083
7084 2013-05-07 Pierre Muller <muller@sourceware.org>
7085
7086 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7087 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7088
7089 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7090
7091 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7092 error message (ARI fix).
7093
7094 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7095
7096 * features/library-list-aix.dtd: Replace library-list by
7097 library-list-aix.
7098 * rs6000-nat.c: Replace library-list by library-list-aix
7099 throughout.
7100 * solib-aix.c: Likewise.
7101
7102 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7103
7104 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7105 Renames TARGET_OBJECT_AIX_LIBRARIES.
7106 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7107 TARGET_OBJECT_LIBRARIES_AIX throughout.
7108 * solib-aix.c: Likwise.
7109
7110 2013-05-07 Yao Qi <yao@codesourcery.com>
7111
7112 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7113 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7114
7115 2013-05-07 Yao Qi <yao@codesourcery.com>
7116
7117 * solib-dsbt.c (enable_break): Declare.
7118 (dsbt_current_sos): Remove call to enable_break2.
7119 (enable_break2): Rename to enable_break. Set solib breakpoint
7120 on '_dl_debug_state'.
7121 (enable_break): Remove.
7122
7123 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7124
7125 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7126 debug state prior to replicating existing hardware watchpoints or
7127 breakpoints.
7128
7129 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7130
7131 * gcore.c (gcore_create_callback): Ignore sections with
7132 separate_debug_objfile_backlink != NULL.
7133
7134 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7135 Andrew Jenner <andrew@codesourcery.com>
7136 Chung-Lin Tang <cltang@codesourcery.com>
7137 Julian Brown <julian@codesourcery.com>
7138
7139 Based on the nios2-elf port from Altera Corporation.
7140
7141 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7142 nios2-linux-tdep.o.
7143 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7144 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7145 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7146 * nios2-tdep.h: New.
7147 * nios2-tdep.c: New.
7148 * nios2-linux-tdep.c: New.
7149 * features/Makefile (WHICH): Add nios2-linux.
7150 (nios2-linux-expedite): Set.
7151 * features/nios2-cpu.xml: New.
7152 * features/nios2.xml: New.
7153 * features/nios2-linux.xml: New.
7154 * features/nios2.c: New (autogenerated).
7155 * features/nios2-linux.c: New (autogenerated).
7156 * regformats/nios2-linux.dat: New (autogenerated).
7157 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7158 and commands.
7159
7160 2013-05-06 Doug Evans <dje@google.com>
7161
7162 * symfile.c: Whitespace cleanup.
7163
7164 * solist.h (struct target_so_ops): New member clear_so.
7165 * solib-svr4.c (svr4_clear_so): New function.
7166 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7167 * solib.c (clear_so): Renamed from free_so_symbols.
7168 All callers updated. Call target clear_so if it exists.
7169
7170 2013-05-06 Tom Tromey <tromey@redhat.com>
7171
7172 * ada-lang.c (ada_value_primitive_packed_val): Don't
7173 call value_incref.
7174 * value.c (set_value_parent): Incref the new parent and decref
7175 the old parent.
7176 (value_copy, value_primitive_field): Use set_value_parent.
7177
7178 2013-05-06 Tom Tromey <tromey@redhat.com>
7179
7180 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7181 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7182 if needed.
7183 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7184 * dwarf2read.c (write_constant_as_bytes)
7185 (dwarf2_fetch_constant_bytes): New functions.
7186
7187 2013-05-06 Tom Tromey <tromey@redhat.com>
7188
7189 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7190 parameters.
7191 (dwarf2_const_value_attr): Update.
7192
7193 2013-05-06 Tom Tromey <tromey@redhat.com>
7194
7195 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7196 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7197 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7198 Remove declaration.
7199
7200 2013-05-06 Tom Tromey <tromey@redhat.com>
7201
7202 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7203 objfile's obstack.
7204
7205 2013-05-06 Doug Evans <dje@google.com>
7206
7207 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7208 * stabsread.h (process_one_symbol): Update declaration.
7209 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7210 * elfread.c (elf_symfile_relocate_probe): Ditto.
7211 * psymtab.c (relocate_psymtabs): Ditto.
7212 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7213 (objfile_relocate): Ditto.
7214 * objfiles.h (objfile_relocate): Update declaration.
7215 * symfile.c (relative_addr_info_to_section_offsets): Constify
7216 addrs parameter.
7217 (default_symfile_offsets): Ditto.
7218 (syms_from_objfile_1): Constify offsets parameter.
7219 (syms_from_objfile): Ditto.
7220 (symbol_file_add_with_addrs_or_offsets): Ditto.
7221 (symfile_map_offsets_to_segments): Constify data parameter.
7222 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7223 delta parameters of member relocate.
7224 (struct sym_probe_fns): Constify new_offsets,
7225 delta parameters of member sym_relocate_probe.
7226 (struct sym_fns): Constify section_addr_info parameter of member
7227 sym_offsets.
7228 (relative_addr_info_to_section_offsets): Update declaration.
7229 (default_symfile_offsets): Ditto.
7230 (syms_from_objfile): Ditto.
7231 (symfile_map_offsets_to_segments): Ditto.
7232
7233 * symfile.c (syms_from_objfile_1): Use correct section count when
7234 objfile->sf == NULL.
7235
7236 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7237
7238 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7239
7240 2013-05-06 Doug Evans <dje@google.com>
7241
7242 * psympriv.h (struct partial_symtab): Augment comment for member
7243 section_offsets.
7244
7245 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7246
7247 Reimplement shared library support on ppc-aix...
7248 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7249 * features/library-list-aix.dtd: New file.
7250 * solib-aix.h, solib-aix.c: New file.
7251 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7252 (rs6000_find_toc_address_hook): Delete.
7253 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7254 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7255 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7256 "xml-utils.h".
7257 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7258 (vmap_symtab, fixup_breakpoints): Delete.
7259 (rs6000_xfer_shared_libraries): New function.
7260 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7261 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7262 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7263 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7264 (rs6000_xfer_shared_library): New function.
7265 (find_toc_address): Delete.
7266 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7267 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7268 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7269 before creating minimal symbol. Adjust function description
7270 accordingly.
7271 (scan_xcoff_symtab): Replace call to
7272 prim_record_minimal_symbol_and_info by call to
7273 record_minimal_symbol.
7274 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7275 around default_symfile_offsets.
7276 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7277 powerpc-aix targets.
7278 * config/rs6000/nm-rs6000.h: Delete.
7279 * config/powerpc/aix.mh (NAT_FILE): Delete.
7280 (NATDEPFILES): Remove xcoffsolib.o.
7281 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7282 (ALL_TARGET_OBS): Add solib-aix.o.
7283 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7284 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7285 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7286 * xcoffsolib.h, xcoffsolib.c: Delete.
7287
7288 * solib.c (reload_shared_libraries): Remove reference to
7289 SOLIB_CREATE_INFERIOR_HOOK.
7290 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7291 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7292 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7293 comment.
7294 * corelow.c (deprecated_core_resize_section_table): Delete.
7295 * exec.c: Remove include of xcoffsolib.h".
7296 (map_vmap, vmap): Delete.
7297 (exec_close_1): Remove references to vmap.
7298 (exec_file_attach): Remove vmap handling code, and reference
7299 to DEPRECATED_IBM6000_TARGET.
7300 (bfdsec_to_vmap): Delete.
7301 (exec_files_info): Remove block of code handling VMAP.
7302 * infcmd.c (post_create_inferior): Remove reference to
7303 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7304 * infrun.c (follow_exec): Remove reference to
7305 SOLIB_CREATE_INFERIOR_HOOK.
7306 * stack.c (print_frame): Remove reference to PC_SOLIB.
7307 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7308 (dsbt_relocate_main_executable): Likewise.
7309 * solib-frv.c (frv_current_sos): Likewise.
7310
7311 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7312
7313 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7314 to target_write_memory and target_read_memory.
7315
7316 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7317
7318 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7319 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7320
7321 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7322
7323 * darwin-nat.c: Replace all "%x" instances in format strings
7324 into "0x%x" throughout.
7325
7326 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7327
7328 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7329 gdb_assert by call to MACH_CHECK_ERROR.
7330 (darwin_attach_pid): Raise an error rather than a failed
7331 assertion when various system calls failed. Report a warning
7332 instead of raising a failed assertion when PREV_NOT is not NULL
7333 after call to mach_port_request_notification.
7334 (darwin_ptrace_me): Raise an error rather than a failed
7335 assertion when read returns nonzero.
7336
7337 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7338
7339 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7340
7341 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7342
7343 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7344
7345 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7346
7347 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7348 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7349 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7350 a stale cleanup. Fix double free of NAME.
7351
7352 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7353
7354 * windows-nat.c (windows_delete_thread): Accept an additional
7355 argument, the thread's exit code, and announce thread death when
7356 print_thread_events is non-zero and we are deleting a thread that
7357 is not the main thread.
7358 (get_windows_debug_event): Pass thread exit code to
7359 windows_delete_thread.
7360
7361 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7362
7363 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7364 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7365 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7366 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7367 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7368 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7369 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7370 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7371 (gdbarch_tdep): New struct.
7372 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7373 E_NUM_REGS.
7374 (v850e3v5_register_name): New function.
7375 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7376 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7377 code handling the struct return conventions for the RH850 ABI.
7378 Update all callers.
7379 (v850_eight_byte_align_p): New function.
7380 (v850_push_call_dummy): Push structs by value, not by reference
7381 for the RH850 ABI. Add support for eight byte alignment.
7382 (v850_dbtrap_breakpoint_from_pc): New function.
7383 (v850_gdbarch_init): Add ABI detection code. Register
7384 v850e3v5_register_name for the v850e3v5 architecture. Set the
7385 number of registers for v850e3v5. Register
7386 v850_dbtrap_breakpoint_from_pc as appropriate.
7387 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7388
7389 2013-05-03 Doug Evans <dje@google.com>
7390
7391 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7392 of bfd_count_sections.
7393 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7394 * symfile.c (default_symfile_offsets): Ditto.
7395 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7396 one entry, not bfd_count_sections entries.
7397
7398 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7399
7400 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7401 `save' and `restore' register groups. Don't include SPL
7402 or SPH in these groups.
7403 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7404 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7405 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7406 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7407 dwarf2_append_unwinders().
7408
7409 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7410
7411 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7412 ignore SIGINT and SIGTRAP in case these internal signals are
7413 caught explicitely.
7414
7415 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7416
7417 * darwin-nat.c (darwin_read_write_inferior): Change types
7418 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7419 of copy_count to "mach_msg_type_number_t".
7420 (darwin_read_dyld_info): Change type of parameter
7421 rdaddr to "gdb_byte *".
7422
7423 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7424
7425 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7426 of &info->load_map from "char *" to "gdb_byte *".
7427
7428 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7429
7430 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7431 from "char *" to "gdb_byte *".
7432 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7433
7434 2013-04-30 Doug Evans <dje@google.com>
7435
7436 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7437 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7438 DWO stub. If DWO isn't found, just use stub.
7439 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7440
7441 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7442 calling init_cutu_and_read_dies.
7443
7444 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7445
7446 * target-descriptions.c (maint_print_c_tdesc_cmd):
7447 Add case to parse structures as register types and
7448 bitfields.
7449
7450 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7451
7452 * MAINTAINERS (Write After Approval): Add myself to the list.
7453
7454 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7455
7456 * sol-thread.c (rw_common): Change type of parameter "buf"
7457 to "gdb_byte *".
7458 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7459 rw_common to "gdb_byte *" instead of "char *".
7460
7461 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7462
7463 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7464 of local variable msym to const struct bound_minimal_symbol.
7465 Adjust use accordingly.
7466 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7467
7468 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7469
7470 * i386gnu-nat.c (CREG_OFFSET): New macro.
7471 (creg_offset): New array.
7472 (CREG_ADDR): Use creg_offset instead of reg_offset.
7473
7474 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7475
7476 * mep-tdep.c (mep_write_pc): Delete.
7477 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7478 Add call to set_gdbarch_pc_regnum.
7479
7480 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7481
7482 * common/filestuff.c: Replace #include <dirent.h> by
7483 #include "gdb_dirent.h".
7484
7485 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7486
7487 * common/filestuff.c: Replace #include <sys/stat.h> by
7488 #include "gdb_stat.h".
7489
7490 2013-04-29 Pierre Muller <muller@sourceware.org>
7491
7492 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7493 editCase function rule.
7494 (get_DW_AT_signature_type): Likewise.
7495
7496 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7497
7498 * m32r-tdep.c (m32r_write_pc): Delete.
7499 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7500 Add call to set_gdbarch_pc_regnum.
7501
7502 2013-04-29 Pierre Muller <muller@sourceware.org>
7503
7504 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7505
7506 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7507
7508 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7509
7510 2013-04-28 Yao Qi <yao@codesourcery.com>
7511
7512 * solib-dsbt.c (fetch_loadmap): Re-indent.
7513 (displacement_from_map, enable_break2): Likewise.
7514 (dsbt_relocate_section_addresses): Likewise.
7515
7516 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7517
7518 GDB 7.6 released.
7519
7520 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7521
7522 PR corefiles/14983:
7523 * dwarf2read.c (process_full_comp_unit): Always create a static
7524 block.
7525
7526 2013-04-25 Hui Zhu <hui@codesourcery.com>
7527
7528 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7529 to loc->cmd_bytecode.
7530
7531 2013-04-24 Doug Evans <dje@google.com>
7532
7533 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7534
7535 2013-04-22 Keith Seitz <keiths@redhat.com>
7536
7537 * tracepoint.c (trace_save): Call the writer's start method.
7538
7539 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7540
7541 PR gdb/10462
7542 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7543 before argument.
7544
7545 2013-04-23 Tom Tromey <tromey@redhat.com>
7546
7547 * common/filestuff.c: Check USE_WIN32API before including
7548 sys/socket.h.
7549 (HAVE_F_GETFD): New define.
7550 (mark_cloexec): Check HAVE_F_GETFD.
7551 (gdb_open_cloexec): Change 'mode' to unsigned long.
7552 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7553 (gdb_pipe_cloexec): Check HAVE_PIPE.
7554 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7555 long.
7556
7557 2013-04-23 Hui Zhu <hui@codesourcery.com>
7558
7559 PR gdb/15293
7560 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7561
7562 2013-04-23 Hui Zhu <hui@codesourcery.com>
7563
7564 PR gdb/15165
7565 * breakpoint.c (dprintf_print_recreate): New.
7566 (save_breakpoints): Let it not save dprintf commands.
7567 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7568
7569 2013-04-22 Tom Tromey <tromey@redhat.com>
7570
7571 PR gdb/7912:
7572 * Makefile.in (SFILES): Add filestuff.c
7573 (COMMON_OBS): Add filestuff.o.
7574 (filestuff.o): New target.
7575 * auto-load.c (auto_load_objfile_script_1): Use
7576 gdb_fopen_cloexec.
7577 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7578 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7579 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7580 * common/agent.c (gdb_connect_sync_socket): Use
7581 gdb_socket_cloexec.
7582 * common/filestuff.c: New file.
7583 * common/filestuff.h: New file.
7584 * common/linux-osdata.c (linux_common_core_of_thread)
7585 (command_from_pid, commandline_from_pid, print_source_lines)
7586 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7587 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7588 gdb_fopen_cloexec.
7589 * common/linux-procfs.c (linux_proc_get_int)
7590 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7591 * config.in, configure: Rebuild.
7592 * configure.ac: Don't check for sys/socket.h. Check for
7593 fdwalk, pipe2.
7594 * corelow.c (core_open): Use gdb_open_cloexec.
7595 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7596 * fork-child.c (fork_inferior): Call close_most_fds.
7597 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7598 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7599 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7600 Use gdb_fopen_cloexec.
7601 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7602 gdb_open_cloexec.
7603 (linux_async_pipe): Use gdb_pipe_cloexec.
7604 * remote-fileio.c (remote_fileio_func_open): Use
7605 gdb_open_cloexec.
7606 * remote.c (remote_file_put, remote_file_get): Use
7607 gdb_fopen_cloexec.
7608 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7609 close_most_fds.
7610 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7611 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7612 * solib.c (solib_find): Use gdb_open_cloexec.
7613 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7614 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7615 (tfile_open): Use gdb_open_cloexec.
7616 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7617 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7618 * xml-support.c (xml_fetch_content_from_file): Use
7619 gdb_fopen_cloexec.
7620 * main.c (captured_main): Call notice_open_fds.
7621
7622 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7623
7624 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7625 'char *' to 'gdb_byte *'.
7626 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7627 'gdb_byte'.
7628
7629 2013-04-22 Yao Qi <yao@codesourcery.com>
7630
7631 * infrun.c: Fix typo in comment.
7632
7633 2013-04-22 Andrew Haley <aph@redhat.com>
7634
7635 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7636 instead of "long".
7637
7638 2013-04-20 Yao Qi <yao@codesourcery.com>
7639
7640 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7641 'char *' to 'gdb_byte *'. Cast the return value of
7642 'bt_ctf_get_char_array' to 'gdb_byte *'.
7643
7644 2013-04-19 Pedro Alves <palves@redhat.com>
7645
7646 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7647 -Wpointer-sign.
7648 * configure: Regenerate.
7649
7650 2013-04-19 Pedro Alves <palves@redhat.com>
7651
7652 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7653 'void *'.
7654
7655 2013-04-19 Pedro Alves <palves@redhat.com>
7656
7657 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7658 Change type of 'myaddr' parameter to gdb_byte pointer.
7659 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7660 to 'long long' pointer instead of to 'unsigned long long'.
7661 (monitor_write_memory_block, monitor_read_memory_single)
7662 (monitor_read_memory): Change type of 'myaddr' parameter to
7663 gdb_byte pointer.
7664
7665 2013-04-19 Pedro Alves <palves@redhat.com>
7666
7667 * record.c (validate_history_size): Make parameter 'setting'
7668 unsigned.
7669
7670 2013-04-19 Pedro Alves <palves@redhat.com>
7671
7672 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7673 to 'gdb_byte *'.
7674
7675 2013-04-19 Pedro Alves <palves@redhat.com>
7676
7677 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7678 local to int.
7679
7680 2013-04-19 Pedro Alves <palves@redhat.com>
7681
7682 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7683 * ada-tasks.c (read_fat_string_value): Likewise.
7684
7685 2013-04-19 Pedro Alves <palves@redhat.com>
7686
7687 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7688 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7689 'offset', and adjust.
7690
7691 2013-04-19 Pedro Alves <palves@redhat.com>
7692
7693 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7694 (read_index_from_section): Add cast to 'char *'.
7695
7696 2013-04-19 Pedro Alves <palves@redhat.com>
7697
7698 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7699
7700 2013-04-19 Pedro Alves <palves@redhat.com>
7701
7702 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7703
7704 2013-04-19 Pedro Alves <palves@redhat.com>
7705
7706 * record-full.c (record_full_get_bookmark): Change local 'ret'
7707 type to char * and add cast to gdb_byte *.
7708 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7709 string.
7710 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7711
7712 2013-04-19 Pedro Alves <palves@redhat.com>
7713
7714 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7715 * python/py-prettyprint.c (print_string_repr): Change type of
7716 'output' local to char *. Add cast to gdb_byte * in
7717 LA_PRINT_STRING call.
7718 (print_children): Change type of 'output' local to char *.
7719 * python/py-value.c (valpy_string): Add cast to const char * in
7720 PyUnicode_Decode call.
7721
7722 2013-04-19 Pedro Alves <palves@redhat.com>
7723
7724 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7725 and change its type to 'const char *'. Adjust.
7726 (mips_send_packet): Add cast to 'char *', and remove cast to
7727 'unsigned char *'.
7728 (mips_receive_packet): Remove cast to 'unsigned char *'.
7729 (mips_load_srec): Use bfd_byte.
7730 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7731 (pmon_checkset): Make 'value' parameter unsigned.
7732
7733 2013-04-19 Pedro Alves <palves@redhat.com>
7734
7735 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7736
7737 2013-04-19 Pedro Alves <palves@redhat.com>
7738
7739 * remote.c (remote_write_bytes_aux, compare_sections_command)
7740 (remote_read_qxfer)
7741 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7742 (remote_hostio_readlink, remote_bfd_iovec_pread)
7743 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7744 binary buffer, and char when buffer is used as string.
7745 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7746 (trace_save, tfile_open, traceframe_walk_blocks)
7747 (tfile_fetch_registers): Likewise.
7748
7749 2013-04-19 Pedro Alves <palves@redhat.com>
7750
7751 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7752 buffer and size_t size. Adjust.
7753 * ser-base.h (ser_base_write): Adjust.
7754 * ser-go32.c (cnts): Change type to size_t.
7755 (dos_write): Change prototype -- take 'void *'
7756 buffer and size_t size. Adjust.
7757 (dos_info): Print elements of 'cnts' as unsigned long.
7758 * serial.c (serial_write): Likewise.
7759 * serial.h (serial_write): Adjust.
7760 (struct serial_ops) <write>: Change prototype -- take 'void *'
7761 buffer and size_t size. Adjust.
7762
7763 2013-04-19 Pedro Alves <palves@redhat.com>
7764
7765 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7766 gdb_byte *.
7767 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7768
7769 2013-04-19 Pedro Alves <palves@redhat.com>
7770
7771 * alpha-tdep.c (alpha_extract_return_value): Use
7772 regcache_cooked_read_unsigned to read 'v0'.
7773
7774 2013-04-19 Pedro Alves <palves@redhat.com>
7775
7776 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7777 parameters 'at', 'as' and 'offset' to uint32_t.
7778
7779 2013-04-19 Pedro Alves <palves@redhat.com>
7780
7781 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7782 'is64' to signed 'int'.
7783
7784 2013-04-19 Pedro Alves <palves@redhat.com>
7785
7786 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7787 parameter to int *.
7788
7789 2013-04-19 Pedro Alves <palves@redhat.com>
7790
7791 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7792 'insnbuf' buffer type to unsigned int[].
7793
7794 2013-04-19 Pedro Alves <palves@redhat.com>
7795
7796 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7797
7798 2013-04-19 Pedro Alves <palves@redhat.com>
7799
7800 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7801 unsigned long *.
7802
7803 2013-04-19 Pedro Alves <palves@redhat.com>
7804
7805 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7806 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7807 UINT_MAX.
7808 * mips-tdep.c (heuristic_fence_post): Change type to int.
7809 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7810
7811 2013-04-19 Pedro Alves <palves@redhat.com>
7812
7813 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7814 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7815 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7816
7817 2013-04-19 Pedro Alves <palves@redhat.com>
7818
7819 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7820 it to get a string view of the byte buffer.
7821 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7822 type to gdb_byte *. Adjust.
7823 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7824 Change local to char *.
7825 * solib-darwin.c (find_program_interpreter): Change return type to
7826 char *. Adjust.
7827 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7828 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7829 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7830 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7831 * solib-svr4.c (find_program_interpreter): Change return type to
7832 char *. Adjust.
7833 (enable_break): Change local 'interp_name' to char *.
7834 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7835 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7836 (spu_pseudo_register_write_spu): Use char for string buffer.
7837 Adjust.
7838 (info_spu_event_command, info_spu_signal_command): Add casts to
7839 'char *'.
7840
7841 2013-04-19 Pedro Alves <palves@redhat.com>
7842
7843 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7844 gdb_byte[].
7845 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7846 * ada-lang.c (ada_value_assign): Use gdb_byte.
7847 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7848 (alphanbsd_sigtramp_offset): Use gdb_byte.
7849 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7850 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7851 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7852 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7853 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7854 * arm-tdep.c (arm_stub_unwind_sniffer)
7855 (arm_displaced_init_closure): Use gdb_byte.
7856 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7857 (arm_default_thumb_le_breakpoint)
7858 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7859 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7860 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7861 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7862 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7863 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7864 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7865 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7866 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7867 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7868 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7869 (cris_store_return_value, cris_extract_return_value): Use
7870 gdb_byte.
7871 (constraint): Change type of parameter to char * from signed
7872 char*. Use gdb_byte.
7873 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7874 of local buffer to gdb_byte *.
7875 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7876 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7877 (add_address_entry): Change type of local buffer to gdb_byte[].
7878 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7879 (frv_push_dummy_call): Use gdb_byte.
7880 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7881 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7882 (hppa_hpux_supply_save_state): Use gdb_byte.
7883 * hppa-tdep.c (hppa32_push_dummy_call)
7884 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7885 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7886 (slotN_contents, replace_slotN_contents): Change type of parameter
7887 to gdb_byte *.
7888 (fetch_instruction, ia64_pseudo_register_write)
7889 (ia64_register_to_value, ia64_value_to_register)
7890 (ia64_extract_return_value, ia64_store_return_value)
7891 (ia64_push_dummy_call): Use gdb_byte.
7892 * m32c-tdep.c (m32c_return_value): Remove cast.
7893 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7894 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7895 gdb_byte.
7896 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7897 * mn10300-tdep.c (mn10300_store_return_value)
7898 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7899 gdb_byte.
7900 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7901 (moxie_process_record): Remove casts.
7902 * ppc-ravenscar-thread.c (supply_register_at_address)
7903 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7904 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7905 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7906 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7907 * remote.c (compare_sections_command): Use gdb_byte.
7908 * score-tdep.c (score7_free_memblock): Change type of parameter to
7909 gdb_byte *.
7910 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7911 gdb_byte *. Use gdb_byte.
7912 (sh_push_dummy_call_fpu): Use gdb_byte.
7913 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7914 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7915 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7916 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7917 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7918 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7919 (sh64_store_return_value, sh64_register_convert_to_virtual):
7920 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7921 (sh64_pseudo_register_write): Use gdb_byte.
7922 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7923 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7924 buffer.
7925 (irix_current_sos): Use gdb_byte.
7926 * solib-som.c (som_current_sos): Use gdb_byte.
7927 * sparc-ravenscar-thread.c (supply_register_at_address)
7928 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7929 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7930 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7931 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7932 'gdb_byte *'.
7933 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7934 'gdb_byte *'.
7935 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7936 * xstormy16-tdep.c (xstormy16_extract_return_value)
7937 (xstormy16_store_return_value): Change parameter type to
7938 'gdb_byte *'. Adjust.
7939 (xstormy16_push_dummy_call): Use gdb_byte.
7940 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7941 (call0_analyze_prologue, execute_code): Use gdb_byte.
7942
7943 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7944 Pedro Alves <palves@redhat.com>
7945
7946 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7947 value contents.
7948
7949 2013-04-17 Doug Evans <dje@google.com>
7950
7951 * dwarf2read.c (struct signatured_type): New member type.
7952 (struct attribute): Replace member signatured_type with signature.
7953 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7954 (read_call_site_scope): Call follow_die_ref instead of
7955 follow_die_ref_or_sig.
7956 (read_structure_type): Rewrite handling of signatured types.
7957 (read_enumeration_type): Ditto.
7958 (read_attribute_value): Update.
7959 (build_error_marker_type): New function.
7960 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7961 Don't call error for bad types, just build an error marker type.
7962 (dump_die_shallow): Update.
7963 (follow_die_sig_1): Renamed from follow_die_sig.
7964 Don't call error for bad types, instead return NULL.
7965 (follow_die_sig): New function.
7966 (get_signatured_type, get_DW_AT_signature_type): New functions.
7967
7968 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7969
7970 * aarch64-tdep.c (aarch64_write_pc): Removed.
7971 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7972 function.
7973
7974 2013-04-17 Yao Qi <yao@codesourcery.com>
7975
7976 * top.c (print_gdb_configuration): Print configure-time
7977 parameter on using libbabeltrace or not.
7978
7979 2013-04-16 Pedro Alves <palves@redhat.com>
7980
7981 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7982
7983 2013-04-16 Pedro Alves <palves@redhat.com>
7984
7985 * common/glibc_thread_db.h: Update from upstream glibc
7986 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7987
7988 2013-04-16 Pedro Alves <palves@redhat.com>
7989
7990 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7991 * common/glibc_thread_db.h: ... this new file ...
7992 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7993
7994 2013-04-16 Will Newton <will.newton@gmail.com>
7995 Pedro Alves <palves@redhat.com>
7996
7997 PR build/11881
7998
7999 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8000 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8001 HAVE_THREAD_DB_H.
8002
8003 2013-04-16 Pedro Alves <palves@redhat.com>
8004 Eli Zaretskii <eliz@gnu.org>
8005
8006 * NEWS: Mention "set foo unlimited".
8007
8008 2013-04-15 Doug Evans <dje@google.com>
8009
8010 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8011 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8012 (create_dwo_cu_reader): Renamed from
8013 create_dwo_debug_info_hash_table_reader.
8014 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8015 Remove support for multiple CUs in a DWO file.
8016 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8017
8018 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8019 instead of phex.
8020 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8021 (create_dwo_in_dwp): Ditto.
8022
8023 2013-04-15 Tom Tromey <tromey@redhat.com>
8024
8025 * NEWS: Move recent entries into "since 7.6" section.
8026
8027 2013-04-15 Tom Tromey <tromey@redhat.com>
8028
8029 PR c++/13588:
8030 * NEWS: Update.
8031 * break-catch-throw.c (struct exception_catchpoint)
8032 <exception_rx, pattern>: New fields.
8033 (fetch_probe_arguments, dtor_exception_catchpoint)
8034 (check_status_exception_catchpoint)
8035 (print_one_detail_exception_catchpoint): New functions.
8036 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8037 Compile regular expression if needed.
8038 (extract_exception_regexp): New function.
8039 (catch_exception_command_1): Use extract_exception_regexp.
8040 (compute_exception): Use fetch_probe_arguments.
8041 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8042 and check_status fields.
8043 * cp-abi.c (cplus_typename_from_type_info): New function.
8044 * cp-abi.h (cplus_typename_from_type_info): Declare.
8045 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8046 * gdb_regex.h (compile_rx_or_error): Declare.
8047 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8048 comment.
8049 (init_gnuv3_ops): Set get_type_from_type_info field.
8050 * probe.c (compile_rx_or_error): Move...
8051 * utils.c (compile_rx_or_error): ... here.
8052
8053 2013-04-15 Tom Tromey <tromey@redhat.com>
8054
8055 PR c++/15176:
8056 * NEWS: Update.
8057 * break-catch-throw.c (compute_exception): New function.
8058 (exception_funcs): New global.
8059 (_initialize_break_catch_throw): Create $_exception.
8060 * cp-abi.c (cplus_type_from_type_info): New function.
8061 * cp-abi.h (cplus_type_from_type_info): Declare.
8062 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8063 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8064 (gnuv3_get_type_from_type_info): New functions.
8065 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8066
8067 2013-04-15 Tom Tromey <tromey@redhat.com>
8068
8069 * break-catch-throw.c (struct exception_names): New.
8070 (exception_functions): Change type.
8071 (re_set_exception_catchpoint): Look for SDT probes.
8072
8073 2013-04-15 Tom Tromey <tromey@redhat.com>
8074
8075 PR c++/10119:
8076 * break-catch-throw.c (exception_functions): New global.
8077 (gnu_v3_exception_catchpoint_ops): Move earlier.
8078 (struct exception_catchpoint): New.
8079 (classify_exception_breakpoint): Rewrite.
8080 (re_set_exception_catchpoint): New function.
8081 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8082 Allocate a struct exception_catchpoint.
8083 (catch_exception_command_1): Update.
8084 (initialize_throw_catchpoint_ops): Set 're_set' method.
8085
8086 2013-04-15 Tom Tromey <tromey@redhat.com>
8087
8088 * Makefile.in (SFILES): Add break-catch-throw.c
8089 (COMMON_OBS): Add break-catch-throw.o.
8090 * break-catch-throw.c: New file.
8091 * breakpoint.c: Move exception-catching code to new file.
8092 (ep_parse_optional_if_clause): No longer static.
8093 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8094
8095 2013-04-15 Tom Tromey <tromey@redhat.com>
8096
8097 PR c++/9065:
8098 * NEWS: Update.
8099 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8100 * c-exp.y (TYPEID): New token.
8101 (exp): Add new TYPEID productions.
8102 (ident_tokens): Add "typeid".
8103 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8104 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8105 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8106 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8107 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8108 case.
8109 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8110 (build_std_type_info_type, gnuv3_get_typeid_type)
8111 (gnuv3_get_typeid): New functions.
8112 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8113 new fields on ABI object.
8114 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8115 * std-operator.def (OP_TYPEID): New.
8116
8117 2013-04-15 Tom Tromey <tromey@redhat.com>
8118
8119 * elfread.c (elf_symtab_read): Install versioned symbol under
8120 unversioned name as well.
8121
8122 2013-04-15 Tom Tromey <tromey@redhat.com>
8123
8124 PR c++/11990:
8125 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8126 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8127 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8128 (gdb_demangle): New function.
8129 * cp-support.h (gdb_demangle): Declare.
8130 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8131 (dwarf2_name): Use gdb_demangle.
8132 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8133 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8134 suffixes from name.
8135 (gnuv3_print_method_ptr): Use gdb_demangle.
8136 * jv-lang.c (java_demangle): Use gdb_demangle.
8137 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8138 * language.c (unk_lang_demangle): Use gdb_demangle.
8139 * symtab.c (symbol_find_demangled_name)
8140 (demangle_for_lookup): Use gdb_demangle.
8141
8142 2013-04-15 Tom Tromey <tromey@redhat.com>
8143
8144 PR c++/12824:
8145 * NEWS: Update.
8146 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8147 New constant.
8148 (classify_exception_breakpoint): New function.
8149 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8150 (print_mention_exception_catchpoint)
8151 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8152 (catch_exception_command_1): Handle "rethrow" catchpoint.
8153 (catch_rethrow_command): New function.
8154 (_initialize_breakpoint): Add "catch rethrow" command.
8155
8156 2013-04-15 Pierre Muller <muller@sourceware.org>
8157
8158 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8159 set_gdbarch_write_pc as deprecated anymore.
8160
8161 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8162
8163 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8164 declarations.
8165
8166 2013-04-13 Yao Qi <yao@codesourcery.com>
8167
8168 * ctf.c (_initialize_ctf): Include "completer.h".
8169 Call add_target_with_completer instead of add_target.
8170
8171 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8172
8173 Fix GDB regression related to PR binutils/14813.
8174 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8175 * minidebug.c (lzma_close): Add return value comment.
8176 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8177 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8178 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8179
8180 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8181
8182 * config.in: Regenerate.
8183
8184 2013-04-12 Tom Tromey <tromey@redhat.com>
8185
8186 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8187 const.
8188 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8189 (struct die_reader_specs) <buffer>: Likewise.
8190 (die_reader_func_ftype): Make 'info_ptr' const.
8191 (struct line_header) <include_dirs, statement_program_start,
8192 statement_program_end>: Now const.
8193 (struct file_entry) <name>: Likewise.
8194 (struct partial_die_info) <sibling>: Likewise.
8195 (struct dwarf_block) <data>: Likewise.
8196 (dwarf2_read_section): Remove cast.
8197 (dwarf2_get_section_info): Make 'bufp' const.
8198 (read_index_from_section): Constify.
8199 (dw2_get_file_names_reader): Make 'info_ptr' const.
8200 (dw2_get_primary_filename_reader): Likewise.
8201 (read_comp_unit_head): Make 'info_ptr' and return type const.
8202 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8203 Likewise.
8204 (read_abbrev_offset): Constify.
8205 (dwarf2_create_include_psymtab): Make 'name' const.
8206 (create_debug_types_hash_table): Update.
8207 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8208 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8209 Constify.
8210 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8211 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8212 (read_comp_units_from_section): Constify.
8213 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8214 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8215 const.
8216 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8217 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8218 (create_dwp_hash_table, dwarf2_ranges_read)
8219 (dwarf2_record_block_ranges): Constify.
8220 (read_die_and_children, read_die_and_siblings_1)
8221 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8222 const.
8223 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8224 (abbrev_table_read_table): Constify.
8225 (load_partial_dies): Make 'info_ptr' const.
8226 (read_partial_die, read_attribute_value, read_attribute): Make
8227 'info_ptr' and return type const.
8228 (read_address, read_initial_length)
8229 (read_checked_initial_length_and_offset, read_offset)
8230 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8231 const.
8232 (read_direct_string): Make 'buf' and return type const.
8233 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8234 (read_indirect_string): Make return type const.
8235 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8236 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8237 'info_ptr' const.
8238 (read_str_index): Make return type const.
8239 (add_include_dir): Make 'include_dir' const.
8240 (add_file_name): Make 'name' const.
8241 (dwarf_decode_line_header): Constify.
8242 (psymtab_include_file_name): Make return type const.
8243 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8244 (dwarf2_start_subfile): Make 'filename' const.
8245 (dwarf2_const_value_attr): Make 'bytes' const.
8246 (read_signatured_type_reader): Make 'info_ptr' const.
8247 (decode_locdesc): Constify.
8248 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8249 const.
8250 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8251 'mac_end', and return type const.
8252 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8253 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8254 type const.
8255 (per_cu_header_read_in): Constify.
8256 * symfile.h (dwarf2_get_section_info): Update.
8257
8258 2013-04-12 Tom Tromey <tromey@redhat.com>
8259
8260 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8261
8262 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8263
8264 * NEWS: Mention "show configuration", --configuration.
8265 * top.c (print_gdb_configuration): New function, displays the
8266 details about GDB configure-time parameters.
8267 (print_gdb_version): Mention "show configuration".
8268 * cli/cli-cmds.c (show_configuration): New function.
8269 (_initialize_cli_cmds): Add the "show configuration" command.
8270 * main.c (captured_main) <print_configuration>: New static var.
8271 <long_options>: Use it.
8272 If --configuration was given, call print_gdb_configuration.
8273
8274 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8275 Pedro Alves <palves@redhat.com>
8276
8277 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8278 (generated_files): Add gcore.
8279 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8280 HAVE_NATIVE_GCORE_HOST.
8281 (gcore): New.
8282 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8283 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8284 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8285 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8286 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8287 Add HAVE_NATIVE_GCORE_HOST.
8288 * configure: Regenerate.
8289 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8290 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8291 AC_CONFIG_FILES for gcore.
8292 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8293 gdb_have_gcore.
8294 * gdb_gcore.sh: Rename to ...
8295 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8296 and GCORE_TRANSFORM_NAME substitutions.
8297
8298 Fix parsing tabs in ${gdb_target_obs}.
8299 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8300
8301 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8302
8303 * remote.c (unpush_and_perror): Add output message final dot.
8304
8305 2013-04-11 Yao Qi <yao@codesourcery.com>
8306
8307 * tracepoint.c (tfile_interp_line): Fit parameters line and
8308 utpp in one line.
8309
8310 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8311
8312 * solib.c (solib_map_sections): Remove code overwriting
8313 SO->SO_NAME with the bfd's filename.
8314
8315 2013-04-10 Pedro Alves <palves@redhat.com>
8316
8317 * cli/cli-decode.c (integer_unlimited_completer): New function.
8318 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8319 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8320 completer.
8321 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8322 (is_unlimited_literal): New function.
8323 (do_set_command): Handle literal "unlimited" arguments.
8324 * frame.c (_initialize_frame) <set backtrace limit>: Document
8325 "unlimited".
8326 * printcmd.c (_initialize_printcmd) <set print
8327 max-symbolic-offset>: Add help text.
8328 * record-full.c (_initialize_record_full) <set record full
8329 insn-number-max>: Likewise.
8330 * record.c (_initialize_record) <set record
8331 instruction-history-size, set record function-call-history-size>:
8332 Add help text.
8333 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8334 help text.
8335 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8336 Likewise.
8337 * source.c (_initialize_source) <set listsize>: Add help text.
8338 * utils.c (initialize_utils) <set height, set width>: Likewise.
8339 <set pagination>: Mention "set height unlimited".
8340 * valprint.c (_initialize_valprint) <set print elements, set print
8341 repeats>: Document "unlimited".
8342
8343 2013-04-10 Pedro Alves <palves@redhat.com>
8344
8345 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8346 instead of disconnect_tracing.
8347 * infcmd.c (detach_command, disconnect_command): Call
8348 query_if_trace_running. Adjust.
8349 * top.c: Include "tracepoint.h".
8350 (quit_target): Delete. Contents moved ...
8351 (quit_force): ... here. Wrap each stage of teardown in
8352 TRY_CATCH. Call disconnect_tracing before detaching.
8353
8354 2013-04-10 Hui Zhu <hui@codesourcery.com>
8355 Yao Qi <yao@codesourcery.com>
8356
8357 * configure.ac: Check libbabeltrace is installed.
8358 * config.in: Regenerate.
8359 * configure: Regenerate.
8360 * Makefile.in (LIBBABELTRACE): New.
8361 (CLIBS): Add LIBBABELTRACE.
8362 * ctf.c: Include "exec.h".
8363 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8364 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8365 (ctf_save_metadata_header): Define new type aliases in
8366 metadata.
8367 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8368 in metadata. Start a new faked packet for trace status.
8369 (ctf_write_status): Write trace status to CTF.
8370 (ctf_write_uploaded_tsv): Write TSV to CTF.
8371 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8372 (ctf_write_definition_end): End the faked packet.
8373
8374 (ctx, ctf_iter, trace_dirname): New.
8375 (start_pos): New variable.
8376 (ctf_destroy, ctf_open_dir, ctf_open): New.
8377 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8378 macros.
8379 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8380 (ctf_fetch_registers, ctf_xfer_partial): New.
8381 (ctf_get_trace_state_variable_value): New.
8382 (ctf_get_tpnum_from_frame_event): New.
8383 (ctf_get_traceframe_address): New.
8384 (ctf_trace_find, ctf_has_stack): New.
8385 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8386 (ctf_get_trace_status, ctf_read_status): New.
8387 (_initialize_ctf): New.
8388 * tracepoint.c (get_tracepoint_number): New
8389 (get_uploaded_tsv): Remove 'static'.
8390 (struct traceframe_info, trace_regblock_size): Move it to ...
8391 * tracepoint.h: ... here.
8392 (get_tracepoint_number): Declare it.
8393 (get_uploaded_tsv): Declare it.
8394
8395 * NEWS: Mention new configure option.
8396
8397 2013-04-10 Pedro Alves <palves@redhat.com>
8398 Hui Zhu <hui@codesourcery.com>
8399
8400 * breakpoint.c (dprintf_re_set): New.
8401 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8402 to dprintf_re_set.
8403
8404 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8405
8406 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8407 Remove solib-svr4.o from the list.
8408
8409 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8410
8411 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8412 Use gdb_assert_not_reached instead of invalid boolean expression.
8413
8414 2013-04-09 Pedro Alves <palves@redhat.com>
8415
8416 * remote.c (unpush_and_perror): New function.
8417 (readchar, remote_serial_write): Use it.
8418
8419 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8420
8421 * NEWS: Mention new btrace RSP packets.
8422
8423 2013-04-08 Tom Tromey <tromey@redhat.com>
8424
8425 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8426 long.
8427
8428 2013-04-08 Tom Tromey <tromey@redhat.com>
8429
8430 * maint.c (print_bfd_section_info): Print the section index.
8431 * symmisc.c (dump_msymbols): Print the section index.
8432
8433 2013-04-08 Tom Tromey <tromey@redhat.com>
8434
8435 PR symtab/8424:
8436 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8437 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8438 * breakpoint.c (resolve_sal_pc): Update.
8439 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8440 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8441 (minsym_lookup_iterator_cb): Use it.
8442 (default_read_var_value): Update.
8443 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8444 Update.
8445 * infcmd.c (jump_command): Update.
8446 * linespec.c (minsym_found): Update.
8447 * maint.c (maintenance_translate_address): Update.
8448 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8449 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8450 * parse.c (write_exp_msymbol): Update.
8451 * printcmd.c (address_info): Update.
8452 * psymtab.c (find_pc_sect_psymbol): Update.
8453 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8454 SYMBOL_OBJ_SECTION.
8455 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8456 Don't initialize SYMBOL_OBJ_SECTION.
8457 * spu-tdep.c (spu_catch_start): Update.
8458 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8459 * symmisc.c (dump_msymbols, print_symbol): Update.
8460 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8461 how fallback section is computed.
8462 (fixup_symbol_section): Update.
8463 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8464 Update.
8465 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8466 Initialize SYMBOL_SECTION.
8467 * symtab.h (struct general_symbol_info) <section>: Update comment.
8468 <obj_section>: Remove.
8469 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8470 (SYMBOL_OBJFILE): New macro.
8471
8472 2013-04-08 Tom Tromey <tromey@redhat.com>
8473
8474 * coffread.c (record_minimal_symbol): Update.
8475 * dbxread.c (record_minimal_symbol): Update.
8476 * elfread.c (record_minimal_symbol): Update.
8477 * machoread.c (macho_symtab_add_minsym): Update.
8478 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8479 Update.
8480 * minsyms.c (prim_record_minimal_symbol): Update.
8481 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8482 argument.
8483 (prim_record_minimal_symbol_and_info): Likewise.
8484 * minsyms.h (prim_record_minimal_symbol_full)
8485 (prim_record_minimal_symbol_and_info): Update.
8486 * symtab.c (allocate_symbol, initialize_symbol)
8487 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8488 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8489 Update.
8490
8491 2013-04-08 Tom Tromey <tromey@redhat.com>
8492
8493 PR symtab/8423:
8494 * solib-som.c (som_solib_section_offsets): Use BFD section
8495 indices. Set offsets for all sections.
8496 * somread.c (som_symtab_read): Compute BFD section for
8497 symbol. Use prim_record_minimal_symbol_and_info.
8498 (som_symfile_read): Fix comment.
8499 (struct find_section_offset_arg): New.
8500 (find_section_offset, set_section_index): New functions.
8501 (som_symfile_offsets): Use set_section_index to compute
8502 section indices.
8503
8504 2013-04-08 Tom Tromey <tromey@redhat.com>
8505
8506 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8507 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8508 gdb_bfd_section_index.
8509 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8510 New functions.
8511 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8512 Declare.
8513 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8514 Update.
8515 * objfiles.c (add_to_objfile_sections_full): New function.
8516 (add_to_objfile_sections): Use it.
8517 (build_section_table): Rewrite.
8518 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8519 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8520 (struct objfile) <sections>: Update comment.
8521 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8522 is NULL.
8523 (ALL_OBJSECTIONS): Use it.
8524 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8525 * solib-frv.c (frv_relocate_main_executable): Update.
8526 * solib-target.c (solib_target_relocate_section_addresses):
8527 Use gdb_bfd_section_index.
8528 * symfile.c (build_section_addr_info_from_section_table):
8529 Use gdb_bfd_section_index.
8530 (build_section_addr_info_from_bfd, place_section): Likewise.
8531 * symtab.c (fixup_section): Update.
8532 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8533
8534 2013-04-08 Tom Tromey <tromey@redhat.com>
8535
8536 * minsyms.h (struct bound_minimal_symbol): New.
8537 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8538 Remove objfile argument.
8539 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8540 Return bound_minimal_symbol.
8541 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8542 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8543 Return bound_minimal_symbol.
8544 (in_gnu_ifunc_stub): Update.
8545 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8546 Remove 'objfile_p' argument.
8547 (lookup_solib_trampoline_symbol_by_pc): Update.
8548 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8549 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8550 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8551 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8552 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8553 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8554 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8555 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8556 stack.c, symtab.c, tui/tui-disasm.c: Update.
8557
8558 2013-04-08 Tom Tromey <tromey@redhat.com>
8559
8560 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8561 Use symbol's obstack, not an objfile.
8562 * coffread.c (process_coff_symbol): Update.
8563 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8564 * jv-lang.c (add_class_symbol): Update.
8565 * mdebugread.c (new_symbol): Update.
8566 * minsyms.c (prim_record_minimal_symbol_full)
8567 (terminate_minimal_symbol_table): Update.
8568 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8569 * stabsread.c (define_symbol, read_enum_type): Update.
8570 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8571 Handle Ada specially.
8572 (symbol_set_language): Add 'obstack' argument.
8573 (symbol_set_names): Update.
8574 (symbol_natural_name, symbol_demangled_name): Always use
8575 ada_decode_symbol.
8576 * symtab.h (struct general_symbol_info)
8577 <language_specific::obstack>: New field.
8578 <ada_mangled>: New field.
8579 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8580 (symbol_set_language): Update.
8581
8582 2013-04-08 Tom Tromey <tromey@redhat.com>
8583
8584 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8585 Take an obstack, not an objfile.
8586 (symbol_set_names): Update.
8587 * symtab.h (symbol_set_demangled_name): Update.
8588
8589 2013-04-08 Tom Tromey <tromey@redhat.com>
8590
8591 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8592 allocate_symbol.
8593 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8594 (read_func_scope): Call allocate_template_symbol.
8595 (new_symbol_full): Call allocate_symbol.
8596 * jit.c (finalize_symtab): Call allocate_symbol.
8597 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8598 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8599 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8600 (common_block_end): Call allocate_symbol.
8601 * symtab.c (allocate_symbol, initialize_symbol)
8602 (allocate_template_symbol): New functions.
8603 * symtab.c (allocate_symbol, initialize_symbol)
8604 (allocate_template_symbol): Declare.
8605 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8606
8607 2013-04-08 Pedro Alves <palves@redhat.com>
8608 Keith Seitz <keiths@redhat.com>
8609
8610 * breakpoint.c (create_breakpoint): Rename
8611 "parse_condition_and_thread" parameter to "parse_arg". Update
8612 describing comment. If !PARSE_ARG, then error out if ARG is not
8613 the empty string after extracting the location.
8614 * breakpoint.h (create_breakpoint): Rename
8615 "parse_condition_and_thread" parameter to "parse_arg".
8616
8617 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8618
8619 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8620
8621 2013-04-07 Yao Qi <yao@codesourcery.com>
8622
8623 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8624 and 'addr2' to CORE_ADDR.
8625 * target.c (update_current_target): Update.
8626 * target.h (struct target_ops) <to_trace_find>: Change parameter
8627 type to CORE_ADDR.
8628 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8629 'addr2' to CORE_ADDR.
8630 (tfile_trace_find): Likewise.
8631 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8632 Change local variable 'addr' to type CORE_ADDR.
8633 * tracepoint.h (tfind_1): Update declaration.
8634
8635 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8636
8637 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8638 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8639 Include main.h.
8640
8641 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8642 here...
8643 * main.h (windows_get_absolute_argv0): ...to here.
8644
8645 2013-04-05 Doug Evans <dje@google.com>
8646
8647 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8648 (read_cutu_die_from_dwo): Add comments.
8649 (read_structure_type): Update comment.
8650 (read_enumeration_type, read_namespace_type): Update comment.
8651 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8652
8653 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8654
8655 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8656 * Makefile.in (gdb.z): Remove.
8657 (install-only): Remove $(man1dir) and gdb.1 installation.
8658 * gdb.1: Remove.
8659
8660 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8661
8662 Fix compatibility with Linux kernel 3.8.3.
8663 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8664 to more inner block. Remove parsing of NUMBER from outer block.
8665 Parse NUMBER only if KEYWORD has been identified.
8666
8667 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8668
8669 Fix variable name shadowing.
8670 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8671 filename to mapsfilename and update its uses.
8672
8673 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8674
8675 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8676 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8677 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8678 details of the problem.
8679
8680 2013-04-04 Pedro Alves <palves@redhat.com>
8681 Hui Zhu <hui@codesourcery.com>
8682
8683 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8684 tracepoint, reset its STEP_COUNT and call validate_actionline.
8685
8686 2013-04-03 Doug Evans <dje@google.com>
8687
8688 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8689 read_die_and_siblings.
8690 (read_die_and_siblings): New function.
8691 (read_cutu_die_from_dwo): Dump die if requested.
8692 (read_die_and_children): Call read_full_die_1 and
8693 read_die_and_siblings_1.
8694 (read_full_die): Dump die if requested.
8695
8696 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8697
8698 * dwarf2read.c (struct dwo_file): New member comp_dir.
8699 Rename member name to dwo_name. All uses updated.
8700 (hash_dwo_file): Include comp_dir in computation.
8701 (eq_dwo_file): Ditto.
8702 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8703 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8704
8705 * psymtab.c (read_psymtabs_with_fullname): Don't call
8706 psymtab_to_fullname if the basenames are different.
8707
8708 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8709
8710 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8711 New entry about "fullname" presence.
8712
8713 2013-04-03 Pedro Alves <palves@redhat.com>
8714
8715 * NEWS: Mention x86_64/Cygwin as new native configuration.
8716
8717 2013-04-02 Doug Evans <dje@google.com>
8718
8719 * dwarf2read.c (read_structure_type): Fix typo in comment.
8720
8721 2013-04-02 Pedro Alves <palves@redhat.com>
8722
8723 * NEWS: Mention "set/show debug aarch64", "set/show debug
8724 coff-pe-read" and "set/show debug mach-o".
8725
8726 2013-04-02 Pedro Alves <palves@redhat.com>
8727
8728 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8729
8730 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8731
8732 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8733 gdb_string.h is now in common/.
8734
8735 2013-04-02 Pedro Alves <palves@redhat.com>
8736
8737 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8738 under "New options".
8739
8740 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8741
8742 Revert this patch:
8743 PR gdb/15275
8744 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8745
8746 2013-04-02 Pedro Alves <palves@redhat.com>
8747
8748 PR gdb/15275
8749
8750 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8751 (remote_serial_write): New function.
8752 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8753
8754 2013-04-01 Jiong Wang <jiwang@tilera.com>
8755
8756 * NEWS: Mention TILE-Gx in "New native configurations" and
8757 "New targets" sections.
8758
8759 2013-04-01 Doug Evans <dje@google.com>
8760
8761 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8762 (process_enumeration_scope): Simplify.
8763
8764 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8765 type_unit_group ...
8766 (struct signatured_type): ... to here.
8767 (sig_type_ptr): New typedef.
8768 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8769 out of union 't'. All uses updated.
8770 (dw2_get_file_names_reader): Assert not called for a type unit.
8771 (dw2_get_file_names): Assert not called for a type unit or type
8772 unit group.
8773 (build_type_psymtabs_reader): Assert called for a type unit.
8774 (build_type_psymtab_dependencies): Assert called for a type unit group.
8775
8776 * dwarf2read.c (free_dwo_file): Add comment.
8777 (dwarf2_per_objfile_free): Unref dwp bfd.
8778
8779 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8780
8781 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8782 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8783 (read_pe_exported_syms): Remove unused 'exportix'.
8784 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8785 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8786 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8787
8788 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8789
8790 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8791 (print_it_watchpoint): Remove unused 'bl'.
8792 (say_where): Remove unused 'uiout'.
8793 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8794 (bkpt_breakpoint_hit): Remove unused 'b'.
8795 (internal_bkpt_print_it): Remove unused 'uiout'.
8796 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8797
8798 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8799
8800 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8801 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8802
8803 2013-03-29 Doug Evans <dje@google.com>
8804
8805 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8806 Delete arg is_dwp. All callers updated.
8807 (open_dwp_file): New function.
8808 (open_and_init_dwp_file): Call it.
8809 (get_dwp_file): New function.
8810 (lookup_dwo_cutu): Call it.
8811
8812 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8813 unnecessary, cleanup.
8814
8815 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8816
8817 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8818 (lookup_dwo_unit): New function.
8819 (init_cutu_and_read_dies): Move DWO handling to new functions.
8820
8821 * dwarf2read.c (struct signatured_type): Tweak comment.
8822 (struct dwo_unit): Tweak comment.
8823 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8824 (create_dwo_debug_info_hash_table): Tweak comment.
8825 (dwarf2_per_cu_offset_and_type): Tweak comment.
8826
8827 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8828 missing .debug_types section.
8829
8830 2013-03-29 Yao Qi <yao@codesourcery.com>
8831
8832 * corelow.c: Include "completer.h".
8833 (_initialize_corelow): Call add_target_with_completer with
8834 argument 'filename_completer'.
8835 * tracepoint.c: Likewise.
8836 * exec.c (_initialize_exec): Likewise.
8837 * target.c (add_target): Rename to ...
8838 (add_target_with_completer): ... this. Call set_cmd_completer
8839 if parameter completer is not NULL.
8840 (add_target): New.
8841 * target.h: Include "command.h".
8842 (add_target_with_completer): Declare it.
8843
8844 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8845
8846 * coffread.c (is_import_fixup_symbol): New function.
8847 (record_minimal_symbol): Use is_import_fixup_symbol to
8848 detect import fixup symbols, and discard them.
8849
8850 2013-03-28 Doug Evans <dje@google.com>
8851
8852 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8853 types hash table until we know we need it.
8854
8855 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8856 index numbers.
8857
8858 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8859 All callers updated.
8860 (dw2_print_stats): Print #read CUs too.
8861 (dump_die_shallow): Print signatured types better.
8862
8863 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8864 info_or_types_section to section. All uses updated.
8865 (struct dwo_unit): Ditto.
8866
8867 2013-03-28 Pedro Alves <palves@redhat.com>
8868
8869 * NEWS (New options): New section.
8870 (New options): Mention set/show remote trace-status-packet.
8871 * remote.c (PACKET_qTStatus): New enumeration value.
8872 (remote_get_trace_status): Skip sending qTStatus if the packet is
8873 disabled. Use packet_ok.
8874 (_initialize_remote): Register a configuration command for
8875 qTStatus packet.
8876
8877 2013-03-28 Doug Evans <dje@google.com>
8878
8879 * symfile.c (find_separate_debug_file): Add comment.
8880 (terminate_after_last_dir_separator): Tweak comment.
8881
8882 * dwarf2read.c (create_partial_symtab): Add forward decl.
8883 (create_partial_symtab): Move to be closer to other psymtab functions.
8884 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8885
8886 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8887 (compute_symtab_includes): Remove unnecessary forward declaration.
8888 (die_needs_namespace): Add comment marking group of functions for
8889 dwarf2 name computation.
8890
8891 * typeprint.c (_initialize_typeprint): Improve type help text.
8892
8893 * python/python.c (finish_python_initialization): Provide suggestion
8894 for how to tell gdb to find its python files.
8895
8896 2013-03-28 Pedro Alves <palves@redhat.com>
8897
8898 PR gdb/15294
8899
8900 * source.c (_initialize_source): Change back "set listsize" to an
8901 integer command.
8902
8903 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8904
8905 PR gdb/15275
8906 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8907
8908 2013-03-27 Pedro Alves <palves@redhat.com>
8909
8910 * top.c (history_size): Rename to ...
8911 (history_size_setshow_var): ... this. Add comment.
8912 (show_commands): Use readline's 'history_length' instead of
8913 computing the history length by calling history_get in a loop.
8914 (set_history_size_command): Error out for sizes over INT_MAX.
8915 Restore previous history size on invalid size.
8916 (init_history): If HISTSIZE is negative, leave the history size as
8917 zero. Add comments.
8918 (init_main): Adjust.
8919
8920 2013-03-27 Pedro Alves <palves@redhat.com>
8921
8922 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8923 coff_pe_read" command to "set debug coff-pe-read".
8924
8925 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8926
8927 * record.c (command_size_to_target_size): Fix size comparison.
8928 Change parameter type from pointer to integer to integer.
8929 Update all users.
8930
8931 2013-03-27 Pierre Muller <muller@sourceware.org>
8932
8933 * windows-nat.c (handle_output_debug_string): Avoid typecast
8934 from integer of different size warning.
8935
8936 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8937
8938 * windows-nat.c (handle_output_debug_string): Add empty line
8939 after local block variable definition.
8940
8941 2013-03-26 Pedro Alves <palves@redhat.com>
8942
8943 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8944 (net_open): Make 'polls' local unsigned.
8945
8946 2013-03-26 Pedro Alves <palves@redhat.com>
8947
8948 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8949 a zuinteger command instead of uinteger.
8950
8951 2013-03-26 Pedro Alves <palves@redhat.com>
8952
8953 * record-full.c (record_full_insn_num): Make it unsigned.
8954 (record_full_check_insn_num, record_full_message)
8955 (record_full_registers_change, record_full_xfer_partial): Remove
8956 record_full_insn_max_num check (it's always != 0).
8957 (record_full_info, record_full_restore): Use %u as format string.
8958 (): Use %u as format string.
8959 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8960 check (it's always != 0).
8961
8962 2013-03-26 Pedro Alves <palves@redhat.com>
8963
8964 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8965 and "set dcache size" commands zuinteger instead of uinteger.
8966
8967 2013-03-26 Pedro Alves <palves@redhat.com>
8968
8969 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8970 command zuinteger instead of uinteger.
8971
8972 2013-03-26 Pedro Alves <palves@redhat.com>
8973
8974 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8975 zuinteger instead of uinteger.
8976
8977 2013-03-26 Pedro Alves <palves@redhat.com>
8978
8979 * record.c (record_insn_history_size_setshow_var)
8980 (record_call_history_size_setshow_var): New globals.
8981 (command_size_to_target_size): New function.
8982 (cmd_record_insn_history, cmd_record_call_history): Use
8983 command_size_to_target_size instead of cast.
8984 (validate_history_size, set_record_insn_history_size)
8985 (set_record_call_history_size): New functions.
8986 (_initialize_record): Install set_record_insn_history_size and
8987 set_record_call_history_size as "set" hooks of "set record
8988 instruction-history-size" and "set record
8989 function-call-history-size".
8990
8991 2013-03-26 Pedro Alves <palves@redhat.com>
8992
8993 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8994 use with history_max_entries use. Remove FIXME note.
8995
8996 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8997
8998 * record-btrace.c (record_btrace_close): Call
8999 record_btrace_auto_disable.
9000
9001 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9002
9003 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9004
9005 2013-03-25 Doug Evans <dje@google.com>
9006
9007 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9008
9009 2013-03-25 Tom Tromey <tromey@redhat.com>
9010
9011 PR symtab/11462:
9012 * c-exp.y (exp): Add new productions for destructors after '.' and
9013 '->'.
9014 (write_destructor_name): New function.
9015
9016 2013-03-25 Tom Tromey <tromey@redhat.com>
9017
9018 PR c++/9197:
9019 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9020 value_struct_elt, not lookup_struct_elt_type.
9021 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9022 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9023 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9024
9025 2013-03-25 Yao Qi <yao@codesourcery.com>
9026
9027 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9028 instead of '_mkdir'.
9029
9030 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9031
9032 * windows-nat.c (windows_get_absolute_argv0): New function.
9033 * windows-nat.h: Add its prototype.
9034
9035 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9036 Use IS_DIR_SEPARATOR instead of looking for a character inside
9037 SLASH_STRING. Include filenames.h.
9038 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9039 relocate_gdb_directory works when passed gdb_program_name.
9040 Include windows-nat.h.
9041
9042 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9043
9044 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9045 * remote.c (trace_error): Remove the special handling of '2'.
9046 (readchar) <SERIAL_EOF>
9047 (readchar) <SERIAL_ERROR>
9048 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9049 (remote_get_trace_status): Call throw_exception if EX is
9050 TARGET_CLOSE_ERROR.
9051 * utils.c (perror_with_name): Rename to ...
9052 (throw_perror_with_name): ... here. New parameter errcode, describe it
9053 in the function comment.
9054 (perror_with_name): New function wrapper.
9055 * utils.h (enum errors): New stub declaration.
9056 (throw_perror_with_name): New declaration.
9057
9058 2013-03-22 Pedro Alves <palves@redhat.com>
9059 Yao Qi <yao@codesourcery.com>
9060 Mark Kettenis <kettenis@gnu.org>
9061
9062 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9063 Don't let the user set the value to UINT_MAX directly.
9064 <var_integer>: Don't let the user set the value to INT_MAX
9065 directly.
9066
9067 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9068
9069 * remote.c (remote_unpush_target): New function.
9070 (remote_open_1): Remove two pop_target calls, update one comment, add
9071 comment to target_preopen call. Replace pop_target call by
9072 remote_unpush_target call.
9073 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9074 pop_target calls by remote_unpush_target calls.
9075
9076 2013-03-22 Pedro Alves <palves@redhat.com>
9077
9078 * linux-nat.c (linux_child_follow_fork): Don't call
9079 linux_enable_event_reporting.
9080 (linux_handle_extended_wait): Don't call
9081 linux_enable_event_reporting.
9082
9083 2013-03-22 Pedro Alves <palves@redhat.com>
9084
9085 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9086 use it to rewrite the trampoline buffers with type gdb_byte[], and
9087 undefine the macro. Remove char* cast.
9088
9089 2013-03-21 Doug Evans <dje@google.com>
9090
9091 New commands "mt set per-command {space,time,symtab} {on,off}".
9092 * NEWS: Add entry.
9093 * event-top.c: #include "maint.h".
9094 * main.c: #include "maint.h".
9095 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9096 timeval-utils.h, maint.h, cli/cli-setshow.h.
9097 (per_command_time, per_command_space): New static globals.
9098 (per_command_symtab): New static global.
9099 (per_command_setlist, per_command_showlist): New static globals.
9100 (struct cmd_stats): Move here from utils.c.
9101 (set_per_command_time): Renamed from set_display_time in utils.c
9102 and moved here. All callers updated.
9103 (set_per_command_space): Renamed from set_display_space in utils.c
9104 and moved here. All callers updated.
9105 (count_symtabs_and_blocks): New function.
9106 (report_command_stats): Moved here from utils.c. Add support for
9107 printing symtab stats. Only print data if enabled before command
9108 executed.
9109 (make_command_stats_cleanup): Ditto.
9110 (sert_per_command_cmd, show_per_command_cmd): New functions.
9111 (_initialize_maint_cmds): Add new commands
9112 mt set per-command {space,time,symtab} {on,off}.
9113 * maint.h: New file.
9114 * top.c: #include "maint.h".
9115 * utils.c (reset_prompt_for_continue_wait_time): New function.
9116 (get_prompt_for_continue_wait_time): New function.
9117 * utils.h (reset_prompt_for_continue_wait_time): Declare
9118 (get_prompt_for_continue_wait_time): Declare.
9119 (make_command_stats_cleanup): Moved to maint.h.
9120 (set_display_time, set_display_space): Moved to maint.h and renamed
9121 to set_per_command_time, set_per_command_space.
9122 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9123 parse_binary_operation and made non-static. Don't call error,
9124 just return an error marker. All callers updated.
9125 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9126
9127 2013-03-21 Tom Tromey <tromey@redhat.com>
9128
9129 * symfile.c (alloc_section_addr_info): Update header. Don't set
9130 'num_sections' field.
9131 (build_section_addr_info_from_section_table): Set 'num_sections'.
9132 (build_section_addr_info_from_bfd): Likewise.
9133 (build_section_addr_info_from_objfile): Remove dead loop
9134 condition.
9135 (free_section_addr_info): Unconditionally call xfree.
9136 (relative_addr_info_to_section_offsets, addrs_section_sort)
9137 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9138 condition.
9139 (syms_from_objfile_1): Remove dead 'if' condition. Check
9140 'num_sections'.
9141 (add_symbol_file_command): Set 'num_sections'.
9142 * symfile-mem.c (symbol_file_add_from_memory): Set
9143 'num_sections'.
9144 * somread.c (som_symfile_offsets): Remove dead loop condition.
9145 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9146 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9147
9148 2013-03-21 Tom Tromey <tromey@redhat.com>
9149
9150 * tracepoint.h (decode_agent_options): Add 'trace_string'
9151 argument.
9152 * tracepoint.c (decode_agent_options): Add 'trace_string'
9153 argument.
9154 (validate_actionline): Update.
9155 (collect_symbol): Add 'trace_string' argument.
9156 (struct add_local_symbols_data) <trace_string>: New field.
9157 (do_collect_symbol): Update.
9158 (add_local_symbols): Add 'trace_string' argument.
9159 (encode_actions_1): Update.
9160 (trace_dump_actions): Update.
9161 * dwarf2loc.c (access_memory): Update.
9162 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9163 * ax-general.c (new_agent_expr): Update.
9164 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9165 (gen_trace_for_return_address): Add argument.
9166 (trace_kludge, trace_string_kludge): Remove.
9167 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9168 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9169 (gen_trace_for_var): Add 'trace_string' argument.
9170 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9171 (gen_printf, agent_eval_command_one): Update.
9172
9173 2013-03-21 Tom Tromey <tromey@redhat.com>
9174
9175 PR exp/15109:
9176 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9177 Handle FILENAME token.
9178
9179 2013-03-21 Tom Tromey <tromey@redhat.com>
9180
9181 * c-exp.y (YYPRINT): Define.
9182 (c_print_token): New function.
9183
9184 2013-03-21 Tom Tromey <tromey@redhat.com>
9185
9186 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9187
9188 2013-03-21 Yao Qi <yao@codesourcery.com>
9189
9190 * ctf.c: Include "gdb_stat.h".
9191 [USE_WIN32API]: New macro 'mkdir'.
9192 (ctf_start): Use permission bits macros if they are defined.
9193
9194 2013-03-20 Keith Seitz <keiths@redhat.com>
9195
9196 * breakpoint.h (struct breakpoint): Add comment to
9197 extra_string indicating that this member is mallod'd.
9198 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9199
9200 2013-03-20 Pedro Alves <palves@redhat.com>
9201
9202 PR gdb/15289
9203
9204 * cli/cli-setshow.c (do_set_command)
9205 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9206 the result of parsing the command argument. Throw error if the
9207 value is greater than UINT_MAX. Print the invalid value with
9208 plongest.
9209 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9210 result of parsing the command argument. Throw error if the value
9211 is greater than INT_MAX, not greater or equal. Also throw error
9212 if the value is less than INT_MIN. Print the invalid value with
9213 plongest.
9214 <var_zuinteger_unlimited>: Throw error if the value is greater
9215 than INT_MAX, not greater or equal.
9216 (do_show_command) <var_integer, var_zinteger,
9217 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9218
9219 2013-03-20 Tom Tromey <tromey@redhat.com>
9220
9221 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9222 if possible.
9223 * dwarf2read.c (read_func_scope): Remove old FIXME.
9224 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9225 not LOC_COMPUTED.
9226 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9227 Unconditionally call via computed ops, if possible.
9228 * printcmd.c (address_info): Unconditionally call via computed ops,
9229 if possible.
9230 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9231 if possible.
9232 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9233 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9234 if possible.
9235
9236 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9237 Tom Tromey <tromey@redhat.com>
9238
9239 PR symtab/8421:
9240 * coffread.c (coff_register_index): New global.
9241 (process_coff_symbol, coff_read_enum_type): Set
9242 SYMBOL_ACLASS_INDEX.
9243 (_initialize_coffread): Initialize new global.
9244 * dwarf2loc.c (locexpr_find_frame_base_location)
9245 (dwarf2_block_frame_base_locexpr_funcs)
9246 (loclist_find_frame_base_location)
9247 (dwarf2_block_frame_base_loclist_funcs): New.
9248 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9249 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9250 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9251 (dwarf2_block_frame_base_loclist_funcs): New.
9252 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9253 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9254 globals.
9255 (read_func_scope): Update.
9256 (fixup_go_packaging, mark_common_block_symbol_computed)
9257 (var_decode_location, new_symbol_full, dwarf2_const_value):
9258 Set SYMBOL_ACLASS_INDEX.
9259 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9260 (_initialize_dwarf2_read): Initialize new globals.
9261 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9262 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9263 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9264 globals.
9265 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9266 (_initialize_mdebugread): Initialize new globals.
9267 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9268 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9269 (stab_register_index, stab_regparm_index): New globals.
9270 (define_symbol, read_enum_type, common_block_end): Set
9271 SYMBOL_ACLASS_INDEX.
9272 (_initialize_stabsread): Initialize new globals.
9273 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9274 globals.
9275 (MAX_SYMBOL_IMPLS): New define.
9276 (register_symbol_computed_impl, register_symbol_block_impl)
9277 (register_symbol_register_impl)
9278 (initialize_ordinary_address_classes): New functions.
9279 (_initialize_symtab): Call initialize_ordinary_address_classes.
9280 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9281 (struct symbol_impl): New.
9282 (SYMBOL_ACLASS_BITS): New define.
9283 (struct symbol) <aclass, ops>: Remove fields.
9284 <aclass_index>: New field.
9285 (symbol_impls): Declare.
9286 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9287 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9288 (register_symbol_computed_impl, register_symbol_block_impl)
9289 (register_symbol_register_impl): Declare.
9290 (struct symbol_computed_ops): Add location_has_loclist.
9291 (struct symbol_block_ops): New.
9292 (SYMBOL_BLOCK_OPS): New.
9293 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9294
9295 2013-03-20 Tom Tromey <tromey@redhat.com>
9296
9297 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9298 (print_partial_symbols, recursively_search_psymtabs): Use
9299 PSYMBOL_CLASS.
9300
9301 2013-03-20 Pierre Muller <muller@sourceware.org>
9302
9303 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9304 addtion, subtraction, multiplication and division binary operator.
9305
9306 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9307
9308 Code cleanup.
9309 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9310 * bsd-kvm.c (bsd_kvm_close): Likewise.
9311 * bsd-uthread.c (bsd_uthread_close): Likewise.
9312 * corelow.c (core_close): Likewise.
9313 (core_close_cleanup): Remove parameter quitting from a caller.
9314 * event-top.c (async_disconnect): Likewise.
9315 * exec.c (exec_close_1): Remove parameter quitting.
9316 * go32-nat.c (go32_close): Likewise.
9317 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9318 parameter quitting from a caller.
9319 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9320 variable.
9321 (mips_linux_close): Remove parameter quitting. Remove parameter
9322 quitting from a caller.
9323 * monitor.c (monitor_close): Remove parameter quitting.
9324 * monitor.h (monitor_close): Likewise.
9325 * record-btrace.c (record_btrace_close): Likewise.
9326 * record-full.c (record_full_close): Likewise.
9327 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9328 it also from fprintf_unfiltered.
9329 * remote-mips.c (mips_close): Remove parameter quitting.
9330 (mips_detach): Remove parameter quitting from a caller.
9331 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9332 (gdbsim_close): Remove duplicate function comment. Remove parameter
9333 quitting and remove it also from printf_filtered.
9334 * remote.c (remote_close): Remove parameter quitting.
9335 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9336 * target.c (update_current_target): Remove parameter int from to_close
9337 de_fault.
9338 (push_target, unpush_target, pop_target): Remove parameter quitting from
9339 a caller.
9340 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9341 Remove parameter quitting from a caller.
9342 (target_preopen): Remove parameter quitting from a caller.
9343 (target_close): Remove parameter quitting. Remove parameter quitting
9344 from a caller two times. Remove parameter quitting also from
9345 fprintf_unfiltered.
9346 * target.h (struct target_ops): Remove parameter quitting and as int
9347 from fields to_xclose and to_close.
9348 (extern struct target_ops current_target):
9349 (target_close, pop_all_targets): Remove parameter quitting. Update the
9350 comment.
9351 (pop_all_targets_above): Remove parameter quitting.
9352 * top.c (quit_target): Remove parameter quitting from a caller.
9353 * tracepoint.c (tfile_close): Remove parameter quitting.
9354 * windows-nat.c (windows_close): Remove parameter quitting.
9355
9356 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9357
9358 * windows-nat.c (handle_output_debug_string): Replace call
9359 to string_to_core_addr with call to strtoull.
9360
9361 2013-03-20 Yao Qi <yao@codesourcery.com>
9362
9363 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9364 and write it to CTF metadata.
9365
9366 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9367
9368 * windows-nat.c (handle_output_debug_string): Change type of n to
9369 SIZE_T to avoid crash on 64 bit systems.
9370
9371 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9372
9373 * python/python-internal.h (HAVE_SNPRINTF)
9374 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9375 about redefinition of snprintf by pyerrors.h.
9376
9377 2013-03-15 Steve Ellcey <sellcey@mips.com>
9378
9379 * remote-sim.c (sim_command_completer): Make char arguments const.
9380
9381 2013-03-15 Tom Tromey <tromey@redhat.com>
9382
9383 PR c++/15116:
9384 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9385
9386 2013-03-14 Tom Tromey <tromey@redhat.com>
9387
9388 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9389 New fields.
9390 (get_file_crc): Move from symfile.c.
9391 (gdb_bfd_crc): New function.
9392 * gdb_bfd.h (gdb_bfd_crc): Declare.
9393 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9394 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9395 (separate_debug_file_exists): Use gdb_bfd_crc.
9396
9397 2013-03-14 Tom Tromey <tromey@redhat.com>
9398
9399 * symfile.c (get_debug_link_info): Remove.
9400 (find_separate_debug_file_by_debuglink): Use
9401 bfd_get_debug_link_info.
9402
9403 2013-03-14 Tom Tromey <tromey@redhat.com>
9404
9405 * symtab.c (error_in_psymtab_expansion): New function.
9406 (lookup_symbol_aux_quick)
9407 (basic_lookup_transparent_type_quick): Remove "last resort"
9408 code. Use error_in_psymtab_expansion.
9409
9410 2013-03-14 Doug Evans <dje@google.com>
9411 Jan Kratochvil <jan.kratochvil@redhat.com>
9412
9413 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9414 any successful compare_filenames_for_search or FILENAME_CMP.
9415 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9416 * symtab.c (iterate_over_some_symtabs): Likewise.
9417
9418 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9419
9420 * source.c (print_source_lines_base): Make a local copy of
9421 symtab_to_fullname.
9422
9423 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9424 Jan Kratochvil <jan.kratochvil@redhat.com>
9425
9426 * source.c (print_source_lines_base): Suppress "file" for TUI.
9427
9428 2013-03-14 Keith Seitz <keiths@redhat.com>
9429 Alan Matsuoka <alanm@redhat.com>
9430
9431 PR c++/15203
9432 PR c++/15210
9433 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9434 TYPE_CODE_METHOD.
9435 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9436 symbols.
9437
9438 2013-03-14 Yao Qi <yao@codesourcery.com>
9439
9440 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9441 status to tfile if trace is stopped by command 'tstop'.
9442
9443 2013-03-14 Yao Qi <yao@codesourcery.com>
9444
9445 * tracepoint.c (tfile_write_status): Write trace notes and user
9446 name into tfile if they are not NULL.
9447
9448 2013-03-14 Hui Zhu <hui@codesourcery.com>
9449 Yao Qi <yao@codesourcery.com>
9450
9451 * Makefile.in (REMOTE_OBS): Add ctf.o.
9452 (SFILES): Add ctf.c.
9453 (HFILES_NO_SRCDIR): Add ctf.h.
9454 * ctf.c, ctf.h: New files.
9455 * tracepoint.c: Include 'ctf.h'.
9456 (collect_pseudocommand): Remove static.
9457 (trace_save_command): Parse option "-ctf".
9458 Produce different trace file writers per option.
9459 Adjust output message.
9460 (trace_save_tfile, trace_save_ctf): New.
9461 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9462 * mi/mi-main.c: Include 'ctf.h'.
9463 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9464 trace_save_tfile or trace_save_ctf.
9465 * NEWS: Mention these changes.
9466
9467 2013-03-14 Yao Qi <yao@codesourcery.com>
9468
9469 * tracepoint.c (trace_file_writer_xfree): New.
9470 (struct tfile_writer_data): New.
9471 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9472 (tfile_write_header, tfile_write_regblock_type): New.
9473 (tfile_write_status, tfile_write_uploaded_tsv): New.
9474 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9475 (tfile_write_raw_data, (tfile_end): New.
9476 (tfile_write_ops): New global variable.
9477 (TRACE_WRITE_R_BLOCK): New macro.
9478 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9479 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9480 (TRACE_WRITE_V_BLOCK): New macro.
9481 (trace_save): Add extra one parameter WRITER. Make it static.
9482 Use WRITER to writer trace.
9483 (tfile_trace_file_writer_new): New.
9484 (trace_save_command): Caller update.
9485 (trace_save_tfile): Write trace data in TFILE format.
9486 * tracepoint.h (struct trace_frame_write_ops): New.
9487 (struct trace_file_write_ops): New.
9488 (struct trace_file_writer): New.
9489 (trace_save): Remove its declaration.
9490 (trace_save_tfile): Declare it.
9491 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9492 instead of trace_save.
9493
9494 2013-03-13 Pedro Alves <palves@redhat.com>
9495
9496 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9497
9498 2013-03-13 Pedro Alves <palves@redhat.com>
9499
9500 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9501 commented out code.
9502 * demangle.c (current_demangling_style_string): Make it const.
9503 (set_demangling_command): Assert the demangling style is known.
9504 Remove all handling of unknown styles. Set
9505 'current_demangling_style_string' to an element of the
9506 demangling_style_names array.
9507 (set_demangling_style): Delete.
9508 (_initialize_demangler): Set current_demangling_style_string to the
9509 element of the demangling_style_names array that corresponds to
9510 the default demangling style. Remove FIXME note. Don't call
9511 set_demangling_style.
9512 * gdb-demangle.h (set_demangling_style): Remove declaration.
9513
9514 2013-03-13 Pedro Alves <palves@redhat.com>
9515
9516 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9517 fields const.
9518 (ada_make_symbol_completion_list): Make "text0" parameter const.
9519 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9520 * breakpoint.c (condition_completer): Make "text" and "word"
9521 parameters const. Adjust.
9522 (check_tracepoint_command): Adjust to validate_actionline
9523 prototype change.
9524 (catch_syscall_completer): Make "text" and "word" parameters
9525 const.
9526 * cli/cli-cmds.c (show_user): Make "comname" local const.
9527 (valid_command_p): Make "command" parameter const.
9528 (alias_command): Make "alias_prefix" and "command_prefix" locals
9529 const.
9530 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9531 (add_alias_cmd): Make "name" and "oldname" parameters const.
9532 Adjust. No longer make copy of OLDNAME.
9533 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9534 (add_setshow_cmd_full, add_setshow_enum_cmd)
9535 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9536 (add_setshow_filename_cmd, add_setshow_string_cmd)
9537 (add_setshow_string_noescape_cmd)
9538 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9539 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9540 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9541 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9542 Make "name" parameter const.
9543 (help_cmd): Rename "command" parameter to "arg". New const local
9544 "command".
9545 (find_cmd): Make "command" parameter const.
9546 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9547 deprecated_cmd_warning prototype change.
9548 (undef_cmd_error): Make "cmdtype" parameter const.
9549 (lookup_cmd): Make "line" parameter const.
9550 (deprecated_cmd_warning): Change type of "text" parameter to
9551 pointer to const char, from pointer to pointer to char. Adjust.
9552 (lookup_cmd_composition): Make "text" parameter const.
9553 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9554 parameters const.
9555 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9556 const.
9557 * cli/cli-script.c (validate_comname): Make "tem" local const.
9558 (define_command): New const local "tem_c". Use it in calls to
9559 lookup_cmd.
9560 (document_command): Make "tem" and "comfull" locals const.
9561 (show_user_1): Make "prefix" and "name" parameters const.
9562 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9563 const.
9564 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9565 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9566 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9567 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9568 (complete_on_enum, add_setshow_enum_cmd)
9569 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9570 (add_setshow_filename_cmd, add_setshow_string_cmd)
9571 (add_setshow_string_noescape_cmd)
9572 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9573 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9574 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9575 Change prototypes, constifying strings.
9576 * completer.c (noop_completer, filename_completer): Make "text"
9577 and "prefix" parameters const.
9578 (location_completer, expression_completer)
9579 (complete_line_internal): Make "text" and "prefix" parameters
9580 const and adjust.
9581 (command_completer, signal_completer): Make "text" and "prefix"
9582 parameters const.
9583 * completer.h (noop_completer, filename_completer)
9584 (expression_completer, location_completer, command_completer)
9585 (signal_completer): Change prototypes.
9586 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9587 parameters const.
9588 * cp-abi.c (cp_abi_completer): Likewise.
9589 * expression.h (parse_expression_for_completion): Change
9590 prototype.
9591 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9592 parameters const.
9593 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9594 * infrun.c (handle_completer): Make "text" and "word" parameters
9595 const.
9596 * interps.c (interpreter_completer): Make "text" and "word"
9597 parameters const.
9598 * language.h (struct language_defn)
9599 <la_make_symbol_completion_list>: Make "text" and "word"
9600 parameters const.
9601 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9602 (parse_exp_in_context): Rename to ...
9603 (parse_exp_in_context_1): ... this.
9604 (parse_exp_in_context): Reimplement, with const hack from
9605 parse_exp_1.
9606 (parse_expression_for_completion): Make "string" parameter const.
9607 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9608 to pointer to const char. Adjust.
9609 (print_command_1): Make "exp" parameter const.
9610 (output_command): Rename to ...
9611 (output_command_const): ... this. Make "exp" parameter const.
9612 (output_command): Reimplement.
9613 (x_command): Adjust.
9614 (display_command): Rename "exp" parameter to "arg". New "exp"
9615 local, const version of "arg".
9616 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9617 "cmd_name" local const.
9618 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9619 call.
9620 (cmdpy_completer): Make "text" and "word" parameters const.
9621 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9622 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9623 const.
9624 * remote.c (_initialize_remote): Make "cmd_name" local const.
9625 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9626 parameters const. Adjust.
9627 (completion_list_add_fields): Make "sym_text", "text" and "word"
9628 parameters const.
9629 (struct add_name_data) <sym_text, text, word>: Make fields const.
9630 (default_make_symbol_completion_list_break_on): Make "text" and
9631 "word" parameters const. Adjust locals.
9632 (default_make_symbol_completion_list)
9633 (make_symbol_completion_list, make_symbol_completion_type)
9634 (make_symbol_completion_list_fn): Make "text" and "word"
9635 parameters const.
9636 (make_file_symbol_completion_list): Make "text", "word" and
9637 "srcfile" parameters const. Adjust locals.
9638 (add_filename_to_list): Make "text" and "word" parameters const.
9639 (struct add_partial_filename_data) <text, word>: Make fields
9640 const.
9641 (make_source_files_completion_list): Make "text" and "word"
9642 parameters const.
9643 * symtab.h (default_make_symbol_completion_list_break_on)
9644 (default_make_symbol_completion_list, make_symbol_completion_list)
9645 (make_symbol_completion_type enum type_code)
9646 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9647 (make_source_files_completion_list): Change prototype.
9648 * top.c (execute_command): Adjust to pass pointer to pointer to
9649 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9650 change.
9651 (set_verbose): Make "cmdname" local const.
9652 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9653 and adjust.
9654 (validate_actionline): Make "line" parameter a pointer to const
9655 char, and adjust.
9656 (encode_actions_1): Make "action_exp" local const, and adjust.
9657 (encode_actions): Adjust.
9658 (replace_comma): Delete.
9659 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9660 const, and adjust. Don't frob the action string while splitting
9661 it at commas. Instead, make a copy of each split substring in
9662 turn.
9663 (trace_dump_command): Adjust to validate_actionline prototype
9664 change.
9665 * tracepoint.h (decode_agent_options, decode_agent_options)
9666 (encode_actions, validate_actionline): Change prototypes.
9667 * valprint.h (output_command): Delete declaration.
9668 (output_command_const): Declare.
9669 * value.c (function_destroyer): Cast const away in xfree call.
9670
9671 2013-03-13 Pedro Alves <palves@redhat.com>
9672
9673 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9674 rather than casting 'const char * const *' to 'const char **'.
9675 * ada-lex.l (processInt): Make "trailer" local const. Remove
9676 'const char **' cast.
9677 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9678 locals, and use those as strtol output pointer, instead than doing
9679 invalid casts to from 'const char **' to 'char **'.
9680 (_initialize_demangle): Remove cast.
9681 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9682 locals, and use those as strtol output pointer, instead than doing
9683 invalid casts to from 'const char **' to 'char **'.
9684 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9685 casts.
9686 * stap-probe.c (stap_parse_register_operand)
9687 (stap_parse_single_operand): Likewise.
9688
9689 2013-03-13 Yao Qi <yao@codesourcery.com>
9690
9691 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9692 the last matched 'V' blcok in trace frame.
9693
9694 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9695
9696 * NEWS: Create a new section for the next release branch.
9697 Rename the section of the current branch, now that it has
9698 been cut.
9699
9700 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9701
9702 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9703 * version.in: Bump version to 7.6.50.20130312-cvs.
9704
9705 2013-03-12 Keith Seitz <keiths@redhat.com>
9706
9707 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9708 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9709 Remove temporary copy of input string.
9710 (mi_execute_command_wrapper): Make "cmd" const.
9711 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9712 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9713 Use const strings.
9714 (mi_parse): Make "cmd" const.
9715 Use const strings.
9716 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9717
9718 2013-03-12 Keith Seitz <keiths@redhat.com>
9719
9720 * ada-lang.c (ada_read_renaming_var_value): Pass const
9721 pointer to expression string to parse_exp_1.
9722 (create_excep_cond_exprs): Likewise.
9723 * ax-gdb.c (agent_eval_command_one): Likewise.
9724 (maint_agent_printf_command): Likewise.
9725 Constify much of the string handling/parsing.
9726 * breakpoint.c (set_breakpoint_condition): Pass const
9727 pointer to expression string to parse_exp_1.
9728 (update_watchpoint): Likewise.
9729 (parse_cmd_to_aexpr): Constify string handling.
9730 Pass const pointer to parse_exp_1.
9731 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9732 (find_condition_and_thread): Likewise.
9733 Make TOK const.
9734 (watch_command_1): Make "arg" const.
9735 Constify string handling.
9736 Copy the expression string instead of changing the input
9737 string.
9738 (update_breakpoint_location): Pass const pointer to
9739 parse_exp_1.
9740 * eval.c (parse_and_eval_address): Make "exp" const.
9741 (parse_to_comma_and_eval): Make "expp" const.
9742 (parse_and_eval): Make "exp" const.
9743 * expression.h (parse_expression): Make argument const.
9744 (parse_exp_1): Make first argument const.
9745 * findcmd.c (parse_find_args): Treat "args" as const.
9746 * linespec.c (parse_linespec): Pass const pointer to
9747 linespec_expression_to_pc.
9748 (linespec_expression_to_pc): Make "exp_ptr" const.
9749 * parse.c (parse_exp_1): Make "stringptr" const.
9750 Make a copy of the expression to pass to parse_exp_in_context until
9751 this whole interface can be constified.
9752 (parse_expression): Make "string" const.
9753 * printcmd.c (ui_printf): Treat "arg" as const.
9754 Handle const strings.
9755 * tracepoint.c (validate_actionline): Pass const pointer to
9756 all calls to parse_exp_1.
9757 (encode_actions_1): Likewise.
9758 * value.h (parse_to_comma_and_eval): Make argument const.
9759 (parse_and_eval_address): Likewise.
9760 (parse_and_eval): Likewise.
9761 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9762 (varobj_set_value): Likewise.
9763 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9764 constify string handling.
9765 Pass const pointers to parse_and_eval_address and
9766 parse_to_comman_and_eval.
9767 * cli/cli-utils.c (skip_to_space): Rename to ...
9768 (skip_to_space_const): ... this. Handle const strings.
9769 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9770 skip_to_space_const.
9771 (skip_to_space_const): Declare.
9772 * common/format.c (parse_format_string): Make "arg" const.
9773 Handle const strings.
9774 * common/format.h (parse_format_string): Make "arg" const.
9775 * gdbserver/ax.c (ax_printf): Make "format" const.
9776 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9777 of the expression string.
9778
9779 2013-03-12 Hui Zhu <hui@codesourcery.com>
9780
9781 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9782
9783 2013-03-12 Yao Qi <yao@codesourcery.com>
9784 Hui Zhu <hui@codesourcery.com>
9785
9786 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9787 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9788 DW_OP_deref_size.
9789
9790 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9791
9792 * ada-lex.l (rules): Only recognize 'thread' as a
9793 delimiter when followed by numerals, as for c-exp.y.
9794 Use new rewind_to_char function to rewind the input for
9795 expression-delimiting tokens.
9796 (rewind_to_char): New function.
9797
9798 2013-03-11 Pedro Alves <palves@redhat.com>
9799 Jan Kratochvil <jan.kratochvil@redhat.com>
9800
9801 * configure: Regenerate.
9802 * configure.ac (check dynamic export flag): Link python test with
9803 $PYTHON_LIBS.
9804
9805 2013-03-11 Doug Evans <dje@google.com>
9806 Keith Seitz <keiths@redhat.com>
9807
9808 * linespec.c (find_linespec_symbols): Call find_function_symbols
9809 first, and then call lookup_prefix_sym/find_method.
9810
9811 2013-03-11 Pedro Alves <palves@redhat.com>
9812
9813 * charset.c (convert_between_encodings): Don't cast between
9814 different pointer to pointer types. Instead, make the 'inp' local
9815 be of the type iconv expects.
9816 (wchar_iterate): Don't cast between different pointer to pointer
9817 types. Instead, use new pointer local of the type iconv expects.
9818 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9819 Add new local of type char pointer, and use it to get a
9820 char/string view of the byte buffer, instead of casting between
9821 pointer to pointer types.
9822
9823 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9824
9825 * remote.c (remote_set_trace_buffer_size): Move != operator
9826 to the start of next line to fix an ARI warning.
9827
9828 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9829
9830 * NEWS: Add record changes.
9831
9832 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9833
9834 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9835 the instruction history disassembly.
9836 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9837 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9838
9839 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9840
9841 * Makefile.in (SFILES): Add record-btrace.c
9842 (COMMON_OBS): Add record-btrace.o
9843 * record-btrace.c: New.
9844 * objfiles.c: Include btrace.h.
9845 (free_objfile): call btrace_free_objfile.
9846
9847 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9848
9849 * target.c (target_call_history, target_call_history_from,
9850 target_call_history_range): New.
9851 * target.h (target_ops) <to_call_history, to_call_history_from,
9852 to_call_history_range>: New fields.
9853 (target_call_history, target_call_history_from,
9854 target_call_history_range): New declaration.
9855 * record.c (get_call_history_modifiers, cmd_record_call_history,
9856 record_call_history_size): New.
9857 (_initialize_record): Add the "record function-call-history" command.
9858 Add "set/show record function-call-history-size" commands.
9859 * record.h (record_print_flag): New.
9860
9861 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9862
9863 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9864 to_insn_history_range>: New fields.
9865 (target_insn_history): New.
9866 (target_insn_history_from): New.
9867 (target_insn_history_range): New.
9868 * target.c (target_insn_history): New.
9869 (target_insn_history_from): New.
9870 (target_insn_history_range): New.
9871 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9872 (record_insn_history_size): New.
9873 (get_insn_number): New.
9874 (get_context_size): New.
9875 (no_chunk): New.
9876 (get_insn_history_modifiers): New.
9877 (cmd_record_insn_history): New.
9878 (_initialize_record): Add "set/show record instruction-history-size"
9879 command. Add "record instruction-history" command.
9880
9881 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9882
9883 * record.h (record_disconnect): New.
9884 (record_detach): New.
9885 (record_mourn_inferior): New.
9886 (record_kill): New.
9887 * record-full.c (record_disconnect, record_detach,
9888 record_mourn_inferior, record_kill): Move to...
9889 * record.c: ...here.
9890 (DEBUG): New.
9891 (record_stop): New.
9892 (record_unpush): New.
9893 (cmd_record_stop): Call record_stop. Replace unpush_target
9894 call with record_unpush call.
9895 (record_disconnect, record_detach): Assert that the target
9896 is of record stratum. Call record_unpush, record_stop, and
9897 DEBUG.
9898 (record_mourn_inferior, record_kill): Assert that the target
9899 is of record stratum. Call record_unpush and DEBUG.
9900
9901 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9902
9903 * record-full.h, record-full.c (record_memory_query): Rename
9904 to ...
9905 (record_full_memory_query): ...this. Update all users.
9906 (record_arch_list_add_reg): Rename to ...
9907 (record_full_arch_list_add_reg): ...this. Update all users.
9908 (record_arch_list_add_mem): Rename to ...
9909 (record_full_arch_list_add_mem): ...this. Update all users.
9910 (record_arch_list_add_end): Rename to ...
9911 (record_full_arch_list_add_end): ...this. Update all users.
9912 (record_gdb_operation_disable_set): Rename to ...
9913 (record_full_gdb_operation_disable_set): ...this.
9914 Update all users.
9915
9916 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9917
9918 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9919 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9920 (RECORD_IS_REPLAY): Renamed to ...
9921 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9922 (RECORD_FILE_MAGIC): Renamed to ...
9923 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9924 (record_mem_entry): Renamed to ...
9925 (record_full_mem_entry): ... this. Updated all users.
9926 (record_reg_entry): Renamed to ...
9927 (record_full_reg_entry): ... this. Updated all users.
9928 (record_end_entry): Renamed to ...
9929 (record_full_end_entry): ... this. Updated all users.
9930 (record_type) <record_end, record_reg, record_mem>: Renamed
9931 to ...
9932 (record_full_type) <record_full_end, record_full_reg,
9933 record_full_mem>: ... this. Updated all users.
9934 (record_entry): Renamed to ...
9935 (record_full_entry): ... this. Updated all users.
9936 (record_core_buf_entry): Renamed to ...
9937 (record_full_core_buf_entry): ... this. Updated all users.
9938 (record_core_regbuf): Renamed to ...
9939 (record_full_core_regbuf): ... this. Updated all users.
9940 (record_core_start): Renamed to ...
9941 (record_full_core_start): ... this. Updated all users.
9942 (record_core_end): Renamed to ...
9943 (record_full_core_end): ... this. Updated all users.
9944 (record_core_buf_list): Renamed to ...
9945 (record_full_core_buf_list): ... this. Updated all users.
9946 (record_first): Renamed to ...
9947 (record_full_first): ... this. Updated all users.
9948 (record_list): Renamed to ...
9949 (record_full_list): ... this. Updated all users.
9950 (record_arch_list_head): Renamed to ...
9951 (record_full_arch_list_head): ... this. Updated all users.
9952 (record_arch_list_tail): Renamed to ...
9953 (record_full_arch_list_tail): ... this. Updated all users.
9954 (record_stop_at_limit): Renamed to ...
9955 (record_full_stop_at_limit): ... this. Updated all users.
9956 (record_insn_max_num): Renamed to ...
9957 (record_full_insn_max_num): ... this. Updated all users.
9958 (record_insn_num): Renamed to ...
9959 (record_full_insn_num): ... this. Updated all users.
9960 (record_insn_count): Renamed to ...
9961 (record_full_insn_count): ... this. Updated all users.
9962 (record_ops): Renamed to ...
9963 (record_full_ops): ... this. Updated all users.
9964 (record_core_ops): Renamed to ...
9965 (record_full_core_ops): ... this. Updated all users.
9966 (set_record_cmdlist): Renamed to ...
9967 (set_record_full_cmdlist): ... this. Updated all users.
9968 (show_record_cmdlist): Renamed to ...
9969 (show_record_full_cmdlist): ... this. Updated all users.
9970 (record_cmdlist): Renamed to ...
9971 (record_full_cmdlist): ... this. Updated all users.
9972 (record_beneath_to_resume_ops): Renamed to ...
9973 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9974 (record_beneath_to_resume): Renamed to ...
9975 (record_full_beneath_to_resume): ... this. Updated all users.
9976 (record_beneath_to_wait_ops): Renamed to ...
9977 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9978 (record_beneath_to_wait): Renamed to ...
9979 (record_full_beneath_to_wait): ... this. Updated all users.
9980 (record_beneath_to_store_registers_ops): Renamed to ...
9981 (record_full_beneath_to_store_registers_ops): ... this.
9982 Updated all users.
9983 (record_beneath_to_store_registers): Renamed to ...
9984 (record_full_beneath_to_store_registers): ... this.
9985 Updated all users.
9986 (record_beneath_to_xfer_partial_ops): Renamed to ...
9987 (record_full_beneath_to_xfer_partial_ops): ... this.
9988 Updated all users.
9989 (record_beneath_to_xfer_partial): Renamed to ...
9990 (record_full_beneath_to_xfer_partial): ... this.
9991 Updated all users.
9992 (record_beneath_to_insert_breakpoint): Renamed to ...
9993 (record_full_beneath_to_insert_breakpoint): ... this.
9994 Updated all users.
9995 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9996 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9997 Updated all users.
9998 (record_beneath_to_stopped_data_address): Renamed to ...
9999 (record_full_beneath_to_stopped_data_address): ... this.
10000 Updated all users.
10001 (record_beneath_to_async): Renamed to ...
10002 (record_full_beneath_to_async): ... this. Updated all users.
10003 (record_goto_insn): Renamed to ...
10004 (record_full_goto_insn): ... this. Updated all users.
10005 (record_save): Renamed to ...
10006 (record_full_save): ... this. Updated all users.
10007 (record_reg_alloc): Renamed to ...
10008 (record_full_reg_alloc): ... this. Updated all users.
10009 (record_reg_release): Renamed to ...
10010 (record_full_reg_release): ... this. Updated all users.
10011 (record_mem_alloc): Renamed to ...
10012 (record_full_mem_alloc): ... this. Updated all users.
10013 (record_mem_release): Renamed to ...
10014 (record_full_mem_release): ... this. Updated all users.
10015 (record_end_alloc): Renamed to ...
10016 (record_full_end_alloc): ... this. Updated all users.
10017 (record_end_release): Renamed to ...
10018 (record_full_end_release): ... this. Updated all users.
10019 (record_entry_release): Renamed to ...
10020 (record_full_entry_release): ... this. Updated all users.
10021 (record_list_release): Renamed to ...
10022 (record_full_list_release): ... this. Updated all users.
10023 (record_list_release_following): Renamed to ...
10024 (record_full_list_release_following): ... this.
10025 Updated all users.
10026 (record_list_release_first): Renamed to ...
10027 (record_full_list_release_first): ... this. Updated all users.
10028 (record_arch_list_add): Renamed to ...
10029 (record_full_arch_list_add): ... this. Updated all users.
10030 (record_get_loc): Renamed to ...
10031 (record_full_get_loc): ... this. Updated all users.
10032 (record_check_insn_num): Renamed to ...
10033 (record_full_check_insn_num): ... this. Updated all users.
10034 (record_arch_list_cleanups): Renamed to ...
10035 (record_full_arch_list_cleanups): ... this. Updated all users.
10036 (record_message): Renamed to ...
10037 (record_full_message): ... this. Updated all users.
10038 (record_message_wrapper): Renamed to ...
10039 (record_full_message_wrapper): ... this. Updated all users.
10040 (record_message_wrapper_safe): Renamed to ...
10041 (record_full_message_wrapper_safe): ... this. Updated all users.
10042 (record_gdb_operation_disable): Renamed to ...
10043 (record_full_gdb_operation_disable): ... this. Updated all users.
10044 (record_hw_watchpoint): Renamed to ...
10045 (record_full_hw_watchpoint): ... this. Updated all users.
10046 (record_exec_insn): Renamed to ...
10047 (record_full_exec_insn): ... this. Updated all users.
10048 (record_restore): Renamed to ...
10049 (record_full_restore): ... this. Updated all users.
10050 (record_async_inferior_event_token): Renamed to ...
10051 (record_full_async_inferior_event_token): ... this.
10052 Updated all users.
10053 (record_async_inferior_event_handler): Renamed to ...
10054 (record_full_async_inferior_event_handler): ... this.
10055 Updated all users.
10056 (record_core_open_1): Renamed to ...
10057 (record_full_core_open_1): ... this. Updated all users.
10058 (record_open_1): Renamed to ...
10059 (record_full_open_1): ... this. Updated all users.
10060 (record_open): Renamed to ...
10061 (record_full_open): ... this. Updated all users.
10062 (record_close): Renamed to ...
10063 (record_full_close): ... this. Updated all users.
10064 (record_resume_step): Renamed to ...
10065 (record_full_resume_step): ... this. Updated all users.
10066 (record_resumed): Renamed to ...
10067 (record_full_resumed): ... this. Updated all users.
10068 (record_execution_dir): Renamed to ...
10069 (record_full_execution_dir): ... this. Updated all users.
10070 (record_resume): Renamed to ...
10071 (record_full_resume): ... this. Updated all users.
10072 (record_get_sig): Renamed to ...
10073 (record_full_get_sig): ... this. Updated all users.
10074 (record_sig_handler): Renamed to ...
10075 (record_full_sig_handler): ... this. Updated all users.
10076 (record_wait_cleanups): Renamed to ...
10077 (record_full_wait_cleanups): ... this. Updated all users.
10078 (record_wait_1): Renamed to ...
10079 (record_full_wait_1): ... this. Updated all users.
10080 (record_wait): Renamed to ...
10081 (record_full_wait): ... this. Updated all users.
10082 (record_stopped_by_watchpoint): Renamed to ...
10083 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10084 (record_disconnect): Renamed to ...
10085 (record_full_disconnect): ... this. Updated all users.
10086 (record_detach): Renamed to ...
10087 (record_full_detach): ... this. Updated all users.
10088 (record_mourn_inferior): Renamed to ...
10089 (record_full_mourn_inferior): ... this. Updated all users.
10090 (record_kill): Renamed to ...
10091 (record_full_kill): ... this. Updated all users.
10092 (record_stopped_data_address): Renamed to ...
10093 (record_full_stopped_data_address): ... this. Updated all users.
10094 (record_registers_change): Renamed to ...
10095 (record_full_registers_change): ... this. Updated all users.
10096 (record_store_registers): Renamed to ...
10097 (record_full_store_registers): ... this. Updated all users.
10098 (record_xfer_partial): Renamed to ...
10099 (record_full_xfer_partial): ... this. Updated all users.
10100 (record_breakpoint): Renamed to ...
10101 (record_full_breakpoint): ... this. Updated all users.
10102 (record_breakpoint_p): Renamed to ...
10103 (record_full_breakpoint_p): ... this. Updated all users.
10104 (record_breakpoints): Renamed to ...
10105 (record_full_breakpoints): ... this. Updated all users.
10106 (record_sync_record_breakpoints): Renamed to ...
10107 (record_full_sync_record_breakpoints): ... this.
10108 Updated all users.
10109 (record_init_record_breakpoints): Renamed to ...
10110 (record_full_init_record_breakpoints): ... this.
10111 Updated all users.
10112 (record_insert_breakpoint): Renamed to ...
10113 (record_full_insert_breakpoint): ... this. Updated all users.
10114 (record_remove_breakpoint): Renamed to ...
10115 (record_full_remove_breakpoint): ... this. Updated all users.
10116 (record_can_execute_reverse): Renamed to ...
10117 (record_full_can_execute_reverse): ... this. Updated all users.
10118 (record_get_bookmark): Renamed to ...
10119 (record_full_get_bookmark): ... this. Updated all users.
10120 (record_goto_bookmark): Renamed to ...
10121 (record_full_goto_bookmark): ... this. Updated all users.
10122 (record_async): Renamed to ...
10123 (record_full_async): ... this. Updated all users.
10124 (record_can_async_p): Renamed to ...
10125 (record_full_can_async_p): ... this. Updated all users.
10126 (record_is_async_p): Renamed to ...
10127 (record_full_is_async_p): ... this. Updated all users.
10128 (record_execution_direction): Renamed to ...
10129 (record_full_execution_direction): ... this. Updated all users.
10130 (record_info): Renamed to ...
10131 (record_full_info): ... this. Updated all users.
10132 (record_delete): Renamed to ...
10133 (record_full_delete): ... this. Updated all users.
10134 (record_is_replaying): Renamed to ...
10135 (record_full_is_replaying): ... this. Updated all users.
10136 (record_goto_entry): Renamed to ...
10137 (record_full_goto_entry): ... this. Updated all users.
10138 (record_goto_begin): Renamed to ...
10139 (record_full_goto_begin): ... this. Updated all users.
10140 (record_goto_end): Renamed to ...
10141 (record_full_goto_end): ... this. Updated all users.
10142 (record_goto): Renamed to ...
10143 (record_full_goto): ... this. Updated all users.
10144 (init_record_ops): Renamed to ...
10145 (init_record_full_ops): ... this. Updated all users.
10146 (record_core_resume): Renamed to ...
10147 (record_full_core_resume): ... this. Updated all users.
10148 (record_core_kill): Renamed to ...
10149 (record_full_core_kill): ... this. Updated all users.
10150 (record_core_fetch_registers): Renamed to ...
10151 (record_full_core_fetch_registers): ... this. Updated all users.
10152 (record_core_prepare_to_store): Renamed to ...
10153 (record_full_core_prepare_to_store): ... this. Updated all users.
10154 (record_core_store_registers): Renamed to ...
10155 (record_full_core_store_registers): ... this. Updated all users.
10156 (record_core_xfer_partial): Renamed to ...
10157 (record_full_core_xfer_partial): ... this. Updated all users.
10158 (record_core_insert_breakpoint): Renamed to ...
10159 (record_full_core_insert_breakpoint): ... this. Updated all users.
10160 (record_core_remove_breakpoint): Renamed to ...
10161 (record_full_core_remove_breakpoint): ... this. Updated all users.
10162 (record_core_has_execution): Renamed to ...
10163 (record_full_core_has_execution): ... this. Updated all users.
10164 (init_record_core_ops): Renamed to ...
10165 (init_record_full_core_ops): ... this. Updated all users.
10166 (cmd_record_restore): Renamed to ...
10167 (cmd_record_full_restore): ... this. Updated all users.
10168 (record_save_cleanups): Renamed to ...
10169 (record_full_save_cleanups): ... this. Updated all users.
10170 (cmd_record_start): Renamed to ...
10171 (cmd_record_full_start): ... this. Updated all users.
10172 (set_record_insn_max_num): Renamed to ...
10173 (set_record_full_insn_max_num): ... this. Updated all users.
10174 (set_record_command): Renamed to ...
10175 (set_record_full_command): ... this. Updated all users.
10176 (show_record_command): Renamed to ...
10177 (show_record_full_command): ... this. Updated all users.
10178 (_initialize_record): Renamed to ...
10179 (_initialize_record_full): ... this. Updated all users.
10180
10181 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10182
10183 * record.h: Split into this and ...
10184 * record-full.h: ... this.
10185 * record.c: Split into this and ...
10186 * record-full.c: ... this.
10187 * target.h (target_ops): Add new fields to_info_record,
10188 to_save_record, to_delete_record, to_record_is_replaying,
10189 to_goto_record_begin, to_goto_record_end, to_goto_record.
10190 (target_info_record): New.
10191 (target_save_record): New.
10192 (target_supports_delete_record): New.
10193 (target_delete_record): New.
10194 (target_record_is_replaying): New.
10195 (target_goto_record_begin): New.
10196 (target_goto_record_end): New.
10197 (target_goto_record): New.
10198 * target.c (target_info_record): New.
10199 (target_save_record): New.
10200 (target_supports_delete_record): New.
10201 (target_delete_record): New.
10202 (target_record_is_replaying): New.
10203 (target_goto_record_begin): New.
10204 (target_goto_record_end): New.
10205 (target_goto_record): New.
10206 * record.h: Declare struct cmd_list_element.
10207 (record_cmdlist): New declaration.
10208 (set_record_cmdlist): New declaration.
10209 (show_record_cmdlist): New declaration.
10210 (info_record_cmdlist): New declaration.
10211 (cmd_record_goto): New declaration.
10212 * record.c: Remove unnecessary includes.
10213 Include inferior.h.
10214 (cmd_record_goto): Remove declaration.
10215 (record_cmdlist): Now extern. Initialize.
10216 (set_record_cmdlist): Now extern. Initialize.
10217 (show_record_cmdlist): Now extern. Initialize.
10218 (info_record_cmdlist): Now extern. Initialize.
10219 (find_record_target): New.
10220 (require_record_target): New.
10221 (cmd_record_start): Update.
10222 (cmd_record_delete): Remove target-specific code.
10223 Call target_delete_record.
10224 (cmd_record_stop): Unpush any record target.
10225 (set_record_insn_max_num): Move to record-full.c
10226 (set_record_command): Add comment.
10227 (show_record_command): Add comment.
10228 (info_record_command): Update comment.
10229 Remove target-specific code.
10230 Call the record target's to_info_record.
10231 (cmd_record_start): New.
10232 (cmd_record_goto): Now extern.
10233 Remove target-specific code.
10234 Call target_goto_begin, target_goto_end, or target_goto.
10235 (_initialize_record): Move record target ops initialization to
10236 record-full.c.
10237 Change "record" command help text.
10238 Move "record restore", "record set", and "record show" commands to
10239 record-full.c.
10240 * Makefile.in (SFILES): Add record-full.c.
10241 (HFILES_NO_SRCDIR): Add record-full.h.
10242 (COMMON_OBS): Add record-full.o.
10243 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10244 * arm-tdep.c: Include record-full.h.
10245 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10246 * i386-tdep.c: Include record-full.h.
10247 * infrun.c: Include record-full.h.
10248 * linux-record.c: Include record-full.h.
10249 * moxie-tdep.c: Include record-full.h.
10250 * record-full.c: Include record-full.h.
10251 Change module comment.
10252 (set_record_full_cmdlist): New.
10253 (show_record_full_cmdlist): New.
10254 (record_full_cmdlist): New.
10255 (record_goto_insn): New declaration.
10256 (record_save): New declaration.
10257 (record_check_insn_num): Change query string.
10258 (record_info): New.
10259 (record_delete): New.
10260 (record_is_replaying): New.
10261 (record_goto_entry): New.
10262 (record_goto_begin): New.
10263 (record_goto_end): New.
10264 (record_goto): New.
10265 (init_record_ops): Update.
10266 (init_record_core_ops): Update.
10267 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10268 (cmd_record_start): New.
10269 (set_record_insn_max_num): Moved from record.c
10270 (set_record_full_command): New.
10271 (show_record_full_command): New.
10272 (_initialize_record_full): New.
10273
10274 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10275
10276 * target.h (add_deprecated_target_alias): New.
10277 * target.c (add_deprecated_target_alias): New.
10278
10279 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10280
10281 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10282 and signal.h.
10283 (linux_supports_btrace): Add kernel and
10284 cpuid check.
10285 (kernel_supports_btrace): New function.
10286 (cpu_supports_btrace): New function.
10287 (intel_supports_btrace): New function.
10288
10289 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10290
10291 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10292 * remote.c: Include btrace.h.
10293 (struct btrace_target_info): New struct.
10294 (remote_supports_btrace): New function.
10295 (send_Qbtrace): New function.
10296 (remote_enable_btrace): New function.
10297 (remote_disable_btrace): New function.
10298 (remote_teardown_btrace): New function.
10299 (remote_read_btrace): New function.
10300 (init_remote_ops): Add btrace ops.
10301 (enum <unnamed>): Add btrace packets.
10302 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10303 (_initialize_remote): Add packet configuration for branch tracing.
10304
10305 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10306
10307 * features/btrace.dtd: New file.
10308 * Makefile.in (XMLFILES): Add btrace.dtd.
10309 * btrace.h (parse_xml_btrace): New declaration.
10310 * btrace.c: Include xml-support.h.
10311 (parse_xml_btrace): New function.
10312 (parse_xml_btrace_block): New function.
10313 (block_attributes): New struct.
10314 (btrace_attributes): New struct.
10315 (btrace_children): New struct.
10316 (btrace_elements): New struct.
10317
10318 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10319
10320 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10321 (amd64_linux_enable_btrace): New.
10322 (amd64_linux_disable_btrace): New.
10323 (amd64_linux_teardown_btrace): New.
10324 (_initialize_amd64_linux_nat): Initialize btrace ops.
10325 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10326 (i386_linux_enable_btrace): New.
10327 (i386_linux_disable_btrace): New.
10328 (i386_linux_teardown_btrace): New.
10329 (_initialize_i386_linux_nat): Initialize btrace ops.
10330 * config/i386/linux.mh: Add linux-btrace.o.
10331 * config/i386/linux64.mh: Add linux-btrace.o.
10332
10333 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10334
10335 * common/linux_btrace.h: New file.
10336 * common/linux_btrace.c: New file.
10337 * Makefile.in (SFILES): Add btrace.c.
10338 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10339 (COMMON_OBS): Add btrace.o.
10340 (linux-btrace.o): New rule.
10341
10342 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10343
10344 * target.h: Include btrace.h.
10345 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10346 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10347 * target.c (target_supports_btrace): New function.
10348 (target_enable_btrace): New function.
10349 (target_disable_btrace): New function.
10350 (target_teardown_btrace): New function.
10351 (target_read_btrace): New function.
10352 * btrace.h: New file.
10353 * btrace.c: New file.
10354 * Makefile.in: Add btrace.c.
10355 * gdbthread.h: Include btrace.h.
10356 (struct thread_info): Add btrace field.
10357 * thread.c: Include btrace.h.
10358 (clear_thread_inferior_resources): Call target_teardown_btrace.
10359 * common/btrace-common.h: New file.
10360
10361 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10362
10363 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10364 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10365 kill_status to outer block.
10366
10367 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10368
10369 Fix entry-values if the callee called a noreturn function.
10370 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10371 get_frame_address_in_block. Add new comment.
10372
10373 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10374
10375 Fix entry-values in C++ across CUs.
10376 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10377 lookup_minimal_symbol. Add a comment.
10378 * dwarf2read.c
10379 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10380 DW_AT_linkage_name.
10381
10382 2013-03-08 Yao Qi <yao@codesourcery.com>
10383
10384 * tracepoint.c (_initialize_tracepoint): Indent the code.
10385
10386 2013-03-08 Pedro Alves <palves@redhat.com>
10387
10388 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10389 (parse_find_args, find_command): Change type of pattern buffer
10390 locals to 'gdb_byte *'.
10391
10392 2013-03-08 Stan Shebs <stan@codesourcery.com>
10393 Hafiz Abid Qadeer <abidh@codesourcery.com>
10394
10395 * NEWS: Mention set and show trace-buffer-size commands.
10396 Mention new packet.
10397 * target.h (struct target_ops): New method
10398 to_set_trace_buffer_size.
10399 (target_set_trace_buffer_size): New macro.
10400 * target.c (update_current_target): Set up new method.
10401 * tracepoint.c (trace_buffer_size): New global.
10402 (start_tracing): Send it to the target.
10403 (set_trace_buffer_size): New function.
10404 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10405 * remote.c (remote_set_trace_buffer_size): New function.
10406 (_initialize_remote): Use it.
10407 (QTBuffer:size) New remote command.
10408 (PACKET_QTBuffer_size): New enum.
10409 (remote_protocol_features): Add an entry for
10410 PACKET_QTBuffer_size.
10411
10412 2013-03-08 Tom Tromey <tromey@redhat.com>
10413
10414 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10415 variable.
10416
10417 2013-03-07 Pedro Alves <palves@redhat.com>
10418
10419 * target.c (target_read_stralloc, target_fileio_read_alloc):
10420 *Cast pointer to 'gdb_byte *' in target call.
10421
10422 2013-03-07 Pedro Alves <palves@redhat.com>
10423
10424 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10425 call.
10426
10427 2013-03-07 Keith Seitz <keiths@redhat.com>
10428
10429 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10430 (trace_pass_command): Likewise.
10431 * cli/cli-cmds.c: Include cli/cli-utils.h.
10432 (source_command): Use skip-spaces.
10433 (disassemble_command): Likewise.
10434 * findcmd.c: Include cli/cli-utils.h.
10435 (parse_find_args): Use skip_spaces.
10436 * go32-nat.c: Include cli/cli-utils.h.
10437 (go32_sldt): Use skip_spaces.
10438 (go32_sgdt): Likewise.
10439 (go32_sidt): Likewise.
10440 (go32_pde): Likewise.
10441 (go32_pte): Likewise.
10442 (go32_pte_for_address): Likewise.
10443 * infcmd.c: Include cli/cli-utils.h.
10444 (registers_info): Use skip_spaces.
10445 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10446 (linux_info_proc): Likewise.
10447 * linux-thread-db.c: Include cli/cli-utils.h.
10448 (info_auto_load_libthread_db): Use skip_spaces_const.
10449 * m32r-rom.c: Include cli/cli-utils.h.
10450 (m32r_upload_command): Use skip_spaces.
10451 * maint.c: Include cli/cli-utils.h.
10452 (maintenance_translate_address): Use skip_spaces.
10453 * mi/mi-parse.c: Include cli/cli-utils.h.
10454 (mi_parse_argv): Use skip_spaces.
10455 (mi_parse): Likewise.
10456 * minsyms.c: Include cli/cli-utils.h.
10457 (msymbol_hash_iw): Use skip_spaces_const.
10458 * objc-lang.c: Include cli/cli-utils.h.
10459 (parse_selector): Use skip_spaces.
10460 (parse_method): Likewise.
10461 * python/python.c: Include cli/cli-utils.h.
10462 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10463 (python_command)[HAVE_PYTHON]: Likewise.
10464 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10465 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10466 (m32r_load): Use skip_spaces.
10467 * serial.c: Include cli/cli-utils.h.
10468 (serial_open): Use skip_spaces_const.
10469 * stack.c: Include cli/cli-utils.h.
10470 (parse_frame_specification_1): Use skip_spaces_const.
10471 * symfile.c: Include cli/cli-utils.h.
10472 (set_ext_lang_command): Use skip_spaces.
10473 * symtab.c: Include cli/cli-utils.h.
10474 (rbreak_command): Use skip_spaces.
10475 * thread.c (thread_name_command): Use skip_spaces.
10476 * tracepoint.c (validate_actionline): Use skip_spaces.
10477 (encode_actions_1): Likewise.
10478 (trace_find_range_command): Likewise.
10479 (trace_find_outside_command): Likewise.
10480 (trace_dump_actions): Likewise.
10481
10482 2013-03-07 Pedro Alves <palves@redhat.com>
10483
10484 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10485 * expprint.c (print_subexp_standard): Likewise.
10486 * utils.c (host_char_to_target): Likewise.
10487 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10488 * varobj.c (value_get_print_value): Change type of local to char*.
10489 Cast it gdb_byte * in call to language printer.
10490
10491 2013-03-07 Pedro Alves <palves@redhat.com>
10492
10493 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10494 gdb_byte *'.
10495 (make_wchar_iterator): Remove cast to char*.
10496 (wchar_iterate): Change type of local.
10497
10498 2013-03-07 Pedro Alves <palves@redhat.com>
10499
10500 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10501 for 'regcache->register_status'.
10502
10503 2013-03-07 Pedro Alves <palves@redhat.com>
10504
10505 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10506 int.
10507
10508 2013-03-07 Pedro Alves <palves@redhat.com>
10509
10510 * stap-probe.c (handle_stap_probe): Add cast to char*.
10511
10512 2013-03-07 Pedro Alves <palves@redhat.com>
10513
10514 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10515 RECORD_MSGRCV>: Pass a signed variable to
10516 regcache_raw_read_signed, instead of an unsigned one.
10517
10518 2013-03-07 Pedro Alves <palves@redhat.com>
10519
10520 * remote-notif.c (notif_debug): Change type to int.
10521 * remote-notif.h (notif_debug): Likewise.
10522
10523 2013-03-07 Pedro Alves <palves@redhat.com>
10524
10525 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10526
10527 2013-03-07 Pedro Alves <palves@redhat.com>
10528
10529 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10530 * remote.h (hex2bin, bin2hex): ... here.
10531 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10532
10533 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10534
10535 * utils.c (initialize_utils): Improve doc strings of "set/show
10536 width", "set/show height", and "set/show pagination".
10537
10538 2013-03-06 Keith Seitz <keiths@redhat.com>
10539
10540 * ax-gdb.c (gen_printf): Make FORMAT const.
10541 * ax-gdb.h (gen_printf): Likewise.
10542 * ax-general.c (ax_string): Make STR const.
10543 * ax.h (ax_string): Likewise.
10544
10545 2013-03-06 Doug Evans <dje@google.com>
10546
10547 * elfread.c (elf_symfile_read): Move debugging printf to more
10548 logical location.
10549
10550 2013-03-06 Pedro Alves <palves@redhat.com>
10551
10552 * python/py-utils.c (target_string_to_unicode): Delete function.
10553 * python/python-internal.h (target_string_to_unicode): Delete
10554 declaration.
10555
10556 2013-03-06 Pierre Muller <muller@sourceware.org>
10557
10558 * linespec.c (get_current_search_block): ARI fix, use (void)
10559 for empty parameter list.
10560
10561 2013-03-05 Doug Evans <dje@google.com>
10562
10563 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10564 of old ada_lookup_symbol_list. In !full_search case, don't
10565 search superblocks.
10566 (ada_lookup_symbol_list): Delete arg full_search, all callers
10567 updated. Call ada_lookup_symbol_list_worker.
10568 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10569 * ada-lang.h (ada_lookup_symbol_list): Update.
10570 * language.h (language_defn): Update comment for
10571 la_iterate_over_symbols.
10572 * linespec.c (iterate_over_file_blocks): New function.
10573 (iterate_over_all_matching_symtabs): Call it.
10574 (lookup_prefix_sym): Ditto.
10575 (get_current_search_block): New function.
10576 (get_search_block): Delete.
10577 (find_label_symbols): Call get_current_search_block.
10578 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10579 * symtab.c (iterate_over_symbols): Don't search superblocks.
10580
10581 2013-03-05 Yao Qi <yao@codesourcery.com>
10582
10583 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10584 parameter VAR's type from "unsigned int" to "int".
10585 * command.h (var_zuinteger_unlimited): Update its comments.
10586 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10587
10588 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10589
10590 * NEWS: Mention new target x86_64-*-cygwin*.
10591
10592 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10593
10594 * configure.host: Add x86_64-*-cygwin* as host.
10595 * configure.tgt: Add x86_64-*-cygwin* as target.
10596 * config/i386/cygwin64.mh: New file.
10597
10598 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10599
10600 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10601
10602 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10603
10604 * linespec.c (struct linespec_canonical_name): New.
10605 (struct linespec_state): Change canonical_names type to it.
10606 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10607 xrealloc element size. Initialize the different CANONICAL fields.
10608 (canonical_to_fullform): New.
10609 (filter_results): Use it. Add variables canonical, fullform and
10610 cleanup.
10611 (struct decode_line_2_item, decode_line_2_compare_items): New.
10612 (decode_line_2): Remove variables iter and item_names, add variables
10613 items and items_count. Modify the code for these new variables.
10614
10615 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10616
10617 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10618 calling do_cleanup.
10619
10620 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10621
10622 * tracepoint.c (build_traceframe_info): Add code for byte order.
10623
10624 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10625
10626 * v850-tdep.c: (v850e2_register_name): Revise system register
10627 names to match current V850E2M architecture specifications.
10628 Update register number enum comments too.
10629
10630 2013-03-01 Jiong Wang <jiwang@tilera.com>
10631 Pedro Alves <palves@redhat.com>
10632
10633 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10634 to END_ADDR.
10635 (tilegx_skip_prologue): Limit prologue analysis to section end.
10636
10637 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10638
10639 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10640 use it.
10641
10642 2013-03-01 Pedro Alves <palves@redhat.com>
10643
10644 Use gdb_byte for bytes from the program being debugged.
10645
10646 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10647 Change type of local 'buf' to gdb_byte.
10648 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10649 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10650 * cris-tdep.c (cris_sigcontext_addr)
10651 (cris_sigtramp_frame_unwind_cache): Likewise.
10652 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10653 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10654 Likewise.
10655 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10656 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10657 (hppa32_hpux_search_dummy_call_sequence)
10658 (hppa_hpux_supply_save_state): Likewise.
10659 * hppa-linux-tdep.c (insns_match_pattern)
10660 (hppa_linux_find_global_pointer): Likewise.
10661 * hppa-tdep.c (hppa_in_function_epilogue_p)
10662 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10663 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10664 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10665 (i386fbsd_collect_uthread): Likewise.
10666 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10667 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10668 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10669 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10670 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10671 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10672 (ia64_libunwind_frame_prev_register)
10673 (ia64_libunwind_sigtramp_frame_this_id)
10674 (ia64_find_global_pointer_from_dynamic_section)
10675 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10676 (ia64_unwind_pc): Likewise.
10677 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10678 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10679 (m68hc11_extract_return_value): Likewise.
10680 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10681 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10682 (mep_get_insn, mep_push_dummy_call): Likewise.
10683 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10684 (mips_linux_in_dynsym_stub): Likewise.
10685 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10686 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10687 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10688 to gdb_byte.
10689 * remote-mips.c (mips_set_register): Likewise.
10690 * remote-sim.c (gdbsim_fetch_register): Likewise.
10691 * score-tdep.c (score7_fetch_inst): Change type of parameter
10692 'memblock' and local 'buf' to gdb_byte.
10693 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10694 Change type of local 'buf' to gdb_byte. Adjust.
10695 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10696 to gdb_byte**.
10697 (score7_analyze_prologue): Change type of 'memblock' and
10698 'memblock_ptr' locals to gdb_byte*.
10699 * sh64-tdep.c (sh64_extract_return_value)
10700 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10701 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10702 * solib-pa64.c (pa64_solib_create_inferior_hook)
10703 (pa64_open_symbol_file_object): Remove local 'buf'.
10704 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10705 (som_open_symbol_file_object): Likewise.
10706 * solib-spu.c (spu_current_sos): Likewise.
10707 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10708 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10709 (spu_store_registers): Likewise.
10710 * target.c (debug_print_register): Likewise.
10711 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10712 * xstormy16-tdep.c (xstormy16_store_return_value)
10713 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10714 (xstormy16_find_jmp_table_entry): Likewise.
10715
10716 2013-03-01 Jiong Wang <jiwang@tilera.com>
10717
10718 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10719 (tilegx_gdbarch_init): Install it.
10720
10721 2013-02-28 Tom Tromey <tromey@redhat.com>
10722
10723 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10724 PyLong_Check.
10725
10726 2013-02-28 Doug Evans <dje@google.com>
10727
10728 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10729 * python/python.c (gdbpy_find_pc_line): Ditto.
10730
10731 2013-02-28 Tom Tromey <tromey@redhat.com>
10732
10733 * contrib/excheck.py: New file.
10734 * contrib/exsummary.py: New file.
10735 * contrib/gcc-with-excheck: New file.
10736
10737 2013-02-28 Tom Tromey <tromey@redhat.com>
10738
10739 * python/python.c (gdbpy_print_stack): Call begin_line and
10740 fprintf_filtered inside TRY_CATCH.
10741
10742 2013-02-28 Tom Tromey <tromey@redhat.com>
10743
10744 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10745 inside TRY_CATCH.
10746
10747 2013-02-28 Tom Tromey <tromey@redhat.com>
10748
10749 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10750 frame_object_to_frame_info inside TRY_CATCH.
10751
10752 2013-02-28 Tom Tromey <tromey@redhat.com>
10753
10754 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10755 TRY_CATCH.
10756
10757 2013-02-28 Tom Tromey <tromey@redhat.com>
10758
10759 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10760
10761 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10762
10763 * windows-nat.c: Throughout, fix format strings and casts of
10764 printf-like functions to avoid type related warnings on all
10765 platforms.
10766 (handle_output_debug_string): Fetch context information address
10767 from debug string using string_to_core_addr.
10768
10769 2013-02-27 Jiong Wang <jiwang@tilera.com>
10770
10771 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10772 * regformats/reg-tilegx32.dat: New.
10773
10774 2013-02-27 Jiong Wang <jiwang@tilera.com>
10775
10776 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10777
10778 2013-02-27 Jiong Wang <jiwang@tilera.com>
10779
10780 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10781
10782 2013-02-27 Yao Qi <yao@codesourcery.com>
10783 Pedro Alves <palves@redhat.com>
10784
10785 * tracepoint.c (tfile_trace_find): For tfind
10786 pc/tp/range/outside, look for the next trace frame instead of
10787 always starting from frame 0.
10788
10789 2013-02-26 Anthony Green <green@moxielogic.com>
10790
10791 * configure.tgt: Add support for moxie-*-rtems* target.
10792
10793 2013-02-25 Pedro Alves <palves@redhat.com>
10794
10795 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10796 warning text.
10797
10798 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10799
10800 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10801 if $fp is used as the virtual frame pointer.
10802
10803 2013-02-23 Alan Modra <amodra@gmail.com>
10804
10805 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10806 symbol size.
10807 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10808 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10809 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10810 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10811
10812 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10813
10814 Code cleanup.
10815 * elfread.c (build_id_bfd_get): Make the return type const.
10816 (build_id_verify): Make the check parameter const.
10817 (build_id_to_debug_filename): Make the build_id parameter and variable
10818 data const.
10819 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10820
10821 2013-02-21 Alan Modra <amodra@gmail.com>
10822
10823 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10824
10825 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10826
10827 Add a new method 'disassemble' to gdb.Architecture class.
10828 * python/py-arch.c (archpy_disassmble): Implementation of the
10829 new method gdb.Architecture.disassemble.
10830 (arch_object_methods): Add entry for the new method.
10831
10832 2013-02-20 Jiong Wang <jiwang@tilera.com>
10833
10834 * MAINTAINERS (Write After Approval): Add myself to the list.
10835
10836 2013-02-19 Pedro Alves <palves@redhat.com>
10837
10838 Garbage collect 'struct monitor_ops'::load_routine.
10839
10840 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10841 * monitor.c (monitor_load): No longer call
10842 current_monitor->load_routine.
10843 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10844 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10845 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10846
10847 2013-02-19 Pedro Alves <palves@redhat.com>
10848
10849 PR gdb/15161
10850
10851 Harmonize with generic_load.
10852
10853 * monitor.c: Include "readline/readline.h".
10854 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10855 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10856 long/strtol for the 'load_offset' local. Error out if no argument
10857 is given or if too many arguments are given. Tilde expand the
10858 passed in file name.
10859
10860 2013-02-19 Kai Tietz <ktietz@redhat.com>
10861
10862 PR gdb/15161
10863 * symfile.c (load_section_data): Change type of load_offset
10864 to CORE_ADDR.
10865 (generic_load): User strtoulst instead of strtoul for conversion
10866 of load_offset.
10867
10868 2013-02-19 Jiong Wang <jiwang@tilera.com>
10869
10870 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10871 for return address, "lr" register, saved on stack.
10872 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10873 after we invoke tilegx_analyze_prologue.
10874
10875 2013-02-19 Jiong Wang <jiwang@tilera.com>
10876
10877 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10878
10879 2013-02-19 Jiong Wang <jiwang@tilera.com>
10880
10881 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10882
10883 2013-02-19 Jiong Wang <jiwang@tilera.com>
10884
10885 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10886 (tilegx_write_pc): New function.
10887 (tilegx_cannot_reference_register): Return zero if REGNO
10888 is TILEGX_FAULTNUM_REGNUM.
10889 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10890 (tilegx_register_name): Add handling of "faultnum" register.
10891 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10892 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10893 handling of TILEGX_FAULTNUM_REGNUM.
10894 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10895
10896 2013-02-19 Jiong Wang <jiwang@tilera.com>
10897
10898 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10899 should be aligned to 64bit.
10900
10901 2013-02-19 Kai Tietz <ktietz@redhat.com>
10902
10903 * windows-nat.c (windows_xfer_memory): Fix debug-output
10904 for LLP64.
10905
10906 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10907
10908 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10909 Don't check DSP register number if HAVE_DSP is not set.
10910
10911 2013-02-19 Alan Modra <amodra@gmail.com>
10912
10913 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10914 throughout file instead.
10915 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10916 Don't xmalloc return value.
10917 (build_id_verify): Similarly. Don't xfree.
10918 (build_id_to_debug_filename): Update.
10919 (find_separate_debug_file_by_buildid): Update, don't xfree.
10920
10921 2013-02-18 Tom Tromey <tromey@redhat.com>
10922
10923 PR gdb/15102:
10924 * dwarf2read.c (read_subrange_type): Use result of
10925 'check_typedef'.
10926
10927 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10928
10929 * frame.c: Remove one extra white space after #include
10930 directive.
10931
10932 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10933
10934 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10935
10936 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10937
10938 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10939 and dir commands into an if block.
10940
10941 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10942
10943 * python/py-breakpoint (struct pybp_code): Use int instead of
10944 enum type_code.
10945
10946 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10947 Hafiz Abid Qadeer <abidh@codesourcery.com>
10948
10949 * NEWS: Mention new field "trace-file".
10950 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10951 (tfile_open): Record the trace file's filename in the trace
10952 status.
10953 (tfile_files_info): Mention the name of the trace file.
10954 Check the "filename" field explicitely.
10955 (trace_status_command): Explicitely check "filename" field.
10956 (trace_find_command): Ditto.
10957 (trace_find_pc_command): Ditto.
10958 (trace_find_tracepoint_command): Ditto.
10959 (trace_find_line_command): Ditto.
10960 (trace_find_range_command): Ditto.
10961 (trace_find_outside_command): Ditto.
10962 * tracepoint.h (struct trace_status) <from_file>: Rename it
10963 to "filename" and make it hold the trace file's filename
10964 instead of a boolean.
10965 * remote.c (remote_get_trace_status): Initialize "filename"
10966 field with NULL instead of 0.
10967
10968 2013-02-15 Yao Qi <yao@codesourcery.com>
10969
10970 * remote.c: Fix a typo.
10971
10972 2013-02-14 Pierre Muller <muller@sourceware.org>
10973
10974 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10975
10976 2013-02-14 Pedro Alves <palves@redhat.com>
10977
10978 * utils.c (savestring): Don't #undef it. Move function to
10979 common/common-utils.c.
10980 * common/common-utils.c: Include gdb_string.h.
10981 (savestring): Move here from utils.c.
10982 * common/common-utils.h (savestring): Declare.
10983
10984 2013-02-14 Pedro Alves <palves@redhat.com>
10985
10986 * utils.c (savestring): Rename parameter 'size' to 'len'.
10987
10988 2013-02-14 Pedro Alves <palves@redhat.com>
10989 Yufeng Zhang <yufeng.zhang@arm.com>
10990
10991 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10992 (aarch64_inferior_data, struct aarch64_inferior_data):
10993 Delete.
10994 (struct aarch64_process_info): New.
10995 (aarch64_process_list): New global.
10996 (aarch64_find_process_pid, aarch64_add_process)
10997 (aarch64_process_info_get): New functions.
10998 (aarch64_inferior_data_get): Delete.
10999 (aarch64_process_info_get): New function.
11000 (aarch64_forget_process): New function.
11001 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11002 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11003 aarch64_get_debug_reg_state.
11004 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11005 instead of linux_nat_iterate_watchpoint_lwps.
11006 (aarch64_linux_new_fork): New function.
11007 (aarch64_linux_child_post_startup_inferior): Use
11008 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11009 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11010 (aarch64_linux_remove_hw_breakpoint)
11011 (aarch64_handle_aligned_watchpoint)
11012 (aarch64_handle_unaligned_watchpoint)
11013 (aarch64_linux_insert_watchpoint)
11014 (aarch64_linux_remove_watchpoint)
11015 (aarch64_linux_stopped_data_address): Adjust to pass the current
11016 process id to aarch64_debug_reg_state.
11017 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11018 linux_nat_new_fork hook, and aarch64_forget_process as
11019 linux_nat_forget_process hook; remove the call to
11020 register_inferior_data_with_cleanup.
11021
11022 2013-02-14 Pedro Alves <palves@redhat.com>
11023
11024 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11025 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11026 lval_memory.
11027
11028 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11029 Hafiz Abid Qadeer <abidh@codesourcery.com>
11030
11031 * tracepoint.h (validate_trace_state_variable_name): Declare.
11032 * tracepoint.c (validate_trace_state_variable_name): New.
11033 (trace_variable_command): Parse the trace state variable's name
11034 without using parse_expression. Do several validations.
11035 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11036 trace state variable's name with parse_expression. Validate it.
11037
11038 2013-02-14 Yao Qi <yao@codesourcery.com>
11039
11040 * infcmd.c (breakpoint_proceeded): Remove it.
11041
11042 2013-02-14 Yao Qi <yao@codesourcery.com>
11043
11044 * tracepoint.c (end_actions_pseudocommand): Make it static.
11045 (while_stepping_pseudocommand): Likewise.
11046 * tracepoint.h (end_actions_pseudocommand): Remove the
11047 declaration.
11048 (while_stepping_pseudocommand): Likewise.
11049
11050 2013-02-14 Yao Qi <yao@codesourcery.com>
11051
11052 * cli/cli-decode.c (help_cmd): Remove the declaration of
11053 "cmdlist".
11054 (help_all): Likewise.
11055
11056 2013-02-13 Pedro Alves <palves@redhat.com>
11057
11058 * amd64-linux-nat.c (update_debug_registers_callback):
11059 Update comment.
11060 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11061 iterate_over_lwps.
11062 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11063 i386_debug_reg_state.
11064 (amd64_linux_new_fork): New function.
11065 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11066 linux_nat_new_fork hook, and i386_forget_process as
11067 linux_nat_forget_process hook.
11068 * i386-linux-nat.c (update_debug_registers_callback):
11069 Update comment.
11070 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11071 iterate_over_lwps.
11072 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11073 i386_debug_reg_state.
11074 (i386_linux_new_fork): New function.
11075 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11076 linux_nat_new_fork hook, and i386_forget_process as
11077 linux_nat_forget_process hook.
11078 * i386-nat.c (i386_init_dregs): Delete.
11079 (i386_inferior_data, struct i386_inferior_data):
11080 Delete.
11081 (struct i386_process_info): New.
11082 (i386_process_list): New global.
11083 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11084 New functions.
11085 (i386_inferior_data_get): Delete.
11086 (i386_process_info_get): New function.
11087 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11088 (i386_forget_process): New function.
11089 (i386_cleanup_dregs): Rewrite.
11090 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11091 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11092 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11093 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11094 to i386_debug_reg_state.
11095 (i386_use_watchpoints): Don't register inferior data.
11096 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11097 adjust comment.
11098 (i386_forget_process): Declare.
11099 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11100 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11101 New static globals.
11102 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11103 (add_initial_lwp): New, factored out from ...
11104 (add_lwp): ... this. Don't check the number of lwps before
11105 calling linux_nat_new_thread.
11106 (linux_nat_iterate_watchpoint_lwps): Delete.
11107 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11108 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11109 forks and vforks.
11110 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11111 initial lwp.
11112 (linux_nat_kill, linux_nat_mourn_inferior): Call
11113 linux_nat_forget_process.
11114 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11115 (linux_nat_forget_process): New functions.
11116 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11117 type.
11118 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11119 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11120 types.
11121 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11122 (linux_nat_forget_process): New declarations.
11123
11124 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11125 (amd64fbsd_mourn_inferior): New function.
11126 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11127 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11128
11129 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11130
11131 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11132 Adding _().
11133
11134 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11135
11136 * aarch64-linux-nat.c (debug_reg_change_callback)
11137 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11138 %s and phex().
11139
11140 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11141
11142 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11143 with LONGEST.
11144
11145 2013-02-13 Pedro Alves <palves@redhat.com>
11146 Hafiz Abid Qadeer <abidh@codesourcery.com>
11147
11148 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11149
11150 2013-02-12 Tom Tromey <tromey@redhat.com>
11151
11152 PR symtab/11464:
11153 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11154 NAME return.
11155 (classify_inner_name): Remove 'first_name' argument, add
11156 'context'. Remove unused variable.
11157 (yylex): Explicitly maintain the context type. Exit loop earlier
11158 if NAME result is seen.
11159
11160 2013-02-12 Pedro Alves <palves@redhat.com>
11161
11162 * amd64-darwin-tdep.c: Add (C) after Copyright.
11163 * cli/cli-cmds.h: Ditto.
11164 * cli/cli-decode.c: Ditto.
11165 * cli/cli-decode.h: Ditto.
11166 * cli/cli-dump.c: Ditto.
11167 * cli/cli-dump.h: Ditto.
11168 * cli/cli-interp.c: Ditto.
11169 * cli/cli-logging.c: Ditto.
11170 * cli/cli-script.c: Ditto.
11171 * cli/cli-script.h: Ditto.
11172 * cli/cli-setshow.c: Ditto.
11173 * cli/cli-setshow.h: Ditto.
11174 * cli/cli-utils.c: Ditto.
11175 * cli/cli-utils.h: Ditto.
11176 * config/alpha/nm-osf3.h: Ditto.
11177 * config/djgpp/djconfig.sh: Ditto.
11178 * config/i386/nm-fbsd.h: Ditto.
11179 * config/i386/nm-i386gnu.h: Ditto.
11180 * config/nm-linux.h: Ditto.
11181 * config/nm-nto.h: Ditto.
11182 * config/rs6000/nm-rs6000.h: Ditto.
11183 * config/sparc/nm-sol2.h: Ditto.
11184 * darwin-nat-info.c: Ditto.
11185 * dfp.c: Ditto.
11186 * dfp.h: Ditto.
11187 * gdb-demangle.h: Ditto.
11188 * i386-darwin-nat.c: Ditto.
11189 * i386-darwin-tdep.c: Ditto.
11190 * linux-fork.h: Ditto.
11191 * m32c-tdep.c: Ditto.
11192 * microblaze-linux-tdep.c: Ditto.
11193 * microblaze-rom.c: Ditto.
11194 * microblaze-tdep.c: Ditto.
11195 * microblaze-tdep.h: Ditto.
11196 * mips-linux-tdep.h: Ditto.
11197 * ppc-ravenscar-thread.c: Ditto.
11198 * ppc-ravenscar-thread.h: Ditto.
11199 * prologue-value.c: Ditto.
11200 * prologue-value.h: Ditto.
11201 * ravenscar-thread.c: Ditto.
11202 * ravenscar-thread.h: Ditto.
11203 * sparc-ravenscar-thread.c: Ditto.
11204 * sparc-ravenscar-thread.h: Ditto.
11205 * tilegx-linux-tdep.c: Ditto.
11206 * unwind_stop_reasons.def: Ditto.
11207 * windows-nat.h: Ditto.
11208 * xtensa-linux-tdep.c: Ditto.
11209 * xtensa-xtregs.c: Ditto.
11210 * regformats/regdat.sh: Ditto.
11211 * regformats/regdef.h: Ditto.
11212
11213 2013-02-12 Pedro Alves <palves@redhat.com>
11214
11215 * break-catch-sig.c: Update copyright years.
11216
11217 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11218
11219 Add support for a destructor for ui_out data and use it to
11220 provide a ui_out destructor.
11221 * ui-out.h: Declare the new ui_out destructor.
11222 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11223 * ui-out.c (default_data_destroy): Add a default data destructor
11224 which does nothing.
11225 (default_ui_out_impl): Set the new data_destroy field to
11226 default_data_destroy
11227 (uo_data_destroy): Local function which invokes the data
11228 destructor if present.
11229 (clear_table): Local function which clears the table data of a
11230 ui_out object.
11231 (ui_out_destroy): Public function which frees a ui_out object.
11232 (ui_out_table_end): Use the new clear_table function.
11233 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11234 NULL.
11235 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11236 to NULL.
11237
11238 2013-02-11 Doug Evans <dje@google.com>
11239
11240 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11241 (printf_decfloat): New function. Broken out from ui_printf.
11242 Remove unnecessary code to shift the entire format string down.
11243 (printf_pointer): New function.
11244 (ui_printf): Code to print C strings, wide C strings, decfloats,
11245 and pointers moved to separate functions.
11246
11247 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11248
11249 * valops.c (value_assign): Handling bitfield offset in
11250 `lval_internalvar_component' case.
11251
11252 2013-02-08 Doug Evans <dje@google.com>
11253
11254 * common/format.c (parse_format_string): Fix whitespace.
11255
11256 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11257
11258 * stack.c (return_command): Work around uninitialized variable
11259 warning.
11260
11261 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11262
11263 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11264 number of the registers from 36 to 34.
11265
11266 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11267
11268 * NEWS: Mention new AArch64 native and target support.
11269
11270 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11271
11272 * MAINTAINERS (Write After Approval): Add myself.
11273
11274 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11275 Marcus Shawcroft <marcus.shawcroft@arm.com>
11276 Nigel Stephens <nigel.stephens@arm.com>
11277 Yufeng Zhang <yufeng.zhang@arm.com>
11278
11279 * aarch64-linux-nat.c: New file.
11280 * config/aarch64/linux.mh: New file.
11281 * configure.host: Add AArch64.
11282 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11283
11284 2013-02-07 Doug Evans <dje@google.com>
11285
11286 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11287 disassemble command.
11288
11289 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11290
11291 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11292 set_gdbarch_fetch_tls_load_module_address.
11293
11294 2013-02-06 David S. Miller <davem@davemloft.net>
11295
11296 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11297 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11298 * value.c (struct_return_convention): New function.
11299 (using_struct_return): Implement in terms of struct_return_convention.
11300 * value.h (struct_return_convention): Declare.
11301 * stack.c (return_command): Allow successful overriding of the return
11302 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11303
11304 2013-02-06 Tom Tromey <tromey@redhat.com>
11305
11306 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11307 outside of TRY_CATCH.
11308
11309 2013-02-06 Yao Qi <yao@codesourcery.com>
11310
11311 * mi/mi-interp.c: Include "tracepoint.h".
11312 (mi_tsv_modified): Declare.
11313 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11314 (mi_interpreter_init): Call observer_attach_tsv_modified.
11315 (mi_tsv_modified): New.
11316 (mi_tsv_created, mi_tsv_deleted): Update.
11317 * tracepoint.c (trace_variable_command): Call
11318 observer_notify_tsv_modified if the initial value of tsv is
11319 changed.
11320 (delete_trace_state_variable): Call
11321 observer_notify_tsv_deleted earlier.
11322 (trace_variable_command): Caller update.
11323 (create_tsv_from_upload): Likewise.
11324 * observer.sh: Declare "struct trace_state_variable".
11325
11326 * NEWS: Mention the new MI notification "=tsv-modified".
11327
11328 2013-02-05 Doug Evans <dje@google.com>
11329
11330 * completer.c (location_completer): Fix typo in comment.
11331
11332 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11333
11334 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11335 ADDRESS sorted.
11336
11337 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11338
11339 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11340 Refactor if statement to avoid trailing || operator.
11341
11342 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11343
11344 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11345
11346 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11347
11348 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11349 * configure.host: Add powerpc*-*-freebsd* target.
11350 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11351 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11352 * config/powerpc/fbsd.mh: New file.
11353
11354 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11355 Denys Vlasenko <dvlasenk@redhat.com>
11356 Pedro Alves <palves@redhat.com>
11357
11358 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11359 (struct elf_internal_linux_prpsinfo): Forward declare.
11360 * gdbarch.h, gdbarch.c: Regenerate.
11361 * linux-tdep.c: Include `cli/cli-utils.h'.
11362 (linux_fill_prpsinfo): New function.
11363 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11364 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11365 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11366 depending on gdbarch pointer bitness.
11367 * ppc-linux-tdep.c: Include elf-bfd.h.
11368 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11369 on 32-bit.
11370
11371 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11372 Marcus Shawcroft <marcus.shawcroft@arm.com>
11373 Nigel Stephens <nigel.stephens@arm.com>
11374 Yufeng Zhang <yufeng.zhang@arm.com>
11375
11376 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11377
11378 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11379 Marcus Shawcroft <marcus.shawcroft@arm.com>
11380 Nigel Stephens <nigel.stephens@arm.com>
11381 Yufeng Zhang <yufeng.zhang@arm.com>
11382
11383 * aarch64-newlib-tdep.c: New file.
11384 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11385 aarch64*-*-elf.
11386 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11387 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11388 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11389 * osabi.c (gdb_osabi_names): Add "Newlib".
11390
11391 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11392 Marcus Shawcroft <marcus.shawcroft@arm.com>
11393 Nigel Stephens <nigel.stephens@arm.com>
11394 Yufeng Zhang <yufeng.zhang@arm.com>
11395
11396 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11397 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11398 * aarch64-linux-tdep.c: New file.
11399 * aarch64-linux-tdep.h: New file.
11400 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11401 * configure.tgt: Add aarch64-none-linux-gnu.
11402
11403 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11404 Marcus Shawcroft <marcus.shawcroft@arm.com>
11405 Nigel Stephens <nigel.stephens@arm.com>
11406 Yufeng Zhang <yufeng.zhang@arm.com>
11407
11408 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11409 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11410 (ALLDEPFILES): Add aarch64-tdep.c.
11411 * aarch64-tdep.c: New file.
11412 * aarch64-tdep.h: New file.
11413 * configure.tgt: Add AArch64.
11414 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11415 (aarch64-expedite): New definition.
11416 * features/aarch64-core.xml: New file.
11417 * features/aarch64-fpu.xml: New file.
11418 * features/aarch64-without-fpu.c: New file (generated).
11419 * features/aarch64-without-fpu.xml: New file.
11420 * features/aarch64.c: New file (generated).
11421 * features/aarch64.xml: New file.
11422 * regformats/aarch64-without-fpu.dat: New file (generated).
11423 * regformats/aarch64.dat: New file (generated).
11424
11425 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11426
11427 * contrib/expect-read1.c: New file.
11428 * contrib/expect-read1.sh: New file.
11429
11430 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11431
11432 * dwarf2read.c (file_file_name): New function with code from
11433 file_full_name.
11434 (file_full_name): Move most of the code to file_file_name.
11435 (macro_start_file): Rename variable full_name to file_name and use
11436 file_file_name for it. Add comp_dir parameter to new_macro_table.
11437 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11438 macro_source_file->filename access by macro_source_fullname call.
11439 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11440 caller.
11441 * macrotab.c (struct macro_table): New field comp_dir.
11442 (macro_include): New variables link_fullname and source_fullname.
11443 Replace any macro_source_file->filename access by macro_source_fullname
11444 call.
11445 (macro_lookup_inclusion): Remove the partial filenames checking code.
11446 (check_for_redefinition): New variables source_fullname and
11447 found_key_fullname. Replace any macro_source_file->filename access by
11448 macro_source_fullname call.
11449 (macro_undef): New variables source_fullname and key_fullname. Replace
11450 any macro_source_file->filename access by macro_source_fullname call.
11451 (macro_lookup_definition): New variables retval and source_fullname.
11452 Replace any macro_source_file->filename access by macro_source_fullname
11453 call.
11454 (foreach_macro): New variable key_fullname. Replace any
11455 macro_source_file->filename access by macro_source_fullname call.
11456 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11457 macro_source_file->filename access by macro_source_fullname call.
11458 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11459 (macro_source_fullname): New function.
11460 * macrotab.h (struct macro_source_file): Extent the filename field
11461 comment.
11462 (new_macro_table): New parameter comp_dir, add a comment for it.
11463 (macro_source_fullname): new declaration.
11464
11465 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11466
11467 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11468 this_real_name to outer block. Use it also for
11469 compare_filenames_for_search.
11470 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11471 with dw2_get_real_path for file_matcher, considering also
11472 BASENAMES_MAY_DIFFER.
11473 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11474
11475 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11476
11477 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11478 to the file_matcher parameter. Pass 0 to it.
11479 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11480 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11481 NULL psymtab_to_fullname result.
11482 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11483 an expected filename instead.
11484 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11485 file_matcher parameter. Call also psymtab_to_fullname, after newly
11486 considering BASENAMES_MAY_DIFFER.
11487 * source.c (rewrite_source_path): Remove static.
11488 * source.h (rewrite_source_path): New declaration.
11489 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11490 the expand_symtabs_matching field. Comment it.
11491 * symtab.c (file_matches): New function comment. Add parameter
11492 basenames, implement it.
11493 (search_symbols_file_matches): Add basenames parameter. Update the
11494 file_matches caller.
11495 (search_symbols): Match FILES also against symtab_to_fullname.
11496 Optimize it for BASENAMES_MAY_DIFFER.
11497
11498 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11499
11500 * source.c (print_source_lines_base): Print for TUI also "fullname".
11501 * tui/tui-data.c (init_content_element): Change tui_locator_element
11502 field to full_name.
11503 * tui/tui-data.h (struct tui_locator_element): Likewise.
11504 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11505 tui_update_locator_filename calls to tui_update_locator_fullname.
11506 Replace symtab->filename refererence by symtab_to_fullname call.
11507 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11508 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11509 field to full_name. Replace symtab->filename refererence by
11510 symtab_to_fullname call.
11511 (tui_show_symtab_source): Rename parameter to fullname. Change
11512 tui_locator_element field to full_name.
11513 * tui/tui-stack.c: Include source.h.
11514 (tui_set_locator_filename): Rename the declaration to ...
11515 (tui_set_locator_fullname): ... here. Rename its parameter to
11516 fullname, updates its comment.
11517 (tui_set_locator_info): Rename its parameter to fullname.
11518 (tui_set_locator_filename): Rename the definition to ...
11519 (tui_set_locator_fullname): ... here. Rename its parameter to
11520 fullname, updates its comment. Change tui_locator_element field to
11521 full_name.
11522 (tui_set_locator_info): Rename its parameter to fullname.
11523 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11524 (tui_update_locator_filename): Rename to ...
11525 (tui_update_locator_fullname): ... here. Rename callee to
11526 tui_set_locator_fullname.
11527 (tui_show_frame_info): Replace symtab->filename refererence by
11528 symtab_to_fullname call.
11529 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11530 (tui_update_locator_fullname): ... here.
11531 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11532 tui_update_locator_fullname. Replace symtab->filename refererence by
11533 symtab_to_fullname call.
11534 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11535 Rename the callee to tui_update_locator_fullname.
11536 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11537
11538 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11539
11540 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11541 by symtab_to_filename_for_display calls.
11542 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11543 (clear_command): New variable sal_fullname, initialize it. Replace
11544 compare_filenames_for_search by filename_cmp with sal_fullname.
11545 (say_where, update_static_tracepoint): Replace symtab->filename
11546 refererences by symtab_to_filename_for_display calls.
11547 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11548 Likewise.
11549 * dwarf2read.c: Include source.h.
11550 (fixup_go_packaging): Replace symtab->filename refererences by
11551 symtab_to_filename_for_display calls.
11552 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11553 Replace symtab->filename refererences by symtab_to_filename_for_display
11554 calls.
11555 (create_sals_line_offset, convert_linespec_to_sals): New variable
11556 fullname, initialize it, replace symtab->filename reference by the
11557 variable.
11558 * linux-fork.c: Include source.h.
11559 (info_checkpoints_command): Replace symtab->filename refererences by
11560 symtab_to_filename_for_display calls.
11561 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11562 by symtab_to_filename_for_display calls.
11563 * mdebugread.c: Include source.h.
11564 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11565 symtab_to_filename_for_display calls.
11566 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11567 (mi_cmd_file_list_exec_source_files): Likewise.
11568 * printcmd.c: Include source.h.
11569 (build_address_symbolic): Replace symtab->filename refererences by
11570 symtab_to_filename_for_display calls.
11571 * psymtab.c (partial_map_symtabs_matching_filename)
11572 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11573 with psymtab_to_fullname.
11574 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11575 by symtab_to_filename_for_display calls.
11576 (stpy_get_filename): New variable filename, initialize it, use instead
11577 of symtab->filename refererences.
11578 (salpy_str): Make variable filename const char *. Replace
11579 symtab->filename refererences by symtab_to_filename_for_display calls.
11580 * skip.c: Include source.h and filenames.h.
11581 (skip_file_command): Remove const from the symtab variable. Replace
11582 symtab->filename refererences by symtab_to_fullname call.
11583 (function_name_is_marked_for_skip): New variables searched_for_fullname
11584 and fullname. Use them to search also with symtab's fullname.
11585 * source.c (find_source_lines): Replace symtab->filename refererences
11586 by symtab_to_filename_for_display calls.
11587 (print_source_lines_base): New variable filename, use it instead of
11588 symtab->filename. Replace symtab->filename refererences by
11589 symtab_to_filename_for_display calls.
11590 (line_info, forward_search_command): Replace symtab->filename
11591 refererences by symtab_to_filename_for_display calls.
11592 (reverse_search_command): Replace symtab->filename refererences by
11593 symtab_to_filename_for_display calls. New variable filename for it.
11594 * stack.c (frame_info): Likewise.
11595 * symmisc.c: Include source.h.
11596 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11597 (maintenance_info_symtabs): Replace symtab->filename refererences by
11598 symtab_to_filename_for_display calls.
11599 * symtab.c (iterate_over_some_symtabs): Call
11600 compare_filenames_for_search also with symtab_to_fullname.
11601 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11602 symtab->filename refererences by symtab_to_filename_for_display calls.
11603 (find_line_symtab): Replace symtab->filename refererences by
11604 symtab_to_filename_for_display calls.
11605 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11606 (print_symbol_info): Make the last parameter const char *. New
11607 variable s_filename. Use it in the function.
11608 (symtab_symbol_info): Make the last_filename variable const char *.
11609 Replace symtab->filename refererences by symtab_to_filename_for_display
11610 calls.
11611 (rbreak_command): New variable fullname. Use it. Replace
11612 symtab->filename refererence by symtab_to_filename_for_display call.
11613 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11614 (print_one_static_tracepoint_marker): Replace symtab->filename
11615 refererences by symtab_to_filename_for_display calls.
11616 * tui/tui-source.c (tui_set_source_content): New variables filename and
11617 s_filename. Replace symtab->filename refererences by this variable.
11618 Replace other symtab->filename refererences by
11619 symtab_to_filename_for_display calls.
11620
11621 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11622 Jan Kratochvil <jan.kratochvil@redhat.com>
11623
11624 Add a new variable that controls a way in which filenames are
11625 displayed.
11626 * NEWS (set filename-display): New entry.
11627 * source.c (filename_display_basename, filename_display_relative)
11628 (filename_display_absolute, filename_display_kind_names)
11629 (filename_display_string, show_filename_display_string)
11630 (symtab_to_filename_for_display): New.
11631 (_initialize_source): Added initialization of 'filename-display'
11632 variable.
11633 * source.h (symtab_to_filename_for_display): Added declaration.
11634 * stack.c (print_frame): Added new variable and calling of a new
11635 function and condition with this variable. Changed third argument of
11636 calling of a function.
11637
11638 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11639
11640 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11641 Rename field reference filename to fullname.
11642 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11643 fullname. New comment for it.
11644 * tui/tui-source.c (tui_set_source_content): Rename field reference
11645 filename to fullname. Initialize field by symtab_to_fullname now.
11646 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11647 reference filename to fullname. Use symtab_to_fullname during
11648 comparison.
11649
11650 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11651
11652 Code cleanup.
11653 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11654 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11655 filename to fullname. Rename variable this_name to this_fullname.
11656 Lowercase FILENAME_CMP call.
11657 (dw2_find_symbol_file): New comment for the returned string.
11658 (dwarf2_gdb_index_functions): Rename the function to
11659 dw2_expand_symtabs_with_fullname.
11660 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11661 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11662 fullname.
11663 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11664 * symfile.h (struct quick_symbol_functions): Rename field
11665 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11666 parameter filename to fullname. Document returned string meaning for
11667 find_symbol_file.
11668 * symtab.c (find_line_symtab): Rename the called function to
11669 expand_symtabs_with_fullname.
11670
11671 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11672
11673 Code cleanup.
11674 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11675 call of filename_cmp with compare_filenames_for_search.
11676 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11677 is_abs, unify the call of FILENAME_CMP with
11678 compare_filenames_for_search. New gdb_asserts for real_path and name.
11679 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11680 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11681 * symfile.h (struct quick_symbol_functions): Extend the comment for
11682 map_symtabs_matching_filename.
11683 * symtab.c (compare_filenames_for_search): Remove the function comment
11684 relative path requirement. Handle absolute filenames, with a comment.
11685 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11686 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11687 real_path and name. Unify the call of compare_filenames_for_search
11688 with FILENAME_CMP.
11689 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11690
11691 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11692
11693 Code cleanup.
11694 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11695 source_file references by symtab field references. Remove variables
11696 sal and fullname.
11697 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11698 (clear_command, say_where): Replace bp_location field source_file
11699 references by symtab field references.
11700 (bp_location_dtor): Remove the source_file reference.
11701 (update_static_tracepoint): Replace bp_location field source_file
11702 references by symtab field references.
11703 (breakpoint_free_objfile): New function.
11704 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11705 Replace the field source_file by field symtab, extend its comment.
11706 (breakpoint_free_objfile): New declaration.
11707 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11708 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11709 field source_file references by symtab field references.
11710
11711 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11712
11713 Replace xfullpath calls by gdb_realpath calls.
11714 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11715 function comment.
11716 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11717 Remove it from the iterate_over_some_symtabs call.
11718 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11719 Remove it from the dw2_map_expand_apply calls, remove a block handling
11720 it.
11721 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11722 Remove it from the iterate_over_some_symtabs call.
11723 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11724 Remove it from the partial_map_expand_apply calls, remove a block
11725 handling it. Drop gdb_realpath call and cleanups from the real_path
11726 handling.
11727 * source.c (openp): Drop the comment part about xfullpath. Replace
11728 xfullpath calls by gdb_realpath calls.
11729 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11730 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11731 from method map_symtabs_matching_filename and its comment.
11732 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11733 gdb_realpath call.
11734 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11735 remove it also from the function comment, remove a block handling it.
11736 Drop gdb_realpath call and cleanups from the real_path handling.
11737 (iterate_over_symtabs): Drop variable full_path and its use.
11738 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11739 * utils.c (xfullpath): Remove.
11740 * utils.h (xfullpath): Remove.
11741
11742 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11743
11744 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11745 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11746 (ALLDEPFILES): Add ppc64-tdep.c.
11747 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11748 ppc64-tdep.o to gdb_target_obs.
11749 * ppc64-tdep.h: New file.
11750 * ppc64-tdep.c: New file.
11751 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11752 ppc-linux-tdep.c to here.
11753 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11754 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11755 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11756 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11757 from ppc-linux-tdep.c to here.
11758 (ppc64_convert_from_func_ptr_addr): Rename from
11759 ppc64_linux_convert_from_func_ptr_addr to
11760 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11761 here.
11762 * rs6000-tdep.c:
11763 (read_insn): Move from ppc-linux-tdep.c to here.
11764 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11765 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11766 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11767 Removed above functions.
11768 (ppc_linux_init_abi): Adjust.
11769
11770 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11771
11772 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11773
11774 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11775
11776 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11777
11778 2013-02-01 Pedro Alves <palves@redhat.com>
11779
11780 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11781 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11782
11783 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11784
11785 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11786 files with no separate debug info.
11787 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11788 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11789 only for files with no separate debug info.
11790
11791 2013-01-31 Tom Tromey <tromey@redhat.com>
11792
11793 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11794 change type.
11795 (struct jit_program_space_data): Rename from jit_inferior_data.
11796 Update comments.
11797 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11798 Change return type. Attach data to program space.
11799 (jit_program_space_data_cleanup): Rename from
11800 jit_inferior_data_cleanup; change argument type.
11801 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11802 change type.
11803 (jit_register_code): Update.
11804 (jit_update_inferior_cache): Remove.
11805 (jit_breakpoint_deleted): Get jit data from the location's program
11806 space.
11807 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11808 'ps_data', change type.
11809 (jit_inferior_init, jit_breakpoint_re_set_internal)
11810 (jit_event_handler): Update.
11811 (free_objfile_data): Get data from objfile's program space.
11812 (_initialize_jit): Update.
11813
11814 2013-01-31 Tom Tromey <tromey@redhat.com>
11815
11816 PR gdb/13987:
11817 * jit.c (struct jit_inferior_data) <cached_code_address,
11818 jit_breakpoint>: New fields.
11819 (jit_breakpoint_re_set_internal): Fix logging. Only create
11820 breakpoint if cached address has changed.
11821 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11822 functions.
11823 (_initialize_jit): Register breakpoint deleted observer.
11824
11825 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11826
11827 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11828 (save_infcall_suspend_state): Ifdef out unused inf.
11829 (restore_infcall_suspend_state): Ifdef out unused inf.
11830 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11831 (jit_frame_sniffer): Remove unused inf_data.
11832
11833 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11834
11835 * c-exp.y (classify_inner_name): Remove unused type.
11836 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11837 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11838 need_escape.
11839 (c_get_string): Remove unused kind.
11840 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11841
11842 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11843
11844 * charset.c (intermediate_encoding): Remove unused i.
11845 * completer.c (signal_completer): Remove unused i.
11846 * continuations.c (discard_my_continuations_1): Remove unused
11847 continuation_ptr.
11848 * corelow.c (core_close): Remove unuseD name.
11849 (get_core_siginfo): Remove unused pid.
11850 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11851 i, cps.
11852 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11853 (loclist_describe_location): Remove unused first.
11854 * event-top.c (command_line_handler): Remove unused got_eof.
11855 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11856 (resize_section_table): Remove unused old_value.
11857 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11858 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11859 * i386-tdep.c (i386_process_record): Remove unused rex.
11860 * infcmd.c (get_return_value): Remove unused uiout.
11861 * jv-lang.c (type_from_class): Remove unused is_array.
11862 * jv-valprint.c (java_val_print): Remove unused i.
11863 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11864 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11865 * m2-typeprint.c (m2_print_type): Remove unused code.
11866 * macroexp.c (get_character_constant): Remove unused body_start.
11867 (macro_stringify): Remove unused result.
11868 * objc-lang.c (find_methods): Remove unused gdbarch.
11869 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11870 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11871 * stack.c (print_frame_args): Remove unused summary.
11872 * thread.c (thread_apply_command): Remove unused p.
11873 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11874 * valops.c (search_struct_method): Remove unused skip.
11875 * valprint.c (generic_val_print): Remove unused byte_order.
11876 * varobj.c (varobj_update): Remove unused changed.
11877 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11878 (alias_command): Remove unused c.
11879 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11880 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11881 format.
11882 (mi_cmd_data_write_memory): Remove unused word_format.
11883 (mi_cmd_data_write_memory_bytes): Remove unused r.
11884 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11885 p_start, p_end.
11886 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11887 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11888 line_width.
11889
11890 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11891
11892 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11893 * symtab.c (iterate_over_symtabs): Remove unused s.
11894 (find_pc_sect_symtab): Remove unused pspAce.
11895 (find_pc_sect_line): Remove unused alt_symtab.
11896 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11897 (completion_list_add_name): Remove unused newsize.
11898
11899 2013-01-31 Tom Tromey <tromey@redhat.com>
11900
11901 PR c++/14998:
11902 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11903 TYPE_CODE_FUNC.
11904
11905 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11906
11907 * target.c (target_read_string): Remove unused origlen.
11908
11909 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11910
11911 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11912 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11913 * ax-general.c (ax_print): Remove unused is_float.
11914 * blockframe.c (block_innermost_frame): Remove unused start, end.
11915 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11916
11917 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11918
11919 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11920 (svr4_read_so_list): Remove unused lmo.
11921 * solib-target.c (solib_target_relocate_section_addresses): Remove
11922 unused flags.
11923
11924 2013-01-30 Tom Tromey <tromey@redhat.com>
11925
11926 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11927
11928 2013-01-30 Tom Tromey <tromey@redhat.com>
11929
11930 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11931 * utils.c (gnu_debuglink_crc32): Remove.
11932 * utils.h (gnu_debuglink_crc32): Don't declare.
11933
11934 2013-01-30 Tom Tromey <tromey@redhat.com>
11935
11936 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11937 (read_structure_type, read_enumeration_type): Remove cast.
11938
11939 2013-01-30 Tom Tromey <tromey@redhat.com>
11940
11941 * dwarf2read.c (read_namespace_type): Remove cast.
11942 (read_typedef): Likewise.
11943
11944 2013-01-29 Tom Tromey <tromey@redhat.com>
11945
11946 * dwarf2read.c (free_dwo_file): Remove assert.
11947
11948 2013-01-29 Tom Tromey <tromey@redhat.com>
11949
11950 * value.c (deprecated_set_value_modifiable): Remove.
11951 * value.h (deprecated_set_value_modifiable): Remove.
11952
11953 2013-01-28 Doug Evans <dje@google.com>
11954
11955 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11956 to addresses from dwo files.
11957
11958 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11959
11960 * valops.c (find_overload_match): Remove unused argument 'lax'.
11961 * value.h: Remove unused argument 'lax' from the declaration of
11962 find_overload_match.
11963 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11964 to find_overload_match.
11965 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11966 argument to find_overload_match.
11967
11968 2013-01-25 Tom Tromey <tromey@redhat.com>
11969
11970 * dwarf2read.c (processing_has_namespace_info): Remove.
11971 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11972 (process_die, read_func_scope, dwarf2_start_symtab)
11973 (new_symbol_full): Update.
11974
11975 2013-01-25 Tom Tromey <tromey@redhat.com>
11976
11977 * cp-namespace.c (cp_set_block_scope): Remove.
11978 * cp-support.h (cp_set_block_scope): Remove.
11979 * dbxread.c: Include block.h.
11980 (cp_set_block_scope): New function.
11981 (process_one_symbol): Update.
11982 * dwarf2read.c (read_func_scope): Use block_set_scope.
11983
11984 2013-01-25 Pedro Alves <palves@redhat.com>
11985
11986 * remote.c (add_current_inferior_and_thread): Tweak comment.
11987
11988 2013-01-25 Tom Tromey <tromey@redhat.com>
11989
11990 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11991 (cp_add_using_directive): Add 'copy_names' argument.
11992 * cp-support.h (cp_add_using_directive): Update.
11993 (struct using_direct) <import_src, import_dest, alias,
11994 declaration>: Now const.
11995 * dwarf2read.c (read_import_statement): Use obconcat.
11996 Don't copy names passed to cp_add_using_directive.
11997
11998 2013-01-25 Tom Tromey <tromey@redhat.com>
11999
12000 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12001
12002 2013-01-25 Pedro Alves <palves@redhat.com>
12003
12004 * remote.c (stop_reply_extract_thread): New.
12005 (add_current_inferior_and_thread): New parameter 'wait_status'.
12006 Handle it.
12007 (remote_start_remote): Pass wait status to
12008 add_current_inferior_and_thread.
12009 (extended_remote_run): Update comment.
12010 (extended_remote_create_inferior_1): Pass wait status to
12011 add_current_inferior_and_thread.
12012
12013 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12014 Ulrich Weigand <uweigand@de.ibm.com>
12015
12016 * valarith.c (value_vector_widen): New function for replicating a
12017 scalar into a vector.
12018 (value_binop): Use value_vector_widen to widen scalar to vector
12019 rather than casting, this better matches gcc C behaviour.
12020 * valops.c (value_casst): Update logic for casting between vector
12021 types, and for casting from scalar to vector, try to match gcc C
12022 behaviour.
12023 * value.h (value_vector_widen): Declare.
12024 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12025 function, handle special case for casting scalar to vector.
12026 (opencl_relop): Use opencl_value_cast.
12027 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12028 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12029 in order to use opencl_value_cast.
12030
12031 2013-01-25 Yao Qi <yao@codesourcery.com>
12032
12033 * event-loop.c: Include "queue.h".
12034 (gdb_event_p): New typedef.
12035 (DECLARE_QUEUE_P): Use.
12036 (DEFINE_QUEUE_P): Use.
12037 (async_queue_event): Remove.
12038 (gdb_event_xfree): New.
12039 (initialize_event_loop): New.
12040 (process_event): Use QUEUE macros.
12041 (event_queue): Remove.
12042 (gdb_wait_for_event): Caller update.
12043 (check_async_event_handlers): Likewise.
12044 (poll_timers): Likewise.
12045 * event-loop.h (initialize_event_loop): Declare.
12046 * event-loop.c (gdb_event_xfree): New.
12047 * top.c (gdb_init): Call initialize_event_loop.
12048
12049 2013-01-25 Yao Qi <yao@codesourcery.com>
12050
12051 * event-loop.c (async_queue_event): Remove one parameter
12052 'position'. Remove code handling 'position' == TAIL.
12053 (gdb_wait_for_event): Caller update.
12054 (check_async_event_handlers): Caller update.
12055 (poll_timers): Caller update.
12056 * event-loop.h (enum queue_position): Remove.
12057
12058 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12059
12060 * MAINTAINERS: Update my email.
12061
12062 2013-01-25 Yao Qi <yao@codesourcery.com>
12063
12064 * main.c (print_gdb_help): Remove "--epoch" from the help
12065 message.
12066
12067 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12068
12069 * symtab.c (skip_prologue_using_sal): Consider a file
12070 change the same as an increased line number
12071
12072 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12073
12074 * MAINTAINERS (Write After Approval): Add myself to the list.
12075
12076 2013-01-24 Tom Tromey <tromey@redhat.com>
12077
12078 * ada-lang.h (ada_decode_symbol): Make return type const.
12079 * ada-lang.c (ada_decode_symbol): Likewise.
12080
12081 2013-01-23 Doug Evans <dje@google.com>
12082
12083 * linespec.c (find_linespec_symbols): Make static.
12084
12085 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12086
12087 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12088 type on float conversion for complex type.
12089
12090 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12091
12092 Add a new class gdb.Architecture which exposes GDB's
12093 internal representation of architecture via GDB Python API.
12094 * Makefile.in: Add entries corresponding to the new file
12095 python/py-arch.c.
12096 * NEWS (Python Scripting): Add entries for the new class
12097 gdb.Architecture and the new method gdb.Frame.architecture.
12098 * python/py-arch.c: Implement gdb.Architecture class.
12099 * python/py-frame.c (frapy_arch): Implement the method
12100 gdb.Frame.architecture().
12101 (frame_object_methods): Add 'architecture' to the method table.
12102 * python/python-internal.h: Add declarations of new utility
12103 functions.
12104 * python/python.c (_initialize_python): Initialize
12105 gdb.Architecture class.
12106
12107 2013-01-23 Doug Evans <dje@google.com>
12108
12109 Work around binutils/15021.
12110 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12111 type_unit_group out of union s. All uses updated.
12112 (read_index_from_section): Watch for index version 8.
12113 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12114 an imported symtab.
12115 (write_psymtabs_to_index): Increment version number to 8.
12116
12117 2013-01-22 Pedro Alves <palves@redhat.com>
12118
12119 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12120 user-visible.
12121
12122 2013-01-22 Pedro Alves <palves@redhat.com>
12123
12124 * annotate.c (annotate_breakpoints_changed): Rename to ...
12125 (annotate_breakpoints_invalid): ... this. Make static.
12126 (breakpoint_changed): Adjust.
12127 (_initialize_annotate): Always install the observers. Install a
12128 "breakpoint_created" observer.
12129 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12130 * breakpoint.c (set_breakpoint_condition)
12131 (breakpoint_set_commands, do_map_commands_command)
12132 (init_raw_breakpoint, clear_command, set_ignore_count)
12133 (enable_breakpoint_disp): No longer call
12134 annotate_breakpoints_changed.
12135
12136 2013-01-22 Pedro Alves <palves@redhat.com>
12137
12138 * annotate.c: Include "inferior.h".
12139 (frames_invalid_emitted)
12140 (breakpoints_invalid_emitted): New globals.
12141 (async_background_execution_p): New function.
12142 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12143 emitting the annotation if it has already been emitted.
12144 (annotate_display_prompt): New function.
12145 * annotate.h (annotate_display_prompt): New declaration.
12146 * event-top.c: Include annotate.h.
12147 (display_gdb_prompt): Call annotate_display_prompt.
12148
12149 2013-01-22 Pedro Alves <palves@redhat.com>
12150
12151 * annotate.c (ignore_count_changed): Delete.
12152 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12153 (annotate_ignore_count_change): Delete.
12154 (annotate_stopped): Don't emit a delayed breakpoints-changed
12155 annotation.
12156 * annotate.h (annotate_ignore_count_change): Delete.
12157 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12158 annotate_ignore_count_change.
12159
12160 2013-01-22 Tom Tromey <tromey@redhat.com>
12161
12162 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12163 require_rvalue for a register location.
12164
12165 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12166
12167 * breakpoint.c (print_one_breakpoint_location): Add MI
12168 field 'thread-groups' when printing a breakpoint.
12169 (output_thread_groups): New function.
12170
12171 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12172
12173 * python/lib/gdb/commands/explore.py
12174 (CompoundExplorer.explore_expr): Correct the name of a method
12175 being invoked.
12176 (ExploreTypeCommand.invoke): Add a missing 'return'.
12177
12178 2013-01-21 Tom Tromey <tromey@redhat.com>
12179
12180 * gdb_obstack.h (obconcat): Move declaration here, from...
12181 * symfile.h (obconcat): ... here.
12182 * gdb_obstack.c: New file.
12183 (obconcat): Move from...
12184 * symfile.c (obconcat): ... here.
12185 * Makefile.in (SFILES): Add gdb_obstack.c.
12186 (COMMON_OBS): Add gdb_obstack.o.
12187
12188 2013-01-21 Tom Tromey <tromey@redhat.com>
12189
12190 * symfile.h (obsavestring): Don't declare.
12191 * symfile.c (obsavestring): Remove.
12192 * ada-exp.y: Use obstack_copy0, not obsavestring.
12193 * ada-lang.c: Use obstack_copy0, not obsavestring.
12194 * coffread.c: Use obstack_copy0, not obsavestring.
12195 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12196 * dbxread.c: Use obstack_copy0, not obsavestring.
12197 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12198 * jit.c: Use obstack_copy0, not obsavestring.
12199 * mdebugread.c: Use obstack_copy0, not obsavestring.
12200 * psymtab.c: Use obstack_copy0, not obsavestring.
12201 * stabsread.c: Use obstack_copy0, not obsavestring.
12202 * xcoffread.c: Use obstack_copy0, not obsavestring.
12203
12204 2013-01-21 Tom Tromey <tromey@redhat.com>
12205
12206 * dwarf2read.c (fixup_go_packaging): Save package name
12207 on objfile obstack.
12208 * gdbtypes.c (init_type): Don't copy name.
12209
12210 2013-01-21 Tom Tromey <tromey@redhat.com>
12211
12212 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12213 const.
12214 (struct attribute) <u.str>: Now const.
12215 (struct fnfieldlist) <name>: Now const.
12216 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12217 (partial_die_parent_scope): Make return type const.
12218 (partial_die_full_name, add_partial_symbol): Update.
12219 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12220 'name' const.
12221 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12222 (read_file_scope, read_func_scope, dwarf2_add_field)
12223 (dwarf2_add_member_fn, read_structure_type)
12224 (process_enumeration_scope, read_array_type, read_module_type)
12225 (read_base_type, read_subrange_type): Update.
12226 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12227 (new_symbol_full, guess_full_die_structure_name): Update.
12228 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12229 (dwarf2_name): Return const type.
12230 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12231 const.
12232
12233 2013-01-21 Tom Tromey <tromey@redhat.com>
12234
12235 * gdbtypes.c (init_type): Make 'name' const.
12236 * gdbtypes.h (init_type): Update.
12237
12238 2013-01-21 Tom Tromey <tromey@redhat.com>
12239
12240 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12241 (start_symtab): Make 'name' and 'dirname' const. Use
12242 set_last_source_file.
12243 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12244 (last_source_file): Define. Now static.
12245 (set_last_source_file, get_last_source_file): New functions.
12246 * buildsym.h (last_source_file): Don't declare.
12247 (start_symtab): Update.
12248 (set_last_source_file, get_last_source_file): Declare.
12249 * coffread.c (complete_symtab): Use set_last_source_file.
12250 (coff_end_symtab): Likewise.
12251 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12252 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12253 set_last_source_file.
12254 (process_one_symbol): Use get_last_source_file.
12255 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12256 (psymtab_to_symtab_1): Use get_last_source_file.
12257 * xcoffread.c (process_linenos): Use get_last_source_file.
12258 (complete_symtab): Use set_last_source_file.
12259 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12260 (scan_xcoff_symtab): Use set_last_source_file.
12261
12262 2013-01-21 Tom Tromey <tromey@redhat.com>
12263
12264 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12265 (symbol_set_names): Remove casts. Handle field const-ness.
12266
12267 2013-01-21 Tom Tromey <tromey@redhat.com>
12268
12269 * dwarf2read.c (new_symbol_full): Remove cast.
12270 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12271 * symtab.h (symbol_set_demangled_name): Update.
12272
12273 2013-01-21 Tom Tromey <tromey@redhat.com>
12274
12275 * main.c (captured_main): Call bfd_init.
12276
12277 2013-01-21 Tom Tromey <tromey@redhat.com>
12278
12279 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12280 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12281 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12282 * NEWS: Update.
12283
12284 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12285
12286 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12287
12288 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12289
12290 Fix gdb.fortran/common-block.exp crash in PIE mode.
12291 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12292 LOC_COMMON_BLOCK.
12293 * f-valprint.c (info_common_command_for_block): Expect
12294 LOC_COMMON_BLOCK in gdb_assert.
12295 * symtab.h (struct general_symbol_info): Update comment for the
12296 common_block member.
12297 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12298 (enum address_class): New member LOC_COMMON_BLOCK.
12299
12300 2013-01-18 David Blaikie <dblaikie@gmail.com>
12301
12302 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12303
12304 2013-01-18 Tom Tromey <tromey@redhat.com>
12305
12306 PR c++/14999:
12307 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12308 Call require_rvalue.
12309
12310 2013-01-18 Yao Qi <yao@codesourcery.com>
12311
12312 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12313 (dbx_read_symtab): New declaration.
12314 (dbx_psymtab_to_symtab): Delete.
12315 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12316 Rename parameter PST to SELF. Exchanged two parameters.
12317 (start_psymtab): Caller update.
12318 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12319 (dwarf2_read_symtab): New declaration.
12320 (dwarf2_psymtab_to_symtab): Delete.
12321 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12322 Rename parameter PST to SELF. Exchanged two parameters.
12323 (create_partial_symtab): Caller update.
12324 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12325 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12326 Rename parameter PST to SELF. Exchanged two parameters.
12327 (parse_partial_symbols, new_psymtab): Caller update.
12328 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12329 two parameters.
12330 * psymtab.c (psymtab_to_symtab): Caller update.
12331 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12332 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12333 Rename parameter PST to SELF. Exchanged two parameters.
12334 (xcoff_start_psymtab): Caller update.
12335
12336 2013-01-18 Yao Qi <yao@codesourcery.com>
12337
12338 * infrun.c (proceed): Rename local variable 'oneproc' to
12339 'force_step'.
12340
12341 2013-01-17 Doug Evans <dje@google.com>
12342
12343 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12344 (dw2_build_type_unit_groups): Delete. All uses updated.
12345
12346 * symtab.h (struct symbol_search): Add comment.
12347
12348 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12349
12350 * symtab.c (compare_filenames_for_search): New comment for
12351 HAS_DRIVE_SPEC.
12352
12353 2013-01-17 Tom Tromey <tromey@redhat.com>
12354
12355 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12356
12357 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12358
12359 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12360 initialize it by existing make_cleanup. Call new do_cleanups.
12361
12362 2013-01-17 Tom Tromey <tromey@redhat.com>
12363
12364 * cp-abi.c (cp_abi_completer): New function.
12365 (_initialize_cp_abi): Set completer for "set cp-abi".
12366
12367 2013-01-17 Tom Tromey <tromey@redhat.com>
12368
12369 * mem-break.c: Remove obsolete comment.
12370 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12371
12372 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12373
12374 * jit.c (jit_reader_load_command): Interpret the jit reader name
12375 as an absolute path if it begins with a forward slash.
12376
12377 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12378
12379 PR gdb/14550
12380
12381 * jit.c (finalize_symtab): Ensure that only the global block has a
12382 NULL superblock.
12383
12384 2013-01-17 Pedro Alves <palves@redhat.com>
12385
12386 * acinclude.m4: Include ../config/plugins.m4,
12387 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12388 * Makefile.in (aclocal_m4_deps): Update.
12389 * aclocal.m4: Renegerate.
12390
12391 2013-01-16 Doug Evans <dje@google.com>
12392
12393 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12394
12395 2013-01-16 Pedro Alves <palves@redhat.com>
12396 Tom Tromey <tromey@redhat.com>
12397
12398 PR cli/7221:
12399 * NEWS: Add "catch signal".
12400 * breakpoint.c (base_breakpoint_ops): No longer static.
12401 (bpstat_explains_signal): New function.
12402 (init_catchpoint): No longer static.
12403 (base_breakpoint_explains_signal): New function.
12404 (base_breakpoint_ops): Initialize new field.
12405 * breakpoint.h (enum bpstat_signal_value): New.
12406 (struct breakpoint_ops) <explains_signal>: New field.
12407 (bpstat_explains_signal): Remove macro, declare as function.
12408 (base_breakpoint_ops, init_catchpoint): Declare.
12409 * break-catch-sig.c: New file.
12410 * inferior.h (signal_catch_update): Declare.
12411 * infrun.c (signal_catch): New global.
12412 (handle_syscall_event): Update for change to
12413 bpstat_explains_signal.
12414 (handle_inferior_event): Likewise. Always handle random signals
12415 via bpstats.
12416 (signal_cache_update): Check signal_catch.
12417 (signal_catch_update): New function.
12418 (_initialize_infrun): Initialize signal_catch.
12419 * Makefile.in (SFILES): Add break-catch-sig.c.
12420 (COMMON_OBS): Add break-catch-sig.o.
12421
12422 2013-01-16 Tom Tromey <tromey@redhat.com>
12423
12424 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12425 (print_one_catch_solib, print_one_catch_syscall)
12426 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12427 "catch-type".
12428
12429 2013-01-16 Yao Qi <yao@codesourcery.com>
12430
12431 * printcmd.c (current_display_number): Make it static.
12432
12433 2013-01-16 Yao Qi <yao@codesourcery.com>
12434
12435 * infcmd.c (step_once): Don't check '!single_inst' as it was
12436 checked before.
12437
12438 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12439
12440 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12441
12442 2013-01-14 Tom Tromey <tromey@redhat.com>
12443
12444 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12445 set command.
12446 * command.h (add_setshow_string_noescape_cmd): Update.
12447 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12448 (complete_set_gnutarget): New function.
12449 (_initialize_core): Set the "set gnutarget" completer.
12450
12451 2013-01-14 Tom Tromey <tromey@redhat.com>
12452
12453 PR symtab/14442:
12454 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12455 (c_type_print_modifier): Likewise.
12456 * dwarf2read.c (read_tag_restrict_type): New function.
12457 (read_type_die_1): Handle DW_TAG_restrict_type.
12458 * gdbtypes.c (make_restrict_type): New function.
12459 (recursive_dump_type): Handle TYPE_RESTRICT.
12460 * gdbtypes.h (enum type_flag_values): Renumber.
12461 (enum type_instance_flag_value): Add
12462 TYPE_INSTANCE_FLAG_RESTRICT.
12463 (TYPE_RESTRICT): New macro.
12464 (make_restrict_type): Declare.
12465
12466 2013-01-14 Tom Tromey <tromey@redhat.com>
12467
12468 PR symtab/14931:
12469 * psymtab.c (struct psymtab_state): New.
12470 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12471 functions.
12472 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12473 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12474
12475 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12476 Pedro Alves <palves@redhat.com>
12477
12478 PR remote/14786
12479
12480 * remote.c (remote_threads_info): Make a copy of the reply from
12481 qfThreadInfo and use that instead of rs->buf.
12482
12483 2013-01-14 Yao Qi <yao@codesourcery.com>
12484
12485 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12486 (dbx_psymtab_to_symtab): Likewise.
12487 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12488 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12489 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12490
12491 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12492
12493 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12494 make_cleanup_restore_current_language. Call set_language. Move
12495 OLD_CHAIN and INNER_CHAIN cleanups.
12496 * utils.c (do_restore_current_language)
12497 (make_cleanup_restore_current_language): New functions.
12498 * utils.h (make_cleanup_restore_current_language): New declaration.
12499
12500 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12501
12502 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12503 non-existing files.
12504
12505 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12506 non-existing files if FILENAME is already absolute.
12507
12508 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12509
12510 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12511 fputs_filtered. Append trailing newline.
12512
12513 2013-01-11 Yao Qi <yao@codesourcery.com>
12514 Stan Shebs <stan@codesourcery.com>
12515
12516 * psymtab.c (init_psymbol_list): Clarify the comment.
12517
12518 2013-01-11 Yao Qi <yao@codesourcery.com>
12519
12520 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12521 (update_dprintf_command_list): Assert that 'printf_line' is
12522 non-null. Remove condition check.
12523
12524 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12525
12526 Code cleanup.
12527 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12528 type const char *.
12529 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12530 const char *.
12531 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12532
12533 2013-01-09 Anthony Green <green@moxielogic.com>
12534
12535 * cp-abi.c (cplus_print_vtable): Don't return value from void
12536 function.
12537 * ada-lang.c (re_set_catch_assert): Ditto.
12538
12539 2013-01-09 Doug Evans <dje@google.com>
12540
12541 * symfile.h (quick_symbol_functions): Delete member
12542 pre_expand_symtabs_matching. All uses removed.
12543 * dwarf2read.c (dw2_lookup_symbol): Implement.
12544 (dw2_do_expand_symtabs_matching): Delete.
12545 (dw2_pre_expand_symtabs_matching): Delete.
12546 (struct dw2_symtab_iterator): New type.
12547 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12548 (dw2_expand_symtabs_for_function): Rewrite.
12549 (dwarf2_gdb_index_functions): Update.
12550 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12551 (psym_functions): Update.
12552
12553 2013-01-09 Tom Tromey <tromey@redhat.com>
12554
12555 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12556 * configure: Rebuild.
12557 * configure.ac: Add somread.o to the build if BFD has SOM
12558 support.
12559 * somread.c: Include som/aout.h, not syms.h.
12560 (som_symtab_read): Use som_external_symbol_dictionary_record.
12561 Unpack records manually.
12562 (_initialize_somread): Declare.
12563
12564 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12565
12566 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12567 Cast return_address to 64bits.
12568
12569 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12570
12571 * printcmd.c: Remove define of function output_command.
12572 * tracepoint.c: Remove extern of function output_command.
12573 * valprint.h: (output_command): New extern.
12574
12575 2013-01-07 Tom Tromey <tromey@redhat.com>
12576
12577 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12578 Remove.
12579 (objc_language_defn): Use c_printchar, c_printstr,
12580 c_emit_char.
12581
12582 2013-01-07 Tom Tromey <tromey@redhat.com>
12583
12584 PR cli/7719:
12585 * NEWS: Update.
12586 * ada-valprint.c (printstr, print_field_values): Remove
12587 "inspect_it" code.
12588 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12589 code.
12590 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12591 code.
12592 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12593 * main.c (captured_main): Remove "epoch" argument.
12594 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12595 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12596 * p-valprint.c (pascal_object_print_value_fields): Remove
12597 "inspect_it" code.
12598 * printcmd.c (print_command_1): Remove 'inspect' argument.
12599 (print_command, call_command): Update.
12600 (inspect_command): Remove.
12601 (_initialize_printcmd): Make "inspect" an alias for "print".
12602 * top.c (epoch_interface): Remove.
12603 * top.h (epoch_interface): Remove.
12604 * valprint.c (user_print_options): Update.
12605 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12606 * valprint.h (struct value_print_options) <inspect_it>: Remove
12607 field.
12608
12609 2013-01-04 Tom Tromey <tromey@redhat.com>
12610
12611 * valprint.h (read_string): Add 'extern'.
12612
12613 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12614
12615 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12616 used to decide whether to define darwin_read_dyld_info or not.
12617
12618 2013-01-03 Pierre Muller <muller@sourceware.org>
12619
12620 * main.c (relocate_gdb_directory): Avoid calling stat function
12621 if DIR is empty.
12622
12623 2013-01-03 Yao Qi <yao@codesourcery.com>
12624
12625 * psymtab.c (fixup_psymbol_section): Update declaration.
12626 (fixup_psymbol_section): Remove code returning value.
12627
12628 2013-01-03 Yao Qi <yao@codesourcery.com>
12629
12630 * symtab.h: Remove some out of date comments.
12631 (enum exception_event_kind): Move it ...
12632 * breakpoint.c: ... here.
12633
12634 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12635
12636 PR gdb/14405
12637 * darwin-nat.c (darwin_read_dyld_info): Only build if
12638 TASK_DYLD_INFO_COUNT is defined.
12639 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12640 TASK_DYLD_INFO_COUNT is defined.
12641
12642 2013-01-02 Tom Tromey <tromey@redhat.com>
12643
12644 * symfile.h (struct ecoff_debug_hack): Remove.
12645 * objfiles.c: Don't include mdebugread.h.
12646
12647 2013-01-02 Tom Tromey <tromey@redhat.com>
12648
12649 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12650 * configure.ac: Check for Mach-O support in BFD. Update
12651 CONFIG_OBS.
12652 * configure: Rebuild.
12653
12654 2013-01-02 Tom Tromey <tromey@redhat.com>
12655
12656 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12657 * configure.ac: Use GDB_AC_CHECK_BFD.
12658 * configure: Rebuild.
12659
12660 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12661
12662 * MAINTAINERS: Update my email.
12663
12664 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12665
12666 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12667
12668 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12669
12670 * rs6000-nat.c (bss_data_overlap): New function.
12671 (vmap_symtab): Use it to adjust the .bss section's offset.
12672
12673 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12674
12675 Update year range in copyright notice of all files.
12676
12677 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12678
12679 * top.c (print_gdb_version): Update copyright year.
12680
12681 For older changes see ChangeLog-2012.
12682 \f
12683 Local Variables:
12684 mode: change-log
12685 left-margin: 8
12686 fill-column: 74
12687 version-control: never
12688 coding: utf-8
12689 End:
This page took 0.291669 seconds and 5 git commands to generate.