1 2013-11-28 Doug Evans <xdje42@gmail.com>
3 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
4 breakpoint_object. All uses updated.
5 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
6 breakpoint_object. All uses updated.
7 * python.c (*): All uses of breakpoint_object updated.
8 * python.h (*): All uses of breakpoint_object updated.
9 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
10 * python/py-finishbreakpoint.c (*): Ditto.
12 2013-11-28 Doug Evans <xdje42@gmail.com>
14 * configure.ac: Add comments delineating libpython and libmcheck.
15 * configure: Regenerate.
17 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
18 Pedro Alves <palves@redhat.com>
20 * valprint.c (value_check_printable): If the value is entirely
21 unavailable, print a single "<unavailable>" instead of printing
24 2013-11-28 Pedro Alves <palves@redhat.com>
26 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
27 Add "set debug frame" output.
28 (frame_stop_reason_symbol_string): New function.
30 2013-11-28 Pedro Alves <palves@redhat.com>
32 * frame-unwind.c (default_frame_unwind_stop_reason): Return
33 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
34 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
36 2013-11-28 Pedro Alves <palves@redhat.com>
38 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
39 set the unwind stop reason to UNWIND_OUTERMOST, not
40 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
42 2013-11-28 Pedro Alves <palves@redhat.com>
44 * frame.c (frame_unwind_register): Say the register was "not
45 saved" instead of "optimized out".
47 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
51 * configure.ac: Tighten cygwin detection check.
53 2013-11-27 Pedro Alves <palves@redhat.com>
55 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
56 register in the previous frame's arch.
58 2013-11-27 Pedro Alves <palves@redhat.com>
60 * frame-unwind.c (frame_unwind_got_optimized): Return
61 an lval_register value instead of a not_lval value.
63 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
65 * frame.c: Include "valprint.h".
66 (frame_unwind_register_value): Use value_optimized_out.
67 * value.c (value_fetch_lazy): Likewise.
69 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
71 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
73 2013-11-26 Tom Tromey <tromey@redhat.com>
75 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
78 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
80 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
81 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
84 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
86 2013-11-25 Keith Seitz <keiths@redhat.com>
89 * c-exp.y (classify_inner_name): If no matching symbol was
90 found, try looking up the token as a base class.
91 Likewise if a constructor was found.
92 * cp-namespace.c (find_type_baseclass_by_name): New function.
93 * cp-support.h (find_type_baseclass_by_name): Declare.
94 * valops.c (value_struct_elt_for_reference): If we get
95 a non-static field, try to get a value based on the
96 current instance, if any.
98 2013-11-24 Yao Qi <yao@codesourcery.com>
100 * disasm.c (dis_asm_read_memory): Call target_read_code
101 instead of target_read_memory.
103 2013-11-24 Yao Qi <yao@codesourcery.com>
105 * NEWS: Add note on new "set code-cache" option.
106 * target-dcache.c (code_cache_enabled_1): New variable.
107 (code_cache_enabled): New variable.
108 (show_code_cache, set_code_cache): New function.
109 (code_cache_enabled_p): New function.
110 (_initialize_target_dcache): Register command.
111 * target-dcache.h (code_cache_enabled_p): Declare.
112 * target.c (memory_xfer_partial_1):Handle
113 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
114 (target_read_code): New function.
115 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
117 (target_read_code): Declare.
119 2013-11-24 Yao Qi <yao@codesourcery.com>
121 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
122 (stack_cache_enabled_1): ... this. New variable.
123 (stack_cache_enabled_p): Rename to ...
124 (stack_cache_enabled): ... this. New variable.
125 (set_stack_cache_enabled_p): Rename to ...
126 (set_stack_cache): ... this. Update caller.
127 (show_stack_cache_enabled_p): Rename to ...
128 (show_stack_cache): ... this. Update caller.
129 (stack_cache_enabled): Rename to ...
130 (stack_cache_enabled_p): ... this. Update caller.
131 (_initialize_target_dcache): Replace "data cache" with
132 "target memory cache".
133 * target-dcache.h (stack_cache_enabled): Remove declaration.
134 (stack_cache_enabled_p): Add declaration.
136 2013-11-23 Doug Evans <xdje42@gmail.com>
138 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
141 2013-11-23 Doug Evans <xdje42@gmail.com>
143 * python/py-frame.c (frapy_block): Fix error message text.
145 2013-11-23 Doug Evans <xdje42@gmail.com>
147 * cli/cli-script.c (multi_line_command_p): New function.
148 (recurse_read_control_structure, read_command_lines_1): Call it.
149 (execute_control_command): Consistently have a blank line between
152 2013-11-22 Sterling Augustine <saugustine@google.com>
155 * valprint.c (read_string): Set new variable fetchlen based on
156 fetchlimit and size. Use it in call to partial_memory_read.
159 2013-11-22 Tom Tromey <tromey@redhat.com>
162 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
163 the return address column is unspecified.
165 2013-11-22 Tom Tromey <tromey@redhat.com>
166 Pedro Alves <palves@redhat.com>
169 * value.c (value_fetch_lazy): Internal error if
170 get_frame_register_value returns the same register.
172 2013-11-22 Pedro Alves <palves@redhat.com>
173 Tom Tromey <tromey@redhat.com>
175 * frame.c (frame_stash_add): Now returns whether a frame with the
176 same ID was already known.
177 (compute_frame_id): New function, factored out from get_frame_id.
178 (get_frame_id): No longer lazilly compute the frame id here.
179 (get_prev_frame_if_no_cycle): New function. Detects wider stack
181 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
182 and checking for stack cycles here.
184 2013-11-22 Pedro Alves <palves@redhat.com>
187 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
188 this frame and the new previous frame, not between this frame and
191 2013-11-22 Pedro Alves <palves@redhat.com>
194 * dwarf2-frame.c (struct dwarf2_frame_cache)
195 <checked_tailcall_bottom, entry_cfa_sp_offset,
196 entry_cfa_sp_offset_p>: New fields.
197 (dwarf2_frame_cache): Adjust to use the new cache fields instead
198 of locals. Don't call dwarf2_tailcall_sniffer_first here.
199 (dwarf2_frame_prev_register): Call it here, but only once.
201 2013-11-21 Doug Evans <xdje42@gmail.com>
203 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
204 (type_equality_entry): Move here from python/py-type.c.
205 (type_equality_entry_d): Ditto.
206 (compare_maybe_null_strings, check_types_equal): Ditto.
207 (check_types_worklist, types_deeply_equal): Ditto.
208 * gdbtypes.h (types_deeply_equal): Declare.
209 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
210 (typy_richcompare): Update.
212 2013-11-20 Joel Brobecker <brobecker@adacore.com>
214 * python/py-value.c (is_intlike): Delete.
215 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
216 by use of is_integral_type.
217 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
218 by use of is_integral_type and check for TYPE_CODE_PTR.
220 2013-11-20 Tom Tromey <tromey@redhat.com>
222 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
224 * gnulib/aclocal.m4: Update.
225 * gnulib/config.in: Update.
226 * gnulib/configure: Update.
227 * gnulib/import/Makefile.am: Update.
228 * gnulib/import/Makefile.in: Update.
229 * gnulib/import/errno.in.h: Remove.
230 * gnulib/import/intprops.h: Remove.
231 * gnulib/import/m4/errno_h.m4: Remove.
232 * gnulib/import/m4/gnulib-cache.m4: Update.
233 * gnulib/import/m4/gnulib-comp.m4: Update.
234 * gnulib/import/m4/strerror.m4: Remove.
235 * gnulib/import/m4/sys_socket_h.m4: Remove.
236 * gnulib/import/strerror-override.c: Remove.
237 * gnulib/import/strerror-override.h: Remove.
238 * gnulib/import/strerror.c: Remove.
239 * gnulib/update-gnulib.sh: Update.
241 2013-11-20 Yao Qi <yao@codesourcery.com>
243 * target-dcache.c (target_dcache_get_or_init): Call
244 set_address_space_data if 'dcache' is NULL.
246 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
248 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
250 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
252 * python/lib/gdb/command/bound_register.py: New file.
253 * data-directory/Makefile.in: Copy bond_register.py to the right path
254 to be initialized at gdb startup.
256 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
258 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
260 (amd64_linux_read_description): Add initialization for MPX and
262 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
263 (amd64_linux_gregset_reg_offset): Add MPX registers.
264 (amd64_linux_core_read_description): Add initialization for MPX
266 (_initialize_amd64_linux_tdep): Initialize MPX targets.
267 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
268 register on the list.
269 (tdesc_amd64_mpx_linux) Add new target for MPX.
270 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
271 (amd64_mpx_names): MPX register names.
272 (amd64_init_abi): Add MPX register while initializing the ABI.
273 (_initialize_amd64_tdep): Initialize MPX targets.
274 * amd64-tdep.h (amd64_regnum): Add MPX registers.
275 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
277 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
279 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
280 registers on the range of registers to be read from
282 (i386_linux_read_description): Add case for MPX.
283 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
284 (i386_linux_gregset_reg_offset): Add MPX registers.
285 (i386_linux_core_read_description): Initialize also MPX.
286 (_initialize_i386_linux_tdep): Add mpx initialization.
287 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
289 (i386_regnum): Add MPX registers.
290 (I386_MPX_NUM_REGS): New macro.
291 (i386_bnd_regnum_p): New function.
292 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
293 number of registers to be the number of BNDSTATUS.
294 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
295 * i386-tdep.c: Include features/i386/i386-mpx.c.
296 (i386_mpx_names): Add MPX register names array.
297 (i386_bnd_names): Add bnd pseudo register names array.
298 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
300 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
301 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
303 (i386_bnd_type): New function.
304 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
306 (i386_pseudo_register_read_into_value): Add bnd case.
307 (i386_pseudo_register_write): Add bnd pseudo registers.
308 (i386_register_reggroup_p): Add MPX register to the group all.
309 (i386_validate_tdesc_p): Add MPX to the target description
311 (i386_pseudo_register_name): Add bnd pseudo registers.
312 (i386_gdbarch_init): Add MPX for architecture initialization.
313 (_initia_initialize_i386_tdep): Add mpx initialization.
314 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
316 (XSAVE_MPX_ADDR): New macro.
317 (i387_supply_xsave): Add MPX case.
318 (i387_collect_xsave): Add MPX case.
319 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
320 (I387_BNDCFGU_REGNUM): New macro.
321 (I387_NUM_MPX_REGS): New macro.
322 (I387_NUM_BND_REGS): New macro.
323 (I387_NUM_MPX_CTRL_REGS): New macro.
324 (I387_MPXEND_REGNUM): New macro.
325 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
326 (I386_XSTATE_BNDCFG): Likewise.
327 (I386_XSTATE_MPX_MASK): Likewise.
328 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
329 (I386_XSTATE_BNDREGS_SIZE): New macro.
330 (I386_XSTATE_BNDCFG_SIZE): Likewise.
331 (I386_XSTATE_SIZE): Adapt for MPX.
332 (I386_XSTATE_MAX_SIZE): Likewise.
334 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
336 * features/i386/Makefile: Adapts for using MPX registers.
337 * features/i386/32bit-mpx.xml: New file.
338 * features/i386/64bit-mpx.xml: Likewise.
339 * features/i386/amd64-mpx-linux.c: Likewise.
340 * features/i386/amd64-mpx-linux.xml: Likewise.
341 * features/i386/amd64-mpx.c: Likewise.
342 * features/i386/amd64-mpx.xml: Likewise.
343 * features/i386/i386-mpx-linux.c: Likewise.
344 * features/i386/i386-mpx-linux.xml: Likewise.
345 * features/i386/i386-mpx.c: Likewise.
346 * features/i386/i386-mpx.xml: Likewise.
347 * regformats/i386/amd64-mpx-linux.dat: New file.
348 * regformats/i386/amd64-mpx.dat: Likewise.
349 * regformats/i386/i386-mpx-linux.dat: Likewise.
350 * regformats/i386/i386-mpx.dat: Likewise.
352 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
354 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
355 Modified logic of creating a bitfield to be in sync with
358 2013-11-20 Will Newton <will.newton@linaro.org>
360 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
363 2013-11-20 Yao Qi <yao@codesourcery.com>
365 * progspace.h (struct address_space_data): Declare.
366 * target-dcache.c: Include "progspace.h".
367 (target_dache): Remove.
368 (target_dcache_aspace_key): New.
369 (target_dcache_cleanup): New function.
370 (target_dcache_init_p): Get data through
371 target_dcache_aspace_key.
372 (target_dcache_invalidate): Likewise.
373 (target_dcache_get): Likewise.
374 (target_dcache_get_or_init): Likewise.
375 (_initialize_target_dcache): Initialize
376 target_dcache_aspace_key.
378 2013-11-20 Yao Qi <yao@codesourcery.com>
380 * progspace.c (struct address_space): Update comments.
381 <REGISTRY_FIELDS>: New fields.
382 DEFINE_REGISTRY for address_space.
383 (new_address_space): Call address_space_alloc_data.
384 (free_address_space): Call address_space_free_data.
385 * progspace.h: Use DECLARE_REGISTRY.
387 2013-11-20 Yao Qi <yao@codesourcery.com>
389 * Makefile.in (SFILES):Add target-dcache.c.
390 (HFILES_NO_SRCDIR): Add target-dcache.h.
391 (COMMON_OBS): Add target-dcache.o.
392 * dcache.c: Remove inclusion to "target.h". Include
394 * memattr.c: Include "target-dcache.h".
396 * tracepoint.c: Likewise.
397 * target.c: (stack_cache_enabled_p_1): Move to
399 (stack_cache_enabled_p): Likewise.
400 (set_stack_cache_enabled_p): Likewise.
401 (show_stack_cache_enabled_p): Likewise.
402 (target_dcache, target_dcache_init_p): Likewise.
403 (target_dcache_invalidate): Likewise.
404 (target_dcache_get, target_dcache_get_or_init): Likewise.
405 (memory_xfer_partial_1): Call function stack_cache_enabled.
406 (initialize_target): Move code to target-dcache.c.
407 * target.h (target_dcache_invalidate): Move to
409 (target_dcache_get): Likewise.
410 * target-dcache.c: New.
411 * target-dcache.h: New.
413 2013-11-20 Yao Qi <yao@codesourcery.com>
415 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
418 2013-11-20 Yao Qi <yao@codesourcery.com>
420 * dcache.c (last_cache): Remove.
421 (dcache_free, dcache_init): Update.
423 (dcache_print_line): Add parameter 'dcache'. Replace
424 'target_dcache' with 'dcache'.
425 (dcache_info): Move code to dcache_info_1. Call
427 (dcache_info_1): New function.
428 (set_dcache_size): Call target_dcache_invalidate.
429 (set_dcache_line_size): Call target_dcache_invalidate.
430 * target.c (target_dcache_init_p): New function.
431 (target_dcache_invalidate): Check target_dcache_init_p first.
432 (target_dcache_get, target_dcache_get_or_init): New function.
433 (memory_xfer_partial_1): Adjust.
434 (initialize_target): Don't initialize 'target_dcache'.
435 * target.h (struct dcache_struct): Declare.
436 (target_dcache_get): Declare.
438 2013-11-19 Yao Qi <yao@codesourcery.com>
440 * varobj.c (varobj_get_type): Fix typo.
442 2013-11-19 Joel Brobecker <brobecker@adacore.com>
444 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
446 2013-11-19 Joel Brobecker <brobecker@adacore.com>
448 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
451 2013-11-18 Tom Tromey <tromey@redhat.com>
453 * common/gdb_stat.h: Remove.
454 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
455 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
456 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
457 * corefile.c: Use sys/stat.h, not gdb_stat.h.
458 * ctf.c: Use sys/stat.h, not gdb_stat.h.
459 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
460 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
461 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
462 * exec.c: Use sys/stat.h, not gdb_stat.h.
463 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
464 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
465 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
466 * jit.c: Use sys/stat.h, not gdb_stat.h.
467 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
468 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
469 * main.c: Use sys/stat.h, not gdb_stat.h.
470 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
471 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
472 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
473 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
474 * procfs.c: Use sys/stat.h, not gdb_stat.h.
475 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
476 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
477 * remote.c: Use sys/stat.h, not gdb_stat.h.
478 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
479 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
480 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
481 * source.c: Use sys/stat.h, not gdb_stat.h.
482 * symfile.c: Use sys/stat.h, not gdb_stat.h.
483 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
484 * symtab.c: Use sys/stat.h, not gdb_stat.h.
485 * top.c: Use sys/stat.h, not gdb_stat.h.
486 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
488 2013-11-18 Tom Tromey <tromey@redhat.com>
490 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
492 * gnulib/aclocal.m4: Update.
493 * gnulib/config.in: Update.
494 * gnulib/configure: Update.
495 * gnulib/import/Makefile.am: Update.
496 * gnulib/import/Makefile.in: Update.
497 * gnulib/import/m4/gnulib-cache.m4: Update.
498 * gnulib/import/m4/gnulib-comp.m4: Update.
499 * gnulib/import/m4/sys_stat_h.m4: New.
500 * gnulib/import/m4/time_h.m4: New.
501 * gnulib/import/sys_stat.in.h: New.
502 * gnulib/import/time.in.h: New.
504 2013-11-18 Tom Tromey <tromey@redhat.com>
506 * configure: Rebuild.
507 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
509 2013-11-18 Tom Tromey <tromey@redhat.com>
511 * configure: Rebuild.
512 * configure.ac: Don't check for unistd.h.
514 2013-11-18 Tom Tromey <tromey@redhat.com>
516 * configure: Rebuild.
517 * configure.ac: Don't check for stdlib.h
518 * defs.h: Include stdlib.h unconditionally.
520 2013-11-18 Tom Tromey <tromey@redhat.com>
522 * config.in: Rebuild.
523 * configure: Rebuild.
524 * configure.ac: Don't check for stddef.h.
525 * defs.h: Unconditionally include stddef.h. Remove duplicate
528 2013-11-18 Tom Tromey <tromey@redhat.com>
530 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
531 * common/gdb_dirent.h: Remove.
532 * common/filestuff.c: Use dirent.h.
533 * common/linux-osdata.c: Use dirent.h.
535 * config.in: Rebuild.
536 * configure: Rebuild.
537 * configure.ac: Don't use AC_HEADER_DIRENT.
538 * linux-fork.c: Use dirent.h
539 * linux-nat.c: Use dirent.h.
540 * nto-procfs.c: Use dirent.h.
541 * procfs.c: Use dirent.h.
543 2013-11-18 Tom Tromey <tromey@redhat.com>
545 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
546 * gnulib/aclocal.m4: Update.
547 * gnulib/config.in: Update.
548 * gnulib/configure: Update.
549 * gnulib/import/Makefile.am: Update.
550 * gnulib/import/Makefile.in: Update.
551 * gnulib/import/dirent.in.h: New.
552 * gnulib/import/m4/dirent_h.m4: New.
553 * gnulib/import/m4/gnulib-cache.m4: Update.
554 * gnulib/import/m4/gnulib-comp.m4: Update.
556 2013-11-18 Tom Tromey <tromey@redhat.com>
558 * configure: Rebuild.
559 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
562 2013-11-18 Tom Tromey <tromey@redhat.com>
564 * common/gdb_string.h: Remove.
565 * aarch64-tdep.c: Use string.h, not gdb_string.h.
566 * ada-exp.y: Use string.h, not gdb_string.h.
567 * ada-lang.c: Use string.h, not gdb_string.h.
568 * ada-lex.l: Use string.h, not gdb_string.h.
569 * ada-typeprint.c: Use string.h, not gdb_string.h.
570 * ada-valprint.c: Use string.h, not gdb_string.h.
571 * aix-thread.c: Use string.h, not gdb_string.h.
572 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
573 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
574 * alpha-nat.c: Use string.h, not gdb_string.h.
575 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
576 * alpha-tdep.c: Use string.h, not gdb_string.h.
577 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
578 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
579 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
580 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
581 * amd64-nat.c: Use string.h, not gdb_string.h.
582 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
583 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
584 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
585 * arch-utils.c: Use string.h, not gdb_string.h.
586 * arm-linux-nat.c: Use string.h, not gdb_string.h.
587 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
588 * arm-tdep.c: Use string.h, not gdb_string.h.
589 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
590 * armbsd-tdep.c: Use string.h, not gdb_string.h.
591 * armnbsd-nat.c: Use string.h, not gdb_string.h.
592 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
593 * armobsd-tdep.c: Use string.h, not gdb_string.h.
594 * avr-tdep.c: Use string.h, not gdb_string.h.
595 * ax-gdb.c: Use string.h, not gdb_string.h.
596 * ax-general.c: Use string.h, not gdb_string.h.
597 * bcache.c: Use string.h, not gdb_string.h.
598 * bfin-tdep.c: Use string.h, not gdb_string.h.
599 * breakpoint.c: Use string.h, not gdb_string.h.
600 * build-id.c: Use string.h, not gdb_string.h.
601 * buildsym.c: Use string.h, not gdb_string.h.
602 * c-exp.y: Use string.h, not gdb_string.h.
603 * c-lang.c: Use string.h, not gdb_string.h.
604 * c-typeprint.c: Use string.h, not gdb_string.h.
605 * c-valprint.c: Use string.h, not gdb_string.h.
606 * charset.c: Use string.h, not gdb_string.h.
607 * cli-out.c: Use string.h, not gdb_string.h.
608 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
609 * cli/cli-decode.c: Use string.h, not gdb_string.h.
610 * cli/cli-dump.c: Use string.h, not gdb_string.h.
611 * cli/cli-interp.c: Use string.h, not gdb_string.h.
612 * cli/cli-logging.c: Use string.h, not gdb_string.h.
613 * cli/cli-script.c: Use string.h, not gdb_string.h.
614 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
615 * cli/cli-utils.c: Use string.h, not gdb_string.h.
616 * coffread.c: Use string.h, not gdb_string.h.
617 * common/common-utils.c: Use string.h, not gdb_string.h.
618 * common/filestuff.c: Use string.h, not gdb_string.h.
619 * common/linux-procfs.c: Use string.h, not gdb_string.h.
620 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
621 * common/signals.c: Use string.h, not gdb_string.h.
622 * common/vec.h: Use string.h, not gdb_string.h.
623 * core-regset.c: Use string.h, not gdb_string.h.
624 * corefile.c: Use string.h, not gdb_string.h.
625 * corelow.c: Use string.h, not gdb_string.h.
626 * cp-abi.c: Use string.h, not gdb_string.h.
627 * cp-support.c: Use string.h, not gdb_string.h.
628 * cp-valprint.c: Use string.h, not gdb_string.h.
629 * cris-tdep.c: Use string.h, not gdb_string.h.
630 * d-lang.c: Use string.h, not gdb_string.h.
631 * dbxread.c: Use string.h, not gdb_string.h.
632 * dcache.c: Use string.h, not gdb_string.h.
633 * demangle.c: Use string.h, not gdb_string.h.
634 * dicos-tdep.c: Use string.h, not gdb_string.h.
635 * disasm.c: Use string.h, not gdb_string.h.
636 * doublest.c: Use string.h, not gdb_string.h.
637 * dsrec.c: Use string.h, not gdb_string.h.
638 * dummy-frame.c: Use string.h, not gdb_string.h.
639 * dwarf2-frame.c: Use string.h, not gdb_string.h.
640 * dwarf2loc.c: Use string.h, not gdb_string.h.
641 * dwarf2read.c: Use string.h, not gdb_string.h.
642 * elfread.c: Use string.h, not gdb_string.h.
643 * environ.c: Use string.h, not gdb_string.h.
644 * eval.c: Use string.h, not gdb_string.h.
645 * event-loop.c: Use string.h, not gdb_string.h.
646 * exceptions.c: Use string.h, not gdb_string.h.
647 * exec.c: Use string.h, not gdb_string.h.
648 * expprint.c: Use string.h, not gdb_string.h.
649 * f-exp.y: Use string.h, not gdb_string.h.
650 * f-lang.c: Use string.h, not gdb_string.h.
651 * f-typeprint.c: Use string.h, not gdb_string.h.
652 * f-valprint.c: Use string.h, not gdb_string.h.
653 * fbsd-nat.c: Use string.h, not gdb_string.h.
654 * findcmd.c: Use string.h, not gdb_string.h.
655 * findvar.c: Use string.h, not gdb_string.h.
656 * fork-child.c: Use string.h, not gdb_string.h.
657 * frame.c: Use string.h, not gdb_string.h.
658 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
659 * frv-tdep.c: Use string.h, not gdb_string.h.
660 * gdb.c: Use string.h, not gdb_string.h.
661 * gdb_bfd.c: Use string.h, not gdb_string.h.
662 * gdbarch.c: Use string.h, not gdb_string.h.
663 * gdbtypes.c: Use string.h, not gdb_string.h.
664 * gnu-nat.c: Use string.h, not gdb_string.h.
665 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
666 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
667 * go-exp.y: Use string.h, not gdb_string.h.
668 * go-lang.c: Use string.h, not gdb_string.h.
669 * go32-nat.c: Use string.h, not gdb_string.h.
670 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
671 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
672 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
673 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
674 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
675 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
676 * i386-linux-nat.c: Use string.h, not gdb_string.h.
677 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
678 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
679 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
680 * i386-tdep.c: Use string.h, not gdb_string.h.
681 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
682 * i386gnu-nat.c: Use string.h, not gdb_string.h.
683 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
684 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
685 * i387-tdep.c: Use string.h, not gdb_string.h.
686 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
687 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
688 * inf-child.c: Use string.h, not gdb_string.h.
689 * inf-ptrace.c: Use string.h, not gdb_string.h.
690 * inf-ttrace.c: Use string.h, not gdb_string.h.
691 * infcall.c: Use string.h, not gdb_string.h.
692 * infcmd.c: Use string.h, not gdb_string.h.
693 * inflow.c: Use string.h, not gdb_string.h.
694 * infrun.c: Use string.h, not gdb_string.h.
695 * interps.c: Use string.h, not gdb_string.h.
696 * iq2000-tdep.c: Use string.h, not gdb_string.h.
697 * irix5-nat.c: Use string.h, not gdb_string.h.
698 * jv-exp.y: Use string.h, not gdb_string.h.
699 * jv-lang.c: Use string.h, not gdb_string.h.
700 * jv-typeprint.c: Use string.h, not gdb_string.h.
701 * jv-valprint.c: Use string.h, not gdb_string.h.
702 * language.c: Use string.h, not gdb_string.h.
703 * linux-fork.c: Use string.h, not gdb_string.h.
704 * linux-nat.c: Use string.h, not gdb_string.h.
705 * lm32-tdep.c: Use string.h, not gdb_string.h.
706 * m2-exp.y: Use string.h, not gdb_string.h.
707 * m2-typeprint.c: Use string.h, not gdb_string.h.
708 * m32c-tdep.c: Use string.h, not gdb_string.h.
709 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
710 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
711 * m32r-rom.c: Use string.h, not gdb_string.h.
712 * m32r-tdep.c: Use string.h, not gdb_string.h.
713 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
714 * m68k-tdep.c: Use string.h, not gdb_string.h.
715 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
716 * m68klinux-nat.c: Use string.h, not gdb_string.h.
717 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
718 * m88k-tdep.c: Use string.h, not gdb_string.h.
719 * macrocmd.c: Use string.h, not gdb_string.h.
720 * main.c: Use string.h, not gdb_string.h.
721 * mdebugread.c: Use string.h, not gdb_string.h.
722 * mem-break.c: Use string.h, not gdb_string.h.
723 * memattr.c: Use string.h, not gdb_string.h.
724 * memory-map.c: Use string.h, not gdb_string.h.
725 * mep-tdep.c: Use string.h, not gdb_string.h.
726 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
727 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
728 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
729 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
730 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
731 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
732 * mi/mi-console.c: Use string.h, not gdb_string.h.
733 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
734 * mi/mi-interp.c: Use string.h, not gdb_string.h.
735 * mi/mi-main.c: Use string.h, not gdb_string.h.
736 * mi/mi-parse.c: Use string.h, not gdb_string.h.
737 * microblaze-rom.c: Use string.h, not gdb_string.h.
738 * microblaze-tdep.c: Use string.h, not gdb_string.h.
739 * mingw-hdep.c: Use string.h, not gdb_string.h.
740 * minidebug.c: Use string.h, not gdb_string.h.
741 * minsyms.c: Use string.h, not gdb_string.h.
742 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
743 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
744 * mips-tdep.c: Use string.h, not gdb_string.h.
745 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
746 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
747 * mipsread.c: Use string.h, not gdb_string.h.
748 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
749 * mn10300-tdep.c: Use string.h, not gdb_string.h.
750 * monitor.c: Use string.h, not gdb_string.h.
751 * moxie-tdep.c: Use string.h, not gdb_string.h.
752 * mt-tdep.c: Use string.h, not gdb_string.h.
753 * nbsd-tdep.c: Use string.h, not gdb_string.h.
754 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
755 * nto-procfs.c: Use string.h, not gdb_string.h.
756 * nto-tdep.c: Use string.h, not gdb_string.h.
757 * objc-lang.c: Use string.h, not gdb_string.h.
758 * objfiles.c: Use string.h, not gdb_string.h.
759 * opencl-lang.c: Use string.h, not gdb_string.h.
760 * osabi.c: Use string.h, not gdb_string.h.
761 * osdata.c: Use string.h, not gdb_string.h.
762 * p-exp.y: Use string.h, not gdb_string.h.
763 * p-lang.c: Use string.h, not gdb_string.h.
764 * p-typeprint.c: Use string.h, not gdb_string.h.
765 * parse.c: Use string.h, not gdb_string.h.
766 * posix-hdep.c: Use string.h, not gdb_string.h.
767 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
768 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
769 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
770 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
771 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
772 * printcmd.c: Use string.h, not gdb_string.h.
773 * procfs.c: Use string.h, not gdb_string.h.
774 * prologue-value.c: Use string.h, not gdb_string.h.
775 * python/py-auto-load.c: Use string.h, not gdb_string.h.
776 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
777 * ravenscar-thread.c: Use string.h, not gdb_string.h.
778 * regcache.c: Use string.h, not gdb_string.h.
779 * registry.c: Use string.h, not gdb_string.h.
780 * remote-fileio.c: Use string.h, not gdb_string.h.
781 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
782 * remote-mips.c: Use string.h, not gdb_string.h.
783 * remote-sim.c: Use string.h, not gdb_string.h.
784 * remote.c: Use string.h, not gdb_string.h.
785 * reverse.c: Use string.h, not gdb_string.h.
786 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
787 * ser-base.c: Use string.h, not gdb_string.h.
788 * ser-go32.c: Use string.h, not gdb_string.h.
789 * ser-mingw.c: Use string.h, not gdb_string.h.
790 * ser-pipe.c: Use string.h, not gdb_string.h.
791 * ser-tcp.c: Use string.h, not gdb_string.h.
792 * ser-unix.c: Use string.h, not gdb_string.h.
793 * serial.c: Use string.h, not gdb_string.h.
794 * sh-tdep.c: Use string.h, not gdb_string.h.
795 * sh64-tdep.c: Use string.h, not gdb_string.h.
796 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
797 * skip.c: Use string.h, not gdb_string.h.
798 * sol-thread.c: Use string.h, not gdb_string.h.
799 * solib-dsbt.c: Use string.h, not gdb_string.h.
800 * solib-frv.c: Use string.h, not gdb_string.h.
801 * solib-osf.c: Use string.h, not gdb_string.h.
802 * solib-spu.c: Use string.h, not gdb_string.h.
803 * solib-target.c: Use string.h, not gdb_string.h.
804 * solib.c: Use string.h, not gdb_string.h.
805 * somread.c: Use string.h, not gdb_string.h.
806 * source.c: Use string.h, not gdb_string.h.
807 * sparc-nat.c: Use string.h, not gdb_string.h.
808 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
809 * sparc-tdep.c: Use string.h, not gdb_string.h.
810 * sparc64-tdep.c: Use string.h, not gdb_string.h.
811 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
812 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
813 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
814 * spu-linux-nat.c: Use string.h, not gdb_string.h.
815 * spu-multiarch.c: Use string.h, not gdb_string.h.
816 * spu-tdep.c: Use string.h, not gdb_string.h.
817 * stabsread.c: Use string.h, not gdb_string.h.
818 * stack.c: Use string.h, not gdb_string.h.
819 * std-regs.c: Use string.h, not gdb_string.h.
820 * symfile.c: Use string.h, not gdb_string.h.
821 * symmisc.c: Use string.h, not gdb_string.h.
822 * symtab.c: Use string.h, not gdb_string.h.
823 * target.c: Use string.h, not gdb_string.h.
824 * thread.c: Use string.h, not gdb_string.h.
825 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
826 * tilegx-tdep.c: Use string.h, not gdb_string.h.
827 * top.c: Use string.h, not gdb_string.h.
828 * tracepoint.c: Use string.h, not gdb_string.h.
829 * tui/tui-command.c: Use string.h, not gdb_string.h.
830 * tui/tui-data.c: Use string.h, not gdb_string.h.
831 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
832 * tui/tui-file.c: Use string.h, not gdb_string.h.
833 * tui/tui-layout.c: Use string.h, not gdb_string.h.
834 * tui/tui-out.c: Use string.h, not gdb_string.h.
835 * tui/tui-regs.c: Use string.h, not gdb_string.h.
836 * tui/tui-source.c: Use string.h, not gdb_string.h.
837 * tui/tui-stack.c: Use string.h, not gdb_string.h.
838 * tui/tui-win.c: Use string.h, not gdb_string.h.
839 * tui/tui-windata.c: Use string.h, not gdb_string.h.
840 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
841 * typeprint.c: Use string.h, not gdb_string.h.
842 * ui-file.c: Use string.h, not gdb_string.h.
843 * ui-out.c: Use string.h, not gdb_string.h.
844 * user-regs.c: Use string.h, not gdb_string.h.
845 * utils.c: Use string.h, not gdb_string.h.
846 * v850-tdep.c: Use string.h, not gdb_string.h.
847 * valarith.c: Use string.h, not gdb_string.h.
848 * valops.c: Use string.h, not gdb_string.h.
849 * valprint.c: Use string.h, not gdb_string.h.
850 * value.c: Use string.h, not gdb_string.h.
851 * varobj.c: Use string.h, not gdb_string.h.
852 * vax-tdep.c: Use string.h, not gdb_string.h.
853 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
854 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
855 * windows-nat.c: Use string.h, not gdb_string.h.
856 * xcoffread.c: Use string.h, not gdb_string.h.
857 * xml-support.c: Use string.h, not gdb_string.h.
858 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
859 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
861 2013-11-18 Tom Tromey <tromey@redhat.com>
863 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
865 * gnulib/aclocal.m4: Update.
866 * gnulib/config.in: Update.
867 * gnulib/configure: Update.
868 * gnulib/import/Makefile.am: Update.
869 * gnulib/import/Makefile.in: Update.
870 * gnulib/import/errno.in.h: New.
871 * gnulib/import/intprops.h: New.
872 * gnulib/import/m4/errno_h.m4: New.
873 * gnulib/import/m4/gnulib-cache.m4: Update.
874 * gnulib/import/m4/gnulib-comp.m4: Update.
875 * gnulib/import/m4/strerror.m4: New.
876 * gnulib/import/m4/strstr.m4: New.
877 * gnulib/import/m4/sys_socket_h.m4: New.
878 * gnulib/import/strerror-override.c: New.
879 * gnulib/import/strerror-override.h: New.
880 * gnulib/import/strerror.c: New.
881 * gnulib/import/strstr.c: New.
883 2013-11-18 Tom Tromey <tromey@redhat.com>
885 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
888 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
890 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
891 * sparc-tdep.h: And its prototype.
893 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
895 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
897 2013-11-18 Pedro Alves <palves@redhat.com>
899 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
902 2013-11-18 Joel Brobecker <brobecker@adacore.com>
904 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
905 to -list-features output.
907 2013-11-17 Joel Brobecker <brobecker@adacore.com>
909 * dwarf2expr.h (struct dwarf_expr_context_funcs)
910 <read_addr_from_reg>: Renames "read_reg".
911 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
913 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
914 Use read_addr_from_reg in place of read_reg.
915 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
916 in place of read_reg.
917 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
919 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
920 with dwarf_expr_read_addr_from_reg.
921 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
922 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
923 needs_frame_read_addr_from_reg.
925 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
927 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
929 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
931 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
934 2013-11-15 Tom Tromey <tromey@redhat.com>
937 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
938 (classify_name): Likewise. Prefer a field of "this" over a
940 (classify_inner_name, yylex): Update.
942 2013-11-15 Joel Brobecker <brobecker@adacore.com>
944 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
945 Extend the documentation a bit.
946 <get_reg_value>: New field.
947 * dwarf2loc.c (dwarf_expr_get_reg_value)
948 (needs_frame_get_reg_value): New functions.
949 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
951 * dwarf2-frame.c (get_reg_value): New function.
952 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
953 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
954 Use new callback to compute result_val.
956 2013-11-15 Alan Modra <amodra@gmail.com>
958 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
959 (ppc64_desc_entry_point): ..this. Update comments here and at
961 (ppc64_standard_linkage1, ppc64_standard_linkage2,
962 ppc64_standard_linkage3): Update comments.
963 (ppc64_standard_linkage4, ppc64_standard_linkage5,
964 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
966 (ppc64_standard_linkage4_target): New function.
967 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
968 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
969 nop match. Fix comment wrap.
971 2013-11-14 Pedro Alves <palves@redhat.com>
973 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
974 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
976 2013-11-14 Pedro Alves <palves@redhat.com>
978 * infrun.c (struct execution_control_state)
979 <stepped_after_stopped_by_watchpoint>: New field.
980 (get_inferior_stop_soon): New function.
981 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
982 moved to struct execution_control_state -- adjust. Use
983 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
985 (handle_signal_stop): New function, factored out from
986 handle_inferior_event.
988 2013-11-14 Pedro Alves <palves@redhat.com>
990 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
992 * breakpoint.c (bpstat_explains_signal): Adjust to return a
994 (explains_signal_watchpoint, base_breakpoint_explains_signal):
995 Adjust to return a boolean.
996 * breakpoint.h (enum bpstat_signal_value): Delete.
997 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
998 (bpstat_explains_signal): Likewise.
999 * infrun.c (handle_inferior_event) <random signal checks>:
1000 bpstat_explains_signal now returns a boolean - adjust. No longer
1001 consider hiding signals.
1003 2013-11-14 Pedro Alves <palves@redhat.com>
1005 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1006 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1007 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1009 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1010 instead of BPSTAT_SIGNAL_HIDE.
1011 * infrun.c (handle_inferior_event): Rework random signal checks.
1013 2013-11-14 Pedro Alves <palves@redhat.com>
1015 * infrun.c (struct execution_control_state): Remove
1016 'random_signal' field.
1017 (handle_syscall_event): Use bpstat_causes_stop instead of
1018 bpstat_explains_signal. Don't set ecs->random_signal.
1019 (handle_inferior_event): New 'random_signal' local.
1020 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1021 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1022 bpstat_explains_signal. Don't set ecs->random_signal.
1023 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1026 2013-11-14 Pedro Alves <palves@redhat.com>
1028 * infrun.c (handle_inferior_event): Move comment from the
1029 function's body to the function's description, adjusted.
1031 2013-11-14 Pedro Alves <palves@redhat.com>
1033 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1034 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1035 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1038 2013-11-14 Tom Tromey <tromey@redhat.com>
1040 * python/py-linetable.c (ltpy_has_line)
1041 (ltpy_get_all_source_lines): Fix loop termination condition.
1043 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1045 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1046 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1047 PARSE->LANGUAGE during command execution, if set.
1048 * mi/mi-parse.c: Add "language.h" #include.
1049 (mi_parse): Add parsing of "--language" command option.
1051 * NEWS: Add entry mentioning the new "--language" command option.
1053 2013-11-14 Pedro Alves <palves@redhat.com>
1054 Joel Brobecker <brobecker@adacore.com>
1056 * cli/cli-utils.h (extract_arg_const): Add declaration.
1057 * cli/cli-utils.c (extract_arg_const): New function.
1058 (extract_arg): Reimplement using extract_arg_const.
1060 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1062 * language.h: Add "symtab.h" #include.
1064 2013-11-13 Doug Evans <xdje42@gmail.com>
1066 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1067 specific breakpoints, don't evaluate breakpoint condition if
1070 2013-11-13 Keith Seitz <keiths@redhat.com>
1074 * cp-support.c (insepct_type): Add support for substituting
1075 namespace aliases, too.
1076 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1077 for DW_TAG_imported_declaration.
1078 (add_partial_symbol): Likewise.
1079 (process_die): Handle namespace aliases with
1080 read_namespace_alias.
1081 (die_needs_namespace): Add DW_TAG_imported_declaration.
1082 (read_namespace_alias): New function.
1083 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1084 (new_symbol_full): Handle DW_TAG_imported_declaration.
1086 2013-11-13 Keith Seitz <keiths@redhat.com>
1088 * p-exp.y (uptok): Make first parameter const.
1089 (yylex): Make `tokstart' and `tokptr' const.
1090 Don't copy the lexer input to a temporary buffer.
1092 Remove const workaround for parse_escape.
1093 Create a temporary buffer for a convenience variable instead
1094 of doing in-place modification of the input.
1095 If a match is found with a different case from the input,
1096 do not change the input at all.
1097 Use `tmp' to construct the resultant stoken instead of
1100 2013-11-13 Doug Evans <xdje42@gmail.com>
1102 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1104 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1106 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1107 entry with "ada-exceptions".
1109 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1111 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1112 after re-initialization of OBJFILE's obstack.
1114 2013-11-12 Doug Evans <xdje42@gmail.com>
1116 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1117 bs->stop != 0 on entry. Update function comment. Simplify early
1118 exit for frame mismatch. Reindent rest of function.
1120 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1122 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1125 2013-11-12 Doug Evans <dje@google.com>
1127 Work around gold/15646.
1128 * dwarf2read.c (read_index_from_section): Update comment.
1129 (struct dw2_symtab_iterator): New member global_seen.
1130 (dw2_symtab_iter_init): Initialize it.
1131 (dw2_symtab_iter_next): Skip duplicate global symbols.
1132 (dw2_expand_symtabs_matching): Ditto.
1134 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1136 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1137 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1139 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1140 (mi_cmd_info_ada_exceptions): New function.
1141 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1143 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1145 * ada-lang.h: #include "vec.h".
1146 (struct ada_exc_info): New.
1147 (ada_exc_info): New typedef.
1148 (DEF_VEC_O(ada_exc_info)): New vector.
1149 (ada_exceptions_list): Add declaration.
1150 * ada-lang.c (ada_is_exception_sym)
1151 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1152 (sort_remove_dups_ada_exceptions_list)
1153 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1154 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1155 (ada_exceptions_list_1, ada_exceptions_list)
1156 (info_exceptions_command): New function.
1157 (_initialize_ada_language): Add "info exception" command.
1159 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1162 * NEWS: Add linetable feature.
1163 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1164 * python/py-linetable.c: New file.
1165 * python/py-symtab.c (stpy_get_linetable): New function.
1166 * python/python-internal.h (symtab_to_linetable_object): Declare.
1167 (gdbpy_initialize_linetable): Ditto.
1168 * python/python.c (_initialize_python): Call
1169 gdbpy_initialize_linetable.
1171 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1173 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1174 the documentation of fields "except_string" and "condition".
1175 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1176 CONDITION on the heap before passing it to
1177 create_ada_exception_catchpoint.
1178 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1181 2013-11-11 Tom Tromey <tromey@redhat.com>
1183 * config.in, configure: Rebuild.
1184 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1186 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1188 * remote-sim.c (gdbsim_detach): Break declaration into
1189 shorter lines. No code change.
1191 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1193 * remote-sim.c (gdbsim_detach): Fix prototype.
1195 2013-11-08 Doug Evans <dje@google.com>
1197 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1198 (create_debug_types_hash_table): Only print debugging messages for
1199 each TU if dwarf2-read >= 2.
1200 (process_queue): Ditto.
1201 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1204 2013-11-08 Tom Tromey <tromey@redhat.com>
1206 * configure: Rebuild.
1207 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1209 2013-11-08 Tom Tromey <tromey@redhat.com>
1211 * configure, config.in: Rebuild.
1212 * configure.ac: Remove unused configury.
1214 2013-11-08 Tom Tromey <tromey@redhat.com>
1216 * m32c-tdep.c: Use gdb_string.h.
1218 2013-11-08 Tom Tromey <tromey@redhat.com>
1220 * configure, config.in: Rebuild.
1221 * configure.ac: Remove all link.h-related checks.
1223 2013-11-08 Tom Tromey <tromey@redhat.com>
1225 * acinclude.m4: Include common.m4.
1226 * common/common.m4: New file.
1227 * configure, config.in: Rebuild.
1228 * configure.ac: Use GDB_AC_COMMON.
1230 2013-11-08 Doug Evans <dje@google.com>
1232 * NEWS: Mention that "set debug symtab-create" now accepts a
1234 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1235 to set the symtab's primary flag.
1236 * jit.c (finalize_symtab): Ditto.
1237 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1238 * symfile.c (allocate_symtab): Only print debugging messages for
1239 symtab_create_debug levels 2 and higher.
1240 * symtab.c (symtab_create_debug): Change type to unsigned int.
1241 (set_symtab_primary): New function.
1242 (_initialize_symtab): Change "set debug symtab-create" to a
1244 * symtab.h (set_symtab_primary): Declare.
1245 (symtab_create_debug): Update decl.
1247 2013-11-08 Tom Tromey <tromey@redhat.com>
1249 * aix-thread.c (aix_thread_detach): Update.
1250 * corelow.c (core_detach): Update.
1251 * darwin-nat.c (darwin_detach): Update.
1252 * dec-thread.c (dec_thread_detach): Update.
1253 * gnu-nat.c (gnu_detach): Update.
1254 * go32-nat.c (go32_detach): Update.
1255 * inf-ptrace.c (inf_ptrace_detach): Update.
1256 * inf-ttrace.c (inf_ttrace_detach): Update.
1257 * linux-fork.c (linux_fork_detach): Update.
1258 * linux-fork.h (linux_fork_detach): Update.
1259 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1260 local for const-correctness.
1261 * linux-thread-db.c (thread_db_detach): Update.
1262 * monitor.c (monitor_detach): Update.
1263 * nto-procfs.c (procfs_detach): Update.
1264 * procfs.c (procfs_detach): Update.
1265 * record.c (record_detach): Update.
1266 * record.h (record_detach): Update.
1267 * remote-m32r-sdi.c (m32r_detach): Update.
1268 * remote-mips.c (mips_detach): Update.
1269 * remote-sim.c (gdbsim_detach): Update.
1270 * remote.c (remote_detach_1, remote_detach)
1271 (extended_remote_detach): Update.
1272 * sol-thread.c (sol_thread_detach): Update.
1273 * target.c (target_detach): Make "args" const.
1274 (init_dummy_target): Update.
1275 * target.h (struct target_ops) <to_detach>: Make argument const.
1276 (target_detach): Likewise.
1277 * windows-nat.c (windows_detach): Update.
1279 2013-11-07 Doug Evans <dje@google.com>
1282 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1283 and align fields for PT_GNU_RELRO segments.
1285 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1288 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1290 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1292 * NEWS: Document Python temporary breakpoint support.
1293 * python/py-breakpoint.c (bppy_get_temporary): New function.
1294 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1295 to temporary if True.
1297 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1299 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1300 removed to allow analyzing unconditional branch instructions
1301 with PC-relative offsets of zero.
1303 2013-11-07 Yao Qi <yao@codesourcery.com>
1305 * mi/mi-cmd-var.c: Include "language.h".
1306 (mi_cmd_var_info_expression): Get language name from
1308 * varobj.c (varobj_language_string): Remove.
1309 (variable_language): Remove declaration.
1310 (languages): Remove.
1311 (varobj_get_language): Change the type of return value.
1312 (variable_language): Remove.
1313 * varobj.h (enum varobj_languages): Remove.
1314 (varobj_language_string): Remove declaration.
1315 (varobj_get_language): Update declaration.
1317 2013-11-07 Yao Qi <yao@codesourcery.com>
1319 * language.h (struct language_defn) <la_natural_name>: New
1321 * ada-lang.c (ada_language_defn): Initialize field
1323 * c-lang.c (c_language_defn): Likewise.
1324 (cplus_language_defn, asm_language_defn): Likewise.
1325 * d-lang.c (d_language_defn): Likewise.
1326 * f-lang.c (f_language_defn): Likewise.
1327 * go-lang.c (go_language_defn): Likewise.
1328 * jv-lang.c (java_language_defn): Likewise.
1329 * language.c (unknown_language_defn ): Likewise.
1330 (auto_language_defn): Likewise.
1331 * m2-lang.c (m2_language_defn): Likewise.
1332 * objc-lang.c (objc_language_defn): Likewise.
1333 * opencl-lang.c (opencl_language_defn): Likewise.
1334 * p-lang.c (pascal_language_defn): Likewise.
1336 2013-11-07 Yao Qi <yao@codesourcery.com>
1338 * language.c (language_str): Return const char *.
1339 (add_language): Add const to 'language_names'
1340 * language.h (struct language_defn) <la_name>: Add const.
1341 (language_str: Update declaration.
1343 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1345 * s390-linux-nat.c (s390_read_description): Consider the TE field
1346 in the HWCAP for determining 'have_regset_tdb'.
1348 2013-11-06 Will Newton <will.newton@linaro.org>
1351 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1352 values. (read_partial_die): Likewise.
1354 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1357 * top.c (command_line_input): Unify interactivity tests to use
1358 input_from_terminal_p.
1359 * event-top.c (command_line_handler): Likewise.
1361 2013-11-06 Yao Qi <yao@codesourcery.com>
1363 * Makefile.in (check-perf): New target.
1365 2013-11-05 Will Newton <will.newton@linaro.org>
1368 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1369 (arm_print_float_info): Likewise.
1371 2013-11-04 Anton Blanchard <anton@samba.org>
1373 * target.c (memory_xfer_partial): Cap write to 4KB.
1375 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1377 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1378 probe scan even when the arch provides no get_longjmp_target.
1380 2013-10-31 Pedro Alves <palves@redhat.com>
1382 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1383 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1384 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1385 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1386 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1387 <bpstat handling>: If the bpstat chain wants the signal to be
1388 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1391 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1393 * breakpoint.c (update_watchpoint): Update error message and add
1394 an additional error message.
1396 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1398 * s390-tdep.h: Rename to...
1399 * s390-linux-tdep.h: ...here.
1400 * s390-tdep.c: Rename to...
1401 * s390-linux-tdep.c: ...here. Adjust #include.
1402 * s390-nat.c: Rename to...
1403 * s390-linux-nat.c: ...here. Adjust #include.
1404 * config/s390/s390.mh: Rename to...
1405 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1407 * configure.host: Reflect host rename "s390" -> "linux".
1408 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1409 * Makefile.in (ALL_TARGET_OBS): Likewise.
1410 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1412 (ALLDEPFILES): Reflect rename of .c files.
1414 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1416 * s390-nat.c: Whitespace cleanup.
1417 * s390-tdep.c: Likewise.
1418 * s390-tdep.h: Remove empty line at end of file.
1420 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1422 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1425 2013-10-29 Tom Tromey <tromey@redhat.com>
1427 * utils.c (reg): Move undefinition...
1428 * gdb_curses.h: ... here. Update comment to mention AIX.
1430 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1432 * exec.h (add_target_sections_of_objfile): New declaration.
1433 * exec.c (add_target_sections_of_objfile): New function.
1434 * symfile.c (add_symbol_file_command): Update current target sections.
1435 (remove_symbol_file_command): New command.
1436 (symfile_free_objfile): New function.
1437 (_initialize_symfile): Register observer for free_objfile events.
1438 * NEWS: Add description of the remove-symbol-file command.
1439 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1440 * objfiles.c (free_objfile): Notify free_objfile.
1441 (is_addr_in_objfile): New function.
1442 * objfiles.h (is_addr_in_objfile): New declaration.
1443 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1444 events instead of solib_unloaded events.
1445 (_initialize_printcmd): Register observer for free_objfile instead
1446 of solib_unloaded notifications.
1447 * solib.c (remove_user_added_objfile): New function.
1448 (_initialize_symfile): Add remove-symbol-file.
1450 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1452 * infcmd.c (default_print_one_register_info): Use val_print to
1453 print all values even optimized out or unavailable ones. Don't
1454 try to print a raw form of optimized out or unavailable values.
1456 2013-10-29 Yao Qi <yao@codesourcery.com>
1458 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1459 parameter 'arg' instead of from program_space_data.
1460 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1461 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1462 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1463 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1464 * inflow.c (inflow_inferior_data_cleanup): Get data from
1465 parameter 'arg' instead of inferior_data.
1466 * registry.h: Add comments.
1468 2013-10-28 Pedro Alves <palves@redhat.com>
1470 * breakpoint.c (watchpoints_triggered)
1471 <!target_stopped_data_address>: Hardcode return 1.
1473 2013-10-28 Pedro Alves <palves@redhat.com>
1475 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1478 2013-10-28 Pedro Alves <palves@redhat.com>
1480 * infrun.c (process_event_stop_test): New function, factored out
1481 from handle_inferior_event.
1482 (handle_inferior_event): 'process_event_stop_test' is now a
1483 function instead of a goto label -- adjust.
1485 2013-10-28 Pedro Alves <palves@redhat.com>
1487 * infrun.c (handle_inferior_event): Move process_event_stop_test
1488 goto label to the else branch of the ecs->random_signal check,
1489 along with FRAME and GDBARCH re-fetching.
1491 2013-10-28 Pedro Alves <palves@redhat.com>
1493 * infrun.c (switch_back_to_stepped_thread): New function, factored
1494 out from handle_inferior_event.
1495 (handle_inferior_event): Adjust to call
1496 switch_back_to_stepped_thread. Call it also at the tail of the
1497 random signal handling, and return, instead of also handling
1498 random signals just before the stepping tests.
1500 2013-10-28 Pedro Alves <palves@redhat.com>
1502 * infrun.c (clear_stop_func): Delete.
1503 (handle_inferior_event): Don't call clear_stop_func and don't
1504 clear 'ecs->random_signal'.
1506 2013-10-27 Yao Qi <yao@codesourcery.com>
1508 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1509 (varobj_create, varobj_get_path_expr): Update.
1510 (varobj_value_has_mutated, varobj_update): Likewise.
1511 (create_child_with_value, new_root_variable): Likewise.
1512 (number_of_children, name_of_variable): Likewise.
1513 (value_of_child, my_value_of_variable): Likewise.
1514 (varobj_value_is_changeable_p): Likewise.
1516 2013-10-25 Yao Qi <yao@codesourcery.com>
1518 * language.h (struct lang_varobj_ops): Declare.
1519 (struct language_defn) <la_varobj_ops>: New field.
1520 * ada-lang.c: Include "varobj.h"
1521 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1523 * c-lang.c: Include "varobj.h"
1524 (c_language_defn): Initialize field 'la_varobj_ops' with
1526 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1528 (asm_language_defn): Initialize field 'la_varobj_ops' with
1530 (minimal_language_defn): Likewise.
1531 * d-lang.c (d_language_defn): Likewise.
1532 * f-lang.c (f_language_defn): Likewise.
1533 * go-lang.c (go_language_defn): Likewise.
1534 * m2-lang.c (m2_language_defn): Likewise.
1535 * objc-lang.c (objc_language_defn): Likewise.
1536 * opencl-lang.c (opencl_language_defn): Likewise.
1537 * p-lang.c (pascal_language_defn): Likewise.
1538 * language.c (unknown_language_defn): Likewise.
1539 (auto_language_defn): Likewise.
1540 (local_language_defn): Likewise.
1541 * jv-lang.c (java_language_defn): Initialize field
1542 'la_varobj_ops' with java_varobj_ops.
1543 * varobj.c (varobj_create): Update.
1544 * varobj.h (default_varobj_ops): Define macro.
1546 2013-10-25 Pedro Alves <palves@redhat.com>
1548 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1550 (cp_print_static_field): If the value is entirely optimized out,
1551 print <optimized out> here.
1552 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1554 * p-valprint.c (pascal_object_print_static_field): If the value is
1555 entirely optimized out, print <optimized out> here.
1556 * valops.c (do_search_struct_field)
1557 (value_struct_elt_for_reference): No longer handle a NULL static
1559 * value.c (value_static_field): Return an optimized out value
1562 2013-10-25 Yao Qi <yao@codesourcery.com>
1564 * remote.c (remote_traceframe_info): Return early if
1565 traceframe is not selected.
1567 2013-10-25 Yao Qi <yao@codesourcery.com>
1569 * tracepoint.c (traceframe_fun): Remove.
1570 (traceframe_sal): Remove.
1571 (set_traceframe_context): Add local variables.
1573 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1575 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1578 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1580 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1581 failure from register information collection.
1583 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1585 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1587 (linux_corefile_thread_callback): Update accordingly.
1588 (linux_make_corefile_notes): Likewise.
1590 2013-10-24 Pedro Alves <palves@redhat.com>
1592 * NEWS (New options): Mention set/show startup-with-shell.
1593 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1595 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1596 startup-with-shell'.
1597 (show_startup_with_shell): New function.
1598 (_initialize_fork_child): Register the set/show startup-with-shell
1600 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1601 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1602 * procfs.c (procfs_init_inferior): Remove comment.
1603 * infcmd.c (startup_with_shell): New global.
1604 * inferior.h (startup_with_shell): Declare global.
1605 (STARTUP_WITH_SHELL): Delete.
1606 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1608 2013-10-23 Pedro Alves <palves@redhat.com>
1610 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1611 * common/signals.c: Include "gdb_assert.h".
1612 (signals): New field 'symbol'.
1613 (SET): Use the 'symbol' parameter.
1614 (gdb_signal_to_symbol_string): New function.
1615 * infrun.c (handle_inferior_event) <random signal>: In debug
1616 output, print the random signal enum as string in addition to its
1618 * target/waitstatus.c (target_waitstatus_to_string): Print the
1619 signal's enum value as string instead of the (POSIX) signal name.
1621 2013-10-23 Gary Benson <gbenson@redhat.com>
1624 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1625 from 32 to 18. Adjusted fscanf format string accordingly.
1626 (Avoids leaving cmd unterminated.)
1627 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1628 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1629 that local_address and remote_address will not overflow.
1630 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1631 leaving dependencies unterminated. Parse size as "%u" to match
1634 2013-10-22 Pedro Alves <palves@redhat.com>
1636 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1637 set ecs->random signal.
1639 2013-10-22 Pedro Alves <palves@redhat.com>
1641 * infrun.c (keep_going): Update comments.
1643 2013-10-22 Pedro Alves <palves@redhat.com>
1645 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1646 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1648 2013-10-22 Pedro Alves <palves@redhat.com>
1650 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1652 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1653 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1654 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1655 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1656 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1657 (GDB_SIGNAL_LAST): Change description string.
1658 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1659 Adjust to signal renaming.
1660 * darwin-nat.c (darwin_decode_message): Likewise.
1662 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1664 * MAINTAINERS (Write After Approval): Add myself to the list.
1666 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1668 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1669 forced off, downgrade them to software watchpoints if possible,
1670 and error out if not possible.
1671 (watch_command_1): Move watchpoint type selection closer to
1672 watchpoint creation, and extend the comments.
1674 2013-10-18 Pedro Alves <palves@redhat.com>
1677 * infrun.c (handle_inferior_event): Keep going if we got a random
1678 signal we should not stop for, instead of falling through to the
1681 2013-10-18 Yao Qi <yao@codesourcery.com>
1683 * c-varobj.c (cplus_number_of_children): Fix indentation.
1685 2013-10-17 Tom Tromey <tromey@redhat.com>
1688 * printcmd.c (printcmd): Call gdb_flush.
1690 2013-10-17 Tom Tromey <tromey@redhat.com>
1692 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1693 (elf_locate_sections): Update.
1695 2013-10-17 Yao Qi <yao@codesourcery.com>
1697 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1698 * ada-varobj.c: Remove the include of ada-varobj.h.
1699 (ada_varobj_get_number_of_children): Declare.
1700 (ada_varobj_get_name_of_child): Make it static.
1701 (ada_varobj_get_path_expr_of_child): Likewise.
1702 (ada_varobj_get_value_of_child): Likewise.
1703 (ada_varobj_get_type_of_child): Likewise.
1704 (ada_varobj_get_value_of_array_variable): Likewise.
1705 * ada-varobj.h: Remove.
1707 2013-10-17 Yao Qi <yao@codesourcery.com>
1709 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1710 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1711 * ada-varobj.c: Include "varobj.h".
1712 (ada_number_of_children): New. Moved from varobj.c.
1713 (ada_name_of_variable, ada_name_of_child): Likewise.
1714 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1715 (ada_type_of_child, ada_value_of_variable): Likewise.
1716 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1717 (ada_varobj_ops): New.
1718 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1719 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1720 * gdbtypes.h (get_target_type): Declare.
1721 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1723 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1724 (ANONYMOUS_UNION_NAME): Likewise.
1725 (get_type, get_value_type, get_target_type): Remove declarations.
1726 (value_get_print_value, varobj_value_get_print_value): Likewise.
1727 (c_number_of_children, c_name_of_variable): Likewise.
1728 (c_name_of_child, c_path_expr_of_child): Likewise.
1729 (c_value_of_child, c_type_of_child): Likewise.
1730 (c_value_of_variable, cplus_number_of_children): Likewise.
1731 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1732 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1733 (cplus_value_of_child, cplus_type_of_child): Likewise.
1734 (cplus_value_of_variable, java_number_of_children): Likewise.
1735 (java_name_of_variable, java_name_of_child): Likewise.
1736 (java_path_expr_of_child, java_value_of_child): Likewise.
1737 (java_type_of_child, java_value_of_variable): Likewise.
1738 (ada_number_of_children, ada_name_of_variable): Likewise.
1739 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1740 (ada_value_of_child, ada_type_of_child): Likewise.
1741 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1742 (ada_value_has_mutated): Likewise.
1743 (struct language_specific): Move it to varobj.h.
1744 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1745 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1747 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1749 (is_anonymous_child): Move it to c-varobj.c and rename to
1750 varobj_is_anonymous_child. Caller update.
1751 (get_type): Move it to c-varobj.c.
1752 (get_value_type): Rename it varobj_get_value_type. Make it
1754 (get_target_type): Move it gdbtypes.c.
1755 (varobj_formatted_print_options): New function.
1756 (value_get_print_value): Rename it to
1757 varobj_value_get_print_value and make it extern.
1758 (varobj_value_is_changeable_p): Make it extern.
1759 (adjust_value_for_child_access): Move it to c-varobj.c.
1760 (default_value_is_changeable_p): Rename it to
1761 varobj_default_value_is_changeable_p. Make it extern.
1762 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1763 (c_name_of_child, c_path_expr_of_child): Likewise.
1764 (c_value_of_child, c_type_of_child): Likewise.
1765 (c_value_of_variable, cplus_number_of_children): Likewise.
1766 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1767 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1768 (cplus_value_of_child, cplus_type_of_child): Likewise.
1769 (cplus_value_of_variable): Likewise.
1770 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1771 (java_name_of_child, java_path_expr_of_child): Likewise.
1772 (java_value_of_child, java_type_of_child): Likewise.
1773 (java_value_of_variable): Likewise.
1774 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1775 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1776 (ada_value_of_child, ada_type_of_child): Likewise.
1777 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1778 (ada_value_has_mutated): Likewise.
1779 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1780 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1781 (c_varobj_ops, cplus_varobj_ops): Declare.
1782 (java_varobj_ops, ada_varobj_ops): Declare.
1783 (varobj_default_value_is_changeable_p): Declare.
1784 (varobj_value_is_changeable_p): Declare.
1785 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1786 (varobj_get_path_expr_parent): Declare.
1787 (varobj_value_get_print_value): Declare.
1788 (varobj_formatted_print_options): Declare.
1789 (varobj_restrict_range): Declare.
1791 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1793 * target/waitstatus.h (target_waitkind): Remove spurious
1794 character from the comments.
1796 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1798 * gdbarch.sh (get_longjmp_target): Add method documentation.
1799 * gdbarch.h: Regenerate.
1801 2013-10-16 Tom Tromey <tromey@redhat.com>
1803 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1806 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1808 * gcore.in: Call GDB using the full path to the gcore script.
1809 Error out if the GDB binary is not found.
1811 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1814 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1817 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1820 * target.c (target_disable_btrace): Fix invalid return value for
1822 (target_teardown_btrace): Likewise.
1824 2013-10-14 Yao Qi <yao@codesourcery.com>
1826 * varobj.c (struct varobj): Move most of the fields to
1828 (struct varobj_dynamic): New struct.
1829 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1830 (varobj_has_more): Likewise.
1831 (dynamic_varobj_has_child_method): Likewise.
1832 (update_dynamic_varobj_children): Likewise.
1833 (varobj_get_num_children): Likewise.
1834 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1835 (install_new_value_visualizer): Likewise.
1836 (install_new_value_visualizer, install_new_value): Likewise.
1837 (varobj_update, new_variable, free_variable): Likewise.
1838 (my_value_of_variable, value_get_print_value): Likewise.
1839 (install_visualizer): Change the type of parameter 'var' to
1840 'struct varobjd_dynamic *'. Callers update.
1841 * varobj.h (struct varobj): Moved from varobj.c.
1842 (struct varobj) <dynamic>: New field.
1844 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1846 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1847 as the preferred name of r30.
1848 * nios2-linux-tdep.c (reg_offsets): Likewise.
1849 * features/nios2-cpu.xml: Likewise.
1850 * features/nios2-linux.c: Regenerated.
1851 * features/nios2.c: Regenerated.
1852 * regformats/nios2-linux.dat: Regenerated.
1854 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1856 Canonicalize directories for EXEC_FILENAME.
1857 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1859 * utils.c (gdb_realpath_keepfile): New function.
1860 * utils.h (gdb_realpath_keepfile): New declaration.
1862 2013-10-11 Doug Evans <dje@google.com>
1864 * Makefile.in (GDBFLAGS): New variable.
1867 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1869 * NEWS: Add entry documenting the new "-catch-assert" and
1870 "-catch-exception" GDB/MI commands.
1872 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1874 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1876 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1877 "enabled". Set B->ENABLE_STATE accordingly.
1878 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1880 (create_ada_exception_catchpoint): Add declaration.
1881 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1882 (create_ada_exception_catchpoint): Make non-static. Add new
1883 parameter "disabled". Use it in call to
1884 init_ada_exception_breakpoint.
1885 (catch_ada_exception_command): Add parameter "enabled" in call
1886 to create_ada_exception_catchpoint.
1887 (catch_assert_command): Likewise.
1889 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1891 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1892 "catch-exception" commands.
1893 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1894 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1896 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1898 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1899 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1900 of all its enumerates with "ada_". Update the rest of this
1903 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1905 * ada-lang.c (ada_decode_exception_location): Delete.
1906 (create_ada_exception_catchpoint): Remove arguments "sal",
1907 "addr_string" and "ops". Add argument "ex_kind" instead.
1908 Adjust implementation accordingly, calling ada_exception_sal
1909 to get the entities it no longer gets passed as arguments.
1910 Document the function's arguments.
1911 (catch_ada_exception_command): Use catch_ada_exception_command_split
1912 instead of ada_decode_exception_location, and update call to
1913 create_ada_exception_catchpoint.
1914 (catch_ada_assert_command_split): Renames
1915 ada_decode_assert_location. Remove parameters "addr_string" and
1916 "ops", and now returns void. Adjust implementation accordingly.
1917 Update the function documentation.
1918 (catch_assert_command): Use catch_ada_assert_command_split
1919 instead of ada_decode_assert_location. Update call to
1920 create_ada_exception_catchpoint.
1922 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1924 * utils.h (perror_warning_with_name): Add declaration.
1925 * utils.c (perror_warning_with_name): New function.
1926 * cli/cli-cmds.c (source_script_with_search): Add call to
1927 perror_warning_with_name if from_tty is nul.
1929 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1931 * utils.c (perror_string): New function, extracted out of
1932 throw_perror_with_name.
1933 (throw_perror_with_name): Rework to use perror_string.
1935 2013-10-11 Yao Qi <yao@codesourcery.com>
1937 * remote.c (discard_pending_stop_replies_in_queue): Update
1939 (struct stop_reply) <rs>: New field.
1940 (remove_stop_reply_of_remote_state): New function.
1941 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1942 Callers update. Pass remove_stop_reply_of_remote_state to
1944 (remote_parse_stop_reply): Initialize field 'rs'.
1946 2013-10-10 Will Newton <will.newton@linaro.org>
1948 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1951 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1953 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1954 serial_baud_show_cmd.
1955 (_initialize_cli_cmds): Delete the code creating the
1956 "set/show remotebaud" commands.
1957 * serial.c (baud_rate): Move here from top.c.
1958 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1959 (_initialize_serial): Create "set/show serial baud" commands.
1960 Add "set/show remotebaud" command aliases.
1961 * top.c (baud_rate): Moved to serial.c.
1962 * NEWS: Document the new "set/show serial baud" commands,
1963 replacing "set/show remotebaud".
1965 2013-10-09 Pedro Alves <palves@redhat.com>
1967 * breakpoint.c (insert_bp_location): Use memory_error_message to
1968 build the memory error string.
1969 * c-lang.c: Include "gdbcore.h".
1970 (c_get_string): Use memory_error to throw error.
1971 (target_xfer_memory_error): Delete.
1972 (memory_error_message): New, factored out from
1973 target_xfer_memory_error.
1974 (memory_error): Change parameter type to target_xfer_error.
1976 (read_memory): Use memory_error instead of
1977 target_xfer_memory_error.
1978 * gdbcore.h: Include "target.h".
1979 (memory_error): Change parameter type to target_xfer_error.
1980 (memory_error_message): Declare function.
1981 * target.c (target_read_memory, target_read_stack)
1982 (target_write_memory, target_write_raw_memory): Return
1983 TARGET_XFER_E_IO on error. Adjust comments.
1984 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1986 * target.h (target_read, target_insert_breakpoint)
1987 (target_remove_breakpoint): Adjust comments.
1988 * valprint.c (partial_memory_read): Rename parameter, and adjust
1990 (val_print_string): Use memory_error_message to build the memory
1993 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1995 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1996 result variable. Rename variable fopen_e_ever_failed to
1997 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1999 2013-10-09 Pedro Alves <palves@redhat.com>
2001 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2002 (monitor_write_memory_longlongs, monitor_write_memory_block):
2003 Constify 'myaddr' parameter.
2004 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2006 (monitor_xfer_partial): New function.
2007 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2008 hook. Install a to_xfer_partial hook.
2010 2013-10-09 Tom Tromey <tromey@redhat.com>
2012 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2013 bfd_get_alt_debug_link_info.
2015 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2017 New flag OBJF_NOT_FILENAME.
2018 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2019 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2021 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2022 symbol_file_add_from_bfd.
2023 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2025 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2027 * objfiles.h (OBJF_NOT_FILENAME): New.
2029 2013-10-08 Tom Tromey <tromey@redhat.com>
2031 * Makefile.in (SFILES): Add build-id.c.
2032 (HFILES_NO_SRCDIR): Add build-id.h.
2033 * build-id.c: New file, largely from elfread.c. Modified
2035 * build-id.h: New file.
2036 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2037 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2038 Search for dwz file using build-id.
2039 * elfread.c (build_id_bfd_get, build_id_verify)
2040 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2042 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2044 * ada-lang.c (compare_names_with_case): Renamed from
2045 compare_names, adding a new parameter "casing" and its handling.
2046 New function documentation.
2047 (compare_names): New function, implemented using
2048 compare_names_with_case.
2050 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2052 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2054 2013-10-07 Tom Tromey <tromey@redhat.com>
2056 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2057 demangled_names_hash.
2058 (free_objfile): Don't delete the demangled_names_hash.
2059 * objfiles.h (struct objfile_per_bfd_storage)
2060 <demangled_names_hash>: New field.
2061 (struct objfile) <demangled_names_hash>: Move to
2062 objfile_per_bfd_storage.
2063 * symfile.c (reread_symbols): Don't delete the
2064 demangled_names_hash.
2065 * symtab.c (create_demangled_names_hash): Update.
2066 (symbol_set_names): Update.
2068 2013-10-07 Tom Tromey <tromey@redhat.com>
2070 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2071 needs_relocations>: New fields.
2072 (gdb_bfd_requires_relocations): New function.
2073 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2074 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2075 the BFD needs relocations applied.
2077 2013-10-07 Pedro Alves <palves@redhat.com>
2079 PR breakpoints/11568
2080 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2081 the thread list" instead of "gone".
2083 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2085 * NEWS: Mention new convenience variable $_exitsignal.
2086 * corelow.c (core_open): Reset exit convenience variables. Set
2087 $_exitsignal to the uncaught signal which generated the corefile.
2088 * infrun.c (handle_inferior_event): Reset exit convenience
2089 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2090 (clear_exit_convenience_vars): New function.
2091 * inferior.h (clear_exit_convenience_vars): New prototype.
2093 2013-10-06 Yao Qi <yao@codesourcery.com>
2095 * varobj.h: Add comments to enum varobj_languages.
2097 2013-10-04 Doug Evans <dje@google.com>
2099 Add support for DWP file format version 2.
2100 * NEWS: Mention support for DWP file format version 2.
2101 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2102 union of asection, containing_section. New fields virtual_offset
2103 and is_virtual. Change type of readin filed from int to char.
2104 (dwo_sections, dwo_file): Tweak comments.
2105 (dwp_v2_section_ids): New enum.
2106 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2108 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2110 (virtual_v2_dwo_sections): New struct.
2111 (dwp_hash_table): New fields version, nr_columns. Change type of
2112 section_pool field to a union.
2113 (dwp_file): New field version.
2114 (dwarf2_has_info): Check for virtual sections.
2115 (get_containing_section): New function.
2116 (get_section_bfd_owner, get_section_bfd_section): Call it.
2117 (dwarf2_locate_sections): Update.
2118 (dwarf2_section_empty_p): Update.
2119 (dwarf2_read_section): Handle virtual sections.
2120 (locate_dwz_sections): Update.
2121 (create_dwp_hash_table): Document and handle V2 format.
2122 (locate_v1_virtual_dwo_sections): Renamed from
2123 locate_virtual_dwo_sections and update. All callers updated.
2124 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2125 Delete arg htab. Rename arg section_index to unit_index.
2126 All callers updated.
2127 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2129 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2130 (lookup_dwo_unit_in_dwp): Add V2 support.
2131 (dwarf2_locate_dwo_sections): Update.
2132 (dwarf2_locate_common_dwp_sections): Renamed from
2133 dwarf2_locate_dwp_sections and update. All callers updated.
2134 (dwarf2_locate_v2_dwp_sections): New function.
2135 (open_and_init_dwp_file): Add V2 support.
2136 (read_str_index): New locals str_section, str_offsets_section.
2138 2013-10-04 Pedro Alves <palves@redhat.com>
2140 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2141 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2142 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2143 describing comments with references to ptid.h.
2144 * common/ptid.h: Remove intro description of constructors,
2145 accessors and predicates.
2146 (struct ptid): Reformat.
2147 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2148 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2149 describing comments.
2151 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2153 * aix-thread.c (sync_threadlists): Add missing ')' in call
2156 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2158 * procfs.c (procfs_init_inferior): Fix typo causing the build
2161 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2163 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2165 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2167 * mi/mi-main.c (run_one_inferior): Add function description.
2168 Make ARG a pointer to an integer whose value determines whether
2169 we should "run" or "start" the program.
2170 (mi_cmd_exec_run): Add handling of the "--start" option.
2171 Reject all other command-line options.
2172 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2174 2013-10-04 Yao Qi <yao@codesourcery.com>
2176 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2177 (struct notif_client) <pending_event>: Moved
2178 to struct remote_notif_state.
2180 (struct remote_notif_state) <pending_event>: New field.
2181 (notif_event_xfree): Declare.
2182 * remote-notif.c (handle_notification): Adjust.
2183 (notif_event_xfree): New function.
2184 (do_notif_event_xfree): Call notif_event_xfree.
2185 (remote_notif_state_xfree): Call notif_event_xfree to free
2186 each element in field pending_event.
2187 * remote.c (discard_pending_stop_replies): Remove declaration.
2188 (discard_pending_stop_replies_in_queue): Declare.
2189 (remote_close): Call discard_pending_stop_replies_in_queue
2190 instead of discard_pending_stop_replies.
2191 (remote_start_remote): Adjust.
2192 (stop_reply_xfree): Call notif_event_xfree.
2193 (notif_client_stop): Adjust initialization.
2194 (remote_notif_remove_all): Rename it to ...
2195 (remove_stop_reply_for_inferior): ... this. Update comments.
2196 Don't check INF is NULL.
2197 (discard_pending_stop_replies): Return early if notif_state is
2198 NULL. Adjust. Don't check INF is NULL.
2199 (remote_notif_get_pending_events): Adjust.
2200 (discard_pending_stop_replies_in_queue): New function.
2201 (remote_wait_ns): Likewise.
2203 2013-10-04 Yao Qi <yao@codesourcery.com>
2205 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2206 (notif_queue): Remove.
2207 (remote_notif_process): Add one parameter 'notif_queue'.
2208 Update comments. Callers update.
2209 (remote_async_get_pending_events_token): Remove.
2210 (remote_notif_register_async_event_handler): Remove.
2211 (remote_notif_unregister_async_event_handler): Remove.
2212 (handle_notification): Add parameter 'notif_queue'. Update
2213 comments. Callers update.
2214 (notif_xfree): Remove.
2215 (remote_notif_state_allocate): New function.
2216 (remote_notif_state_xfree): New function.
2217 (_initialize_notif): Remove code to allocate queue.
2218 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2219 (struct remote_notif_state): New.
2220 (handle_notification): Update declaration.
2221 (remote_notif_process): Likewise.
2222 (remote_notif_register_async_event_handler): Remove.
2223 (remote_notif_unregister_async_event_handler): Remove.
2224 (remote_notif_state_allocate): Declare.
2225 (remote_notif_state_xfree): Declare.
2226 * remote.c (struct remote_state) <notif_state>: New field.
2227 (remote_close): Don't call
2228 remote_notif_unregister_async_event_handler. Call
2229 remote_notif_state_xfree.
2230 (remote_open_1): Don't call
2231 remote_notif_register_async_event_handler. Call
2232 remote_notif_state_allocate.
2234 2013-10-04 Yao Qi <yao@codesourcery.com>
2236 * varobj.c (create_child_with_value): Remove 'const' from the
2237 type of parameter 'name'.
2238 (varobj_add_child): Likewise.
2239 (install_dynamic_child): Remove 'const' from the type of
2241 (varobj_add_child): Likewise.
2242 (create_child_with_value): Likewise. Update comments. Don't
2244 (update_dynamic_varobj_children): Duplicate 'name'
2245 and pass it to install_dynamic_child.
2247 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2249 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2250 conversion logic to occur after PyLong_Check. Comment on order
2251 change significance.
2252 * python/py-arch.c (archpy_disassemble): Comment on order of
2253 conversion for integers and longs.
2255 2013-10-03 Pedro Alves <palves@redhat.com>
2257 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2258 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2259 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2260 PTRACE_O_TRACEFORK is not supported.
2261 (linux_test_for_tracesysgood): New function.
2262 (linux_test_for_tracefork): New function, factored out from
2263 linux_check_ptrace_features, and also don't kill child_pid here.
2265 2013-10-03 Tristan Gingold <gingold@adacore.com>
2267 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2268 Remove verbose error reporting. Use detected state to
2269 thread_set_state call.
2270 (i386_darwin_dr_get): Fix return type. Remove verbose error
2272 Remove trailing spaces.
2274 2013-10-02 Pedro Alves <palves@redhat.com>
2276 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2277 val_print_optimized_out.
2278 * jv-valprint.c (java_print_value_fields): Likewise.
2279 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2280 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2281 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2282 new optimized out value.
2283 * findvar.c (address_from_register): Likewise.
2284 * frame.c (put_frame_register): Tweak error string to say the
2285 register was not saved, rather than optimized out.
2286 * infcmd.c (default_print_one_register_info): Adjust call to
2287 val_print_optimized_out. Use value_of_register instead of
2288 get_frame_register_value.
2289 * mi/mi-main.c (output_register): Use value_of_register instead of
2290 get_frame_register_value.
2291 * valprint.c (valprint_check_validity): Likewise.
2292 (val_print_optimized_out): New value parameter. If the value is
2293 lval_register, print <not saved> instead.
2294 (value_check_printable, val_print_scalar_formatted): Adjust calls
2295 to val_print_optimized_out.
2296 * valprint.h (val_print_optimized_out): New value parameter.
2297 * value.c (struct value) <optimized_out>: Extend comment.
2298 (error_value_optimized_out): New function.
2299 (require_not_optimized_out): Use it. Use a different string for
2300 lval_register values.
2301 * value.h (error_value_optimized_out): New declaration.
2302 * NEWS: Mention <not saved>.
2304 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2306 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2307 strcmp to compare two symtab filenames.
2309 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2311 * symtab.c (search_symbols_equal): Delete.
2312 (sort_search_symbols_remove_dups): Replace call to
2313 search_symbols_equal by call to compare_search_syms,
2314 adjusting as necessary.
2316 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2319 * python/python.c: Document gdb.execute command in Python help.
2321 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2323 * python/py-frame.c (frame_info_to_frame_object): Use
2324 gdbpy_convert_exception. Clean up Python object on failure.
2326 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2328 * python/lib/gdb/command/frame_filters.py
2329 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2330 (ShowFrameFilterPriority.invoke): Ditto.
2332 2013-10-01 Keith Seitz <keiths@redhat.com>
2334 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2335 (parse_linespec): Make 'argptr' const.
2336 Remove temporary cast of 'argptr' to const char **.
2337 (decode_line_full): Pass const pointer to parse_linespec.
2338 (decode_line_1): Likewise.
2339 (decode_objc): Make local variable 'new_argptr' const.
2340 (find_function_symbols): Remove temporary cast to char *
2342 * objc-lang.c (find_imps): Make argument 'method' const.
2344 * objc-lang.h (find_imps): Likewise.
2346 2013-10-01 Keith Seitz <keiths@redhat.com>
2348 * completer.c (skip_quoted_chars): Make all arguments const.
2350 (skip_quoted): Likewise.
2351 * completer.h (skip_quoted_chars): Likewise.
2352 (skip_quoted): Likewise.
2353 * defs.h (skip_quoted): Remove duplicate declaration.
2354 * jv-exp.y: Include completer.h.
2355 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2356 * p-exp.y: Include completer.h.
2358 2013-10-01 Keith Seitz <keiths@redhat.com>
2360 * c-exp.y (parse_number): Make first argument const.
2361 Make a copy of the input to manipulate.
2362 (c_parse_escape): Make first argument const.
2363 Make local variable 'tokptr' const.
2364 (parse_string_or_char): Make first two arguments const.
2365 (macro_original_text): Make const.
2366 (lex_one_token): Make local variable 'tokstart' const.
2367 Likewise for local variables named 'p'.
2368 Cast away const for struct stoken (temporary).
2369 * c-lang.h (c_parse_escpae): Make first argument const.
2370 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2372 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2374 * f-exp.y (parse_number): Make first argument const.
2375 (match_string_literal): Make local variable 'tokstart'
2377 (yylex): Make local variable 'p' const.
2378 Cast away const for struct stoken (temporary).
2379 * go-exp.y (parse_number): Make first argument const.
2380 (parse_string_or_char): Likewise.
2381 Make local variable 'tokstart' const.
2382 (lex_one_token): Likewise for numerous locals called 'p'.
2383 Cast away const for struct stoken (temporary).
2384 * jv-exp.y (parse_number): Make first argument const.
2385 Make local variables 'tokstart' and 'tokptr' const.
2386 Cast away const for call to skip_quoted (temporary).
2387 (yylex): Make local variable 'p' const.
2388 Cast away const for struct stoken (temporary).
2389 * m2-exp.y (parse_number): Make local variable 'p' const.
2390 (yylex): Likewise for 'tokstart'.
2391 Cast away const for struct stoken (temporary).
2392 Make local variable 'p' const.
2393 * macroexp.c (get_character_constant): Pass a const string
2395 (get_string_literal): Likewise.
2396 (macro_expand_next): Make first argument const.
2397 Cast away const for init_shared_buffer.
2398 * macroexp.h (macro_expand_next): Make first argument const.
2399 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2400 Pass a const string to c_parse_escape.
2401 Make local variables 'p' and 'namestart' const.
2402 * parse.c (lexptr): Make const.
2403 (prev_lexptr): Likewise.
2404 (find_template_name_end): Return const.
2405 Make argument const, too.
2406 (parse_exp_in_context): Make first argument const.
2407 Remove the entire const_hack.
2408 (parse_exp_in_context_1): Make first argument const.
2409 * parser-defs.h (find_template_name_end): Return const.
2410 Make argument const, too.
2411 (lexptr): Make const.
2412 (prev_lexptr): Likewise.
2413 * utils.c (parse_escape): Make second argument const.
2414 * utils.h (parse_escape): Likewise.
2416 2013-10-01 Keith Seitz <keiths@redhat.com>
2418 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2420 (block_lookup): Make 'raw_name' and 'name' const.
2421 * ada-lex.l (processString): Update for struct stoken.ptr.
2422 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2423 (operator_stoken): Likewise.
2424 (lex_one_token): Remove temporary cast to char * for
2426 * f-exp.y (yylex): Likewise.
2427 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2428 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2429 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2431 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2432 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2433 * linespec.c (struct ls_parser): Make 'stream' const.
2434 (find_parameter_list_end): Make argument 'input' and local
2436 (linespec_lexer_lex_string): Make local variables 'start' and
2438 Use skip_spaces_const instead of skip_spaces.
2439 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2441 (parse_linespec): Temporarily cast 'argptr' to const for
2442 'parser->lexer.stream'.
2443 * m2-exp.y (yylex): Remove temporary cast to char * for
2445 * objc-lang.c (add_msglist): Make local variable 'p' const.
2446 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2447 (exp : STRING): Make 'sp' const.
2448 (parse_number): Make argument 'p' const.
2449 * parser-defs.h (struct stoken): Make 'ptr' const.
2451 2013-10-01 Doug Evans <dje@google.com>
2453 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2455 2013-10-01 Yao Qi <yao@codesourcery.com>
2457 * varobj.c (c_value_of_root): Remove declaration.
2458 (cplus_value_of_root, java_value_of_root): Likewise.
2459 (ada_value_of_root): Likewise.
2460 (struct language_specific) <value_of_root>: Remove.
2461 (languages): Update initialization.
2462 (check_scope): Move earlier.
2463 (c_value_of_root): Move earlier and rename to ...
2464 (value_of_root_1): ... this.
2465 (value_of_root): Caller update.
2466 (cplus_value_of_root, java_value_of_root): Remove.
2467 (ada_value_of_root): Remove.
2469 2013-10-01 Yao Qi <yao@codesourcery.com>
2471 * varobj.c (varobj_format_string): Remove "unknown".
2472 (languages): Remove the first element.
2473 * varobj.h (enum varobj_languages): Remove vlang_c.
2475 2013-10-01 Yao Qi <yao@codesourcery.com>
2477 * varobj.c (struct language_specific) <language>: Remove.
2478 (languages): Update the initialization.
2480 2013-10-01 Yao Qi <yao@codesourcery.com>
2482 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2483 "solib-target.h". Include "windows-tdep.h".
2484 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2485 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2486 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2487 windows-tdep.o to gdb_target_obs.
2489 2013-10-01 Yao Qi <yao@codesourcery.com>
2491 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2493 (amd64_windows_init_abi): Don't call set_solib_ops and
2494 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2495 windows_init_abi instead.
2496 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2498 (i386_cygwin_init_abi): Don't call set_solib_ops,
2499 set_gdbarch_has_dos_based_file_system and
2500 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2501 windows_init_abi instead.
2502 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2503 (windows_init_abi): New function.
2504 (windows_iterate_over_objfiles_in_search_order): Make it
2506 * windows-tdep.h (windows_init_abi): Declare.
2507 (windows_iterate_over_objfiles_in_search_order): Remove
2510 2013-10-01 Jerome Guitton <guitton@adacore.com>
2512 Checked in by Joel Brobecker <brobecker@adacore.com>
2513 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2514 incomplete dictionnary instead of None in case of missing
2515 environment variables.
2516 (elinos_init): in case of an incomplete environment, best
2517 effort to load system libraries instead of abort.
2519 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2521 * ada-lang.c (ada_has_this_exception_support): Ignore
2522 mst_solib_trampoline minimal symbols.
2524 2013-09-30 Tristan Gingold <gingold@adacore.com>
2526 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2527 hardware watchpoint.
2528 (i386_darwin_dr_set): Support 32 and 64 bit states.
2529 (i386_darwin_dr_get): Likewise.
2530 (i386_darwin_dr_set_control): Make static.
2531 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2532 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2534 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2536 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2537 Replace TIDGET with ptid_get_lwp.
2538 Replace GET_LWP with ptid_get_lwp.
2539 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2540 Replace BUILD_THREAD with ptid_build.
2541 Replace BUILD_LWP with ptid_build.
2542 Replace PIDGET with ptid_get_pid.
2543 Replace TIDGET with ptid_get_lwp.
2544 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2545 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2546 Replace TIDGET with ptid_get_lwp.
2547 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2548 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2549 Replace TIDGET with ptid_get_lwp.
2550 Replace GET_LWP with ptid_get_lwp.
2551 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2553 * breakpoint.c: Likewise.
2554 * common/ptid.c (ptid_is_pid): Condense check for
2555 null_ptid and minus_one_ptid.
2556 (ptid_lwp_p): New function.
2557 (ptid_tid_p): New function.
2558 * common/ptid.h: Update comments for accessors.
2559 (ptid_lwp_p): New prototype.
2560 (ptid_tid_p): New prototype.
2561 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2562 * gcore.c: Replace PIDGET with ptid_get_pid.
2563 * gdbthread.h: Likewise.
2564 * gnu-nat.c: Likewise.
2565 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2566 Replace TIDGET with ptid_get_lwp.
2567 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2568 * hppanbsd-nat.c: Likewise.
2569 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2570 Replace TIDGET with ptid_get_lwp.
2571 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2572 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2573 * infcmd.c: Likewise.
2574 * inferior.h: Likewise.
2575 * inflow.c: Likewise.
2576 * infrun.c: Likewise.
2577 * linux-fork.c: Likewise.
2578 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2579 Replace GET_PID with ptid_get_pid.
2580 Replace is_lwp with ptid_lwp_p.
2581 Replace GET_LWP with ptid_get_lwp.
2582 Replace BUILD_LWP with ptid_build.
2584 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2586 * common/linux-btrace.c: Move sys/syscall.h out of the
2587 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2588 Also check for SYS_perf_event_open before attempting to buid.
2590 2013-09-27 Doug Evans <dje@google.com>
2592 * dwarf2read.c (dwarf2_section_info): Add comment.
2593 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2595 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2596 (dwarf2_read_section): Delete unused local "header". Add section
2597 name to error message.
2598 (create_dwo_in_dwp): Tweak comment.
2599 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2601 * dwarf2read.c (die_reader_specs): Tweak comment.
2602 (get_section_bfd_owner, get_section_bfd_section): New functions.
2603 (get_section_name, get_section_file_name): New functions.
2604 (get_section_id, get_section_flags): New functions.
2605 (*): Use new functions to access section fields.
2607 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2608 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2609 arg "htab". All callers updated.
2610 (create_debug_types_hash_table): Remove redundant copy of
2612 (create_dwo_in_dwp): Tweak comments.
2613 (read_str_index): Tweak comment. Record dwarf form name in static
2616 2013-09-27 Pedro Alves <palves@redhat.com>
2618 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2619 (remote_filename_p): Add comment.
2620 * remote.c (remote_filename_p): Adjust to use
2621 REMOTE_SYSROOT_PREFIX.
2622 * solib.c (solib_find): When deciding whether we need to add a
2623 directory separator, check whether the sysroot is "remote:"
2624 instead of checking whether the patch has a drive spec. Add
2627 2013-09-27 Pedro Alves <palves@redhat.com>
2629 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2631 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2634 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2636 Fix set debug frame output.
2637 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2638 SENTINEL_FRAME entry lower to match enum frame_type order.
2640 2013-09-26 Pierre Muller <muller@sourceware.org>
2642 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2643 AMD64_R15_REGNUM when a register index is expected.
2644 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2645 Substitute in array.
2646 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2647 (amd64_push_arguments): Substitute in integer_regnum array.
2649 2013-09-25 Doug Evans <dje@google.com>
2651 * objfiles.c (allocate_objfile): Move comment to better place.
2653 New option "set debug symfile on".
2654 * NEWS: Mention "set debug symfile".
2655 * Makefile.in (SFILES): Add symfile-debug.c.
2656 (COMMON_OBS): Add symfile-debug.o.
2657 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2658 objfile's symbol functions.
2659 * objfiles.h (objfile_set_sym_fns): Declare.
2660 * symfile-debug.c: New file.
2661 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2662 objfile's symbol functions.
2663 (reread_symbols): Ditto.
2665 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2667 (add_symtab_fns): Update prototype.
2668 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2669 (registered_sym_fns): ... this.
2670 (symtab_fns): Update.
2671 (add_symtab_fns): New arg "flavour". All callers updated.
2672 (find_sym_fns): Rewrite to use new sym_fns registry.
2674 * symfile.h (struct sym_fns): Add "objfile" argument to
2675 sym_read_linetable. All uses updated.
2677 * symtab.c (domain_name, search_domain_name): New functions.
2678 * symtab.h (domain_name, search_domain_name): Declare.
2680 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2681 map_matching_symbols so objfile is first. All uses updated.
2682 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2683 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2685 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2688 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2691 2013-09-24 Doug Evans <dje@google.com>
2693 * objfiles.c (free_objfile): Move comment.
2695 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2697 * ada-exp.y (string_to_operator): Delete.
2698 (dummy_string_to_ada_operator): Delete.
2700 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2703 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2705 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2706 call_dummy_integer_regs, and classify.
2707 * amd64-tdep.h (amd64_classify): Add declaration.
2708 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2709 (amd64_reg_class): Delete, moved to i386-tdep.h.
2710 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2711 Replace call to amd64_classify by call to tdep->classify.
2712 (amd64_push_arguments): Get the list of registers to use for
2713 passing integer parameters from the gdbarch tdep structure,
2714 rather than using a hardcoded one. Replace calls to amd64_classify
2715 by calls to tdep->classify.
2716 (amd64_push_dummy_call): Get the register number used for
2717 the "hidden" argument from tdep->call_dummy_integer_regs.
2718 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2719 and tdep->call_dummy_integer_regs. Set tdep->classify.
2721 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2724 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2725 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2726 where tdep->memory_args_by_pointer is non-zero.
2728 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2731 * i386-tdep.h (struct gdbarch_tdep): Add new field
2732 integer_param_regs_saved_in_caller_frame.
2733 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2734 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2736 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2738 * amd64-windows-tdep.c: #include "value.h"
2739 (amd64_windows_classify): Delete.
2740 (amd64_windows_passed_by_integer_register)
2741 (amd64_windows_passed_by_xmm_register)
2742 (amd64_windows_passed_by_pointer)
2743 (amd64_windows_adjust_args_passed_by_pointer)
2744 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2745 (amd64_windows_push_dummy_call): New functions.
2746 (amd64_windows_init_abi): Remove setting of
2747 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2748 tdep->classify, tdep->memory_args_by_pointer and
2749 tdep->integer_param_regs_saved_in_caller_frame.
2750 Add call to set_gdbarch_push_dummy_call.
2752 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2754 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2755 objfile->original_name.
2757 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2759 Pass down original filename for objfile.
2760 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2761 * elfread.c (elf_symfile_read): Likewise.
2762 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2763 longer set ORIGINAL_NAME.
2764 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2765 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2766 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2767 symbol_file_add_from_bfd call.
2768 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2769 (macho_check_dsym): Add parameter filenamep. Change function comment.
2771 (macho_symfile_read): New variable dsym_filename. Update
2772 macho_check_dsym call. Use it for symbol_file_add_separate.
2773 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2774 it. Use it for objfile->original_name.
2775 (objfile_name): Return OBFD's filename, if available.
2776 * objfiles.h (allocate_objfile): Add new parameter name.
2777 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2778 * symfile-mem.c (symbol_file_add_from_memory): Update
2779 symbol_file_add_from_bfd call.
2780 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2782 (symbol_file_add_with_addrs): New parameter name, add function comment
2783 for it. Remove variable name. Update allocate_objfile call.
2784 (symbol_file_add_separate): New parameter name, add function comment
2785 for it. Update symbol_file_add_with_addrs call.
2786 (symbol_file_add_from_bfd): New parameter name. Update
2787 symbol_file_add_with_addrs call.
2788 (symbol_file_add): Update symbol_file_add_from_bfd call.
2789 (reread_symbols): New variable original_name. Save
2790 objfile->original_name by it.
2791 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2794 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2796 Code cleanup: Add objfile_name accessor function.
2797 * ada-lang.c (is_known_support_routine): Use objfile_name.
2798 * auto-load.c (source_gdb_script_for_objfile)
2799 (auto_load_objfile_script): Likewise.
2800 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2801 * dbxread.c (dbx_symfile_read): Likewise.
2802 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2803 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2804 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2805 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2806 (lookup_dwp_signatured_type, lookup_dwo_unit)
2807 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2808 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2809 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2810 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2811 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2812 (read_subrange_type, load_partial_dies, read_partial_die)
2813 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2814 (die_containing_type, build_error_marker_type, lookup_die_type)
2815 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2816 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2817 (get_DW_AT_signature_type, write_psymtabs_to_index)
2818 (save_gdb_index_command): Likewise.
2819 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2821 * expprint.c (dump_subexp_body_standard): Likewise.
2822 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2823 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2825 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2826 obj_name, use objfile_name for it, use the variable.
2827 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2829 * machoread.c (macho_symtab_read, macho_check_dsym)
2830 (macho_symfile_relocate): Likewise.
2831 * maint.c (maintenance_translate_address): Likewise.
2832 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2833 * minsyms.c (install_minimal_symbols): Likewise.
2834 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2836 (filter_overlapping_sections): Use objfile_name.
2837 (objfile_name): New function.
2838 * objfiles.h (struct objfile): Rename field name to original_name.
2839 (objfile_name): New prototype.
2840 * printcmd.c (sym_info, address_info): Use objfile_name.
2841 * probe.c (parse_probes, collect_probes, compare_probes)
2842 (info_probes_for_ops): Likewise.
2843 * progspace.c (clone_program_space): Likewise.
2844 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2845 (maintenance_info_psymtabs): Likewise.
2846 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2847 (source_section_scripts): Likewise.
2848 * python/py-objfile.c (objfpy_get_filename): Likewise.
2849 * python/py-progspace.c (pspy_get_filename): Likewise.
2850 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2851 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2852 * solib.c (solib_read_symbols): Likewise.
2853 * stabsread.c (scan_file_globals): Likewise.
2854 * stap-probe.c (handle_stap_probe): Likewise.
2855 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2856 (find_separate_debug_file_by_debuglink): Likewise.
2857 (reread_symbols): Likewise. Use the objfile field name renamed to
2859 (allocate_symtab): Use objfile_name.
2860 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2861 (dump_objfile, dump_msymbols, dump_symtab_1)
2862 (maintenance_print_msymbols, maintenance_print_objfiles)
2863 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2864 * target.c (target_translate_tls_address, target_info): Likewise.
2865 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2868 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2871 * probe.c (parse_probes): Rename variable objfile_name to
2874 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2876 Remove solib-sunos.c.
2877 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2878 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2879 * objfiles.c (rt_common_objfile): Remove.
2880 (free_objfile): Remove rt_common_objfile comparison.
2881 * objfiles.h (rt_common_objfile): Remove.
2882 * solib-sunos.c: Remove.
2883 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2885 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2887 Remove a.out NetBSD and OpenBSD hosts.
2888 * NEWS (Removed native configurations): New.
2889 * config/arm/nbsdaout.mh: Remove.
2890 * config/i386/nbsdaout.mh: Remove.
2891 * config/i386/obsdaout.mh: Remove.
2892 * config/m68k/nbsdaout.mh: Remove.
2893 * config/sparc/nbsdaout.mh: Remove.
2894 * config/vax/nbsdaout.mh: Remove.
2895 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2896 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2897 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2899 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2900 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2901 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2903 2013-09-23 Tom Tromey <tromey@redhat.com>
2905 * linespec.c (struct minsym_and_objfile): Remove.
2906 (minsym_and_objfile_d): Remove.
2907 (struct linespec, struct collect_info, linespec_parse_basic)
2908 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2909 (compare_msymbols, find_method, find_function_symbols)
2910 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2911 (add_minsym, search_minsyms_for_name): Update.
2913 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2915 * regcache.c: Add include of valprint.h.
2916 (dump_endian_bytes): Delete.
2917 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2919 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2921 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2923 2013-09-19 Pedro Alves <palves@redhat.com>
2925 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2928 2013-09-19 Pedro Alves <palves@redhat.com>
2929 Thomas Schwinge <thomas@codesourcery.com>
2930 Yue Lu <hacklu.newborn@gmail.com>
2932 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2933 Take a gdb_byte pointer instead of a char pointer.
2935 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2936 gnu_xfer_partial helper.
2937 (gnu_xfer_partial): New function.
2938 (gnu_target): Don't install a deprecated_xfer_memory hook.
2939 Install a to_xfer_partial hook.
2941 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2944 * main.c (captured_main): Replace catch_command_errors by
2945 catch_command_errors_const. Twice.
2946 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2947 (symbol_file_add): Make name parameter const.
2948 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2949 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2950 variable name. Change their usage accordingly.
2951 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2953 (symbol_file_add_main): Make args parameter const.
2955 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2956 Ulrich Weigand <uweigand@de.ibm.com>
2958 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2960 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2962 2013-09-18 Pedro Alves <palves@redhat.com>
2963 Yue Lu <hacklu.newborn@gmail.com>
2965 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2966 (gnu_create_inferior)
2967 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2968 (set_sig_thread_cmd): Use the lwpid field of ptids to
2969 store/extract thread ids instead of the tid field.
2970 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2972 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2974 * infcmd.c (default_print_one_register_info): Add detection of
2975 optimized out values.
2976 (default_print_registers_info): Switch to using
2977 get_frame_register_value.
2979 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2981 * infrun.c (handle_inferior_event): Check if we know the
2982 function start address before setting a resume breakpoint.
2984 2013-09-18 Pedro Alves <palves@redhat.com>
2986 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2987 minus_one_ptid instead of looking at the ptid's tid field and
2988 comparing that to -1.
2990 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2992 * main.h (get_gdb_program_name): Remove extra whitespace.
2994 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2996 * main.h (get_gdb_program_name): Add declaration.
2997 * main.c (get_gdb_program_name): Add definition.
2999 2013-09-17 Doug Evans <dje@google.com>
3001 * dwarf2read.c: Move definitions of complaint functions to after
3002 forward declarations of local functions.
3004 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3005 Pedro Alves <palves@redhat.com>
3008 * breakpoint.c (remove_threaded_breakpoints): New function.
3009 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3010 as thread_exit observer.
3012 2013-09-17 Pedro Alves <palves@redhat.com>
3015 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3016 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3017 * corelow.c (core_open):
3018 * frame.h (print_stack_frame, print_frame_info): New
3019 'set_current_sal' parameter.
3020 * infcmd.c (finish_command, kill_command): Adjust call to
3022 * inferior.c (inferior_command): Likewise.
3023 * infrun.c (normal_stop): Likewise.
3024 * linux-fork.c (linux_fork_context): Likewise.
3025 * record-full.c (record_full_goto_entry, record_full_restore):
3027 * remote-mips.c (common_open): Likewise.
3028 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3030 (print_frame_info): New 'set_current_sal' parameter. Set the last
3031 displayed sal depending on the new paremeter instead of looking at
3033 (backtrace_command_1, select_and_print_frame, frame_command)
3034 (current_frame_command, up_command, down_command): Adjust call to
3036 * thread.c (print_thread_info, restore_selected_frame)
3037 (do_captured_thread_select): Adjust call to print_stack_frame.
3038 * tracepoint.c (tfind_1): Likewise.
3039 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3040 (mi_cmd_stack_info_frame): Likewise.
3041 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3042 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3044 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3046 * value.c (isvoid_internal_fn): Replace "parameter" with
3049 2013-09-16 Stan Shebs <stan@codesourcery.com>
3051 * README: Update references to writing code for GDB.
3052 * configure.ac (build_warnings): Remove obsolete comment.
3053 * configure: Regenerate.
3054 * gdbarch.sh: Remove references to gdbint.texinfo.
3055 * gdbarch.h: Regenerate.
3056 * gdbtypes.c (objfile_type): Remove comments referencing internals
3059 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3061 * NEWS: Mention new convenience function $_isvoid.
3062 * value.c (isvoid_internal_fn): New function.
3063 (_initialize_values): Add new convenience function $_isvoid.
3065 2013-09-16 Pierre Muller <muller@sourceware.org>
3067 * arm-linux-tdep.c: Add "elf/common.h" header.
3068 Remove AT_HWCAP macro definintion as it is provided in
3070 * s390-tdep.c: Remove system header <elf.h>
3071 Add "elf/common.h" header for AT_HWCAP definition.
3072 (s390_core_read_description): Use correct CORE_ADDR
3073 for hwcap local variable used as third parameter
3074 of function target_auxv_search.
3076 2013-09-14 Pierre Muller <muller@sourceware.org>
3077 Tom Tromey <tromey@redhat.com>
3078 Pedro Alves <palves@redhat.com>
3080 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3081 mode if operating system doesn't know O_CLOEXEC.
3083 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3086 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3089 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3091 * NEWS: Mention TDB support.
3092 * features/s390-tdb.xml: New file.
3093 * features/s390-te-linux64.xml: New file.
3094 * features/s390x-te-linux64.xml: New file.
3095 * features/Makefile (WHICH): Add new tdescs above.
3096 (s390-te-linux64-expedite): Set.
3097 (s390x-te-linux64-expedite): Set.
3098 * features/s390-te-linux64.c: New file (generated).
3099 * features/s390x-te-linux64.c: New file (generated).
3100 * regformats/s390-te-linux64.dat: New file (generated).
3101 * regformats/s390x-te-linux64.dat: New file (generated).
3102 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3103 (HWCAP_S390_TE): Likewise.
3104 (S390_TDB_DWORD0_REGNUM): Likewise.
3105 (S390_TDB_DWORD0_REGNUM): Likewise.
3106 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3107 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3108 (S390_TDB_ATIA_REGNUM): Likewise.
3109 (S390_TDB_R0_REGNUM): Likewise.
3110 (S390_TDB_R1_REGNUM): Likewise.
3111 (S390_TDB_R2_REGNUM): Likewise.
3112 (S390_TDB_R3_REGNUM): Likewise.
3113 (S390_TDB_R4_REGNUM): Likewise.
3114 (S390_TDB_R5_REGNUM): Likewise.
3115 (S390_TDB_R6_REGNUM): Likewise.
3116 (S390_TDB_R7_REGNUM): Likewise.
3117 (S390_TDB_R8_REGNUM): Likewise.
3118 (S390_TDB_R9_REGNUM): Likewise.
3119 (S390_TDB_R10_REGNUM): Likewise.
3120 (S390_TDB_R11_REGNUM): Likewise.
3121 (S390_TDB_R12_REGNUM): Likewise.
3122 (S390_TDB_R13_REGNUM): Likewise.
3123 (S390_TDB_R14_REGNUM): Likewise.
3124 (S390_TDB_R15_REGNUM): Likewise.
3125 (S390_NUM_REGS): Increase.
3126 (S390_IS_TDBREGSET_REGNUM): New macro.
3127 (s390_regmap_tdb): Declare.
3128 (s390_sizeof_tdbregset): Define.
3129 (tdesc_s390_te_linux64): Declare.
3130 (tdesc_s390x_te_linux64): Likewise.
3131 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3132 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3133 (s390_regmap_tdb): New regmap.
3134 (s390_supply_tdb_regset): New function.
3135 (s390_tdb_regset): New regset.
3136 (s390_linux64v2_regset_sections): Add TDB regset to list.
3137 (s390x_linux64v2_regset_sections): Likewise.
3138 (s390_regset_from_core_section): Recognize TDB core note section.
3139 (s390_core_read_description): If HWCAP indicates TE support,
3140 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3141 (s390_gdbarch_init): Handle TDB regset.
3142 (_initialize_s390_tdep): Initialize new tdescs.
3143 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3144 (have_regset_tdb): New variable.
3145 (s390_native_supply): Support register invalidation.
3146 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3147 (check_regset): Treat ENODATA as "regset exists".
3148 (s390_linux_fetch_inferior_registers): Add TDB.
3149 (s390_read_description): Check for TDB existence and select
3151 * gdbserver/Makefile.in (clean): Add removal of new makefile
3153 (s390-te-linux64.c): New makefile target.
3154 (s390x-te-linux64.c): Likewise.
3155 * gdbserver/configure.srv (srv_regobj): Append new objects
3156 s390-te-linux64.o and s390x-te-linux64.o.
3157 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3158 s390x-te-linux64.xml, and s390-tdb.xml.
3159 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3161 (tdesc_s390_te_linux64): Likewise.
3162 (init_registers_s390x_te_linux64): Likewise.
3163 (tdesc_s390x_te_linux64): Likewise.
3164 (s390_check_regset): Treat ENODATA as "regset exists".
3165 (s390_arch_setup): Add TDB regset support.
3166 (initialize_low_arch): Initialize registers for new tdescs.
3168 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3170 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3171 (S390_IS_FPREGSET_REGNUM): New macro.
3172 * s390-tdep.c (s390_dwarf_regmap): Make const.
3173 (regnum_is_gpr_full): New function for replacing repeated code.
3174 (s390_pseudo_register_name): Use it.
3175 (s390_pseudo_register_type): Likewise.
3176 (s390_pseudo_register_read): Likewise.
3177 (s390_pseudo_register_write): Likewise.
3178 (s390_unwind_pseudo_register): Likewise.
3179 (s390_regmap_gregset): New format for regmap.
3180 (s390x_regmap_gregset): Likewise.
3181 (s390_regmap_fpregset): Likewise.
3182 (s390_regmap_upper): Likewise.
3183 (s390_regmap_last_break): Likewise.
3184 (s390_regmap_system_call): Likewise.
3185 (s390_supply_regset): Adjust to new regmap format.
3186 (s390_collect_regset): Likewise.
3187 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3188 (s390_native_collect): Likewise.
3189 (supply_gregset): Likewise.
3190 (fill_gregset): Likewise.
3191 (supply_fpregset): Likewise.
3192 (fill_fpregset): Likewise.
3193 (fetch_regset): Likewise.
3194 (store_regset): Likewise.
3195 (s390_linux_fetch_inferior_registers): Likewise.
3196 (s390_linux_fetch_inferior_registers): Likewise.
3198 2013-09-12 Andrew Pinski <apinski@cavium.com>
3200 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3202 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3204 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3206 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3208 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3210 2013-09-06 Pedro Alves <palves@redhat.com>
3212 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3213 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3214 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3215 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3216 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3219 2013-09-06 Pedro Alves <palves@redhat.com>
3221 * remote-sim.c (dump_mem): Constify buf parameter.
3222 gdbsim_xfer_inferior_memory): Rename to ...
3223 (gdbsim_xfer_memory): ... this. Adjust interface as
3224 target_xfer_partial helper.
3225 (gdbsim_xfer_partial): New function.
3226 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3227 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3229 2013-09-06 Pedro Alves <palves@redhat.com>
3231 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3232 host_address_to_string, and send debug output to gdb_stdlog.
3234 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3236 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3237 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3238 gdb_target_obs for cris target.
3239 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3240 (cris_gdbarch_init): Move calls to
3241 set_gdbarch_fetch_tls_load_module_address and
3242 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3243 Add call to gdbarch_init_osabi.
3244 * cris-linux-tdep.c: New file.
3245 * cris-tdep.h: New file.
3247 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3249 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3250 to deprecated_init_ui_hook.
3252 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3254 * cli/cli-interp.c (_initialize_cli_interp): Add a
3255 command_loop_proc to interp_procs.
3256 * event-top.c (cli_command_loop): Change signature to match
3257 interp_command_loop_ftype.
3258 * event-top.h (cli_command_loop): Same.
3259 * interps.c (interp_new): Require every interpreter to have a
3261 (current_interp_command_loop): Just call the command_loop_proc on
3262 the current interpreter.
3263 * tui/tui-interp.c (_initialize_tui_interp): Add a
3264 command_loop_proc to interp_procs.
3266 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3268 * cris-tdep.c (cris_gdbarch_init): Add call to
3269 get_gdbarch_fetch_tls_load_module_address.
3271 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3273 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3274 (cris_elf_gregset_t): Rename from elf_gregset_t.
3275 (crisv32_elf_gregset_t): Adjust.
3276 (cris_supply_gregset, fetch_core_registers): Adjust.
3278 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3280 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3282 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3284 * defs.h (deprecated_command_loop_hook): Remove, including
3285 references in comments.
3286 * interps.c (current_interp_command_loop): No longer use
3287 deprecated_command_loop_hook.
3288 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3290 * top.c (deprecated_command_loop_hook): Remove.
3292 2013-09-05 Pedro Alves <palves@redhat.com>
3294 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3295 local is now int instead of ULONGEST. Print it with %d
3296 instead of paddress.
3298 2013-09-05 Tristan Gingold <gingold@adacore.com>
3300 * MAINTAINERS: Remove avr maintainership.
3302 2013-09-05 Pedro Alves <palves@redhat.com>
3304 * findvar.c (value_of_register): Rework in terms of
3305 value_of_register_lazy.
3307 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3309 * symfile.c (add_symbol_file_command): Remove trailing
3310 whitespaces and blank line after comment.
3312 2013-09-05 Pedro Alves <palves@redhat.com>
3314 * tui/tui-regs.c (tui_register_format): Don't look at the
3315 register's name here. Return string representing register
3316 value instead of storing it in the data element.
3317 (tui_get_register): Compare register string representations
3318 instead of register value states and contents.
3320 2013-09-05 Pedro Alves <palves@redhat.com>
3323 * tui/tui-regs.c (tui_show_registers): Show registers of the
3324 selected frame, not the current frame.
3326 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3328 * MAINTAINERS (Write After Approval): Add myself to the list.
3330 2013-09-04 Doug Evans <dje@google.com>
3332 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3333 (queue_and_load_dwo_tu): New function.
3334 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3335 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3336 Make dependent_cu optional.
3337 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3338 and an older .gdb_index is in use, queue and load all its TUs too.
3340 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3342 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3343 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3344 variable search_flags.
3345 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3346 (OPF_RETURN_REALPATH): ... here.
3347 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3348 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3350 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3352 * solib.c (solib_find): Likewise. Four times.
3353 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3354 in the function comment and for the realpath_fptr variable.
3355 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3356 (find_and_open_source): Likewise. Twice.
3357 * symfile.c (symfile_bfd_open): Likewise, also twice.
3359 2013-09-04 Doug Evans <dje@google.com>
3361 * progspace.c (save_current_space_and_thread): Remove unnecessary
3362 call to save_current_inferior.
3364 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3366 * sh64-tdep.c (sh64_do_register): Return after printing message
3367 about unavailable register contents.
3369 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3370 Pedro Alves <palves@redhat.com>
3372 * symfile.c (add_symbol_file_command): Error out on unknown
3373 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3374 options and collapse into single conditional branch.
3376 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3378 * inf-child.c (inf_child_follow_fork): New parameter
3380 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3381 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3382 * inferior.h (detach_fork): Remove.
3383 * infrun.c (detach_fork): Adjust comment and make it
3385 (follow_fork): Pass detach_fork parameter to
3387 * linux-nat.c (linux_child_follow_fork): New parameter
3389 * target.c (target_follow_fork): New parameter detach_fork.
3390 Pass detach_fork as parameter and print its value.
3391 * target.h (struct target_ops) <to_follow_fork>: New int
3393 (target_follow_fork): New parameter detach_fork.
3395 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3397 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3398 Replace sec->bfd by sec->the_bfd_section->owner.
3400 2013-09-03 Yao Qi <yao@codesourcery.com>
3402 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3403 from linux_has_shared_address_space.
3404 (linux_has_shared_address_space): Call linux_is_uclinux.
3405 * linux-tdep.h (linux_is_uclinux): Declare.
3406 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3409 2013-09-03 Yao Qi <yao@codesourcery.com>
3411 * config/djgpp/fnchange.lst: Remove entry of
3412 i386-interix-nat.c and i386-interix-tdep.c.
3413 * configure.ac: Remove '*-*-interix*'.
3414 * configure: Re-generated.
3415 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3416 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3418 * osabi.c (gdb_osabi_names): Remove "Interix".
3420 2013-09-03 Yao Qi <yao@codesourcery.com>
3422 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3424 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3426 * record.h (record_print_flag) <record_print_src_line,
3427 record_print_insn_range>: Rename into ...
3428 (record_print_flag) <record_print_src_line,
3429 record_print_insn_range>: ... this. Update all users.
3431 2013-09-02 Pierre Muller <muller@sourceware.org>
3433 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3436 2013-09-02 Pierre Muller <muller@sourceware.org>
3438 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3439 by use of plongest function.
3441 2013-09-02 Tristan Gingold <gingold@adacore.com>
3443 * NEWS: Add entry mentioning support for native Windows x64
3446 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3447 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3448 (struct amd64_windows_frame_cache): New struct.
3449 (amd64_windows_w2gdb_regnum): New global.
3450 (pc_in_range, amd64_windows_frame_decode_epilogue)
3451 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3452 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3453 (amd64_windows_frame_this_id): New functions.
3454 (amd64_windows_frame_unwind): New static global.
3455 (amd64_windows_skip_prologue): New function.
3456 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3457 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3458 with amd64_windows_skip_prologue.
3460 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3464 2013-08-30 Pedro Alves <palves@redhat.com>
3466 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3469 2013-08-30 Pedro Alves <palves@redhat.com>
3471 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3474 2013-08-30 Pedro Alves <palves@redhat.com>
3476 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3477 Adjust arguments to print_stack_frame.
3479 2013-08-30 Pedro Alves <palves@redhat.com>
3481 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3483 2013-08-30 Pedro Alves <palves@redhat.com>
3485 * frame.h (show_and_print_stack_frame): Delete declaration.
3487 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3490 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3491 (archpy_name): Check for valid architecture.
3492 (archpy_disassemble): Ditto.
3494 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3496 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3497 instead of "long long" in call to ptrace64.
3499 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3501 * mi/mi-interp.c (mi_command_loop): Change signature to match
3502 interp_command_loop_ftype.
3503 (mi1_command_loop): Remove.
3504 (mi2_command_loop): Remove.
3505 (mi3_command_loop): Remove.
3506 (mi_interpreter_resume): Remove setting of
3507 deprecated_command_loop_hook.
3508 (_initialize_mi_interp): Set mi_command_loop as the command loop
3511 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3513 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3516 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3518 * value.c (allocate_value_contents): Make static.
3519 * value.h (allocate_value_contents): Remove prototype.
3521 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3523 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3524 of assembling value via allocate_value_lazy and attribute setter.
3525 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3526 assembling value via allocate_value_lazy and attribute setter.
3527 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3528 assembling value via allocate_value_lazy and attribute setter.
3530 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3532 * value.c (value_from_contents_and_address): Replace allocate_value and
3533 memcpy with value_from_contents.
3535 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3537 * python/py-framefilter.c (py_print_frame): Remove usage of
3538 PyString_AsString. Use python_string_to_host_string instead.
3539 Refactor function to work with a string as a new allocation
3540 instead of a pointer.
3541 (py_print_frame): Ditto.
3542 * python/lib/gdb/frames.py (return_list): Cain iterators together
3543 instead of adding them as a list.
3544 (_sort_list): Call return_list, and remove duplicate code.
3545 (execute_frame_filters): Convert iterator to a list with list().
3546 * python/lib/gdb/command/frame_filters.py
3547 (SetFrameFilterPriority._set_filter_priority): Convert priority
3548 attribute to an integer.
3549 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3550 wrapper function __next__.
3551 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3554 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3557 * python/py-framefilter.c (apply_frame_filter): Check
3558 gdb_python_initialized. Exit if the Python frame-filter code
3559 cannot be initialized.
3561 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3564 * top.c (print_gdb_version): Remove erroneous newline after help
3567 2013-08-29 Yao Qi <yao@codesourcery.com>
3569 * varobj.c (install_dynamic_child): Remove trailing space.
3570 Add one blank line after variable declaration.
3572 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3575 * corefile.c (get_exec_file): Use exec_filename.
3576 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3577 * exec.c (exec_close): Free EXEC_FILENAME.
3578 (exec_file_attach): New variable canonical_pathname. Use
3579 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3581 * exec.h (exec_filename): New.
3582 * inferior.c (print_inferior, inferior_command): Use
3583 PSPACE_EXEC_FILENAME.
3584 * mi/mi-main.c (print_one_inferior): Likewise.
3585 * progspace.c (clone_program_space, print_program_space): Likewise.
3586 * progspace.h (struct program_space): New field pspace_exec_filename.
3587 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3588 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3590 2013-08-28 Will Newton <will.newton@linaro.org>
3592 * common/linux-ptrace.c: Include stdint.h unconditionally.
3594 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3597 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3599 2013-08-28 Yao Qi <yao@codesourcery.com>
3600 Pedro Alves <palves@redhat.com>
3602 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3603 instead of stdio_fileopen.
3604 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3605 .Call stderr_fileopen instead of stdio_fileopen.
3606 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3607 [__MINGW32__] (stderr_file_fputs): New function.
3608 (stderr_fileopen): New function.
3609 * ui-file.h (stderr_fileopen): Declare.
3611 2013-08-27 Doug Evans <dje@google.com>
3613 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3614 (struct dwarf2_per_cu_data): Ditto.
3615 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3616 (process_imported_unit_die): Ditto.
3617 (follow_die_sig_1): Simplify assert.
3619 2013-08-27 Pedro Alves <palves@redhat.com>
3621 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3622 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3623 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3624 windows_xfer_memory directly.
3625 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3627 2013-08-27 Pedro Alves <palves@redhat.com>
3629 * darwin-nat.c (darwin_xfer_memory): Delete.
3630 (_initialize_darwin_inferior): Don't install a
3631 deprecated_xfer_memory method.
3633 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3634 Yao Qi <yao@codesourcery.com>
3636 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3637 (parse_no_frames_option): Remove.
3638 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3639 (mi_cmd_stack_list_args): Adjust.
3640 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3641 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3642 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3644 (list_args_or_locals): New parameter 'skip_unavailable'.
3646 * valprint.c (scalar_type_p): Rename to ...
3647 (val_print_scalar_type_p): ... this. Make extern.
3648 (val_print, value_check_printable): Adjust.
3649 * valprint.h (val_print_scalar_type_p): Declare.
3650 * value.c (value_entirely_unavailable): New function.
3651 * value.h (value_entirely_unavailable): Declare.
3653 * NEWS: Mention the new option "--skip-unavailable" to MI
3654 commands '-stack-list-locals', '-stack-list-arguments' and
3655 '-stack-list-variables'.
3657 2013-08-27 Yao Qi <yao@codesourcery.com>
3659 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3660 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3662 * mi/mi-getopt.c (mi_getopt): Remove.
3663 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3665 (mi_getopt): Call mi_getopt_1.
3666 (mi_getopt_silent): New.
3667 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3669 2013-08-26 Doug Evans <dje@google.com>
3672 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3673 .gdb_index is in use.
3674 * symfile.c (reread_symbols): Reset objfile->sf.
3676 * NEWS: Document "mt print objfiles" now takes optional regexp.
3677 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3678 regexp of objfiles to print.
3679 (_initialize_symmisc): Update doc string for "mt print objfiles".
3681 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3682 missing debug info checks.
3684 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3685 Ulrich Weigand <uweigand@de.ibm.com>
3687 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3688 line tables generated by XLC compiled binaries.
3690 2013-08-23 Doug Evans <dje@google.com>
3692 * symmisc.c (dump_symtab): Delete prototype.
3693 (dump_msymbols, dump_objfile): Ditto.
3694 (maintenance_info_symtabs): Mark as dont_repeat.
3695 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3697 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3698 debugging printf to better location.
3700 2013-08-23 Pedro Alves <palves@redhat.com>
3702 * target.c (target_read_live_memory): Change type of 'ret' local
3705 2013-08-23 Pedro Alves <palves@redhat.com>
3707 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3708 (remote_read_bytes): Change return type to LONGEST, and adjust to
3709 return a target_xfer_error on error.
3710 (remote_xfer_memory): Delete.
3711 (remote_flash_write): Change type of 'ret' local to LONGEST.
3712 (remote_xfer_partial, remote_xfer_partial): Adjust.
3713 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3715 2013-08-23 Pierre Muller <muller@sourceware.org>
3717 ARI fix: Push # directives to start of line.
3718 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3720 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3723 * breakpoint.c (enable_command, disable_command): Iterate over
3724 all specified breakpoint locations.
3726 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3728 * common/linux-ptrace.c (linux_fork_to_function): Push #
3729 directives to the start of the line.
3730 (linux_check_ptrace_features): Fix warning message to use
3733 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3735 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3736 nat/linux-waitpid.h.
3737 (linux-waitpid.o): New object file rule.
3738 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3739 (current_ptrace_options): Moved from linux-nat.c.
3740 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3742 (linux_fork_to_function): New function.
3743 (linux_grandchild_function): Likewise.
3744 (linux_child_function): Likewise.
3745 (linux_check_ptrace_features): New function, heavily
3746 based on linux-nat.c:linux_test_for_tracefork.
3747 (linux_enable_event_reporting): New function.
3748 (ptrace_supports_feature): Likewise.
3749 (linux_supports_tracefork): Likewise.
3750 (linux_supports_traceclone): Likewise.
3751 (linux_supports_tracevforkdone): Likewise.
3752 (linux_supports_tracesysgood): Likewise.
3753 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3754 gdbserver/linux-low.c.
3755 (linux_enable_event_reporting): New declaration.
3756 (linux_supports_tracefork): Likewise.
3757 (linux_supports_traceclone): Likewise.
3758 (linux_supports_tracevforkdone): Likewise.
3759 (linux_supports_tracesysgood): Likewise.
3760 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3761 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3762 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3763 * config/arm/linux.mh (NATDEPFILES): Likewise.
3764 * config/i386/linux.mh (NATDEPFILES): Likewise.
3765 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3766 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3767 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3768 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3769 * config/mips/linux.mh (NATDEPFILES): Likewise.
3770 * config/pa/linux.mh (NATDEPFILES): Likewise..
3771 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3772 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3773 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3774 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3775 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3776 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3777 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3778 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3779 ptrace's 4th argument's types.
3780 Check the type of PTRACE_TYPE_ARG4.
3781 * configure: Regenerate.
3782 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3783 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3784 (linux_supports_tracefork_flag): Remove.
3785 (linux_supports_tracesysgood_flag): Likewise.
3786 (linux_supports_tracevforkdone_flag): Likewise.
3787 (current_ptrace_options): Moved to
3788 common/linux-ptrace.c.
3789 (linux_tracefork_child): Remove.
3790 (my_waitpid): Remove.
3791 (linux_test_for_tracefork): Renamed to
3792 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3793 (linux_test_for_tracesysgood): Remove.
3794 (linux_supports_tracesysgood): Remove.
3795 (linux_supports_tracefork): Remove.
3796 (linux_supports_tracevforkdone): Remove.
3797 (linux_enable_tracesysgood): Remove.
3798 (linux_enable_event_reporting): Remove.
3799 (linux_init_ptrace): New function.
3800 (linux_child_post_attach): Call linux_init_ptrace.
3801 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3802 (linux_child_follow_fork): Call linux_supports_tracefork
3803 and linux_supports_tracevforkdone.
3804 (linux_child_insert_fork_catchpoint): Call
3805 linux_supports_tracefork.
3806 (linux_child_insert_vfork_catchpoint): Likewise.
3807 (linux_child_set_syscall_catchpoint): Call
3808 linux_supports_tracesysgood.
3809 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3810 * nat/linux-nat.h: New file.
3811 * nat/linux-waitpid.c: New file.
3812 * nat/linux-waitpid.h: New file.
3814 2013-08-22 Samuel Bronson <naesten@gmail.com>
3816 ARM Linux support for `catch syscall'.
3817 * syscalls/arm-linux.py: New file.
3818 * syscalls/arm-linux.xml: Likewise.
3819 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3820 (arm_linux_init_abi): Register the new function and syscall xml file.
3821 * data-directory/Makefile.in: Install the new syscall xml file.
3822 * NEWS: Brag about this.
3824 2013-08-22 Pedro Alves <palves@redhat.com>
3827 * corefile.c (target_xfer_memory_error): New function.
3828 (memory_error): Defer EIO to target_memory_error.
3829 (read_memory): Use target_xfer_partial, and handle finer-grained
3831 * target.c (target_xfer_error_to_string): New function.
3832 (memory_xfer_partial_1): If memory is known to be
3833 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3834 (target_xfer_partial): Make extern.
3835 * target.h (enum target_xfer_error): New enum.
3836 (target_xfer_error_to_string): Declare function.
3837 (target_xfer_partial): Declare function.
3838 (struct target_ops) <xfer_partial>: Adjust describing comment.
3840 2013-08-22 Alan Modra <amodra@gmail.com>
3842 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3843 * configure.tgt: Likewise as targets.
3845 2013-08-20 Doug Evans <dje@google.com>
3847 * buildsym.c (subfile_stack): Move here from buildsym.h.
3848 (pending_macros): Ditto.
3849 (get_macro_table): New function.
3850 (buildsym_init): Initialize subfile_stack.
3851 * coffread.c (type_vector,type_vector_length): Moved here from
3853 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3854 (coff_symtab_read): Use it.
3855 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3856 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3857 with call to get_macro_table.
3858 * stabsread.c (type_vector,type_vector_length): Moved here from
3860 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3861 * buildsym.h (get_macro_table): Declare.
3863 2013-08-20 Tom Tromey <tromey@redhat.com>
3865 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3867 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3869 2013-08-20 Doug Evans <dje@google.com>
3871 * blockframe.c: Remove #include "psymtab.h".
3872 * cp-support.c: Ditto.
3876 2013-08-20 Tom Tromey <tromey@redhat.com>
3879 * exceptions.h (return_mask): Now an enum.
3880 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3883 2013-08-20 Tom Tromey <tromey@redhat.com>
3885 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3887 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3888 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3889 * jit.c (jit_object_close_impl): Update.
3890 * jv-lang.c (get_dynamics_objfile): Update.
3891 * linespec.c (add_minsym): Use get_dynamics_objfile.
3892 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3893 (allocate_objfile): Don't initialize 'gdbarch' field.
3894 (get_objfile_arch): Update.
3895 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3897 (struct objfile) <gdbarch>: ... here. Remove.
3898 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3900 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3902 2013-08-20 Alan Modra <amodra@gmail.com>
3904 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3905 for IBM long double nan and inf.
3906 (floatformat_is_negative, floatformat_classify,
3907 floatformat_mantissa): Similarly.
3908 (floatformat_ieee_single, floatformat_ieee_double,
3909 floatformat_ieee_quad, floatformat_arm_ext,
3910 floatformat_ia64_spill): Delete unused vars.
3911 (_initialize_doublest): Delete unused function.
3912 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3913 little-endian variants of floatformat_ibm_long_double.
3915 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3917 * Makefile.in (SFILES): Remove common/target-common.c and
3918 add target/waitstatus.c.
3919 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3920 target/resume.h, target/wait.h and target/waitstatus.h.
3921 (COMMON_OBS): Remove target-common.o and add
3923 (target-common.o): Remove.
3924 (waitstatus.o): New target object file.
3925 * common/target-common.c: Move contents to
3926 target/waitstatus.c and remove.
3927 * common/target-common.h: Move contents to other files and
3929 (enum resume_kind: Move to target/resume.h.
3930 (TARGET_WNOHANG): Move to target/wait.h.
3931 (enum target_waitkind): Move to target/waitstatus.h.
3932 (struct target_waitstatus): Likewise.
3933 * target.h: Do not include target-common.h and
3934 include target/resume.h, target/wait.h and
3935 target/waitstatus.h.
3936 * target/resume.h: New file.
3937 * target/wait.h: New file.
3938 * target/waitstatus.h: New file.
3939 * target/waitstatus.c: New file.
3941 2013-08-19 Pedro Alves <palves@redhat.com>
3943 * linux-nat.c (linux_test_for_tracefork)
3944 (linux_test_for_tracesysgood, linux_child_follow_fork)
3945 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3946 (linux_nat_wait_1): Extend comment.
3947 (linux_async_pipe): Add comment.
3949 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3951 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3952 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3953 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3954 Update to account for fact that PC is now a pseudo-register.
3955 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3956 cases for RL78_PC_REGNUM.
3958 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3961 * top.c (quit_force): Skip writing history file
3962 if input is not from terminal.
3964 2013-08-14 Tom Tromey <tromey@redhat.com>
3966 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3967 resultthreadlist>: New fields.
3968 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3969 (remote_get_threadlist, remote_threadlist_iterator): Use
3970 new fields. Remove static variables.
3972 2013-08-14 Tom Tromey <tromey@redhat.com>
3974 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3975 remote_watch_data_address>: New fields.
3976 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3977 (process_stop_reply, remote_wait_as)
3978 (remote_check_watch_resources, remote_stopped_data_address): Update.
3980 2013-08-14 Tom Tromey <tromey@redhat.com>
3982 * remote.c (struct remote_state) <async_client_callback,
3983 async_client_context>: New fields.
3984 (async_client_callback, async_client_context): Remove.
3985 (remote_async_serial_handler, remote_async): Update.
3987 2013-08-14 Tom Tromey <tromey@redhat.com>
3989 * remote.c (sizeof_pkt): Remove.
3990 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3992 2013-08-14 Tom Tromey <tromey@redhat.com>
3994 * remote.c (struct remote_state) <use_threadinfo_query,
3995 use_threadextra_query>: New fields.
3996 (remote_threads_info, remote_threads_extra_info)
3997 (remote_open_1): Update.
3999 2013-08-14 Tom Tromey <tromey@redhat.com>
4001 * remote.c (struct remote_state) <finished_object,
4002 finished_annex, finished_offset>: New fields.
4003 (remote_read_qxfer): Use remote_state fields; remove static
4006 2013-08-14 Tom Tromey <tromey@redhat.com>
4008 * remote.c (struct remote_state) <last_sent_step>:
4010 (last_sent_step): Remove.
4011 (remote_resume, remote_wait_as): Update.
4013 2013-08-14 Tom Tromey <tromey@redhat.com>
4015 * remote.c (struct remote_state) <last_sent_signal>:
4017 (last_sent_signal): Remove.
4018 (new_remote_state, remote_resume, remote_wait_as): Update.
4020 2013-08-14 Tom Tromey <tromey@redhat.com>
4022 * remote.c (struct remote_state) <last_program_signals_packet>:
4024 (last_program_signals_packet): Remove.
4025 (remote_program_signals, remote_open_1): Update.
4027 2013-08-14 Tom Tromey <tromey@redhat.com>
4029 * remote.c (struct remote_state) <last_pass_packet>:
4031 (last_pass_packet): Remove.
4032 (remote_pass_signals, remote_open_1): Update.
4034 2013-08-14 Tom Tromey <tromey@redhat.com>
4036 * remote.c (struct remote_state) <remote_traceframe_number>:
4038 (remote_traceframe_number): Remove.
4039 (new_remote_state, remote_open_1, set_remote_traceframe)
4040 (remote_trace_find): Update.
4042 2013-08-14 Tom Tromey <tromey@redhat.com>
4044 * remote.c (struct remote_state) <general_thread, continue_thread>:
4046 (general_thread, continue_thread): Remove.
4047 (record_currthread, set_thread, set_general_process)
4048 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4049 (extended_remote_mourn_1): Update.
4051 2013-08-14 Tom Tromey <tromey@redhat.com>
4053 * remote.c (struct remote_state) <remote_desc>: New field.
4054 (remote_desc): Remove.
4055 (remote_threads_info, remote_threads_extra_info, remote_close)
4056 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4057 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4058 (remote_hostio_send_command, remote_file_put, remote_file_get)
4059 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4060 (remote_async, remote_new_objfile, set_range_stepping): Update.
4062 2013-08-14 Tom Tromey <tromey@redhat.com>
4064 * remote.c (remote_state): Now a pointer.
4065 (get_remote_state_raw): Update.
4066 (new_remote_state): New function.
4067 (_initialize_remote): Use new_remote_state.
4069 2013-08-14 Tom Tromey <tromey@redhat.com>
4071 * remote.c (remote_protocol_features): Now const.
4073 2013-08-14 Tom Tromey <tromey@redhat.com>
4075 * remote.c (crc32_table, crc32): Remove.
4076 (remote_verify_memory): Use xcrc32.
4078 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4080 * value.h (create_internalvar_type_lazy): Adjust prototype
4083 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4085 * common/format.c (parse_format_string): Don't allow '#' flag for
4086 pointer arguments in format string.
4088 2013-08-13 Pierre Muller <muller@sourceware.org>
4090 * utils.c (init_page_info): Only call tgetnum function
4091 if rl_get_screen_size did not return useful values.
4093 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4095 PR breakpoints/15117
4096 * linespec.c (linespec_parse_basic): Check for convenience
4097 variable or history value while parsing.
4099 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4101 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4103 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4104 different signals between the generic Linux kernel implementation
4106 (avr_linux_gdb_signal_from_target): Delete.
4107 (avr_linux_gdb_signal_to_target): Delete.
4108 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4110 2013-08-09 Doug Evans <dje@google.com>
4112 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4115 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4117 * linux-tdep.c: Define enum with generic signal numbers.
4118 (linux_gdb_signal_from_target): New function.
4119 (linux_gdb_signal_to_target): Likewise.
4120 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4121 methods to the functions above.
4122 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4123 (linux_gdb_signal_to_target): Likewise.
4124 * alpha-linux-tdep.c: Define new enum with signals different
4125 from generic Linux kernel.
4126 (alpha_linux_gdb_signal_from_target): New function.
4127 (alpha_linux_gdb_signal_to_target): Likewise.
4128 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4129 with the functions mentioned above.
4130 * avr-tdep.c: Define enum with differences between Linux kernel
4132 (avr_linux_gdb_signal_from_target): New function.
4133 (avr_linux_gdb_signal_to_target): Likewise.
4134 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4135 the functions mentioned above.
4136 * sparc-linux-tdep.c: Define enum with differences between SPARC
4137 and generic Linux kernel signal numbers.
4138 (sparc32_linux_gdb_signal_from_target): New function.
4139 (sparc32_linux_gdb_signal_to_target): Likewise.
4140 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4141 to the functions defined above.
4142 * xtensa-linux-tdep.c: Define enum with differences between
4143 Xtensa and Linux kernel generic signals.
4144 (xtensa_linux_gdb_signal_from_target): New function.
4145 (xtensa_linux_gdb_signal_to_target): Likewise.
4146 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4147 to the functions defined above.
4148 * mips-linux-tdep.c: Define enum with differences between
4149 signals in MIPS and Linux kernel generic ones.
4150 (mips_gdb_signal_to_target): New function.
4151 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4152 only different signals from the Linux kernel generic.
4153 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4154 the functions defined above.
4155 * mips-linux-tdep.h (enum mips_signals): Remove.
4157 2013-08-09 Pedro Alves <palves@redhat.com>
4159 * avr-tdep.c (XMALLOC): Delete macro.
4160 * cli/cli-dump.c (XMALLOC): Delete macro.
4162 2013-08-09 Pedro Alves <palves@redhat.com>
4164 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4165 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4166 (fopen_with_cleanup, add_dump_command): Make static.
4167 * cli/cli-dump.h: Delete file.
4168 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4171 2013-08-09 Pedro Alves <palves@redhat.com>
4173 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4176 2013-08-09 Pedro Alves <palves@redhat.com>
4178 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4181 2013-08-09 Pedro Alves <palves@redhat.com>
4183 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4184 (gcore_command): Use tilde_expand here, and when showing the
4185 filename to the user, show the expanded version.
4187 2013-08-09 Yao Qi <yao@codesourcery.com>
4189 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4192 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4194 * gcore.c (create_gcore_bfd): Use tilde_expand.
4196 2013-08-08 Yao Qi <yao@codesourcery.com>
4198 * frame.h (read_frame_local): Declare.
4199 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4201 * stack.c (read_frame_local): New.
4203 2013-08-08 Yao Qi <yao@codesourcery.com>
4205 * mi/mi-cmd-stack.c: Update comments to function
4206 list_args_or_locals.
4208 2013-08-07 Tom Tromey <tromey@redhat.com>
4211 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4212 (process_psymtab_comp_unit_reader): Use it.
4213 (process_psymtab_comp_unit): Update. Add "pretend_language"
4215 (dwarf2_build_psymtabs_hard): Update.
4216 (scan_partial_symbols): Pass CU's language to
4217 process_psymtab_comp_unit.
4219 2013-08-07 Tom Tromey <tromey@redhat.com>
4221 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4222 (dwarf2_gdb_index_functions): Update.
4223 * psymtab.c (find_symbol_file_from_partial): Remove.
4224 (psym_functions): Update.
4225 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4228 2013-08-07 Tom Tromey <tromey@redhat.com>
4230 * symfile.c (set_initial_language): Look up "main" symbol
4231 and use its language.
4232 * symtab.c (find_main_filename): Remove.
4233 * symtab.h (find_main_filename): Remove.
4235 2013-08-07 Tom Tromey <tromey@redhat.com>
4237 * dwarf2read.c (recursively_compute_inclusions): Add
4238 "immediate_parent" argument. Set symtab's "user" field
4240 (compute_symtab_includes): Update.
4242 2013-08-07 Tom Tromey <tromey@redhat.com>
4244 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4245 when adding label symbols.
4247 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4248 Ulrich Weigand <uweigand@de.ibm.com>
4250 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4251 * configure.host (powerpc64-*-aix*): Likewise.
4253 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4254 Ulrich Weigand <uweigand@de.ibm.com>
4256 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4258 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4259 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4260 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4261 * configure.ac: Check for ptrace64.
4262 * configure, config.in: Regenerate.
4264 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4265 Ulrich Weigand <uweigand@de.ibm.com>
4267 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4268 Call ptrace64 instead of ptrace if defined.
4269 Add macro addr_ptr to take care of ptrace address argument.
4270 (pdc_read_regs): Likewise.
4271 (pdc_write_regs): Likewise.
4272 (aix_thread_resume): Likewise.
4273 (fetch_regs_kernel_thread): Likewise.
4274 (store_regs_kernel_thread): Likewise.
4276 2013-08-07 Anton Blanchard <anton@samba.org>
4278 * MAINTAINERS: Add myself to Write After Approval.
4280 2013-08-05 Tom Tromey <tromey@redhat.com>
4282 * aix-thread.c (_initialize_aix_thread): Use
4283 complete_target_initialization.
4284 * bsd-uthread.c (_initialize_bsd_uthread): Use
4285 complete_target_initialization.
4286 * dec-thread.c (_initialize_dec_thread): Use
4287 complete_target_initialization.
4288 * ravenscar-thread.c (_initialize_ravenscar): Use
4289 complete_target_initialization.
4290 * sol-thread.c (_initialize_sol_thread): Use
4291 complete_target_initialization.
4292 * spu-multiarch.c (_initialize_spu_multiarch): Use
4293 complete_target_initialization.
4295 2013-08-05 Tom Tromey <tromey@redhat.com>
4297 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4298 * ada-lang.c (ada_lookup_simple_minsym): Return
4299 bound_minimal_symbol.
4300 * ada-lang.h (ada_lookup_simple_minsym): Update.
4301 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4302 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4303 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4304 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4305 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4306 * minsyms.c (msymbol_objfile): Remove.
4307 (lookup_minimal_symbol_internal): New function, from
4308 lookup_minimal_symbol.
4309 (lookup_minimal_symbol): Rewrite using
4310 lookup_minimal_symbol_internal.
4311 (lookup_bound_minimal_symbol): New function.
4312 * minsyms.h (msymbol_objfile): Remove.
4313 (lookup_bound_minimal_symbol): Declare.
4314 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4315 * parse.c (write_exp_msymbol): Change parameter to a
4316 bound_minimal_symbol.
4317 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4318 * parser-defs.h (write_exp_msymbol): Update.
4319 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4320 * symfile.c (simple_read_overlay_table): Use
4321 lookup_bound_minimal_symbol.
4322 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4323 (search_symbols): Likewise.
4324 (print_msymbol_info): Take a bound_minimal_symbol argument.
4325 (symtab_symbol_info, rbreak_command): Update.
4326 * symtab.h (struct symbol_search) <msymbol>: Change type
4327 to bound_minimal_symbol.
4328 * valops.c (find_function_in_inferior): Use
4329 lookup_bound_minimal_symbol.
4330 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4332 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4335 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4337 (async_cleanup_sigint_signal_handler): ... this.
4338 (initialize_sigint_signal_handler): Remove declaration.
4339 (handle_remote_sigint): Rename the declaration to ...
4340 (async_handle_remote_sigint): ... this.
4341 (handle_remote_sigint_twice): Rename the declaration to ...
4342 (async_handle_remote_sigint_twice): ... this.
4343 (async_remote_interrupt, async_remote_interrupt_twice)
4344 (remote_interrupt): Remove the declarations.
4345 (remote_interrupt_twice): Rename the declaration ...
4346 (sync_remote_interrupt_twice): ... this.
4347 (sigint_remote_twice_token): Rename the variable to ...
4348 (async_sigint_remote_twice_token): ... this.
4349 (sigint_remote_token): Rename the variable to ...
4350 (async_sigint_remote_token): ... this.
4351 (initialize_sigint_signal_handler): Rename the function to ...
4352 (async_initialize_sigint_signal_handler): ... this. Update the name
4354 (handle_remote_sigint): Rename the function to ...
4355 (async_handle_remote_sigint): ... this. Update the names inside.
4356 (handle_remote_sigint_twice): Rename the function to ...
4357 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4358 (cleanup_sigint_signal_handler): Rename the function to ...
4359 (async_cleanup_sigint_signal_handler): ... this.
4360 (remote_interrupt): Rename the function to ...
4361 (sync_remote_interrupt): this. Update the names inside.
4362 (remote_interrupt_twice): Rename the function to ...
4363 (sync_remote_interrupt_twice): this. Update the names inside.
4364 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4365 (_initialize_remote): Update the names inside.
4367 2013-08-02 Tom Tromey <tromey@redhat.com>
4370 * breakpoint.c (update_watchpoint, watchpoint_check)
4371 (watch_command_1): Update.
4372 * eval.c (fetch_subexp_value): Add "preserve_errors"
4374 * ppc-linux-nat.c (check_condition): Update.
4375 * value.h (fetch_subexp_value): Update.
4377 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4379 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4382 2013-08-01 Doug Evans <dje@google.com>
4385 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4386 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4387 Add assert of sig_entry->dwo_unit == NULL.
4388 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4389 had already been read.
4390 (read_signatured_type): Set per_cu.tu_read.
4393 * valops.c (value_struct_elt): Add missing call to check_typedef.
4394 (value_find_oload_method_list): Ditto.
4396 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4397 effectively, struct symbol_search **.
4398 (make_cleanup_free_search_symbols): Change arg to struct
4399 symbol_search **. All callers updated.
4400 (compare_search_syms): Compare symtab file name and block as well.
4401 (search_symbols_equal): New function.
4402 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4403 New args new_head, new_tail. Result is now void. Remove dups after
4404 sorting the symbols.
4405 (search_symbols): Sort all found symbols once, after all have been
4406 found, and remove duplicates. Simplify cleanup tracking of result.
4407 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4409 Further workarounds for binutils/15021.
4410 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4411 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4412 Watch for duplicate symtabs coming from type units.
4413 (compute_symtab_includes): Update call to
4414 recursively_compute_inclusions. Build vector of included symtabs
4416 * symtab.h (symtab_ptr): New typedef.
4417 (DEF_VEC_P (symtab_ptr)): New VEC type.
4418 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4421 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4423 * cli/cli-script.c (script_from_file): Remove use of
4425 * main.c (captured_main): Remove use of error_pre_print and
4427 * utils.c (error_pre_print, quit_pre_print): Remove.
4428 * utils.h (error_pre_print, quit_pre_print): Likewise.
4430 2013-08-01 Yao Qi <yao@codesourcery.com>
4432 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4434 (mi_cmd_stack_list_variables): Likewise.
4436 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4438 * exceptions.c (deprecated_throw_reason): Remove.
4439 * exceptions.h (deprecated_throw_reason): Remove.
4441 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4443 * remote-mips.c (mips_error): Replace use of
4444 deprecated_throw_reason with throw_verror. Use the error message
4445 passed to mips_error as the error message for throw_verror.
4447 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4449 * monitor.c (monitor_interrupt_query): Replace use of
4450 deprecated_throw_reason with quit.
4451 * nto-procfs.c (interrupt_query): Likewise.
4452 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4453 * remote-mips.c (mips_kill): Likewise.
4454 * remote.c (interrupt_query): Likewise.
4456 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4458 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4461 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4462 Yao Qi <yao@codesourcery.com>
4464 * tracepoint.c (trace_dump_command): Select the current frame.
4466 2013-07-30 Doug Evans <dje@google.com>
4468 * dwarf2read.c (process_queue): Add type signature to debug output.
4470 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4472 * value.c (value_fetch_lazy): Mark optimized out values as such
4473 rather than raising an error.
4475 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4477 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4478 before checking which bits of the parent, not the child, value are
4481 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4484 * top.c: Include "filenames.h".
4485 (set_history_filename): New function.
4486 (init_main): Install it as set hook of the "set history filename"
4489 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4491 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4492 attribute parameter.
4493 (dwarf2_const_value_data): Constify struct attribute parameter.
4494 (dwarf2_const_value): Constify struct attribute parameter.
4495 (dwarf2_const_value_attr): Constify struct attribute parameter.
4496 (lookup_die_type): Constify struct attribute parameter.
4497 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4498 (follow_die_ref_or_sig): Constify struct attribute parameter.
4499 (follow_die_ref): Constify struct attribute parameter.
4500 (follow_die_sig): Constify struct attribute parameter.
4501 (get_DW_AT_signature_type): Constify struct attribute parameter.
4502 (get_type_unit_group): Constify struct attribute parameter.
4503 (fill_in_loclist_baton): Constify struct attribute parameter.
4504 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4505 (type_unit_group): Constify struct attribute parameter.
4507 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4509 * dwarf2read.c (attr_form_is_block): Make argument const.
4510 (attr_form_is_section_offset): Make argument const.
4511 (attr_form_is_constant): Make argument const.
4512 (attr_form_is_ref): Make argument const.
4514 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4516 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4518 (attr_form_is_ref): Moved below attr_form_is_constant.
4520 2013-07-29 Doug Evans <dje@google.com>
4522 * main.c (captured_command_loop): Tweak comment.
4524 * target.c (target_async_permitted_1): Fix comment.
4526 * symtab.c (iterate_over_some_symtabs): Add comment.
4528 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4530 2013-07-27 Yao Qi <yao@codesourcery.com>
4532 * NEWS: Mention that GDBserver now supports hardware
4533 watchpoints on the MIPS GNU/Linux target.
4535 2013-07-27 Yao Qi <yao@codesourcery.com>
4537 * Makefile.in (HFILES_NO_SRCDIR): Add
4538 common/mips-linux-watch.h.
4539 (mips-linux-watch.o): New rule.
4540 * common/mips-linux-watch.c: New.
4541 * common/mips-linux-watch.h: New.
4542 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4543 * mips-linux-nat.c: Include mips-linux-watch.h.
4544 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4545 to common/mips-linux-watch.h.
4546 (MAX_DEBUG_REGISTER): Likewise.
4547 (enum pt_watch_style): Likewise.
4548 (struct mips32_watch_regs): Likewise.
4549 (struct mips64_watch_regs): Likewise.
4550 (struct pt_watch_regs): Likewise.
4551 (struct mips_watchpoint): Likewise.
4552 (mips_linux_watch_get_irw_mask): Move to
4553 common/mips-linux-watch.c.
4554 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4555 (mips_linux_watch_get_watchlo): Likewise.
4556 (mips_linux_watch_set_watchlo): Likewise.
4557 (mips_linux_watch_get_watchhi): Likewise.
4558 (mips_linux_watch_set_watchhi): Likewise.
4559 (mips_linux_read_watch_registers): Likewise.
4560 (mips_linux_watch_type_to_irw): Likewise.
4561 (mips_linux_stopped_data_address, fill_mask): Likewise.
4562 (mips_linux_watch_try_one_watch): Likewise.
4563 (mips_linux_watch_populate_regs): Likewise.
4565 2013-07-27 Yao Qi <yao@codesourcery.com>
4567 * mips-linux-nat.c (get_irw_mask): Rename to ...
4568 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4569 'set' to 'n'. Update function comment. All callers changed.
4570 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4571 function comment. All callers changed.
4572 (get_num_valid): Rename to ...
4573 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4574 'set' to 'n'. Update function comment. All callers changed.
4575 (get_watchlo): Rename to ...
4576 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4577 'set' to 'n'. Update function comment. All callers changed.
4578 (set_watchlo): Rename to ...
4579 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4580 'set' to 'n'. Update function comment. All callers changed.
4581 (get_watchhi): Rename to ...
4582 (mips_linux_watch_get_watchhi): ... this. Update function
4583 comment. All callers changed.
4584 (set_watchhi): Rename to ...
4585 (mips_linux_watch_set_watchhi): ... this. Update function
4586 comment. All callers changed.
4587 (mips_linux_read_watch_registers): Update function comment.
4588 Add new parameters 'lwpid', 'watch_readback', and
4589 'watch_readback_valid'. Update.
4590 (type_to_irw): Rename to ...
4591 (mips_linux_watch_type_to_irw): ... this. Update function
4592 comment. All callers changed.
4593 (fill_mask): Update function comment.
4594 (try_one_watch): Rename to ...
4595 (mips_linux_watch_try_one_watch): ... this. Change the type
4596 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4597 (populate_regs_from_watches): Rename to ...
4598 (mips_linux_watch_populate_regs): ... this. Add parameter
4599 'current_watches'. All callers changed.
4601 2013-07-27 Yao Qi <yao@codesourcery.com>
4603 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4605 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4606 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4607 (struct pt_watch_regs): Likewise.
4608 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4609 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4610 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4611 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4612 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4614 2013-07-27 Yao Qi <yao@codesourcery.com>
4616 * breakpoint.h: Include break-common.h.
4617 (enum target_hw_bp_type): Move to ...
4618 * common/break-common.h: ... here. New.
4620 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4622 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4623 process group regardless of having tty on stdin.
4625 2013-07-25 Doug Evans <dje@google.com>
4627 * linux-fork.h (detach_fork): Delete.
4629 2013-07-25 Tom Tromey <tromey@redhat.com>
4631 PR remote/15256, PR remote/15266:
4632 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4633 * monitor.c (monitor_detach): Use unpush_target.
4634 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4635 * remote-mips.c (mips_detach): Use unpush_target. Don't
4637 * remote-sim.c (gdbsim_detach): Use unpush_target.
4638 * target.c (pop_target): Remove.
4639 (pop_all_targets_above): Don't call target_close.
4640 (target_close): Assert that the target is unpushed.
4641 * target.h (pop_target): Don't declare.
4642 * tracepoint.c (tfile_open): Use unpush_target.
4644 2013-07-25 Tom Tromey <tromey@redhat.com>
4646 * linux-thread-db.c (init_thread_db_ops): Call
4647 complete_target_initialization.
4648 (_initialize_thread_db): Don't call add_target.
4649 * target.c (complete_target_initialization): New function.
4650 (add_target_with_completer): Call it.
4651 * target.h (complete_target_initialization): Declare.
4653 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4655 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4656 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4657 (HPPANBSD_SIZEOF_GREGS): New define.
4658 (hppaobsd_supply_gregset): Handle additional registers.
4659 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4660 we provide more registers now.
4661 (hppabsd_supply_gregset): Supply additional registers.
4662 (hppabsd_collect_gregset): Collect additional registers.
4664 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4666 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4667 (hppabsd_dwarf2_frame_init_reg): New function.
4668 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4670 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4672 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4673 'z' format code. Remove error for optimized out values, standard
4674 code will handle these fine.
4676 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4678 * NEWS: Mention new 'z' formatter.
4679 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4680 (_initialize_printcmd): Mention 'z' formatter in help text of the
4683 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4685 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4688 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4690 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4691 interface can evaluate arguments. Fallback to the old mode if it
4693 (create_exception_master_breakpoint): Likewise.
4694 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4695 (struct sym_probe_fns elf_probe_fns): Export function above to the
4697 * probe.c (can_evaluate_probe_arguments): New function.
4698 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4700 (can_evaluate_probe_arguments): New function prototype.
4701 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4702 probe interface can evaluate arguments. Fallback to the old mode
4704 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4705 interface can evaluate arguments. Warning the user if it cannot.
4706 (stap_can_evaluate_probe_arguments): New function.
4707 (struct probe_ops stap_probe_ops): Export function above to the
4709 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4710 New function pointer.
4712 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4714 * Makefile.in (SFILES): Add common/target-common.c.
4715 Add common/target-common.h to headers.
4716 (COMMON_OBS): Add target-common.o.
4717 (target-common.o): New target.
4718 * linux-nat.h (resume_kind): Move to common/target-common.h.
4719 * target.c (target_waitstatus_to_string): Move to
4720 common/target-common.c.
4721 * target.h: Include target-common.h.
4722 (target_waitkind): Move to common/target-common.h.
4723 (target_waitstatus): Likewise.
4724 (TARGET_WNOHANG): Likewise.
4725 * common/target-common.c: New file.
4726 * common/target-common.h: New file.
4728 2013-07-24 Doug Evans <dje@google.com>
4730 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4733 2013-07-23 Yao Qi <yao@codesourcery.com>
4735 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4736 parameter 'gdbarch'.
4737 (i386_stack_tramp_frame_sniffer): Caller update.
4738 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4739 parameter 'gdbarch' and 'target'.
4740 (i386_linux_core_read_description): Caller update.
4741 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4743 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4746 2013-07-23 Tom Tromey <tromey@redhat.com>
4748 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4751 2013-07-22 Doug Evans <dje@google.com>
4753 * exec.h (remove_target_sections): Delete arg abfd.
4754 * exec.c (exec_close): Update call to remove_target_sections.
4755 (remove_target_sections): Delete arg abfd.
4756 * solib.c (update_solib_list): Ditto.
4757 (reload_shared_libraries_1): Ditto.
4758 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4759 * target.h (struct target_section): Rename key to owner.
4762 2013-07-22 Tom Tromey <tromey@redhat.com>
4764 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4766 2013-07-22 Tom Tromey <tromey@redhat.com>
4768 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4769 Simplify cleanup handling.
4771 2013-07-22 Tom Tromey <tromey@redhat.com>
4773 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4774 on all return paths.
4776 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4778 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4779 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4780 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4782 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4784 * top.c (print_gdb_version): Add help, apropos description and
4785 url to online documentation.
4787 2013-07-19 Hui Zhu <hui@codesourcery.com>
4790 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4792 2013-07-19 Yao Qi <yao@codesourcery.com>
4794 * target.c (update_current_target): Change the default action
4795 of 'to_traceframe_info' from tcomplain to return_zero.
4796 * target.h (struct target_ops) <to_traceframe_info>: Add more
4798 * valops.c (read_value_memory): Call
4799 traceframe_available_memory unconditionally.
4801 2013-07-18 Yao Qi <yao@codesourcery.com>
4803 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4804 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4805 symbol without prefix. If found, set its type to
4806 'mst_solib_trampoline'.
4808 2013-07-17 Doug Evans <dje@google.com>
4810 * NEWS: Mention "set print raw frame-arguments".
4811 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4812 * stack.c (print_raw_frame_arguments): New static global.
4813 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4814 (_initialize_stack): New command "set/show print raw frame-arguments".
4815 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4816 (set_print_raw, show_print_raw): New functions.
4817 (_initialize_valprint): New prefix command "set/show print raw".
4818 * valprint.h (value_print_options): Improve comments.
4820 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4821 of all *list variables.
4823 * gdbcmd.h (togglelist): Delete.
4824 * cli/cli-cmds.c (togglelist): Delete.
4825 (init_cmd_lists): Update.
4826 * cli/cli-cmds.h (togglelist): Delete.
4828 2013-07-17 Tom Tromey <tromey@redhat.com>
4830 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4833 2013-07-16 Doug Evans <dje@google.com>
4835 * nto-tdep.c (nto_relocate_section_addresses): Update,
4836 target_section.bfd deleted.
4837 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4838 * s390-tdep.c (s390_load): Ditto.
4839 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4841 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4843 * common/format.c (parse_format_string): Add checks for NULL
4844 character before calling strchr.
4846 2013-07-16 Doug Evans <dje@google.com>
4848 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4849 temp_pathname argument.
4850 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4851 when opening the file fails.
4853 * target.h (struct target_section): Delete member bfd.
4854 All users updated to use the_bfd_section->owner instead.
4855 * exec.c (add_to_section_table): Assert bfd is expected value.
4856 Remove initialization of target_section.bfd.
4857 (remove_target_sections): Update.
4858 (section_table_available_memory): Update.
4859 (section_table_xfer_memory_partial): Update.
4860 (print_section_info): Update.
4861 (exec_set_section_address): Update.
4862 * record-full.c (record_full_core_xfer_partial): Update.
4863 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4864 * solib-target.c (solib_target_relocate_section_addresses): Update.
4865 * symfile.c (build_section_addr_info_from_section_table): Update.
4866 * target.c (memory_xfer_live_readonly_partial): Update.
4867 (memory_xfer_partial_1): Update.
4869 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4871 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4872 now available for embedded (BookE) and server (BookS) processors,
4873 correct mentions of 'booke' and adjust comments accordingly in order to
4874 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4875 (have_ptrace_booke_interface): Rename function and variable
4876 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4877 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4878 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4879 'hwdebug_point_cmp'. Update all uses.
4880 (booke_find_thread_points_by_tid): Rename function
4881 'booke_find_thread_points_by_tid' to
4882 'hwdebug_find_thread_points_by_tid'. Update all uses.
4883 (booke_insert_point): Rename function 'booke_insert_point' to
4884 'hwdebug_insert_point'. Update all uses.
4885 (booke_remove_point): Rename function 'booke_remove_point' to
4886 'hwdebug_remove_point'. Update all uses.
4888 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4890 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4891 numbers with enum values.
4893 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4896 * thread.c (thread_apply_all_command): Check for valid threads
4898 (thread_array_cleanup): New struct.
4899 (set_thread_refcount): New function.
4901 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4903 * infcmd.c (default_print_one_register_info): Reuse function
4906 2013-07-10 Tom Tromey <tromey@redhat.com>
4908 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4909 (ada-exp.o): New target.
4911 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4913 * mt-tdep.c (mt_registers_info): Call
4914 get_no_prettyformat_print_options instead of
4915 get_raw_print_options (regression by last patch from Doug
4918 2013-07-09 Pedro Alves <palves@redhat.com>
4920 Checked in by Joel Brobecker <brobecker@adacore.com>.
4921 * ada-lang.c (coerce_unspec_val_to_type): Use
4922 value_optimized_out_const.
4923 * value.c (value_optimized_out_const): New function.
4924 * value.h (value_optimized_out_const): New declaration.
4926 2013-07-09 Doug Evans <dje@google.com>
4928 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4929 Enum values rename as well. All uses updated.
4930 * valprint.h (value_print_options): Rename member pretty to
4931 pretty format. Rename member prettyprint_arrays to
4932 prettyformat_arrays. Rename member prettyprint_structs to
4933 prettyformat_structs. All uses updated.
4934 (get_no_prettyformat_print_options): Renamed from
4935 get_raw_print_options.
4936 * valprint.c (get_no_prettyformat_print_options): Renamed from
4937 get_raw_print_options. All callers updated.
4938 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4939 All callers updated.
4940 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4941 All callers updated.
4942 (_initialize_valprint): Improve help text for "set print pretty" and
4945 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4947 * value.c (value_bits_valid): Revert previous change, and change
4948 by Pedro on 2013-07-04, due to regressions in
4949 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4951 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4952 Pedro Alves <palves@redhat.com>
4954 * value.c (value_bits_valid): If the value is not lval_computed
4955 or has no check validity handler then the answer is the
4956 optimized_out flag, otherwise defer to the handler.
4958 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4960 * top.c (print_gdb_configuration): Explain in output of
4961 --configuration what does "relocatable" mean.
4963 * main.c (print_gdb_help): Regroup options in the --help text.
4964 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4965 the relevant discussions.
4967 2013-07-06 Yao Qi <yao@codesourcery.com>
4969 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4970 Remove parameter 'lsal'.
4971 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4972 to inner block. Caller update.
4973 (base_breakpoint_create_breakpoints_sal): Update.
4974 (bkpt_create_breakpoints_sal): Likewise.
4975 (tracepoint_create_breakpoints_sal): Likewise.
4976 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4977 element 0 of vector 'canonical->sals'.
4979 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4981 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4982 register number instead of the pseudo register one.
4983 (rs6000_dwarf2_reg_to_regnum): Likewise.
4985 2013-07-04 Pedro Alves <palves@redhat.com>
4987 * findvar.c (value_of_register): Use allocate_optimized_out_value
4988 if the register has been optimized out, instead of
4989 set_value_optimized_out.
4990 * frame-unwind.c (frame_unwind_got_optimized): Use
4991 allocate_optimized_out_value.
4993 2013-07-04 Pedro Alves <palves@redhat.com>
4995 * value.c (value_bits_valid): If the value is not lval_computed,
4996 or doesn't have a check_validity hook, assume the value is entirely
4999 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5001 * stack.c (read_frame_arg): No longer fetch lazy values.
5002 * value.c (value_optimized_out): If the value is not already
5003 marked optimized out, and is lazy then fetch it.
5004 (value_primitive_field): Move optimized out check to later in the
5005 function, after we have loaded any lazy values.
5006 (value_fetch_lazy): Use optimized out flag directly rather than
5007 calling optimized_out method.
5009 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5011 * valops.c: Don't include "user-regs.h".
5012 (value_fetch_lazy): Moved to value.c.
5013 * value.c: Include "user-regs.h".
5014 (value_fetch_lazy): Moved from valops.c.
5016 2013-07-04 Yao Qi <yao@codesourcery.com>
5019 2013-06-27 Yao Qi <yao@codesourcery.com>
5021 * common/create-version.sh: Update comments. Handle the case
5022 that TARGET_ALIAS is empty.
5024 2013-07-03 Pedro Alves <palves@redhat.com>
5026 * Makefile.in (config.status): Depend on development.sh.
5027 (aclocal_m4_deps): Add libmcheck.m4.
5028 * acinclude.m4: Include libmcheck.m4.
5029 * configure.ac: Source development.sh instead of setting
5030 'development' here. --enable-libmcheck/--disable-libmcheck code
5031 factored out to GDB_AC_LIBMCHECK. Run it.
5032 * development.sh: New file.
5033 * libmcheck.m4: New file.
5034 * configure: Regenerate.
5036 2013-07-02 Tom Tromey <tromey@redhat.com>
5038 * contrib/ari/update-web-ari.sh: Update for version.in change.
5040 2013-07-02 Tom Tromey <tromey@redhat.com>
5042 * common/ptid.h: Comment fixes.
5044 2013-07-01 Tom Tromey <tromey@redhat.com>
5046 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5047 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5048 (dwarf2_read_index, create_all_comp_units): Update.
5050 2013-07-01 Tom Tromey <tromey@redhat.com>
5052 * configure.ac (build_warnings): Add -Wold-style-definition.
5053 * configure: Rebuild.
5054 * machoread.c (_initialize_machoread): Use "(void)".
5055 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5058 2013-07-01 Tom Tromey <tromey@redhat.com>
5060 * configure.ac (build_warnings): Add -Wold-style-declaration.
5061 * configure: Rebuild.
5062 * dsrec.c (make_srec): Use "static const", not "const static".
5063 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5065 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5066 Use "static const", not "const static".
5067 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5069 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5071 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5073 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5075 (v850_dbtrap_breakpoint_from_pc): Likewise.
5076 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5079 2013-07-01 Tom Tromey <tromey@redhat.com>
5081 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5082 * configure: Rebuild.
5084 2013-07-01 Pedro Alves <palves@redhat.com>
5086 * defs.h: Include "pathmax.h".
5087 * utils.c: Don't include sys/param.h.
5088 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5089 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5090 instead of MAXPATHLEN.
5091 * solib-sunos.c: Don't include sys/param.h.
5092 * xcoffread.c: Don't include sys/param.h.
5093 * bsd-kvm.c: Don't include sys/param.h.
5094 * darwin-nat.c: Don't include sys/param.h.
5095 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5096 * darwin-nat-info.c: Don't include sys/param.h.
5097 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5099 * i386obsd-nat.c: Don't include sys/param.h.
5100 * inf-child.c: Don't include sys/param.h.
5101 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5102 * linux-fork.c: Don't include sys/param.h.
5103 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5104 * linux-nat.c: Don't include sys/param.h.
5105 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5106 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5107 * m68klinux-nat.c: Don't include sys/param.h.
5108 * nbsd-nat.c: Don't include sys/param.h.
5109 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5110 * ppc-linux-nat.c: Don't include sys/param.h.
5111 * rs6000-nat.c: Don't include sys/param.h.
5112 * spu-linux-nat.c. Don't include sys/param.h.
5113 * windows-nat.c: Don't include sys/param.h.
5114 * xtensa-linux-nat.c: Don't include sys/param.h.
5115 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5117 2013-07-01 Pedro Alves <palves@redhat.com>
5119 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5120 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5121 * gnulib/aclocal.m4: Regenerate.
5122 * gnulib/config.in: Regenerate.
5123 * gnulib/configure: Regenerate.
5124 * gnulib/import/pathmax.h: New file.
5125 * gnulib/import/Makefile.am: Regenerate.
5126 * gnulib/import/Makefile.in: Regenerate.
5127 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5128 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5129 * gnulib/import/m4/pathmax.m4: New file.
5131 2013-07-01 Pedro Alves <palves@redhat.com>
5133 * configure.ac (GDBINIT): Define, depending on host.
5134 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5135 * top.c (PATH_MAX): Delete fallback definition.
5136 (GDBINIT_FILENAME): Delete.
5137 (gdbinit): Reimplement as const char array set to the GDBINIT
5139 * top.h (gdbinit): Make const.
5140 * configure, config.in: Regenerate.
5142 2013-07-01 Pedro Alves <palves@redhat.com>
5144 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5145 * cli/cli-cmds.h (source_script): Likewise.
5146 * exceptions.c (catch_command_errors_const): New function.
5147 * exceptions.h (catch_command_errors_const): Declare.
5148 * main.c (get_init_files): Make parameters const, and adjust.
5149 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5150 'local_gdbinit' locals const. Adjust to use
5151 catch_command_errors_const.
5152 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5153 'local_gdbinit' locals const.
5155 2013-07-01 Pedro Alves <palves@redhat.com>
5157 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5158 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5159 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5162 2013-07-01 Pedro Alves <palves@redhat.com>
5164 Import the "unistd" gnulib module.
5165 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5166 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5167 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5168 import/m4/unistd_h.m4.
5169 * gnulib/aclocal.m4: Renenerate.
5170 * gnulib/config.in: Renenerate.
5171 * gnulib/configure: Renenerate.
5172 * gnulib/import/Makefile.am: Renenerate.
5173 * gnulib/import/Makefile.in: Renenerate.
5174 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5175 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5176 * gnulib/import/m4/off_t.m4: New file.
5177 * gnulib/import/m4/ssize_t.m4: New file.
5178 * gnulib/import/m4/sys_types_h.m4: New file.
5179 * gnulib/import/m4/unistd_h.m4: New file.
5180 * gnulib/import/sys_types.in.h: New file.
5181 * gnulib/import/unistd.c: New file.
5182 * gnulib/import/unistd.in.h: New file.
5184 2013-07-01 Pedro Alves <palves@redhat.com>
5186 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5187 defined instead of checking HAVE_UNISTD_H.
5189 2013-07-01 Pedro Alves <palves@redhat.com>
5191 Reimport gnulib from scratch.
5192 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5193 import/m4/onceonly.m4.
5194 * gnulib/aclocal.m4: Renegerate.
5195 * gnulib/config.in: Renegerate.
5196 * gnulib/configure: Renegerate.
5197 * gnulib/import/Makefile.in: Renegerate.
5198 * gnulib/import/extra/update-copyright: Renegerate.
5199 * gnulib/import/m4/onceonly.m4: Delete.
5201 2013-07-01 Pedro Alves <palves@redhat.com>
5203 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5205 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5208 * remote.c (async_remote_interrupt_twice): Make it static.
5209 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5211 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5213 * ia64-linux-tdep.c: Include <ctype.h>.
5214 (ia64_linux_stap_is_single_operand): New function.
5215 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5217 2013-06-28 Tom Tromey <tromey@redhat.com>
5219 * Makefile.in (version.c): Use version.in, not
5221 * common/create-version.sh: Likewise.
5222 * common/version.in: Move...
5223 * version.in: ...here.
5225 2013-06-28 Pedro Alves <palves@redhat.com>
5227 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5229 * utils.h (pagination_enabled): Declare.
5231 2013-06-28 Pedro Alves <palves@redhat.com>
5233 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5234 Move higher up in file.
5236 2013-06-28 Tom Tromey <tromey@redhat.com>
5238 * tracepoint.c (deprecated_readline_begin_hook)
5239 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5242 2013-06-28 Pedro Alves <palves@redhat.com>
5245 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5246 checking if they're available.
5247 * value.c (value_available_contents_eq): Change comment.
5248 * value.h (value_available_contents_eq): Expand comment.
5250 2013-06-27 Tom Tromey <tromey@redhat.com>
5252 * target.c (find_run_target): Remove.
5253 * target.h (find_run_target): Remove.
5255 2013-06-27 Tom Tromey <tromey@redhat.com>
5257 * corelow.c (core_gdbarch): Now static.
5259 2013-06-27 Tom Tromey <tromey@redhat.com>
5261 * target.c (target_struct_index): Remove.
5263 2013-06-27 Pedro Alves <palves@redhat.com>
5265 * infrun.c: Remove comment describing the 'stepping over runtime
5266 loader dynamic symbol resolution code' mechanism; moved to
5269 2013-06-27 Pedro Alves <palves@redhat.com>
5271 * exceptions.c (catch_command_errors): Remove spurious space.
5272 * exceptions.h (catch_command_errors): Second parameter is "arg",
5275 2013-06-27 Yao Qi <yao@codesourcery.com>
5277 * common/create-version.sh: Update comments. Handle the case
5278 that TARGET_ALIAS is empty.
5280 2013-06-26 Pedro Alves <palves@redhat.com>
5282 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5285 2013-06-26 Pedro Alves <palves@redhat.com>
5287 * infrun.c: Update comments on stepping over runtime loader
5288 dynamic symbol resolution code.
5290 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5292 * ax-gdb.h (union exp_element): Forward declare.
5293 * parser-defs.h: Include expression.h.
5295 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5297 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5299 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5301 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5303 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5305 Fix trace-status to output proper start-time and stop-time.
5306 * tracepoint.c (trace_status_command): Fix type of printf arg to
5307 prevent improper type conversion.
5308 (trace_status_mi): Likewise.
5310 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5312 * mips-tdep.c (mips_next_pc): Fix a typo.
5314 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5316 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5318 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5319 Yao Qi <yao@codesourcery.com>
5321 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5322 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5323 * mi/mi-main.c (print_variable_or_computed): New function.
5324 (mi_cmd_trace_frame_collected): New function.
5325 * tracepoint.c (find_trace_state_variable_by_number): New.
5326 (struct traceframe_info): Move to tracepoint.h
5327 (struct collection_list): Likewise.
5328 (do_collect_symbol): Include locals and arguments in the
5329 collected variables list.
5330 (clear_collection_list): Clear wholly collected variables list
5331 and computed variables list.
5332 (append_exp): New function.
5333 (encode_actions_1): Include variables in the wholly
5334 collected variables list. Include memory ranges and
5335 full-fledged expressions in the computed expressions list.
5336 (encode_actions): Move some code to ...
5337 Return the cleanup chain.
5338 (encode_actions_rsp): ... here. New function.
5339 (get_traceframe_location, get_traceframe_info): Remove static.
5340 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5341 (struct collection_list): Moved from tracepoint.c. Add two
5342 new fields 'wholly_collected' and 'computed'.
5343 (find_trace_state_variable_by_number): Declare.
5344 (encode_actions): Adjust declaration.
5345 (encode_actions_rsp): Declare.
5346 (get_traceframe_info, get_traceframe_location): Declare.
5348 * NEWS: Mention new MI command -trace-frame-collected.
5350 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5351 Yao Qi <yao@codesourcery.com>
5353 * ctf.c (ctf_traceframe_info): Push trace state variables
5354 present in the trace data into the traceframe info object.
5355 * breakpoint.c (DEF_VEC_I): Remove.
5356 * common/filestuff.c (DEF_VEC_I): Likewise.
5357 * dwarf2loc.c (DEF_VEC_I): Likewise.
5358 * mi/mi-main.c (DEF_VEC_I): Likewise.
5359 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5360 * features/traceframe-info.dtd: Add tvar element and its
5362 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5363 (build_traceframe_info): Push trace state variables present in
5364 the trace data into the traceframe info object.
5365 (traceframe_info_start_tvar): New function.
5366 (tvar_attributes): New.
5367 (traceframe_info_children): Add "tvar" element.
5368 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5370 * NEWS: Mention the change in GDB and GDBserver.
5372 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5373 Yao Qi <yao@codesourcery.com>
5375 * tracepoint.c (trace_dump_command): Move code to ...
5376 (get_traceframe_location): ... here. New.
5378 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5379 Yao Qi <yao@codesourcery.com>
5381 * tracepoint.c (trace_dump_command): GDB emits an error
5382 instead of a warning when a traceframe is not selected.
5384 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5385 Yao Qi <yao@codesourcery.com>
5387 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5388 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5390 (do_clear_collection_list, init_collection_list): New.
5391 (encode_actions): Add local variables 'tracepoint_list' and
5392 'stepping_list'. Call init_collection_list and make cleanup
5393 which calls do_clear_collection_list. Don't call
5394 clear_collection_list.
5395 (_initialize_tracepoint): Delete references to
5396 'tracepoint_list' and 'stepping_list'.
5398 2013-06-25 Tom Tromey <tromey@redhat.com>
5400 * common/create-version.sh (date): Use "$", not "$$" in sed
5403 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5405 * NEWS (New targets): Add entry for TI MSP430.
5407 2013-06-25 Yao Qi <yao@codesourcery.com>
5409 * remote.c (remote_start_remote): Move code to upload tsv
5412 2013-06-25 Yao Qi <yao@codesourcery.com>
5413 Hui Zhu <hui@codesourcery.com>
5414 Pedro Alves <palves@redhat.com>
5416 PR breakpoints/15075
5417 PR breakpoints/15434
5418 * breakpoint.c (bpstat_stop_status): Call
5419 b->ops->after_condition_true.
5420 (update_dprintf_command_list): Don't append "continue" command
5421 to the command list of dprintf breakpoint.
5422 (base_breakpoint_after_condition_true): New function.
5423 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5424 (dprintf_after_condition_true): New function.
5425 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5426 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5428 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5430 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5431 (ALLDEPFILES): Add msp430-tdep.c.
5432 * configure.tgt (msp430*-*-elf): New target.
5433 * msp430-tdep.c: New file.
5435 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5437 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5438 microMIPS synthetic symbols.
5440 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5442 * objfiles.h (pc_in_section): New prototype.
5443 (in_plt_section): Remove name argument, replace prototype with
5444 static inline function.
5445 * mips-tdep.h: Include "objfiles.h".
5446 (in_mips_stubs_section): New function.
5447 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5448 in_solib_call_trampoline member.
5449 (hppa_in_solib_call_trampoline): Remove name argument.
5450 * objfiles.c (pc_in_section): New function.
5451 (in_plt_section): Remove function.
5452 * mips-linux-tdep.c: Include "objfiles.h".
5453 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5454 name argument. Return 1 rather than the low 16-bit halfword of
5455 any instruction examined.
5456 (mips_linux_in_dynsym_resolve_code): Update
5457 mips_linux_in_dynsym_stub call accordingly.
5458 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5459 rather than an equivalent hand-coded sequence.
5460 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5461 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5462 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5463 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5465 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5466 on call to tdep->in_solib_call_trampoline.
5467 (hppa_in_solib_call_trampoline): Remove name argument, update
5468 according to in_plt_section change.
5469 (hppa_skip_trampoline_code): Update according to in_plt_section
5471 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5472 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5474 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5475 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5476 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5477 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5478 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5479 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5480 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5481 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5482 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5483 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5484 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5485 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5486 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5488 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5490 * common/create-version.sh: Fix expansion of $host_alias
5491 and $target_alias in generation of HOST_NAME and TARGET_NAME
5494 2013-06-24 Tom Tromey <tromey@redhat.com>
5496 * common/create-version.sh: New file.
5497 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5499 (HFILES_NO_SRCDIR): Use common/version.h.
5500 * version.in: Move to ...
5501 * common/version.in: ... here. Replace date with "DATE".
5502 * version.h: Move to ...
5503 * common/version.h: ... here.
5505 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5507 * gdb/gnulib/Makefile.in: Update date in copyright header.
5508 * gdb/gnulib/configure.ac: Ditto.
5509 * gdb/gnulib/update-gnulib.sh: Ditto.
5511 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5513 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5514 "gdb/gnulib/import".
5516 2013-06-21 Will Newton <will.newton@linaro.org>
5518 * doublest.c (ldfrexp): Remove function.
5519 (convert_doublest_to_floatformat): Call frexpl instead of
5522 2013-06-21 Will Newton <will.newton@linaro.org>
5524 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5525 * gnulib/aclocal.m4: Regenerate.
5526 * gnulib/config.in: Regenerate.
5527 * gnulib/configure: Regenerate.
5528 * gnulib/import/Makefile.am: Update.
5529 * gnulib/import/Makefile.in: Update.
5530 * gnulib/import/m4/gnulib-cache.m4: Update.
5531 * gnulib/import/m4/gnulib-comp.m4: Update.
5532 * gnulib/import/float+.h: Import.
5533 * gnulib/import/float.c: Import.
5534 * gnulib/import/float.in.h: Import.
5535 * gnulib/import/fpucw.h: Import.
5536 * gnulib/import/frexp.c: Import.
5537 * gnulib/import/frexpl.c: Import.
5538 * gnulib/import/isnan.c: Import.
5539 * gnulib/import/isnand-nolibm.h: Import.
5540 * gnulib/import/isnand.c: Import.
5541 * gnulib/import/isnanl-nolibm.h: Import.
5542 * gnulib/import/isnanl.c: Import.
5543 * gnulib/import/itold.c: Import.
5544 * gnulib/import/m4/exponentd.m4: Import.
5545 * gnulib/import/m4/exponentl.m4: Import.
5546 * gnulib/import/m4/float_h.m4: Import.
5547 * gnulib/import/m4/fpieee.m4: Import.
5548 * gnulib/import/m4/frexp.m4: Import.
5549 * gnulib/import/m4/frexpl.m4: Import.
5550 * gnulib/import/m4/isnand.m4: Import.
5551 * gnulib/import/m4/isnanl.m4: Import.
5552 * gnulib/import/m4/math_h.m4: Import.
5553 * gnulib/import/math.c: Import.
5554 * gnulib/import/math.in.h: Import.
5556 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5558 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5559 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5560 signature_INTEL_edx comparisons.
5562 2013-06-20 Doug Evans <dje@google.com>
5565 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5566 All callers updated.
5567 (open_dwp_file): If we can't find the dwp file, search the basename
5568 in debug-file-directory.
5570 * dwarf2read.c (struct dwp_file): Fix comment.
5571 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5573 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5576 2013-06-20 Yao Qi <yao@codesourcery.com>
5578 * breakpoint.c (create_breakpoint): Fix code indentation.
5580 2013-06-20 Yao Qi <yao@codesourcery.com>
5582 * breakpoint.c (create_breakpoints_sal_default): Remove
5583 parameter 'lsal'. Update declaration.
5584 (bkpt_create_breakpoints_sal): Caller update.
5585 (tracepoint_create_breakpoints_sal): Likewise.
5587 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5588 Yao Qi <yao@codesourcery.com>
5590 * NEWS: Mention the new option '--skip-unavailable' of command
5591 -data-list-register-values.
5592 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5593 --skip-unavailable option. Adjust to use output_register.
5594 (output_register): Add new 'skip_unavailable' parameter.
5597 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5599 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5600 common/i386-gcc-cpuid.h.
5601 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5602 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5603 Copy the latest version from upstream gcc.
5604 * common/linux-btrace.c: Include i386-cpuid.h.
5605 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5607 (cpu_supports_btrace): Likewise.
5608 * go32-nat.c: Include i386-cpuid.h.
5609 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5611 2013-06-19 Doug Evans <dje@google.com>
5613 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5614 (get_section_index): Ditto.
5616 2013-06-19 Tom Tromey <tromey@redhat.com>
5618 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5621 2013-06-18 Doug Evans <dje@google.com>
5623 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5625 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5626 Move test of cu_index closer to use. Print complaint if cu_index
5629 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5631 * machoread.c (oso_vector): Delete this global.
5632 (macho_register_oso): Add new parameter "oso_vector_ptr".
5633 Use it instead of the "oso_vector" global.
5634 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5635 (macho_symfile_read): Use a local oso_vector, to be free'ed
5636 at the end of this function, in place of the old "oso_vector"
5637 global. Update various function calls accordingly. Use one
5638 single cleanup chain for the entire function.
5640 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5642 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5643 DWARF2_PER_OBJFILE by uses of DATA instead.
5645 2013-06-18 Tom Tromey <tromey@redhat.com>
5647 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5649 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5650 Special case signals other than GDB_SIGNAL_TRAP.
5651 (explains_signal_watchpoint): New function.
5652 (base_breakpoint_explains_signal): Add 'sig' argument.
5653 (initialize_breakpoint_ops): Set 'explains_signal' method for
5655 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5657 (bpstat_explains_signal): Likewise.
5658 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5660 2013-06-18 Tom Tromey <tromey@redhat.com>
5662 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5664 2013-06-18 Tom Tromey <tromey@redhat.com>
5666 * python/python.c (finish_python_initialization): Decref
5667 'pythondir' on failure path as well.
5669 2013-06-18 Tom Tromey <tromey@redhat.com>
5672 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5673 after taking bits_to_skip into account. Sign extend byte_offset.
5674 * utils.h (gdb_sign_extend): Declare.
5675 * utils.c (gdb_sign_extend): New function.
5677 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5679 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5681 2013-06-17 Pierre Muller <muller@sourceware.org>
5683 * corelow.c (core_open): Print GDB signal name instead of target
5686 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5688 * .gitignore: Add /gcore.
5690 2013-06-13 Doug Evans <dje@google.com>
5692 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5693 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5695 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5697 * stack.c (backtrace_command_1): Fix indentation.
5699 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5701 * window-nat.c (thread_rec): Add missing empty line after
5702 local variable declaration.
5704 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5706 * windows-nat.c (thread_rec): Revert format used to print
5707 error code returned by SuspendThread from %d back to %u.
5709 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5711 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5713 (get_windows_debug_event): Likewise, for all debug traces.
5715 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5717 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5720 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5721 Yao Qi <yao@codesourcery.com>
5723 * mi/mi-main.c (get_register): Remove declaration.
5724 (output_register): Declare.
5725 (mi_cmd_data_list_register_values): Remove local variable
5726 'tuple_cleanup'. Move some code into output_register.
5727 (get_register): Renamed to ...
5728 (output_register): ... this. Output the register's
5729 "number" ui_out tuple here.
5731 2013-06-07 Pedro Alves <palves@redhat.com>
5733 * darwin-nat.c: Fix formating in copyright header.
5734 * darwin-nat.h: Likewise.
5735 * gnu-nat.c: Likewise.
5736 * machoread.c: Likewise.
5738 2013-06-07 Pedro Alves <palves@redhat.com>
5741 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5742 static. Output a global target description pointer.
5743 (init_registers_${name}): Adjust to initialize a
5744 target description structure.
5746 2013-06-07 Will Newton <will.newton@linaro.org>
5748 * printcmd.c (build_address_symbolic): Call
5749 gdbarch_addr_bits_remove for text minimal symbols.
5751 2013-06-07 Will Newton <will.newton@linaro.org>
5753 * MAINTAINERS: Add myself to Write After Approval.
5755 2013-06-07 Yao Qi <yao@codesourcery.com>
5757 * tracepoint.c (start_tracing): Move code to ...
5758 (trace_reset_local_state): ... here. New.
5759 (disconnect_tracing): Don't call set_current_traceframe,
5760 set_tracepoint_num, and set_traceframe_context. Call
5761 trace_reset_local_state instead.
5762 (tfile_close): Call trace_reset_local_state.
5763 * ctf.c (ctf_close): Likewise.
5764 * remote.c (remote_close): Likewise.
5765 * tracepoint.h (trace_reset_local_state): Declare.
5767 2013-06-06 Doug Evans <dje@google.com>
5769 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5770 and fix header docs.
5772 2013-06-05 Doug Evans <dje@google.com>
5773 Keith Seitz <keiths@redhat.com>
5776 * cp-namespace.c (find_symbol_in_baseclass): Call
5777 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5778 Check result of call to lookup_symbol_static.
5779 Call lookup_static_symbol_aux unconditionally.
5780 Call check_typedef on base types before accessing them.
5781 (cp_lookup_nested_symbol): Fix comment.
5783 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5785 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5786 minimal symbols pointing to function descriptors.
5788 2013-06-05 Tom Tromey <tromey@redhat.com>
5790 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5792 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5793 Pedro Alves <palves@redhat.com>
5795 * remote.c (remote_wait_as): Restore signal handler before returning
5796 when GDB gets a notification.
5798 2013-06-04 Gary Benson <gbenson@redhat.com>
5801 * breakpoint.h (handle_solib_event): Moved function declaration
5803 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5804 (bpstat_stop_status): Pass new argument to handle_solib_event.
5805 * solib.h (update_solib_breakpoints): New function declaration.
5806 (handle_solib_event): Moved function declaration from
5808 * solib.c (update_solib_breakpoints): New function.
5809 (handle_solib_event): Moved function from breakpoint.c.
5810 Updated to call solib_ops->handle_event if not NULL.
5811 * solist.h (target_so_ops): New fields "update_breakpoints" and
5813 * infrun.c (set_stop_on_solib_events): New function.
5814 (_initialize_infrun): Use the above for "set
5815 stop-on-solib-events".
5816 (handle_inferior_event): Pass new argument to handle_solib_event.
5817 * solib-svr4.c (probe.h): New include.
5818 (svr4_free_library_list): New forward declaration.
5819 (probe_action): New enum.
5820 (probe_info): New struct.
5821 (probe_info): New static variable.
5822 (NUM_PROBES): New definition.
5823 (svr4_info): New fields "using_xfer", "probes_table" and
5825 (free_probes_table): New function.
5826 (free_solib_list): New function.
5827 (svr4_pspace_data_cleanup): Free probes table and solib list.
5828 (svr4_copy_library_list): New function.
5829 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5830 (svr4_read_so_list): New parameter "prev_lm".
5831 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5832 (svr4_current_sos): New function.
5833 (probe_and_action): New struct.
5834 (hash_probe_and_action): New function.
5835 (equal_probe_and_action): Likewise.
5836 (register_solib_event_probe): Likewise.
5837 (solib_event_probe_at): Likewise.
5838 (solib_event_probe_action): Likewise.
5839 (solist_update_full): Likewise.
5840 (solist_update_incremental): Likewise.
5841 (disable_probes_interface_cleanup): Likewise.
5842 (svr4_handle_solib_event): Likewise.
5843 (svr4_update_solib_event_breakpoint): Likewise.
5844 (svr4_update_solib_event_breakpoints): Likewise.
5845 (svr4_create_solib_event_breakpoints): Likewise.
5846 (enable_break): Free probes table before creating breakpoints.
5847 Use svr4_create_solib_event_breakpoints to create breakpoints.
5848 (svr4_solib_create_inferior_hook): Free the solib list.
5849 (_initialize_svr4_solib): Initialise
5850 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5852 2013-06-04 Gary Benson <gbenson@redhat.com>
5854 * target.h (target_ops): New field
5855 "to_augmented_libraries_svr4_read".
5856 (target_augmented_libraries_svr4_read): New macro.
5857 * target.c (update_current_target): Handle
5858 to_augmented_libraries_svr4_read.
5859 * remote.c (remote_state): New field
5860 "augmented_libraries_svr4_read".
5861 (remote_augmented_libraries_svr4_read_feature): New function.
5862 (remote_protocol_features): Add entry for
5863 "augmented-libraries-svr4-read".
5864 (remote_augmented_libraries_svr4_read): New function.
5865 (init_remote_ops): Initialize
5866 remote_ops.to_augmented_libraries_svr4_read.
5868 2013-06-04 Gary Benson <gbenson@redhat.com>
5872 2013-06-04 Gary Benson <gbenson@redhat.com>
5874 * objfiles.h (inhibit_section_map_updates): New function
5876 (resume_section_map_updates): Likewise.
5877 (resume_section_map_updates_cleanup): Likewise.
5878 * objfiles.c (objfile_pspace_info): Removed field
5879 "objfiles_changed_p". New fields "new_objfiles_available",
5880 "section_map_dirty" and "inhibit_updates".
5881 (allocate_objfile): Set new_objfiles_available.
5882 (free_objfile): Set section_map_dirty.
5883 (objfile_relocate1): Likewise.
5884 (in_plt_section): Likewise.
5885 (find_pc_section): Update the conditions under which the
5886 section map will be updated.
5887 (inhibit_section_map_updates): New function.
5888 (resume_section_map_updates): Likewise.
5889 (resume_section_map_updates_cleanup): Likewise.
5891 2013-06-04 Gary Benson <gbenson@redhat.com>
5893 * probe.h (get_probe_argument_count): New declaration.
5894 (evaluate_probe_argument): Likewise.
5895 * probe.c (get_probe_argument_count): New function.
5896 (evaluate_probe_argument): Likewise.
5897 (probe_safe_evaluate_at_pc): Use the above new functions.
5899 2013-06-04 Alan Modra <amodra@gmail.com>
5901 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5902 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5903 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5904 target mem reads on optional insns.
5905 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5906 ppc_insns_match_pattern calls.
5907 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5908 Add match for power7 thread safety insns, and new order of
5909 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5910 invocation in comment, and update rest of comment.
5911 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5912 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5913 (ppc64_standard_linkage2_target): Update insn offsets.
5914 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5915 stubs first. Update calls.
5917 2013-06-04 Yao Qi <yao@codesourcery.com>
5919 * solib.c (solib_find): Don't need dir separator if path has
5922 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5924 Revert (indirectly causes a SIGSEGV):
5925 * machoread.c (macho_symfile_read): Assign first cleanup to
5928 2013-06-03 Yao Qi <yao@codesourcery.com>
5930 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5931 mi-parse.c. Make them static.
5932 (mi_all_values): Likewise.
5933 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5934 mi_parse_print_values. Make it external.
5935 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5936 Remove the declarations.
5937 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5938 * mi/mi-parse.h (mi_parse_print_values): Declare.
5939 * mi/mi-cmd-stack.c: Include mi-parse.h.
5940 (parse_print_values): Remove
5941 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5942 of parse_print_values.
5943 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5945 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5946 Yao Qi <yao@codesourcery.com>
5948 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5949 (encode_actions): Move code to ...
5950 (all_tracepoint_actions_and_cleanup): ... here. New.
5951 (trace_dump_command): Likewise.
5953 2013-05-30 Tom Tromey <tromey@redhat.com>
5955 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5957 2013-05-30 Tom Tromey <tromey@redhat.com>
5959 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5960 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5961 'old_chain' argument. Add 'parser_result' argument.
5962 (gdb_xml_create_parser_and_cleanup): Remove old version.
5963 (gdb_xml_parse_quick): Update.
5964 (xml_process_xincludes): Update.
5965 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5968 2013-05-30 Tom Tromey <tromey@redhat.com>
5970 * probe.c (collect_probes): Check arguments for NULL before
5971 calling compile_rx_or_error.
5972 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5975 2013-05-30 Tom Tromey <tromey@redhat.com>
5977 * infrun.c (adjust_pc_after_break): Introduce an outer null
5980 2013-05-30 Tom Tromey <tromey@redhat.com>
5982 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5984 2013-05-30 Tom Tromey <tromey@redhat.com>
5986 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5987 for 'old_chain'. Do not check 'head' before processing
5990 2013-05-30 Tom Tromey <tromey@redhat.com>
5992 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5995 2013-05-30 Tom Tromey <tromey@redhat.com>
5997 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5998 inner scope. Unconditionally call do_cleanups.
6000 2013-05-30 Tom Tromey <tromey@redhat.com>
6002 * source.c (find_and_open_source): Call do_cleanups.
6004 2013-05-30 Tom Tromey <tromey@redhat.com>
6006 * linux-thread-db.c (thread_db_load_search): Unconditionally
6009 2013-05-30 Tom Tromey <tromey@redhat.com>
6011 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6012 for 'cleanup'; instead use a later one.
6014 2013-05-30 Tom Tromey <tromey@redhat.com>
6016 * python/py-breakpoint.c (bppy_get_commands): Use
6017 explicit, unconditional return.
6018 * python/py-frame.c (frapy_read_var): Likewise.
6019 * python/python.c (gdbpy_decode_line): Likewise.
6021 2013-05-30 Tom Tromey <tromey@redhat.com>
6023 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6024 do_cleanups on all return paths.
6026 2013-05-30 Tom Tromey <tromey@redhat.com>
6028 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6030 2013-05-30 Tom Tromey <tromey@redhat.com>
6032 * stabsread.c (read_struct_type): Call do_cleanups along
6035 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6037 * mips-linux-tdep.c: Adjust formatting throughout.
6039 2013-05-30 Tom Tromey <tromey@redhat.com>
6041 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6042 along all return paths.
6044 2013-05-30 Tom Tromey <tromey@redhat.com>
6046 * symfile.c (find_separate_debug_file): Call do_cleanups
6047 along all return paths.
6049 2013-05-30 Tom Tromey <tromey@redhat.com>
6051 * symtab.c (search_symbols): Introduce a null cleanup for
6054 2013-05-30 Tom Tromey <tromey@redhat.com>
6056 * python/py-value.c (valpy_binop): Call do_cleanups before
6059 2013-05-30 Tom Tromey <tromey@redhat.com>
6061 * python/py-prettyprint.c (print_children): Remove extra
6064 2013-05-30 Tom Tromey <tromey@redhat.com>
6066 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6069 2013-05-30 Tom Tromey <tromey@redhat.com>
6071 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6072 along all return paths.
6074 2013-05-30 Tom Tromey <tromey@redhat.com>
6076 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6079 2013-05-30 Tom Tromey <tromey@redhat.com>
6081 * varobj.c (c_value_of_root): Call do_cleanups along all
6084 2013-05-30 Tom Tromey <tromey@redhat.com>
6086 * tracepoint.c (trace_dump_command): Unconditionally call
6089 2013-05-30 Tom Tromey <tromey@redhat.com>
6091 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6092 do_cleanups earlier.
6094 2013-05-30 Tom Tromey <tromey@redhat.com>
6096 * machoread.c (macho_symfile_read): Assign first cleanup to
6099 2013-05-30 Tom Tromey <tromey@redhat.com>
6101 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6103 2013-05-30 Tom Tromey <tromey@redhat.com>
6105 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6107 2013-05-30 Tom Tromey <tromey@redhat.com>
6109 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6110 call discard_cleanups.
6111 (inf_ptrace_attach): Likewise.
6113 2013-05-30 Tom Tromey <tromey@redhat.com>
6115 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6117 (mips_initialize): Likewise.
6118 (common_open): Call do_cleanups.
6120 2013-05-30 Tom Tromey <tromey@redhat.com>
6122 * utils.c (internal_vproblem): Call do_cleanups.
6124 2013-05-30 Tom Tromey <tromey@redhat.com>
6126 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6128 2013-05-30 Tom Tromey <tromey@redhat.com>
6130 * cli/cli-script.c (setup_user_args): Don't return after error.
6132 2013-05-30 Tom Tromey <tromey@redhat.com>
6134 * somread.c (som_symtab_read): Call do_cleanups.
6136 2013-05-30 Tom Tromey <tromey@redhat.com>
6138 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6140 2013-05-30 Tom Tromey <tromey@redhat.com>
6142 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6143 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6144 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6145 * source.c (show_substitute_path_command): Call do_cleanups.
6146 (unset_substitute_path_command, set_substitute_path_command):
6148 * symfile.c (load_command): Call do_cleanups.
6150 2013-05-30 Tom Tromey <tromey@redhat.com>
6152 * contrib/cleanup_check.py: New file.
6153 * contrib/gcc-with-excheck: Add option parsing.
6155 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6157 * windows-nat.c (windows_delete_thread): Add missing space
6160 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6162 * inferior.c (top level): Include tilde.h.
6163 (add_inferior_command): Call tilde_expand on the value of 'exec'
6166 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6167 Yao Qi <yao@codesourcery.com>
6169 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6171 (encode_actions): Likewise.
6172 * remote.c (remote_download_tracepoint): Caller update.
6173 * tracepoint.h (encode_actions): Update declaration.
6175 2013-05-30 Pedro Alves <palves@redhat.com>
6177 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6180 2013-05-30 Yao Qi <yao@codesourcery.com>
6182 * remote.c (remote_check_symbols): Remove unused parameter
6185 (remote_start_remote, remote_new_objfile): Caller update.
6187 2013-05-30 Yao Qi <yao@codesourcery.com>
6189 * mi/mi-cmds.c (mi_cmds): Define MI command
6190 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6193 2013-05-29 Pedro Alves <palves@redhat.com>
6195 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6196 (remote_insert_watchpoint, remote_remove_watchpoint)
6197 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6198 (remote_verify_memory, compare_sections_command)
6199 (remote_search_memory): Set the general process/thread on the
6202 2013-05-29 Pedro Alves <palves@redhat.com>
6204 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6205 (_initialize_aarch64_tdep): Don't call
6206 initialize_tdesc_aarch64_without_fpu.
6207 * features/Makefile (WHICH): Remove reference to
6208 aarch64-without-fpu.
6209 * features/aarch64-without-fpu.c: Delete file.
6210 * regformats/aarch64-without-fpu.dat: Delete file.
6212 2013-05-28 Yao Qi <yao@codesourcery.com>
6214 * tracepoint.c (stringify_collection_list): Remove parameter
6216 (encode_actions): Caller update. Remove local variables.
6218 2013-05-24 Yao Qi <yao@codesourcery.com>
6220 * tracepoint.c (TFILE_PID): Remove.
6221 (tfile_open): Don't add thread and inferior.
6222 (tfile_close): Don't set 'inferior_ptid'. Don't call
6223 exit_inferior_silent.
6224 (tfile_thread_alive): Remove.
6225 (init_tfile_ops): Don't set field 'to_thread_alive' of
6228 2013-05-23 Doug Evans <dje@google.com>
6230 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6232 2013-05-23 Pedro Alves <palves@redhat.com>
6234 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6235 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6236 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6237 Only define if HAVE_SOCKETS is defined.
6238 * configure.ac: Check for sys/socket.h.
6239 * config.in, configure: Regenerate.
6241 2013-05-23 Pedro Alves <palves@redhat.com>
6243 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6244 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6245 printing uint32_t variables.
6247 2013-05-23 Pedro Alves <palves@redhat.com>
6249 * NEWS: Mention GDBserver range stepping support.
6251 2013-05-23 Yao Qi <yao@codesourcery.com>
6252 Pedro Alves <palves@redhat.com>
6254 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6256 * infcmd.c (step_once, until_next_command): Enable range stepping.
6257 * infrun.c (displaced_step_prepare): Disable range stepping.
6258 (resume): Disable range stepping if stepping over a breakpoint or
6259 we have software watchpoints. If range stepping is enabled,
6260 assert the thread is in the stepping range.
6261 (clear_proceed_status_thread): Clear may_range_step.
6262 (handle_inferior_event): Disable range stepping as soon as we know
6263 the thread that hit the event. Re-enable it whenever we're going
6264 to step with a step range.
6265 * remote.c (struct vCont_action_support) <r>: New field.
6266 (use_range_stepping): New global.
6267 (remote_vcont_probe): Handle 'r' action.
6268 (append_resumption): Append an 'r' action if the thread may range
6270 (show_range_stepping): New function.
6271 (set_range_stepping): New function.
6272 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6273 'set range-stepping' and 'show range-stepping' commands.
6274 * NEWS: Mention range stepping, the new vCont;r action, and the
6275 new "set/show range-stepping" commands.
6277 2013-05-23 Yao Qi <yao@codesourcery.com>
6278 Pedro Alves <palves@redhat.com>
6280 * remote.c (struct vCont_action_support): New struct.
6281 (struct remote_state) <support_vCont_t>: Remove field.
6282 <vCont_actions_support>: New field.
6283 (remote_vcont_probe, remote_stop_ns): Update.
6285 2013-05-23 Yao Qi <yao@codesourcery.com>
6286 Pedro Alves <palves@redhat.com>
6288 * gdbthread.h (pc_in_thread_step_range): New declaration.
6289 * thread.c (pc_in_thread_step_range): New function.
6290 * infrun.c (handle_inferior_event): Use it.
6292 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6294 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6297 2013-05-22 Keith Seitz <keiths@redhat.com>
6299 * ada-lang.c (is_known_support_routine): Add explicit free of
6300 'func_name' from find_frame_funname.
6301 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6302 for func_name from find_frame_funname.
6303 * python/py-frame.c (frapy_name): Add explicit free of
6304 'name' from find_frame_funname.
6305 * stack.c (find_frame_funname): Add comment explaining that
6306 funcp must be freed by the caller.
6307 Return copy of symbol names instead of pointers.
6308 (print_frame): Add a cleanup for 'funname' from
6310 * stack.h (find_frame_funname): Remove "const" from
6311 'funname' parameter.
6313 2013-05-22 Tom Tromey <tromey@redhat.com>
6316 * c-valprint.c (c_value_print): Use value_addr for
6317 references. Convert back to reference type with value_ref.
6319 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6321 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6322 unloaded DLL, it will be done by handle_solib_event. See
6323 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6326 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6328 * ui-out.c: Create typedef ui_out_level_p and define vector
6329 operations for that type.
6330 (struct ui_out): Use a vector instead of an array.
6331 (current_level): Return level from a vector.
6332 (push_level): Create a level in a vector.
6333 (pop_level): Delete a level in a vector.
6334 (ui_out_new): Create initial level zero level, and store in a
6336 (ui_out_destroy): Add vector cleanup.
6338 2013-05-22 Pedro Alves <palves@redhat.com>
6340 * python/python-internal.h (gdb_Py_DECREF): Tag with
6341 "ARI: editCase function".
6343 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6345 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6347 2013-05-21 Pedro Alves <palves@redhat.com>
6349 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6350 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6351 * python/py-utils.c (py_decref): Don't check for NULL before
6354 2013-05-21 Pedro Alves <palves@redhat.com>
6356 * python/py-utils.c (py_decref): Remove extra braces.
6357 (gdb_pymodule_addobject): Remove extra braces.
6358 * python-internal.h (gdb_Py_DECREF): New static inline function.
6359 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6361 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6363 * breakpoints.c (detach_breakpoints): Do not
6364 detach breakpoints locations with loc_type bp_loc_other.
6366 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6368 Workaround Python 2.6.
6369 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6372 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6374 Code cleanup: constification.
6375 * solib.c (solib_ops): Make return type and ops variable type const.
6376 (set_solib_ops): Make the new_ops parameter and ops variable const.
6377 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6378 (solib_add, solib_keep_data_in_core, clear_solib)
6379 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6380 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6382 * solib.h (set_solib_ops): Make the new_ops parameter const.
6384 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6386 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6388 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6389 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6390 (SYSTEM_GDBINIT_FILES): New variables.
6391 (all): Add stamp-system-gdbinit.
6392 (stamp-system-gdbinit): New rule.
6393 (clean-system-gdbinit, install-system-gdbinit)
6394 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6395 (install-only): Add dependency on install-system-gdbinit.
6396 (uninstall): Add dependency on uninstall-system-gdbinit.
6397 (clean): Add dependency on clean-system-gdbinit.
6398 * system-gdbinit/elinos.py: New file.
6399 * system-gdbinit/wrs-linux.py: New file.
6401 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6403 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6405 2013-05-21 Hui Zhu <hui@codesourcery.com>
6407 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6408 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6409 * mi/mi-cmd-break.c (ctype.h): New include.
6410 (gdb_obstack.h): New include.
6411 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6412 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6413 (mi_cmd_dprintf_insert): New.
6414 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6415 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6417 2013-05-20 Tom Tromey <tromey@redhat.com>
6419 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6421 2013-05-20 Tom Tromey <tromey@redhat.com>
6423 * python/py-value.c (valpy_get_dynamic_type): Simplify
6424 dynamic_type assignment. Use Py_XINCREF.
6426 2013-05-20 Tom Tromey <tromey@redhat.com>
6428 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6430 2013-05-20 Tom Tromey <tromey@redhat.com>
6432 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6433 (gdbpy_selected_frame): Move object-construction code
6436 2013-05-20 Tom Tromey <tromey@redhat.com>
6438 * python/py-arch.c (gdbpy_initialize_arch): Use
6439 gdb_pymodule_addobject.
6440 * python/py-block.c (gdbpy_initialize_blocks): Use
6441 gdb_pymodule_addobject.
6442 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6443 gdb_pymodule_addobject.
6444 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6445 gdb_pymodule_addobject.
6446 * python/py-event.c (gdbpy_initialize_event_generic): Use
6447 gdb_pymodule_addobject.
6448 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6449 gdb_pymodule_addobject.
6450 * python/py-evts.c (add_new_registry): Use
6451 gdb_pymodule_addobject.
6452 (gdbpy_initialize_py_events): Likewise.
6453 * python/py-finishbreakpoint.c
6454 (gdbpy_initialize_finishbreakpoints): Use
6455 gdb_pymodule_addobject.
6456 * python/py-frame.c (gdbpy_initialize_frames): Use
6457 gdb_pymodule_addobject.
6458 * python/py-function.c (gdbpy_initialize_functions): Use
6459 gdb_pymodule_addobject.
6460 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6461 gdb_pymodule_addobject.
6462 * python/py-infthread.c (gdbpy_initialize_thread): Use
6463 gdb_pymodule_addobject.
6464 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6465 gdb_pymodule_addobject.
6466 * python/py-param.c (gdbpy_initialize_parameters): Use
6467 gdb_pymodule_addobject.
6468 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6469 gdb_pymodule_addobject.
6470 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6471 gdb_pymodule_addobject.
6472 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6473 gdb_pymodule_addobject.
6474 * python/py-type.c (gdbpy_initialize_types): Use
6475 gdb_pymodule_addobject.
6476 * python/py-utils.c (gdb_pymodule_addobject): New function.
6477 * python/py-value.c (gdbpy_initialize_values): Use
6478 gdb_pymodule_addobject.
6479 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6480 * python/python.c (_initialize_python): Use
6481 gdb_pymodule_addobject.
6483 2013-05-20 Tom Tromey <tromey@redhat.com>
6485 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6486 * python/py-param.c (get_set_value, get_show_value): Use
6488 * python/python.c (start_type_printers, apply_type_printers):
6489 Use explicit decrefs.
6491 2013-05-20 Tom Tromey <tromey@redhat.com>
6493 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6496 2013-05-20 Tom Tromey <tromey@redhat.com>
6498 * python/python.c (gdbpy_run_events): Decref the result
6499 of PyObject_CallObject.
6501 2013-05-20 Tom Tromey <tromey@redhat.com>
6503 * python/py-symtab.c (set_sal): Use
6504 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6505 (symtab_and_line_to_sal_object): Update.
6507 2013-05-20 Tom Tromey <tromey@redhat.com>
6509 * python/py-param.c (compute_enum_values): Decref 'item'.
6511 2013-05-20 Tom Tromey <tromey@redhat.com>
6513 * mi/mi-main.c: Include python-internal.h.
6514 (mi_cmd_list_features): Check gdb_python_initialized.
6515 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6516 (python_inferior_exit, python_new_objfile, add_thread_object)
6517 (delete_thread_object, py_free_inferior): Check
6518 gdb_python_initialized.
6519 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6520 gdb_python_initialized.
6521 * python/py-type.c (save_objfile_types): Check
6522 gdb_python_initialized.
6523 * python/python-internal.h (gdb_python_initialized): Declare.
6524 * python/python.c (ensure_python_env): Throw exception if
6525 Python not initialized.
6526 (before_prompt_hook, source_python_script_for_objfile)
6527 (start_type_printers, apply_type_printers,
6528 free_type_printers): Check gdb_python_initialized.
6529 * varobj.c (varobj_get_display_hint)
6530 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6531 (install_new_value_visualizer, varobj_set_visualizer)
6532 (value_get_print_value): Check gdb_python_initialized.
6534 2013-05-20 Tom Tromey <tromey@redhat.com>
6536 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6538 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6539 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6541 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6543 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6545 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6547 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6548 init function to return 'int'.
6549 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6550 Return 'int'. Check errors.
6551 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6553 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6554 Return 'int'. Check errors.
6555 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6557 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6559 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6561 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6563 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6565 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6567 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6569 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6571 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6573 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6575 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6577 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6579 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6581 * python/python-internal.h (gdbpy_initialize_auto_load,
6582 gdbpy_initialize_values, gdbpy_initialize_frames,
6583 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6584 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6585 gdbpy_initialize_blocks, gdbpy_initialize_types,
6586 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6587 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6588 gdbpy_initialize_finishbreakpoints,
6589 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6590 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6591 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6592 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6593 gdbpy_initialize_signal_event,
6594 gdbpy_initialize_breakpoint_event,
6595 gdbpy_initialize_continue_event,
6596 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6597 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6598 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6599 * python/python.c (gdb_python_initialized): New global.
6600 (gdbpy_initialize_events): Return 'int'. Check errors.
6601 (_initialize_python): Check errors. Set
6602 gdb_python_initialized.
6604 2013-05-20 Tom Tromey <tromey@redhat.com>
6606 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6607 Decref the reslut of PyObject_CallMethod.
6609 2013-05-20 Tom Tromey <tromey@redhat.com>
6611 * python/py-event.c (gdbpy_initialize_event_generic): Return
6612 early if PyType_Ready fails.
6614 2013-05-20 Tom Tromey <tromey@redhat.com>
6616 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6617 as 'default' in the switch.
6619 2013-05-20 Tom Tromey <tromey@redhat.com>
6621 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6622 get_addr_from_python calls out of TRY_CATCH.
6623 (infpy_write_memory, infpy_search_memory): Likewise.
6624 * python/py-utils.c (get_addr_from_python): Return negative
6625 value on error. Use TRY_CATCH.
6626 * python/python-internal.h (get_addr_from_python): Use
6627 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6629 2013-05-20 Tom Tromey <tromey@redhat.com>
6631 * python/py-event.c (evpy_emit_event): Decref the
6632 result of PyObject_CallFunctionObjArgs.
6634 2013-05-20 Tom Tromey <tromey@redhat.com>
6636 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6639 2013-05-20 Tom Tromey <tromey@redhat.com>
6641 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6643 2013-05-20 Tom Tromey <tromey@redhat.com>
6645 * python/py-event.h (gdbpy_initialize_event_generic): Use
6646 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6647 * python/py-evts.c (add_new_registry): Use
6648 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6649 * python/python-internal.h
6650 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6652 2013-05-20 Tom Tromey <tromey@redhat.com>
6654 * python/py-arch.c (archpy_disassemble): Update.
6655 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6656 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6657 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6658 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6660 (GDB_PY_HANDLE_EXCEPTION): Update.
6661 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6663 2013-05-20 Tom Tromey <tromey@redhat.com>
6665 * python/python-internal.h (events_object_type): Remove.
6667 2013-05-20 Tom Tromey <tromey@redhat.com>
6669 * python/py-event.h (evpy_emit_event): Use
6670 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6671 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6674 2013-05-20 Tom Tromey <tromey@redhat.com>
6676 * py-evtregistry.c (create_event_object): Decref
6677 eventregistry_object if PyList_New fails.
6679 2013-05-20 Tom Tromey <tromey@redhat.com>
6681 * py-cmd.c (gdbpy_string_to_argv): Check result of
6684 2013-05-20 Tom Tromey <tromey@redhat.com>
6686 * python/python.c (before_prompt_hook): Add cleanup to
6689 2013-05-20 Tom Tromey <tromey@redhat.com>
6691 * python/py-function.c (fnpy_init): Decref result of
6692 PyObject_GetAttrString.
6694 2013-05-20 Tom Tromey <tromey@redhat.com>
6696 * python/py-threadevent.c (get_event_thread): Use
6697 CPYCHECKER_RETURNS_BORROWED_REF.
6698 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6700 (pspace_to_pspace_object, objfile_to_objfile_object)
6701 (find_thread_object): Use it.
6703 2013-05-20 Tom Tromey <tromey@redhat.com>
6705 * python/py-arch.c (arch_object_type): Use
6706 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6707 * python/py-block.c (block_syms_iterator_object_type):
6708 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6709 * python/py-bpevent.c (breakpoint_event_object_type):
6710 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6711 * python/py-cmd.c (cmdpy_object_type): Use
6712 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6713 * python/py-continueevent.c (continue_event_object_type):
6714 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6715 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6716 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6717 * python/py-events.h (thread_event_object_type):
6718 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6719 * python/py-evtregistry.c (eventregistry_object_type): Use
6720 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6721 * python/py-exitedevent.c (exited_event_object_type):
6722 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6723 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6724 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6725 * python/py-function.c (fnpy_object_type): Use
6726 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6727 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6728 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6729 * python/py-infthread.c (thread_object_type): Use
6730 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6731 * python/py-lazy-string.c (lazy_string_object_type):
6732 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6733 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6734 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6735 * python/py-objfile.c (objfile_object_type): Use
6736 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6737 * python/py-param.c (parmpy_object_type):
6738 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6739 * python/py-progspace.c (pspace_object_type):
6740 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6741 * python/py-signalevent.c (signal_event_object_type):
6742 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6743 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6744 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6745 * python/py-type.c (type_object_type, field_object_type)
6746 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6747 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6749 (value_object_type, block_object_type, symbol_object_type)
6750 (event_object_type, stop_event_object_type, breakpoint_object_type)
6751 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6753 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6755 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6756 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6758 2013-05-20 Doug Evans <dje@google.com>
6760 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6762 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6763 reading_dwo_directly.
6764 (struct signatured_type): New member dwo_unit.
6765 (struct die_reader_specs): New member comp_dir.
6766 (create_signatured_type_table_from_index): Use malloc for
6767 all_type_units instead of objfile's obstack.
6768 (create_all_type_units): Ditto.
6769 (fill_in_sig_entry_from_dwo_entry): New function.
6770 (add_type_unit): New function.
6771 (lookup_dwo_signatured_type): New function.
6772 (lookup_dwp_signatured_type): New function.
6773 (lookup_signatured_type): New arg cu. All callers updated.
6774 (init_cu_die_reader): Initialize comp_dir.
6775 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6776 Change assert of matching type signatures to call error on mismatch.
6777 (lookup_dwo_unit): Add assert.
6778 (init_tu_and_read_dwo_dies): New function.
6779 (init_cutu_and_read_dies): Call it.
6780 (build_type_unit_groups): Handle case of no type unit groups created.
6781 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6782 (lookup_dwo_cutu): Tweak complaint.
6783 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6784 (dwarf2_per_objfile_free): Free all_type_units.
6786 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6788 * windows-nat.c (handle_unload_dll): Add missing empty line.
6790 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6792 * dwarf2read.c (prototyped_function_p): New function.
6793 (read_subroutine_type): Use it.
6795 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6797 * rs6000-aix-tdep.c: De-indent some example code provided
6800 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6802 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6803 region is ok for a hardware watchpoint using the new ptrace interface
6806 2013-05-17 Doug Evans <dje@google.com>
6808 * NEWS: Mention new maintenance commands check-symtabs, and
6809 expand-symtabs, and renamed check-psymtabs.
6810 * psymtab.c (maintenance_check_psymtabs): Renamed from
6811 maintenance_check_symtabs. Only process already-expanded symbol
6813 (_initialize_psymtab): Update.
6814 * symmisc.c (maintenance_check_symtabs): New function.
6815 (maintenance_expand_name_matcher): New function
6816 (maintenance_expand_file_matcher): New function
6817 (maintenance_expand_symtabs): New function.
6818 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6821 2013-05-17 Tom Tromey <tromey@redhat.com>
6823 * python/py-inferior.c (infpy_read_memory): Don't call
6824 PyErr_SetString if PyObject_New fails.
6825 * python/py-frame.c (frame_info_to_frame_object): Don't call
6826 PyErr_SetString if PyObject_New fails.
6828 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6830 * acinclude.m4: Add check for dlopen in libdl.
6831 * configure.ac: Ditto.
6832 * configure: Regenerate.
6834 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6836 * frame.c (frame_stash): Convert to htab.
6837 (frame_addr_hash): New function.
6838 (frame_addr_hash_eq): New function.
6839 (frame_stash_create): Convert function to create
6841 (frame_stash_add): Convert function to add an entry to a hash
6843 (frame_stash_find): Convert function to search the hash table.
6844 (frame_stash_invalidate): Convert function to empty the hash
6846 (get_frame_id): Only add to stash if a frame_id is created.
6847 (_initialize_frame): Call frame_stash_create.
6849 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6851 * configure.ac: Ensure MIG is available when building for GNU Hurd
6853 * configure: Regenerate.
6855 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6857 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6859 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6861 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6862 all cleanups are done before returning from this function.
6864 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6866 * utils.h: #include "exceptions.h".
6867 (enum errors): Remove partial declaration.
6869 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6871 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6872 * gdbarch.h, gdbarch.c: Regenerate.
6873 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6876 * rs6000-aix-tdep.h: New file.
6877 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6878 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6880 (struct field_info, struct ld_info_desc): New types.
6881 (ld_info32_desc, ld_info64_desc): New static constants.
6882 (struct ld_info): New type.
6883 (rs6000_aix_extract_ld_info): New function.
6884 (rs6000_aix_shared_library_to_xml): Likewise.
6885 (rs6000_aix_ld_info_to_xml): Likewise.
6886 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6887 (rs6000_aix_init_osabi): Add call to
6888 set_gdbarch_core_xfer_shared_libraries_aix.
6889 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6890 Remove "xml-utils.h" include.
6891 (LdInfo): Delete typedef.
6892 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6894 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6895 Adjust code accordingly.
6896 (rs6000_core_ldinfo): Delete, folded into
6897 rs6000_aix_core_xfer_shared_libraries_aix.
6898 (rs6000_xfer_shared_library): Delete.
6899 (rs6000_xfer_shared_libraries): Reimplement.
6901 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6903 * record.c (record_goto_cmdlist): New.
6904 (cmd_record_goto): Split into this ...
6905 (cmd_record_goto_begin): ... this
6906 (cmd_record_goto_end): ... and this.
6907 (_initialize_record): Change "record goto" to prefix command.
6908 Add commands for "record goto begin" and "record goto end".
6909 Add an alias for "record goto start" to "record goto begin".
6911 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6913 * linespec.c (convert_linespec_to_sals): New comment for
6914 SOURCE_FILENAME assignment.
6916 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6918 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6921 2013-05-14 Tom Tromey <tromey@redhat.com>
6923 * eval.c (parse_and_eval_long): Make 'exp' const.
6924 * value.h (parse_and_eval_long): Update.
6926 2013-05-14 Tom Tromey <tromey@redhat.com>
6928 * ui-file.c (gdb_fopen): Make arguments const.
6929 * ui-file.h (gdb_fopen): Make arguments const.
6931 2013-05-14 Tom Tromey <tromey@redhat.com>
6933 * remote.c (remote_set_trace_notes): Make arguments const.
6934 * target.c (update_current_target): Update cast.
6935 * target.h (to_set_trace_notes): Make arguments const.
6937 2013-05-14 Tom Tromey <tromey@redhat.com>
6939 * go32-nat.c (go32_terminal_info): Make 'args' const.
6940 * inferior.h (child_terminal_info): Update.
6941 * inflow.c (child_terminal_info): Make 'args' const.
6942 * target.c (default_terminal_info): Make 'args' const.
6943 (debug_to_terminal_save_ours): Likewise.
6944 * target.h (struct target_ops) <to_terminal_info>: Make argument
6947 2013-05-13 Tom Tromey <tromey@redhat.com>
6949 * gcore.c (create_gcore_bfd): Make 'filename' const.
6950 * gcore.h (create_gcore_bfd): Make 'filename' const.
6951 * record-full.c (record_full_save): Make 'recfilename' const.
6952 * target.c (target_save_record): Make 'filename' const.
6953 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6955 (target_save_record): Likewise.
6957 2013-05-13 Tom Tromey <tromey@redhat.com>
6960 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6961 ranges section has been read.
6963 2013-05-13 Tom Tromey <tromey@redhat.com>
6966 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6967 STRUCTOP_PTR>: Return a not_lval value for
6968 EVAL_AVOID_SIDE_EFFECTS.
6969 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6970 for EVAL_AVOID_SIDE_EFFECTS.
6972 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6974 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6975 floating point registers to register type before storing
6977 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6980 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6981 Tom Tromey <tromey@redhat.com>
6983 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6985 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6987 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6988 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6989 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6990 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6992 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6993 Tom Tromey <tromey@redhat.com>
6996 * configure: Rebuild.
6997 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7000 2013-05-10 Pedro Alves <palves@redhat.com>
7002 * remote.c (_initialize_remote): Fix spelling of
7003 qXfer:traceframe-info:read packet in packet config command.
7005 2013-05-10 David Taylor <dtaylor@emc.com>
7009 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7010 "QTro" at start of packet.
7012 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7014 * solib-aix.c (solib_aix_relocate_section_addresses):
7015 For the .bss section action, apply the same offset as
7018 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7020 * solib-aix.c (solib_aix_relocate_section_addresses):
7021 Remove FIXME comment.
7023 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7026 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7027 New functions, directly copied from sparc-sol-thread.c.
7028 * sparc-sol-thread.c: Delete.
7029 * configure.ac: Remove code handling sparc-solaris-thread.c.
7030 * configure: Regenerate.
7032 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7034 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7036 (backtrace_command): Add "no-filters" option parsing.
7037 (_initialize_stack): Alter help to reflect "no-filters" option.
7038 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7039 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7040 (py-frame.o): Add target
7041 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7043 * python/python.h: Add new frame filter constants, and flag enum.
7044 (apply_frame_filter): Add definition.
7045 * python/python.c (apply_frame_filter): New non-Python
7047 * python/py-utils.c (py_xdecref): New function.
7048 (make_cleanup_py_xdecref): Ditto.
7049 * python/py-objfile.c: Declare frame_filters dictionary.
7050 (objfpy_dealloc): Add frame_filters dealloc.
7051 (objfpy_new): Initialize frame_filters attribute.
7052 (objfile_to_objfile_object): Ditto.
7053 (objfpy_get_frame_filters): New function.
7054 (objfpy_set_frame_filters): New function.
7055 * python/py-progspace.c: Declare frame_filters dictionary.
7056 (pspy_dealloc): Add frame_filters dealloc.
7057 (pspy_new): Initialize frame_filters attribute.
7058 (pspacee_to_pspace_object): Ditto.
7059 (pspy_get_frame_filters): New function.
7060 (pspy_set_frame_filters): New function.
7061 * python/py-framefilter.c: New file.
7062 * python/lib/gdb/command/frame_filters.py: New file.
7063 * python/lib/gdb/frames.py: New file.
7064 * python/lib/gdb/__init__.py: Initialize global frame_filters
7066 * python/lib/gdb/FrameDecorator.py: New file.
7067 * python/lib/gdb/FrameIterator.py: New file.
7068 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7069 * mi/mi-cmds.h: Declare.
7070 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7071 --no-frame-filter logic, and Python frame filter logic.
7072 (stack_enable_frame_filters): New function.
7073 (parse_no_frame_option): Ditto.
7074 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7076 (mi_cmd_stack_list_locals): Ditto.
7077 (mi_cmd_stack_list_args): Ditto.
7078 (mi_cmd_stack_list_variables): Ditto.
7079 * NEWS: Add frame filter note.
7081 2013-05-09 Doug Evans <dje@google.com>
7083 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7084 All callers updated.
7085 (syms_from_objfile): Ditto. Make static.
7086 (symbol_file_add_with_addrs): Renamed from
7087 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7088 num_offsets. All callers updated.
7089 * symfile.h (syms_from_objfile): Delete.
7091 * symfile.c (decrement_reading_symtab): Add assert.
7092 (increment_reading_symtab): Ditto.
7094 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7096 * source.c (forward_search_command): Replace call to getc
7098 (reverse_search_command): Likewise.
7100 2013-05-08 Doug Evans <dje@google.com>
7102 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7105 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7107 * sol-thread.c (info_cb): Factorize the code a little.
7109 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7111 * sol-thread.c (info_cb): Rework the output of the "maintenance
7112 info sol-threads" command a bit.
7114 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7116 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7117 Replace ti.ti_startfunc by ti.ti_pc.
7119 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7121 * solib-aix.c (solib_aix_free_library_list): New function
7122 for the case where HAVE_LIBEXPAT is not defined.
7124 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7126 PR breakpoints/15413:
7127 * breakpoint.c (condition_completer): Simplify the code to
7128 disconsider multiple locations of breakpoints when completing the
7129 "condition" command.
7131 2013-05-07 Pierre Muller <muller@sourceware.org>
7133 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7134 instead of <sys/wait.h>.
7136 2013-05-07 Pierre Muller <muller@sourceware.org>
7138 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7139 trailing new line from warning message.
7141 2013-05-07 Pierre Muller <muller@sourceware.org>
7143 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7144 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7146 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7148 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7149 error message (ARI fix).
7151 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7153 * features/library-list-aix.dtd: Replace library-list by
7155 * rs6000-nat.c: Replace library-list by library-list-aix
7157 * solib-aix.c: Likewise.
7159 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7161 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7162 Renames TARGET_OBJECT_AIX_LIBRARIES.
7163 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7164 TARGET_OBJECT_LIBRARIES_AIX throughout.
7165 * solib-aix.c: Likwise.
7167 2013-05-07 Yao Qi <yao@codesourcery.com>
7169 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7170 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7172 2013-05-07 Yao Qi <yao@codesourcery.com>
7174 * solib-dsbt.c (enable_break): Declare.
7175 (dsbt_current_sos): Remove call to enable_break2.
7176 (enable_break2): Rename to enable_break. Set solib breakpoint
7177 on '_dl_debug_state'.
7178 (enable_break): Remove.
7180 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7182 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7183 debug state prior to replicating existing hardware watchpoints or
7186 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7188 * gcore.c (gcore_create_callback): Ignore sections with
7189 separate_debug_objfile_backlink != NULL.
7191 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7192 Andrew Jenner <andrew@codesourcery.com>
7193 Chung-Lin Tang <cltang@codesourcery.com>
7194 Julian Brown <julian@codesourcery.com>
7196 Based on the nios2-elf port from Altera Corporation.
7198 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7200 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7201 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7202 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7203 * nios2-tdep.h: New.
7204 * nios2-tdep.c: New.
7205 * nios2-linux-tdep.c: New.
7206 * features/Makefile (WHICH): Add nios2-linux.
7207 (nios2-linux-expedite): Set.
7208 * features/nios2-cpu.xml: New.
7209 * features/nios2.xml: New.
7210 * features/nios2-linux.xml: New.
7211 * features/nios2.c: New (autogenerated).
7212 * features/nios2-linux.c: New (autogenerated).
7213 * regformats/nios2-linux.dat: New (autogenerated).
7214 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7217 2013-05-06 Doug Evans <dje@google.com>
7219 * symfile.c: Whitespace cleanup.
7221 * solist.h (struct target_so_ops): New member clear_so.
7222 * solib-svr4.c (svr4_clear_so): New function.
7223 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7224 * solib.c (clear_so): Renamed from free_so_symbols.
7225 All callers updated. Call target clear_so if it exists.
7227 2013-05-06 Tom Tromey <tromey@redhat.com>
7229 * ada-lang.c (ada_value_primitive_packed_val): Don't
7231 * value.c (set_value_parent): Incref the new parent and decref
7233 (value_copy, value_primitive_field): Use set_value_parent.
7235 2013-05-06 Tom Tromey <tromey@redhat.com>
7237 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7238 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7240 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7241 * dwarf2read.c (write_constant_as_bytes)
7242 (dwarf2_fetch_constant_bytes): New functions.
7244 2013-05-06 Tom Tromey <tromey@redhat.com>
7246 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7248 (dwarf2_const_value_attr): Update.
7250 2013-05-06 Tom Tromey <tromey@redhat.com>
7252 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7253 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7254 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7257 2013-05-06 Tom Tromey <tromey@redhat.com>
7259 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7262 2013-05-06 Doug Evans <dje@google.com>
7264 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7265 * stabsread.h (process_one_symbol): Update declaration.
7266 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7267 * elfread.c (elf_symfile_relocate_probe): Ditto.
7268 * psymtab.c (relocate_psymtabs): Ditto.
7269 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7270 (objfile_relocate): Ditto.
7271 * objfiles.h (objfile_relocate): Update declaration.
7272 * symfile.c (relative_addr_info_to_section_offsets): Constify
7274 (default_symfile_offsets): Ditto.
7275 (syms_from_objfile_1): Constify offsets parameter.
7276 (syms_from_objfile): Ditto.
7277 (symbol_file_add_with_addrs_or_offsets): Ditto.
7278 (symfile_map_offsets_to_segments): Constify data parameter.
7279 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7280 delta parameters of member relocate.
7281 (struct sym_probe_fns): Constify new_offsets,
7282 delta parameters of member sym_relocate_probe.
7283 (struct sym_fns): Constify section_addr_info parameter of member
7285 (relative_addr_info_to_section_offsets): Update declaration.
7286 (default_symfile_offsets): Ditto.
7287 (syms_from_objfile): Ditto.
7288 (symfile_map_offsets_to_segments): Ditto.
7290 * symfile.c (syms_from_objfile_1): Use correct section count when
7291 objfile->sf == NULL.
7293 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7295 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7297 2013-05-06 Doug Evans <dje@google.com>
7299 * psympriv.h (struct partial_symtab): Augment comment for member
7302 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7304 Reimplement shared library support on ppc-aix...
7305 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7306 * features/library-list-aix.dtd: New file.
7307 * solib-aix.h, solib-aix.c: New file.
7308 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7309 (rs6000_find_toc_address_hook): Delete.
7310 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7311 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7312 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7314 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7315 (vmap_symtab, fixup_breakpoints): Delete.
7316 (rs6000_xfer_shared_libraries): New function.
7317 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7318 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7319 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7320 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7321 (rs6000_xfer_shared_library): New function.
7322 (find_toc_address): Delete.
7323 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7324 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7325 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7326 before creating minimal symbol. Adjust function description
7328 (scan_xcoff_symtab): Replace call to
7329 prim_record_minimal_symbol_and_info by call to
7330 record_minimal_symbol.
7331 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7332 around default_symfile_offsets.
7333 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7334 powerpc-aix targets.
7335 * config/rs6000/nm-rs6000.h: Delete.
7336 * config/powerpc/aix.mh (NAT_FILE): Delete.
7337 (NATDEPFILES): Remove xcoffsolib.o.
7338 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7339 (ALL_TARGET_OBS): Add solib-aix.o.
7340 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7341 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7342 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7343 * xcoffsolib.h, xcoffsolib.c: Delete.
7345 * solib.c (reload_shared_libraries): Remove reference to
7346 SOLIB_CREATE_INFERIOR_HOOK.
7347 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7348 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7349 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7351 * corelow.c (deprecated_core_resize_section_table): Delete.
7352 * exec.c: Remove include of xcoffsolib.h".
7353 (map_vmap, vmap): Delete.
7354 (exec_close_1): Remove references to vmap.
7355 (exec_file_attach): Remove vmap handling code, and reference
7356 to DEPRECATED_IBM6000_TARGET.
7357 (bfdsec_to_vmap): Delete.
7358 (exec_files_info): Remove block of code handling VMAP.
7359 * infcmd.c (post_create_inferior): Remove reference to
7360 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7361 * infrun.c (follow_exec): Remove reference to
7362 SOLIB_CREATE_INFERIOR_HOOK.
7363 * stack.c (print_frame): Remove reference to PC_SOLIB.
7364 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7365 (dsbt_relocate_main_executable): Likewise.
7366 * solib-frv.c (frv_current_sos): Likewise.
7368 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7370 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7371 to target_write_memory and target_read_memory.
7373 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7375 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7376 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7378 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7380 * darwin-nat.c: Replace all "%x" instances in format strings
7381 into "0x%x" throughout.
7383 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7385 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7386 gdb_assert by call to MACH_CHECK_ERROR.
7387 (darwin_attach_pid): Raise an error rather than a failed
7388 assertion when various system calls failed. Report a warning
7389 instead of raising a failed assertion when PREV_NOT is not NULL
7390 after call to mach_port_request_notification.
7391 (darwin_ptrace_me): Raise an error rather than a failed
7392 assertion when read returns nonzero.
7394 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7396 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7398 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7400 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7402 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7404 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7405 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7406 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7407 a stale cleanup. Fix double free of NAME.
7409 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7411 * windows-nat.c (windows_delete_thread): Accept an additional
7412 argument, the thread's exit code, and announce thread death when
7413 print_thread_events is non-zero and we are deleting a thread that
7414 is not the main thread.
7415 (get_windows_debug_event): Pass thread exit code to
7416 windows_delete_thread.
7418 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7420 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7421 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7422 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7423 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7424 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7425 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7426 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7427 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7428 (gdbarch_tdep): New struct.
7429 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7431 (v850e3v5_register_name): New function.
7432 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7433 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7434 code handling the struct return conventions for the RH850 ABI.
7436 (v850_eight_byte_align_p): New function.
7437 (v850_push_call_dummy): Push structs by value, not by reference
7438 for the RH850 ABI. Add support for eight byte alignment.
7439 (v850_dbtrap_breakpoint_from_pc): New function.
7440 (v850_gdbarch_init): Add ABI detection code. Register
7441 v850e3v5_register_name for the v850e3v5 architecture. Set the
7442 number of registers for v850e3v5. Register
7443 v850_dbtrap_breakpoint_from_pc as appropriate.
7444 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7446 2013-05-03 Doug Evans <dje@google.com>
7448 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7449 of bfd_count_sections.
7450 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7451 * symfile.c (default_symfile_offsets): Ditto.
7452 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7453 one entry, not bfd_count_sections entries.
7455 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7457 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7458 `save' and `restore' register groups. Don't include SPL
7459 or SPH in these groups.
7460 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7461 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7462 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7463 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7464 dwarf2_append_unwinders().
7466 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7468 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7469 ignore SIGINT and SIGTRAP in case these internal signals are
7472 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7474 * darwin-nat.c (darwin_read_write_inferior): Change types
7475 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7476 of copy_count to "mach_msg_type_number_t".
7477 (darwin_read_dyld_info): Change type of parameter
7478 rdaddr to "gdb_byte *".
7480 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7482 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7483 of &info->load_map from "char *" to "gdb_byte *".
7485 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7487 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7488 from "char *" to "gdb_byte *".
7489 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7491 2013-04-30 Doug Evans <dje@google.com>
7493 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7494 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7495 DWO stub. If DWO isn't found, just use stub.
7496 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7498 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7499 calling init_cutu_and_read_dies.
7501 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7503 * target-descriptions.c (maint_print_c_tdesc_cmd):
7504 Add case to parse structures as register types and
7507 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7509 * MAINTAINERS (Write After Approval): Add myself to the list.
7511 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7513 * sol-thread.c (rw_common): Change type of parameter "buf"
7515 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7516 rw_common to "gdb_byte *" instead of "char *".
7518 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7520 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7521 of local variable msym to const struct bound_minimal_symbol.
7522 Adjust use accordingly.
7523 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7525 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7527 * i386gnu-nat.c (CREG_OFFSET): New macro.
7528 (creg_offset): New array.
7529 (CREG_ADDR): Use creg_offset instead of reg_offset.
7531 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7533 * mep-tdep.c (mep_write_pc): Delete.
7534 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7535 Add call to set_gdbarch_pc_regnum.
7537 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7539 * common/filestuff.c: Replace #include <dirent.h> by
7540 #include "gdb_dirent.h".
7542 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7544 * common/filestuff.c: Replace #include <sys/stat.h> by
7545 #include "gdb_stat.h".
7547 2013-04-29 Pierre Muller <muller@sourceware.org>
7549 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7550 editCase function rule.
7551 (get_DW_AT_signature_type): Likewise.
7553 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7555 * m32r-tdep.c (m32r_write_pc): Delete.
7556 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7557 Add call to set_gdbarch_pc_regnum.
7559 2013-04-29 Pierre Muller <muller@sourceware.org>
7561 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7563 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7565 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7567 2013-04-28 Yao Qi <yao@codesourcery.com>
7569 * solib-dsbt.c (fetch_loadmap): Re-indent.
7570 (displacement_from_map, enable_break2): Likewise.
7571 (dsbt_relocate_section_addresses): Likewise.
7573 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7577 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7580 * dwarf2read.c (process_full_comp_unit): Always create a static
7583 2013-04-25 Hui Zhu <hui@codesourcery.com>
7585 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7586 to loc->cmd_bytecode.
7588 2013-04-24 Doug Evans <dje@google.com>
7590 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7592 2013-04-22 Keith Seitz <keiths@redhat.com>
7594 * tracepoint.c (trace_save): Call the writer's start method.
7596 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7599 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7602 2013-04-23 Tom Tromey <tromey@redhat.com>
7604 * common/filestuff.c: Check USE_WIN32API before including
7606 (HAVE_F_GETFD): New define.
7607 (mark_cloexec): Check HAVE_F_GETFD.
7608 (gdb_open_cloexec): Change 'mode' to unsigned long.
7609 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7610 (gdb_pipe_cloexec): Check HAVE_PIPE.
7611 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7614 2013-04-23 Hui Zhu <hui@codesourcery.com>
7617 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7619 2013-04-23 Hui Zhu <hui@codesourcery.com>
7622 * breakpoint.c (dprintf_print_recreate): New.
7623 (save_breakpoints): Let it not save dprintf commands.
7624 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7626 2013-04-22 Tom Tromey <tromey@redhat.com>
7629 * Makefile.in (SFILES): Add filestuff.c
7630 (COMMON_OBS): Add filestuff.o.
7631 (filestuff.o): New target.
7632 * auto-load.c (auto_load_objfile_script_1): Use
7634 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7635 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7636 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7637 * common/agent.c (gdb_connect_sync_socket): Use
7639 * common/filestuff.c: New file.
7640 * common/filestuff.h: New file.
7641 * common/linux-osdata.c (linux_common_core_of_thread)
7642 (command_from_pid, commandline_from_pid, print_source_lines)
7643 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7644 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7646 * common/linux-procfs.c (linux_proc_get_int)
7647 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7648 * config.in, configure: Rebuild.
7649 * configure.ac: Don't check for sys/socket.h. Check for
7651 * corelow.c (core_open): Use gdb_open_cloexec.
7652 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7653 * fork-child.c (fork_inferior): Call close_most_fds.
7654 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7655 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7656 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7657 Use gdb_fopen_cloexec.
7658 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7660 (linux_async_pipe): Use gdb_pipe_cloexec.
7661 * remote-fileio.c (remote_fileio_func_open): Use
7663 * remote.c (remote_file_put, remote_file_get): Use
7665 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7667 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7668 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7669 * solib.c (solib_find): Use gdb_open_cloexec.
7670 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7671 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7672 (tfile_open): Use gdb_open_cloexec.
7673 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7674 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7675 * xml-support.c (xml_fetch_content_from_file): Use
7677 * main.c (captured_main): Call notice_open_fds.
7679 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7681 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7682 'char *' to 'gdb_byte *'.
7683 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7686 2013-04-22 Yao Qi <yao@codesourcery.com>
7688 * infrun.c: Fix typo in comment.
7690 2013-04-22 Andrew Haley <aph@redhat.com>
7692 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7695 2013-04-20 Yao Qi <yao@codesourcery.com>
7697 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7698 'char *' to 'gdb_byte *'. Cast the return value of
7699 'bt_ctf_get_char_array' to 'gdb_byte *'.
7701 2013-04-19 Pedro Alves <palves@redhat.com>
7703 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7705 * configure: Regenerate.
7707 2013-04-19 Pedro Alves <palves@redhat.com>
7709 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7712 2013-04-19 Pedro Alves <palves@redhat.com>
7714 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7715 Change type of 'myaddr' parameter to gdb_byte pointer.
7716 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7717 to 'long long' pointer instead of to 'unsigned long long'.
7718 (monitor_write_memory_block, monitor_read_memory_single)
7719 (monitor_read_memory): Change type of 'myaddr' parameter to
7722 2013-04-19 Pedro Alves <palves@redhat.com>
7724 * record.c (validate_history_size): Make parameter 'setting'
7727 2013-04-19 Pedro Alves <palves@redhat.com>
7729 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7732 2013-04-19 Pedro Alves <palves@redhat.com>
7734 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7737 2013-04-19 Pedro Alves <palves@redhat.com>
7739 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7740 * ada-tasks.c (read_fat_string_value): Likewise.
7742 2013-04-19 Pedro Alves <palves@redhat.com>
7744 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7745 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7746 'offset', and adjust.
7748 2013-04-19 Pedro Alves <palves@redhat.com>
7750 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7751 (read_index_from_section): Add cast to 'char *'.
7753 2013-04-19 Pedro Alves <palves@redhat.com>
7755 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7757 2013-04-19 Pedro Alves <palves@redhat.com>
7759 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7761 2013-04-19 Pedro Alves <palves@redhat.com>
7763 * record-full.c (record_full_get_bookmark): Change local 'ret'
7764 type to char * and add cast to gdb_byte *.
7765 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7767 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7769 2013-04-19 Pedro Alves <palves@redhat.com>
7771 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7772 * python/py-prettyprint.c (print_string_repr): Change type of
7773 'output' local to char *. Add cast to gdb_byte * in
7774 LA_PRINT_STRING call.
7775 (print_children): Change type of 'output' local to char *.
7776 * python/py-value.c (valpy_string): Add cast to const char * in
7777 PyUnicode_Decode call.
7779 2013-04-19 Pedro Alves <palves@redhat.com>
7781 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7782 and change its type to 'const char *'. Adjust.
7783 (mips_send_packet): Add cast to 'char *', and remove cast to
7785 (mips_receive_packet): Remove cast to 'unsigned char *'.
7786 (mips_load_srec): Use bfd_byte.
7787 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7788 (pmon_checkset): Make 'value' parameter unsigned.
7790 2013-04-19 Pedro Alves <palves@redhat.com>
7792 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7794 2013-04-19 Pedro Alves <palves@redhat.com>
7796 * remote.c (remote_write_bytes_aux, compare_sections_command)
7798 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7799 (remote_hostio_readlink, remote_bfd_iovec_pread)
7800 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7801 binary buffer, and char when buffer is used as string.
7802 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7803 (trace_save, tfile_open, traceframe_walk_blocks)
7804 (tfile_fetch_registers): Likewise.
7806 2013-04-19 Pedro Alves <palves@redhat.com>
7808 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7809 buffer and size_t size. Adjust.
7810 * ser-base.h (ser_base_write): Adjust.
7811 * ser-go32.c (cnts): Change type to size_t.
7812 (dos_write): Change prototype -- take 'void *'
7813 buffer and size_t size. Adjust.
7814 (dos_info): Print elements of 'cnts' as unsigned long.
7815 * serial.c (serial_write): Likewise.
7816 * serial.h (serial_write): Adjust.
7817 (struct serial_ops) <write>: Change prototype -- take 'void *'
7818 buffer and size_t size. Adjust.
7820 2013-04-19 Pedro Alves <palves@redhat.com>
7822 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7824 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7826 2013-04-19 Pedro Alves <palves@redhat.com>
7828 * alpha-tdep.c (alpha_extract_return_value): Use
7829 regcache_cooked_read_unsigned to read 'v0'.
7831 2013-04-19 Pedro Alves <palves@redhat.com>
7833 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7834 parameters 'at', 'as' and 'offset' to uint32_t.
7836 2013-04-19 Pedro Alves <palves@redhat.com>
7838 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7839 'is64' to signed 'int'.
7841 2013-04-19 Pedro Alves <palves@redhat.com>
7843 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7846 2013-04-19 Pedro Alves <palves@redhat.com>
7848 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7849 'insnbuf' buffer type to unsigned int[].
7851 2013-04-19 Pedro Alves <palves@redhat.com>
7853 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7855 2013-04-19 Pedro Alves <palves@redhat.com>
7857 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7860 2013-04-19 Pedro Alves <palves@redhat.com>
7862 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7863 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7865 * mips-tdep.c (heuristic_fence_post): Change type to int.
7866 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7868 2013-04-19 Pedro Alves <palves@redhat.com>
7870 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7871 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7872 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7874 2013-04-19 Pedro Alves <palves@redhat.com>
7876 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7877 it to get a string view of the byte buffer.
7878 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7879 type to gdb_byte *. Adjust.
7880 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7881 Change local to char *.
7882 * solib-darwin.c (find_program_interpreter): Change return type to
7884 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7885 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7886 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7887 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7888 * solib-svr4.c (find_program_interpreter): Change return type to
7890 (enable_break): Change local 'interp_name' to char *.
7891 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7892 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7893 (spu_pseudo_register_write_spu): Use char for string buffer.
7895 (info_spu_event_command, info_spu_signal_command): Add casts to
7898 2013-04-19 Pedro Alves <palves@redhat.com>
7900 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7902 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7903 * ada-lang.c (ada_value_assign): Use gdb_byte.
7904 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7905 (alphanbsd_sigtramp_offset): Use gdb_byte.
7906 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7907 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7908 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7909 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7910 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7911 * arm-tdep.c (arm_stub_unwind_sniffer)
7912 (arm_displaced_init_closure): Use gdb_byte.
7913 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7914 (arm_default_thumb_le_breakpoint)
7915 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7916 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7917 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7918 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7919 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7920 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7921 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7922 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7923 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7924 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7925 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7926 (cris_store_return_value, cris_extract_return_value): Use
7928 (constraint): Change type of parameter to char * from signed
7929 char*. Use gdb_byte.
7930 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7931 of local buffer to gdb_byte *.
7932 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7933 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7934 (add_address_entry): Change type of local buffer to gdb_byte[].
7935 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7936 (frv_push_dummy_call): Use gdb_byte.
7937 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7938 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7939 (hppa_hpux_supply_save_state): Use gdb_byte.
7940 * hppa-tdep.c (hppa32_push_dummy_call)
7941 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7942 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7943 (slotN_contents, replace_slotN_contents): Change type of parameter
7945 (fetch_instruction, ia64_pseudo_register_write)
7946 (ia64_register_to_value, ia64_value_to_register)
7947 (ia64_extract_return_value, ia64_store_return_value)
7948 (ia64_push_dummy_call): Use gdb_byte.
7949 * m32c-tdep.c (m32c_return_value): Remove cast.
7950 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7951 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7953 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7954 * mn10300-tdep.c (mn10300_store_return_value)
7955 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7957 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7958 (moxie_process_record): Remove casts.
7959 * ppc-ravenscar-thread.c (supply_register_at_address)
7960 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7961 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7962 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7963 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7964 * remote.c (compare_sections_command): Use gdb_byte.
7965 * score-tdep.c (score7_free_memblock): Change type of parameter to
7967 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7968 gdb_byte *. Use gdb_byte.
7969 (sh_push_dummy_call_fpu): Use gdb_byte.
7970 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7971 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7972 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7973 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7974 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7975 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7976 (sh64_store_return_value, sh64_register_convert_to_virtual):
7977 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7978 (sh64_pseudo_register_write): Use gdb_byte.
7979 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7980 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7982 (irix_current_sos): Use gdb_byte.
7983 * solib-som.c (som_current_sos): Use gdb_byte.
7984 * sparc-ravenscar-thread.c (supply_register_at_address)
7985 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7986 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7987 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7988 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7990 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7992 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7993 * xstormy16-tdep.c (xstormy16_extract_return_value)
7994 (xstormy16_store_return_value): Change parameter type to
7995 'gdb_byte *'. Adjust.
7996 (xstormy16_push_dummy_call): Use gdb_byte.
7997 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7998 (call0_analyze_prologue, execute_code): Use gdb_byte.
8000 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8001 Pedro Alves <palves@redhat.com>
8003 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8006 2013-04-17 Doug Evans <dje@google.com>
8008 * dwarf2read.c (struct signatured_type): New member type.
8009 (struct attribute): Replace member signatured_type with signature.
8010 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8011 (read_call_site_scope): Call follow_die_ref instead of
8012 follow_die_ref_or_sig.
8013 (read_structure_type): Rewrite handling of signatured types.
8014 (read_enumeration_type): Ditto.
8015 (read_attribute_value): Update.
8016 (build_error_marker_type): New function.
8017 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8018 Don't call error for bad types, just build an error marker type.
8019 (dump_die_shallow): Update.
8020 (follow_die_sig_1): Renamed from follow_die_sig.
8021 Don't call error for bad types, instead return NULL.
8022 (follow_die_sig): New function.
8023 (get_signatured_type, get_DW_AT_signature_type): New functions.
8025 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8027 * aarch64-tdep.c (aarch64_write_pc): Removed.
8028 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8031 2013-04-17 Yao Qi <yao@codesourcery.com>
8033 * top.c (print_gdb_configuration): Print configure-time
8034 parameter on using libbabeltrace or not.
8036 2013-04-16 Pedro Alves <palves@redhat.com>
8038 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8040 2013-04-16 Pedro Alves <palves@redhat.com>
8042 * common/glibc_thread_db.h: Update from upstream glibc
8043 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8045 2013-04-16 Pedro Alves <palves@redhat.com>
8047 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8048 * common/glibc_thread_db.h: ... this new file ...
8049 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8051 2013-04-16 Will Newton <will.newton@gmail.com>
8052 Pedro Alves <palves@redhat.com>
8056 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8057 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8060 2013-04-16 Pedro Alves <palves@redhat.com>
8061 Eli Zaretskii <eliz@gnu.org>
8063 * NEWS: Mention "set foo unlimited".
8065 2013-04-15 Doug Evans <dje@google.com>
8067 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8068 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8069 (create_dwo_cu_reader): Renamed from
8070 create_dwo_debug_info_hash_table_reader.
8071 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8072 Remove support for multiple CUs in a DWO file.
8073 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8075 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8077 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8078 (create_dwo_in_dwp): Ditto.
8080 2013-04-15 Tom Tromey <tromey@redhat.com>
8082 * NEWS: Move recent entries into "since 7.6" section.
8084 2013-04-15 Tom Tromey <tromey@redhat.com>
8088 * break-catch-throw.c (struct exception_catchpoint)
8089 <exception_rx, pattern>: New fields.
8090 (fetch_probe_arguments, dtor_exception_catchpoint)
8091 (check_status_exception_catchpoint)
8092 (print_one_detail_exception_catchpoint): New functions.
8093 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8094 Compile regular expression if needed.
8095 (extract_exception_regexp): New function.
8096 (catch_exception_command_1): Use extract_exception_regexp.
8097 (compute_exception): Use fetch_probe_arguments.
8098 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8099 and check_status fields.
8100 * cp-abi.c (cplus_typename_from_type_info): New function.
8101 * cp-abi.h (cplus_typename_from_type_info): Declare.
8102 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8103 * gdb_regex.h (compile_rx_or_error): Declare.
8104 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8106 (init_gnuv3_ops): Set get_type_from_type_info field.
8107 * probe.c (compile_rx_or_error): Move...
8108 * utils.c (compile_rx_or_error): ... here.
8110 2013-04-15 Tom Tromey <tromey@redhat.com>
8114 * break-catch-throw.c (compute_exception): New function.
8115 (exception_funcs): New global.
8116 (_initialize_break_catch_throw): Create $_exception.
8117 * cp-abi.c (cplus_type_from_type_info): New function.
8118 * cp-abi.h (cplus_type_from_type_info): Declare.
8119 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8120 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8121 (gnuv3_get_type_from_type_info): New functions.
8122 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8124 2013-04-15 Tom Tromey <tromey@redhat.com>
8126 * break-catch-throw.c (struct exception_names): New.
8127 (exception_functions): Change type.
8128 (re_set_exception_catchpoint): Look for SDT probes.
8130 2013-04-15 Tom Tromey <tromey@redhat.com>
8133 * break-catch-throw.c (exception_functions): New global.
8134 (gnu_v3_exception_catchpoint_ops): Move earlier.
8135 (struct exception_catchpoint): New.
8136 (classify_exception_breakpoint): Rewrite.
8137 (re_set_exception_catchpoint): New function.
8138 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8139 Allocate a struct exception_catchpoint.
8140 (catch_exception_command_1): Update.
8141 (initialize_throw_catchpoint_ops): Set 're_set' method.
8143 2013-04-15 Tom Tromey <tromey@redhat.com>
8145 * Makefile.in (SFILES): Add break-catch-throw.c
8146 (COMMON_OBS): Add break-catch-throw.o.
8147 * break-catch-throw.c: New file.
8148 * breakpoint.c: Move exception-catching code to new file.
8149 (ep_parse_optional_if_clause): No longer static.
8150 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8152 2013-04-15 Tom Tromey <tromey@redhat.com>
8156 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8157 * c-exp.y (TYPEID): New token.
8158 (exp): Add new TYPEID productions.
8159 (ident_tokens): Add "typeid".
8160 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8161 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8162 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8163 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8164 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8166 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8167 (build_std_type_info_type, gnuv3_get_typeid_type)
8168 (gnuv3_get_typeid): New functions.
8169 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8170 new fields on ABI object.
8171 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8172 * std-operator.def (OP_TYPEID): New.
8174 2013-04-15 Tom Tromey <tromey@redhat.com>
8176 * elfread.c (elf_symtab_read): Install versioned symbol under
8177 unversioned name as well.
8179 2013-04-15 Tom Tromey <tromey@redhat.com>
8182 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8183 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8184 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8185 (gdb_demangle): New function.
8186 * cp-support.h (gdb_demangle): Declare.
8187 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8188 (dwarf2_name): Use gdb_demangle.
8189 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8190 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8192 (gnuv3_print_method_ptr): Use gdb_demangle.
8193 * jv-lang.c (java_demangle): Use gdb_demangle.
8194 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8195 * language.c (unk_lang_demangle): Use gdb_demangle.
8196 * symtab.c (symbol_find_demangled_name)
8197 (demangle_for_lookup): Use gdb_demangle.
8199 2013-04-15 Tom Tromey <tromey@redhat.com>
8203 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8205 (classify_exception_breakpoint): New function.
8206 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8207 (print_mention_exception_catchpoint)
8208 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8209 (catch_exception_command_1): Handle "rethrow" catchpoint.
8210 (catch_rethrow_command): New function.
8211 (_initialize_breakpoint): Add "catch rethrow" command.
8213 2013-04-15 Pierre Muller <muller@sourceware.org>
8215 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8216 set_gdbarch_write_pc as deprecated anymore.
8218 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8220 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8223 2013-04-13 Yao Qi <yao@codesourcery.com>
8225 * ctf.c (_initialize_ctf): Include "completer.h".
8226 Call add_target_with_completer instead of add_target.
8228 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8230 Fix GDB regression related to PR binutils/14813.
8231 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8232 * minidebug.c (lzma_close): Add return value comment.
8233 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8234 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8235 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8237 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8239 * config.in: Regenerate.
8241 2013-04-12 Tom Tromey <tromey@redhat.com>
8243 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8245 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8246 (struct die_reader_specs) <buffer>: Likewise.
8247 (die_reader_func_ftype): Make 'info_ptr' const.
8248 (struct line_header) <include_dirs, statement_program_start,
8249 statement_program_end>: Now const.
8250 (struct file_entry) <name>: Likewise.
8251 (struct partial_die_info) <sibling>: Likewise.
8252 (struct dwarf_block) <data>: Likewise.
8253 (dwarf2_read_section): Remove cast.
8254 (dwarf2_get_section_info): Make 'bufp' const.
8255 (read_index_from_section): Constify.
8256 (dw2_get_file_names_reader): Make 'info_ptr' const.
8257 (dw2_get_primary_filename_reader): Likewise.
8258 (read_comp_unit_head): Make 'info_ptr' and return type const.
8259 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8261 (read_abbrev_offset): Constify.
8262 (dwarf2_create_include_psymtab): Make 'name' const.
8263 (create_debug_types_hash_table): Update.
8264 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8265 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8267 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8268 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8269 (read_comp_units_from_section): Constify.
8270 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8271 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8273 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8274 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8275 (create_dwp_hash_table, dwarf2_ranges_read)
8276 (dwarf2_record_block_ranges): Constify.
8277 (read_die_and_children, read_die_and_siblings_1)
8278 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8280 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8281 (abbrev_table_read_table): Constify.
8282 (load_partial_dies): Make 'info_ptr' const.
8283 (read_partial_die, read_attribute_value, read_attribute): Make
8284 'info_ptr' and return type const.
8285 (read_address, read_initial_length)
8286 (read_checked_initial_length_and_offset, read_offset)
8287 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8289 (read_direct_string): Make 'buf' and return type const.
8290 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8291 (read_indirect_string): Make return type const.
8292 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8293 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8295 (read_str_index): Make return type const.
8296 (add_include_dir): Make 'include_dir' const.
8297 (add_file_name): Make 'name' const.
8298 (dwarf_decode_line_header): Constify.
8299 (psymtab_include_file_name): Make return type const.
8300 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8301 (dwarf2_start_subfile): Make 'filename' const.
8302 (dwarf2_const_value_attr): Make 'bytes' const.
8303 (read_signatured_type_reader): Make 'info_ptr' const.
8304 (decode_locdesc): Constify.
8305 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8307 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8308 'mac_end', and return type const.
8309 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8310 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8312 (per_cu_header_read_in): Constify.
8313 * symfile.h (dwarf2_get_section_info): Update.
8315 2013-04-12 Tom Tromey <tromey@redhat.com>
8317 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8319 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8321 * NEWS: Mention "show configuration", --configuration.
8322 * top.c (print_gdb_configuration): New function, displays the
8323 details about GDB configure-time parameters.
8324 (print_gdb_version): Mention "show configuration".
8325 * cli/cli-cmds.c (show_configuration): New function.
8326 (_initialize_cli_cmds): Add the "show configuration" command.
8327 * main.c (captured_main) <print_configuration>: New static var.
8328 <long_options>: Use it.
8329 If --configuration was given, call print_gdb_configuration.
8331 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8332 Pedro Alves <palves@redhat.com>
8334 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8335 (generated_files): Add gcore.
8336 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8337 HAVE_NATIVE_GCORE_HOST.
8339 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8340 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8341 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8342 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8343 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8344 Add HAVE_NATIVE_GCORE_HOST.
8345 * configure: Regenerate.
8346 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8347 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8348 AC_CONFIG_FILES for gcore.
8349 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8351 * gdb_gcore.sh: Rename to ...
8352 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8353 and GCORE_TRANSFORM_NAME substitutions.
8355 Fix parsing tabs in ${gdb_target_obs}.
8356 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8358 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8360 * remote.c (unpush_and_perror): Add output message final dot.
8362 2013-04-11 Yao Qi <yao@codesourcery.com>
8364 * tracepoint.c (tfile_interp_line): Fit parameters line and
8367 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8369 * solib.c (solib_map_sections): Remove code overwriting
8370 SO->SO_NAME with the bfd's filename.
8372 2013-04-10 Pedro Alves <palves@redhat.com>
8374 * cli/cli-decode.c (integer_unlimited_completer): New function.
8375 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8376 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8378 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8379 (is_unlimited_literal): New function.
8380 (do_set_command): Handle literal "unlimited" arguments.
8381 * frame.c (_initialize_frame) <set backtrace limit>: Document
8383 * printcmd.c (_initialize_printcmd) <set print
8384 max-symbolic-offset>: Add help text.
8385 * record-full.c (_initialize_record_full) <set record full
8386 insn-number-max>: Likewise.
8387 * record.c (_initialize_record) <set record
8388 instruction-history-size, set record function-call-history-size>:
8390 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8392 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8394 * source.c (_initialize_source) <set listsize>: Add help text.
8395 * utils.c (initialize_utils) <set height, set width>: Likewise.
8396 <set pagination>: Mention "set height unlimited".
8397 * valprint.c (_initialize_valprint) <set print elements, set print
8398 repeats>: Document "unlimited".
8400 2013-04-10 Pedro Alves <palves@redhat.com>
8402 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8403 instead of disconnect_tracing.
8404 * infcmd.c (detach_command, disconnect_command): Call
8405 query_if_trace_running. Adjust.
8406 * top.c: Include "tracepoint.h".
8407 (quit_target): Delete. Contents moved ...
8408 (quit_force): ... here. Wrap each stage of teardown in
8409 TRY_CATCH. Call disconnect_tracing before detaching.
8411 2013-04-10 Hui Zhu <hui@codesourcery.com>
8412 Yao Qi <yao@codesourcery.com>
8414 * configure.ac: Check libbabeltrace is installed.
8415 * config.in: Regenerate.
8416 * configure: Regenerate.
8417 * Makefile.in (LIBBABELTRACE): New.
8418 (CLIBS): Add LIBBABELTRACE.
8419 * ctf.c: Include "exec.h".
8420 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8421 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8422 (ctf_save_metadata_header): Define new type aliases in
8424 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8425 in metadata. Start a new faked packet for trace status.
8426 (ctf_write_status): Write trace status to CTF.
8427 (ctf_write_uploaded_tsv): Write TSV to CTF.
8428 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8429 (ctf_write_definition_end): End the faked packet.
8431 (ctx, ctf_iter, trace_dirname): New.
8432 (start_pos): New variable.
8433 (ctf_destroy, ctf_open_dir, ctf_open): New.
8434 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8436 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8437 (ctf_fetch_registers, ctf_xfer_partial): New.
8438 (ctf_get_trace_state_variable_value): New.
8439 (ctf_get_tpnum_from_frame_event): New.
8440 (ctf_get_traceframe_address): New.
8441 (ctf_trace_find, ctf_has_stack): New.
8442 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8443 (ctf_get_trace_status, ctf_read_status): New.
8444 (_initialize_ctf): New.
8445 * tracepoint.c (get_tracepoint_number): New
8446 (get_uploaded_tsv): Remove 'static'.
8447 (struct traceframe_info, trace_regblock_size): Move it to ...
8448 * tracepoint.h: ... here.
8449 (get_tracepoint_number): Declare it.
8450 (get_uploaded_tsv): Declare it.
8452 * NEWS: Mention new configure option.
8454 2013-04-10 Pedro Alves <palves@redhat.com>
8455 Hui Zhu <hui@codesourcery.com>
8457 * breakpoint.c (dprintf_re_set): New.
8458 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8461 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8463 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8464 Remove solib-svr4.o from the list.
8466 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8468 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8469 Use gdb_assert_not_reached instead of invalid boolean expression.
8471 2013-04-09 Pedro Alves <palves@redhat.com>
8473 * remote.c (unpush_and_perror): New function.
8474 (readchar, remote_serial_write): Use it.
8476 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8478 * NEWS: Mention new btrace RSP packets.
8480 2013-04-08 Tom Tromey <tromey@redhat.com>
8482 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8485 2013-04-08 Tom Tromey <tromey@redhat.com>
8487 * maint.c (print_bfd_section_info): Print the section index.
8488 * symmisc.c (dump_msymbols): Print the section index.
8490 2013-04-08 Tom Tromey <tromey@redhat.com>
8493 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8494 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8495 * breakpoint.c (resolve_sal_pc): Update.
8496 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8497 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8498 (minsym_lookup_iterator_cb): Use it.
8499 (default_read_var_value): Update.
8500 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8502 * infcmd.c (jump_command): Update.
8503 * linespec.c (minsym_found): Update.
8504 * maint.c (maintenance_translate_address): Update.
8505 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8506 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8507 * parse.c (write_exp_msymbol): Update.
8508 * printcmd.c (address_info): Update.
8509 * psymtab.c (find_pc_sect_psymbol): Update.
8510 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8512 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8513 Don't initialize SYMBOL_OBJ_SECTION.
8514 * spu-tdep.c (spu_catch_start): Update.
8515 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8516 * symmisc.c (dump_msymbols, print_symbol): Update.
8517 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8518 how fallback section is computed.
8519 (fixup_symbol_section): Update.
8520 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8522 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8523 Initialize SYMBOL_SECTION.
8524 * symtab.h (struct general_symbol_info) <section>: Update comment.
8525 <obj_section>: Remove.
8526 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8527 (SYMBOL_OBJFILE): New macro.
8529 2013-04-08 Tom Tromey <tromey@redhat.com>
8531 * coffread.c (record_minimal_symbol): Update.
8532 * dbxread.c (record_minimal_symbol): Update.
8533 * elfread.c (record_minimal_symbol): Update.
8534 * machoread.c (macho_symtab_add_minsym): Update.
8535 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8537 * minsyms.c (prim_record_minimal_symbol): Update.
8538 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8540 (prim_record_minimal_symbol_and_info): Likewise.
8541 * minsyms.h (prim_record_minimal_symbol_full)
8542 (prim_record_minimal_symbol_and_info): Update.
8543 * symtab.c (allocate_symbol, initialize_symbol)
8544 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8545 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8548 2013-04-08 Tom Tromey <tromey@redhat.com>
8551 * solib-som.c (som_solib_section_offsets): Use BFD section
8552 indices. Set offsets for all sections.
8553 * somread.c (som_symtab_read): Compute BFD section for
8554 symbol. Use prim_record_minimal_symbol_and_info.
8555 (som_symfile_read): Fix comment.
8556 (struct find_section_offset_arg): New.
8557 (find_section_offset, set_section_index): New functions.
8558 (som_symfile_offsets): Use set_section_index to compute
8561 2013-04-08 Tom Tromey <tromey@redhat.com>
8563 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8564 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8565 gdb_bfd_section_index.
8566 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8568 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8570 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8572 * objfiles.c (add_to_objfile_sections_full): New function.
8573 (add_to_objfile_sections): Use it.
8574 (build_section_table): Rewrite.
8575 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8576 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8577 (struct objfile) <sections>: Update comment.
8578 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8580 (ALL_OBJSECTIONS): Use it.
8581 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8582 * solib-frv.c (frv_relocate_main_executable): Update.
8583 * solib-target.c (solib_target_relocate_section_addresses):
8584 Use gdb_bfd_section_index.
8585 * symfile.c (build_section_addr_info_from_section_table):
8586 Use gdb_bfd_section_index.
8587 (build_section_addr_info_from_bfd, place_section): Likewise.
8588 * symtab.c (fixup_section): Update.
8589 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8591 2013-04-08 Tom Tromey <tromey@redhat.com>
8593 * minsyms.h (struct bound_minimal_symbol): New.
8594 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8595 Remove objfile argument.
8596 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8597 Return bound_minimal_symbol.
8598 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8599 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8600 Return bound_minimal_symbol.
8601 (in_gnu_ifunc_stub): Update.
8602 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8603 Remove 'objfile_p' argument.
8604 (lookup_solib_trampoline_symbol_by_pc): Update.
8605 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8606 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8607 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8608 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8609 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8610 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8611 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8612 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8613 stack.c, symtab.c, tui/tui-disasm.c: Update.
8615 2013-04-08 Tom Tromey <tromey@redhat.com>
8617 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8618 Use symbol's obstack, not an objfile.
8619 * coffread.c (process_coff_symbol): Update.
8620 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8621 * jv-lang.c (add_class_symbol): Update.
8622 * mdebugread.c (new_symbol): Update.
8623 * minsyms.c (prim_record_minimal_symbol_full)
8624 (terminate_minimal_symbol_table): Update.
8625 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8626 * stabsread.c (define_symbol, read_enum_type): Update.
8627 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8628 Handle Ada specially.
8629 (symbol_set_language): Add 'obstack' argument.
8630 (symbol_set_names): Update.
8631 (symbol_natural_name, symbol_demangled_name): Always use
8633 * symtab.h (struct general_symbol_info)
8634 <language_specific::obstack>: New field.
8635 <ada_mangled>: New field.
8636 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8637 (symbol_set_language): Update.
8639 2013-04-08 Tom Tromey <tromey@redhat.com>
8641 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8642 Take an obstack, not an objfile.
8643 (symbol_set_names): Update.
8644 * symtab.h (symbol_set_demangled_name): Update.
8646 2013-04-08 Tom Tromey <tromey@redhat.com>
8648 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8650 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8651 (read_func_scope): Call allocate_template_symbol.
8652 (new_symbol_full): Call allocate_symbol.
8653 * jit.c (finalize_symtab): Call allocate_symbol.
8654 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8655 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8656 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8657 (common_block_end): Call allocate_symbol.
8658 * symtab.c (allocate_symbol, initialize_symbol)
8659 (allocate_template_symbol): New functions.
8660 * symtab.c (allocate_symbol, initialize_symbol)
8661 (allocate_template_symbol): Declare.
8662 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8664 2013-04-08 Pedro Alves <palves@redhat.com>
8665 Keith Seitz <keiths@redhat.com>
8667 * breakpoint.c (create_breakpoint): Rename
8668 "parse_condition_and_thread" parameter to "parse_arg". Update
8669 describing comment. If !PARSE_ARG, then error out if ARG is not
8670 the empty string after extracting the location.
8671 * breakpoint.h (create_breakpoint): Rename
8672 "parse_condition_and_thread" parameter to "parse_arg".
8674 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8676 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8678 2013-04-07 Yao Qi <yao@codesourcery.com>
8680 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8681 and 'addr2' to CORE_ADDR.
8682 * target.c (update_current_target): Update.
8683 * target.h (struct target_ops) <to_trace_find>: Change parameter
8685 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8686 'addr2' to CORE_ADDR.
8687 (tfile_trace_find): Likewise.
8688 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8689 Change local variable 'addr' to type CORE_ADDR.
8690 * tracepoint.h (tfind_1): Update declaration.
8692 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8694 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8695 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8698 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8700 * main.h (windows_get_absolute_argv0): ...to here.
8702 2013-04-05 Doug Evans <dje@google.com>
8704 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8705 (read_cutu_die_from_dwo): Add comments.
8706 (read_structure_type): Update comment.
8707 (read_enumeration_type, read_namespace_type): Update comment.
8708 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8710 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8712 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8713 * Makefile.in (gdb.z): Remove.
8714 (install-only): Remove $(man1dir) and gdb.1 installation.
8717 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8719 Fix compatibility with Linux kernel 3.8.3.
8720 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8721 to more inner block. Remove parsing of NUMBER from outer block.
8722 Parse NUMBER only if KEYWORD has been identified.
8724 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8726 Fix variable name shadowing.
8727 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8728 filename to mapsfilename and update its uses.
8730 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8732 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8733 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8734 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8735 details of the problem.
8737 2013-04-04 Pedro Alves <palves@redhat.com>
8738 Hui Zhu <hui@codesourcery.com>
8740 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8741 tracepoint, reset its STEP_COUNT and call validate_actionline.
8743 2013-04-03 Doug Evans <dje@google.com>
8745 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8746 read_die_and_siblings.
8747 (read_die_and_siblings): New function.
8748 (read_cutu_die_from_dwo): Dump die if requested.
8749 (read_die_and_children): Call read_full_die_1 and
8750 read_die_and_siblings_1.
8751 (read_full_die): Dump die if requested.
8753 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8755 * dwarf2read.c (struct dwo_file): New member comp_dir.
8756 Rename member name to dwo_name. All uses updated.
8757 (hash_dwo_file): Include comp_dir in computation.
8758 (eq_dwo_file): Ditto.
8759 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8760 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8762 * psymtab.c (read_psymtabs_with_fullname): Don't call
8763 psymtab_to_fullname if the basenames are different.
8765 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8767 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8768 New entry about "fullname" presence.
8770 2013-04-03 Pedro Alves <palves@redhat.com>
8772 * NEWS: Mention x86_64/Cygwin as new native configuration.
8774 2013-04-02 Doug Evans <dje@google.com>
8776 * dwarf2read.c (read_structure_type): Fix typo in comment.
8778 2013-04-02 Pedro Alves <palves@redhat.com>
8780 * NEWS: Mention "set/show debug aarch64", "set/show debug
8781 coff-pe-read" and "set/show debug mach-o".
8783 2013-04-02 Pedro Alves <palves@redhat.com>
8785 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8787 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8789 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8790 gdb_string.h is now in common/.
8792 2013-04-02 Pedro Alves <palves@redhat.com>
8794 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8795 under "New options".
8797 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8801 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8803 2013-04-02 Pedro Alves <palves@redhat.com>
8807 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8808 (remote_serial_write): New function.
8809 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8811 2013-04-01 Jiong Wang <jiwang@tilera.com>
8813 * NEWS: Mention TILE-Gx in "New native configurations" and
8814 "New targets" sections.
8816 2013-04-01 Doug Evans <dje@google.com>
8818 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8819 (process_enumeration_scope): Simplify.
8821 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8823 (struct signatured_type): ... to here.
8824 (sig_type_ptr): New typedef.
8825 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8826 out of union 't'. All uses updated.
8827 (dw2_get_file_names_reader): Assert not called for a type unit.
8828 (dw2_get_file_names): Assert not called for a type unit or type
8830 (build_type_psymtabs_reader): Assert called for a type unit.
8831 (build_type_psymtab_dependencies): Assert called for a type unit group.
8833 * dwarf2read.c (free_dwo_file): Add comment.
8834 (dwarf2_per_objfile_free): Unref dwp bfd.
8836 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8838 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8839 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8840 (read_pe_exported_syms): Remove unused 'exportix'.
8841 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8842 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8843 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8845 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8847 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8848 (print_it_watchpoint): Remove unused 'bl'.
8849 (say_where): Remove unused 'uiout'.
8850 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8851 (bkpt_breakpoint_hit): Remove unused 'b'.
8852 (internal_bkpt_print_it): Remove unused 'uiout'.
8853 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8855 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8857 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8858 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8860 2013-03-29 Doug Evans <dje@google.com>
8862 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8863 Delete arg is_dwp. All callers updated.
8864 (open_dwp_file): New function.
8865 (open_and_init_dwp_file): Call it.
8866 (get_dwp_file): New function.
8867 (lookup_dwo_cutu): Call it.
8869 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8870 unnecessary, cleanup.
8872 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8874 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8875 (lookup_dwo_unit): New function.
8876 (init_cutu_and_read_dies): Move DWO handling to new functions.
8878 * dwarf2read.c (struct signatured_type): Tweak comment.
8879 (struct dwo_unit): Tweak comment.
8880 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8881 (create_dwo_debug_info_hash_table): Tweak comment.
8882 (dwarf2_per_cu_offset_and_type): Tweak comment.
8884 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8885 missing .debug_types section.
8887 2013-03-29 Yao Qi <yao@codesourcery.com>
8889 * corelow.c: Include "completer.h".
8890 (_initialize_corelow): Call add_target_with_completer with
8891 argument 'filename_completer'.
8892 * tracepoint.c: Likewise.
8893 * exec.c (_initialize_exec): Likewise.
8894 * target.c (add_target): Rename to ...
8895 (add_target_with_completer): ... this. Call set_cmd_completer
8896 if parameter completer is not NULL.
8898 * target.h: Include "command.h".
8899 (add_target_with_completer): Declare it.
8901 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8903 * coffread.c (is_import_fixup_symbol): New function.
8904 (record_minimal_symbol): Use is_import_fixup_symbol to
8905 detect import fixup symbols, and discard them.
8907 2013-03-28 Doug Evans <dje@google.com>
8909 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8910 types hash table until we know we need it.
8912 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8915 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8916 All callers updated.
8917 (dw2_print_stats): Print #read CUs too.
8918 (dump_die_shallow): Print signatured types better.
8920 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8921 info_or_types_section to section. All uses updated.
8922 (struct dwo_unit): Ditto.
8924 2013-03-28 Pedro Alves <palves@redhat.com>
8926 * NEWS (New options): New section.
8927 (New options): Mention set/show remote trace-status-packet.
8928 * remote.c (PACKET_qTStatus): New enumeration value.
8929 (remote_get_trace_status): Skip sending qTStatus if the packet is
8930 disabled. Use packet_ok.
8931 (_initialize_remote): Register a configuration command for
8934 2013-03-28 Doug Evans <dje@google.com>
8936 * symfile.c (find_separate_debug_file): Add comment.
8937 (terminate_after_last_dir_separator): Tweak comment.
8939 * dwarf2read.c (create_partial_symtab): Add forward decl.
8940 (create_partial_symtab): Move to be closer to other psymtab functions.
8941 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8943 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8944 (compute_symtab_includes): Remove unnecessary forward declaration.
8945 (die_needs_namespace): Add comment marking group of functions for
8946 dwarf2 name computation.
8948 * typeprint.c (_initialize_typeprint): Improve type help text.
8950 * python/python.c (finish_python_initialization): Provide suggestion
8951 for how to tell gdb to find its python files.
8953 2013-03-28 Pedro Alves <palves@redhat.com>
8957 * source.c (_initialize_source): Change back "set listsize" to an
8960 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8963 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8965 2013-03-27 Pedro Alves <palves@redhat.com>
8967 * top.c (history_size): Rename to ...
8968 (history_size_setshow_var): ... this. Add comment.
8969 (show_commands): Use readline's 'history_length' instead of
8970 computing the history length by calling history_get in a loop.
8971 (set_history_size_command): Error out for sizes over INT_MAX.
8972 Restore previous history size on invalid size.
8973 (init_history): If HISTSIZE is negative, leave the history size as
8975 (init_main): Adjust.
8977 2013-03-27 Pedro Alves <palves@redhat.com>
8979 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8980 coff_pe_read" command to "set debug coff-pe-read".
8982 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8984 * record.c (command_size_to_target_size): Fix size comparison.
8985 Change parameter type from pointer to integer to integer.
8988 2013-03-27 Pierre Muller <muller@sourceware.org>
8990 * windows-nat.c (handle_output_debug_string): Avoid typecast
8991 from integer of different size warning.
8993 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8995 * windows-nat.c (handle_output_debug_string): Add empty line
8996 after local block variable definition.
8998 2013-03-26 Pedro Alves <palves@redhat.com>
9000 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9001 (net_open): Make 'polls' local unsigned.
9003 2013-03-26 Pedro Alves <palves@redhat.com>
9005 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9006 a zuinteger command instead of uinteger.
9008 2013-03-26 Pedro Alves <palves@redhat.com>
9010 * record-full.c (record_full_insn_num): Make it unsigned.
9011 (record_full_check_insn_num, record_full_message)
9012 (record_full_registers_change, record_full_xfer_partial): Remove
9013 record_full_insn_max_num check (it's always != 0).
9014 (record_full_info, record_full_restore): Use %u as format string.
9015 (): Use %u as format string.
9016 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9017 check (it's always != 0).
9019 2013-03-26 Pedro Alves <palves@redhat.com>
9021 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9022 and "set dcache size" commands zuinteger instead of uinteger.
9024 2013-03-26 Pedro Alves <palves@redhat.com>
9026 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9027 command zuinteger instead of uinteger.
9029 2013-03-26 Pedro Alves <palves@redhat.com>
9031 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9032 zuinteger instead of uinteger.
9034 2013-03-26 Pedro Alves <palves@redhat.com>
9036 * record.c (record_insn_history_size_setshow_var)
9037 (record_call_history_size_setshow_var): New globals.
9038 (command_size_to_target_size): New function.
9039 (cmd_record_insn_history, cmd_record_call_history): Use
9040 command_size_to_target_size instead of cast.
9041 (validate_history_size, set_record_insn_history_size)
9042 (set_record_call_history_size): New functions.
9043 (_initialize_record): Install set_record_insn_history_size and
9044 set_record_call_history_size as "set" hooks of "set record
9045 instruction-history-size" and "set record
9046 function-call-history-size".
9048 2013-03-26 Pedro Alves <palves@redhat.com>
9050 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9051 use with history_max_entries use. Remove FIXME note.
9053 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9055 * record-btrace.c (record_btrace_close): Call
9056 record_btrace_auto_disable.
9058 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9060 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9062 2013-03-25 Doug Evans <dje@google.com>
9064 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9066 2013-03-25 Tom Tromey <tromey@redhat.com>
9069 * c-exp.y (exp): Add new productions for destructors after '.' and
9071 (write_destructor_name): New function.
9073 2013-03-25 Tom Tromey <tromey@redhat.com>
9076 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9077 value_struct_elt, not lookup_struct_elt_type.
9078 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9079 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9080 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9082 2013-03-25 Yao Qi <yao@codesourcery.com>
9084 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9085 instead of '_mkdir'.
9087 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9089 * windows-nat.c (windows_get_absolute_argv0): New function.
9090 * windows-nat.h: Add its prototype.
9092 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9093 Use IS_DIR_SEPARATOR instead of looking for a character inside
9094 SLASH_STRING. Include filenames.h.
9095 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9096 relocate_gdb_directory works when passed gdb_program_name.
9097 Include windows-nat.h.
9099 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9101 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9102 * remote.c (trace_error): Remove the special handling of '2'.
9103 (readchar) <SERIAL_EOF>
9104 (readchar) <SERIAL_ERROR>
9105 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9106 (remote_get_trace_status): Call throw_exception if EX is
9108 * utils.c (perror_with_name): Rename to ...
9109 (throw_perror_with_name): ... here. New parameter errcode, describe it
9110 in the function comment.
9111 (perror_with_name): New function wrapper.
9112 * utils.h (enum errors): New stub declaration.
9113 (throw_perror_with_name): New declaration.
9115 2013-03-22 Pedro Alves <palves@redhat.com>
9116 Yao Qi <yao@codesourcery.com>
9117 Mark Kettenis <kettenis@gnu.org>
9119 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9120 Don't let the user set the value to UINT_MAX directly.
9121 <var_integer>: Don't let the user set the value to INT_MAX
9124 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9126 * remote.c (remote_unpush_target): New function.
9127 (remote_open_1): Remove two pop_target calls, update one comment, add
9128 comment to target_preopen call. Replace pop_target call by
9129 remote_unpush_target call.
9130 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9131 pop_target calls by remote_unpush_target calls.
9133 2013-03-22 Pedro Alves <palves@redhat.com>
9135 * linux-nat.c (linux_child_follow_fork): Don't call
9136 linux_enable_event_reporting.
9137 (linux_handle_extended_wait): Don't call
9138 linux_enable_event_reporting.
9140 2013-03-22 Pedro Alves <palves@redhat.com>
9142 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9143 use it to rewrite the trampoline buffers with type gdb_byte[], and
9144 undefine the macro. Remove char* cast.
9146 2013-03-21 Doug Evans <dje@google.com>
9148 New commands "mt set per-command {space,time,symtab} {on,off}".
9150 * event-top.c: #include "maint.h".
9151 * main.c: #include "maint.h".
9152 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9153 timeval-utils.h, maint.h, cli/cli-setshow.h.
9154 (per_command_time, per_command_space): New static globals.
9155 (per_command_symtab): New static global.
9156 (per_command_setlist, per_command_showlist): New static globals.
9157 (struct cmd_stats): Move here from utils.c.
9158 (set_per_command_time): Renamed from set_display_time in utils.c
9159 and moved here. All callers updated.
9160 (set_per_command_space): Renamed from set_display_space in utils.c
9161 and moved here. All callers updated.
9162 (count_symtabs_and_blocks): New function.
9163 (report_command_stats): Moved here from utils.c. Add support for
9164 printing symtab stats. Only print data if enabled before command
9166 (make_command_stats_cleanup): Ditto.
9167 (sert_per_command_cmd, show_per_command_cmd): New functions.
9168 (_initialize_maint_cmds): Add new commands
9169 mt set per-command {space,time,symtab} {on,off}.
9170 * maint.h: New file.
9171 * top.c: #include "maint.h".
9172 * utils.c (reset_prompt_for_continue_wait_time): New function.
9173 (get_prompt_for_continue_wait_time): New function.
9174 * utils.h (reset_prompt_for_continue_wait_time): Declare
9175 (get_prompt_for_continue_wait_time): Declare.
9176 (make_command_stats_cleanup): Moved to maint.h.
9177 (set_display_time, set_display_space): Moved to maint.h and renamed
9178 to set_per_command_time, set_per_command_space.
9179 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9180 parse_binary_operation and made non-static. Don't call error,
9181 just return an error marker. All callers updated.
9182 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9184 2013-03-21 Tom Tromey <tromey@redhat.com>
9186 * symfile.c (alloc_section_addr_info): Update header. Don't set
9187 'num_sections' field.
9188 (build_section_addr_info_from_section_table): Set 'num_sections'.
9189 (build_section_addr_info_from_bfd): Likewise.
9190 (build_section_addr_info_from_objfile): Remove dead loop
9192 (free_section_addr_info): Unconditionally call xfree.
9193 (relative_addr_info_to_section_offsets, addrs_section_sort)
9194 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9196 (syms_from_objfile_1): Remove dead 'if' condition. Check
9198 (add_symbol_file_command): Set 'num_sections'.
9199 * symfile-mem.c (symbol_file_add_from_memory): Set
9201 * somread.c (som_symfile_offsets): Remove dead loop condition.
9202 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9203 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9205 2013-03-21 Tom Tromey <tromey@redhat.com>
9207 * tracepoint.h (decode_agent_options): Add 'trace_string'
9209 * tracepoint.c (decode_agent_options): Add 'trace_string'
9211 (validate_actionline): Update.
9212 (collect_symbol): Add 'trace_string' argument.
9213 (struct add_local_symbols_data) <trace_string>: New field.
9214 (do_collect_symbol): Update.
9215 (add_local_symbols): Add 'trace_string' argument.
9216 (encode_actions_1): Update.
9217 (trace_dump_actions): Update.
9218 * dwarf2loc.c (access_memory): Update.
9219 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9220 * ax-general.c (new_agent_expr): Update.
9221 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9222 (gen_trace_for_return_address): Add argument.
9223 (trace_kludge, trace_string_kludge): Remove.
9224 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9225 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9226 (gen_trace_for_var): Add 'trace_string' argument.
9227 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9228 (gen_printf, agent_eval_command_one): Update.
9230 2013-03-21 Tom Tromey <tromey@redhat.com>
9233 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9234 Handle FILENAME token.
9236 2013-03-21 Tom Tromey <tromey@redhat.com>
9238 * c-exp.y (YYPRINT): Define.
9239 (c_print_token): New function.
9241 2013-03-21 Tom Tromey <tromey@redhat.com>
9243 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9245 2013-03-21 Yao Qi <yao@codesourcery.com>
9247 * ctf.c: Include "gdb_stat.h".
9248 [USE_WIN32API]: New macro 'mkdir'.
9249 (ctf_start): Use permission bits macros if they are defined.
9251 2013-03-20 Keith Seitz <keiths@redhat.com>
9253 * breakpoint.h (struct breakpoint): Add comment to
9254 extra_string indicating that this member is mallod'd.
9255 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9257 2013-03-20 Pedro Alves <palves@redhat.com>
9261 * cli/cli-setshow.c (do_set_command)
9262 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9263 the result of parsing the command argument. Throw error if the
9264 value is greater than UINT_MAX. Print the invalid value with
9266 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9267 result of parsing the command argument. Throw error if the value
9268 is greater than INT_MAX, not greater or equal. Also throw error
9269 if the value is less than INT_MIN. Print the invalid value with
9271 <var_zuinteger_unlimited>: Throw error if the value is greater
9272 than INT_MAX, not greater or equal.
9273 (do_show_command) <var_integer, var_zinteger,
9274 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9276 2013-03-20 Tom Tromey <tromey@redhat.com>
9278 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9280 * dwarf2read.c (read_func_scope): Remove old FIXME.
9281 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9283 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9284 Unconditionally call via computed ops, if possible.
9285 * printcmd.c (address_info): Unconditionally call via computed ops,
9287 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9289 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9290 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9293 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9294 Tom Tromey <tromey@redhat.com>
9297 * coffread.c (coff_register_index): New global.
9298 (process_coff_symbol, coff_read_enum_type): Set
9299 SYMBOL_ACLASS_INDEX.
9300 (_initialize_coffread): Initialize new global.
9301 * dwarf2loc.c (locexpr_find_frame_base_location)
9302 (dwarf2_block_frame_base_locexpr_funcs)
9303 (loclist_find_frame_base_location)
9304 (dwarf2_block_frame_base_loclist_funcs): New.
9305 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9306 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9307 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9308 (dwarf2_block_frame_base_loclist_funcs): New.
9309 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9310 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9312 (read_func_scope): Update.
9313 (fixup_go_packaging, mark_common_block_symbol_computed)
9314 (var_decode_location, new_symbol_full, dwarf2_const_value):
9315 Set SYMBOL_ACLASS_INDEX.
9316 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9317 (_initialize_dwarf2_read): Initialize new globals.
9318 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9319 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9320 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9322 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9323 (_initialize_mdebugread): Initialize new globals.
9324 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9325 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9326 (stab_register_index, stab_regparm_index): New globals.
9327 (define_symbol, read_enum_type, common_block_end): Set
9328 SYMBOL_ACLASS_INDEX.
9329 (_initialize_stabsread): Initialize new globals.
9330 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9332 (MAX_SYMBOL_IMPLS): New define.
9333 (register_symbol_computed_impl, register_symbol_block_impl)
9334 (register_symbol_register_impl)
9335 (initialize_ordinary_address_classes): New functions.
9336 (_initialize_symtab): Call initialize_ordinary_address_classes.
9337 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9338 (struct symbol_impl): New.
9339 (SYMBOL_ACLASS_BITS): New define.
9340 (struct symbol) <aclass, ops>: Remove fields.
9341 <aclass_index>: New field.
9342 (symbol_impls): Declare.
9343 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9344 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9345 (register_symbol_computed_impl, register_symbol_block_impl)
9346 (register_symbol_register_impl): Declare.
9347 (struct symbol_computed_ops): Add location_has_loclist.
9348 (struct symbol_block_ops): New.
9349 (SYMBOL_BLOCK_OPS): New.
9350 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9352 2013-03-20 Tom Tromey <tromey@redhat.com>
9354 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9355 (print_partial_symbols, recursively_search_psymtabs): Use
9358 2013-03-20 Pierre Muller <muller@sourceware.org>
9360 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9361 addtion, subtraction, multiplication and division binary operator.
9363 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9366 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9367 * bsd-kvm.c (bsd_kvm_close): Likewise.
9368 * bsd-uthread.c (bsd_uthread_close): Likewise.
9369 * corelow.c (core_close): Likewise.
9370 (core_close_cleanup): Remove parameter quitting from a caller.
9371 * event-top.c (async_disconnect): Likewise.
9372 * exec.c (exec_close_1): Remove parameter quitting.
9373 * go32-nat.c (go32_close): Likewise.
9374 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9375 parameter quitting from a caller.
9376 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9378 (mips_linux_close): Remove parameter quitting. Remove parameter
9379 quitting from a caller.
9380 * monitor.c (monitor_close): Remove parameter quitting.
9381 * monitor.h (monitor_close): Likewise.
9382 * record-btrace.c (record_btrace_close): Likewise.
9383 * record-full.c (record_full_close): Likewise.
9384 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9385 it also from fprintf_unfiltered.
9386 * remote-mips.c (mips_close): Remove parameter quitting.
9387 (mips_detach): Remove parameter quitting from a caller.
9388 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9389 (gdbsim_close): Remove duplicate function comment. Remove parameter
9390 quitting and remove it also from printf_filtered.
9391 * remote.c (remote_close): Remove parameter quitting.
9392 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9393 * target.c (update_current_target): Remove parameter int from to_close
9395 (push_target, unpush_target, pop_target): Remove parameter quitting from
9397 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9398 Remove parameter quitting from a caller.
9399 (target_preopen): Remove parameter quitting from a caller.
9400 (target_close): Remove parameter quitting. Remove parameter quitting
9401 from a caller two times. Remove parameter quitting also from
9403 * target.h (struct target_ops): Remove parameter quitting and as int
9404 from fields to_xclose and to_close.
9405 (extern struct target_ops current_target):
9406 (target_close, pop_all_targets): Remove parameter quitting. Update the
9408 (pop_all_targets_above): Remove parameter quitting.
9409 * top.c (quit_target): Remove parameter quitting from a caller.
9410 * tracepoint.c (tfile_close): Remove parameter quitting.
9411 * windows-nat.c (windows_close): Remove parameter quitting.
9413 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9415 * windows-nat.c (handle_output_debug_string): Replace call
9416 to string_to_core_addr with call to strtoull.
9418 2013-03-20 Yao Qi <yao@codesourcery.com>
9420 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9421 and write it to CTF metadata.
9423 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9425 * windows-nat.c (handle_output_debug_string): Change type of n to
9426 SIZE_T to avoid crash on 64 bit systems.
9428 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9430 * python/python-internal.h (HAVE_SNPRINTF)
9431 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9432 about redefinition of snprintf by pyerrors.h.
9434 2013-03-15 Steve Ellcey <sellcey@mips.com>
9436 * remote-sim.c (sim_command_completer): Make char arguments const.
9438 2013-03-15 Tom Tromey <tromey@redhat.com>
9441 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9443 2013-03-14 Tom Tromey <tromey@redhat.com>
9445 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9447 (get_file_crc): Move from symfile.c.
9448 (gdb_bfd_crc): New function.
9449 * gdb_bfd.h (gdb_bfd_crc): Declare.
9450 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9451 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9452 (separate_debug_file_exists): Use gdb_bfd_crc.
9454 2013-03-14 Tom Tromey <tromey@redhat.com>
9456 * symfile.c (get_debug_link_info): Remove.
9457 (find_separate_debug_file_by_debuglink): Use
9458 bfd_get_debug_link_info.
9460 2013-03-14 Tom Tromey <tromey@redhat.com>
9462 * symtab.c (error_in_psymtab_expansion): New function.
9463 (lookup_symbol_aux_quick)
9464 (basic_lookup_transparent_type_quick): Remove "last resort"
9465 code. Use error_in_psymtab_expansion.
9467 2013-03-14 Doug Evans <dje@google.com>
9468 Jan Kratochvil <jan.kratochvil@redhat.com>
9470 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9471 any successful compare_filenames_for_search or FILENAME_CMP.
9472 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9473 * symtab.c (iterate_over_some_symtabs): Likewise.
9475 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9477 * source.c (print_source_lines_base): Make a local copy of
9480 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9481 Jan Kratochvil <jan.kratochvil@redhat.com>
9483 * source.c (print_source_lines_base): Suppress "file" for TUI.
9485 2013-03-14 Keith Seitz <keiths@redhat.com>
9486 Alan Matsuoka <alanm@redhat.com>
9490 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9492 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9495 2013-03-14 Yao Qi <yao@codesourcery.com>
9497 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9498 status to tfile if trace is stopped by command 'tstop'.
9500 2013-03-14 Yao Qi <yao@codesourcery.com>
9502 * tracepoint.c (tfile_write_status): Write trace notes and user
9503 name into tfile if they are not NULL.
9505 2013-03-14 Hui Zhu <hui@codesourcery.com>
9506 Yao Qi <yao@codesourcery.com>
9508 * Makefile.in (REMOTE_OBS): Add ctf.o.
9509 (SFILES): Add ctf.c.
9510 (HFILES_NO_SRCDIR): Add ctf.h.
9511 * ctf.c, ctf.h: New files.
9512 * tracepoint.c: Include 'ctf.h'.
9513 (collect_pseudocommand): Remove static.
9514 (trace_save_command): Parse option "-ctf".
9515 Produce different trace file writers per option.
9516 Adjust output message.
9517 (trace_save_tfile, trace_save_ctf): New.
9518 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9519 * mi/mi-main.c: Include 'ctf.h'.
9520 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9521 trace_save_tfile or trace_save_ctf.
9522 * NEWS: Mention these changes.
9524 2013-03-14 Yao Qi <yao@codesourcery.com>
9526 * tracepoint.c (trace_file_writer_xfree): New.
9527 (struct tfile_writer_data): New.
9528 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9529 (tfile_write_header, tfile_write_regblock_type): New.
9530 (tfile_write_status, tfile_write_uploaded_tsv): New.
9531 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9532 (tfile_write_raw_data, (tfile_end): New.
9533 (tfile_write_ops): New global variable.
9534 (TRACE_WRITE_R_BLOCK): New macro.
9535 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9536 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9537 (TRACE_WRITE_V_BLOCK): New macro.
9538 (trace_save): Add extra one parameter WRITER. Make it static.
9539 Use WRITER to writer trace.
9540 (tfile_trace_file_writer_new): New.
9541 (trace_save_command): Caller update.
9542 (trace_save_tfile): Write trace data in TFILE format.
9543 * tracepoint.h (struct trace_frame_write_ops): New.
9544 (struct trace_file_write_ops): New.
9545 (struct trace_file_writer): New.
9546 (trace_save): Remove its declaration.
9547 (trace_save_tfile): Declare it.
9548 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9549 instead of trace_save.
9551 2013-03-13 Pedro Alves <palves@redhat.com>
9553 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9555 2013-03-13 Pedro Alves <palves@redhat.com>
9557 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9559 * demangle.c (current_demangling_style_string): Make it const.
9560 (set_demangling_command): Assert the demangling style is known.
9561 Remove all handling of unknown styles. Set
9562 'current_demangling_style_string' to an element of the
9563 demangling_style_names array.
9564 (set_demangling_style): Delete.
9565 (_initialize_demangler): Set current_demangling_style_string to the
9566 element of the demangling_style_names array that corresponds to
9567 the default demangling style. Remove FIXME note. Don't call
9568 set_demangling_style.
9569 * gdb-demangle.h (set_demangling_style): Remove declaration.
9571 2013-03-13 Pedro Alves <palves@redhat.com>
9573 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9575 (ada_make_symbol_completion_list): Make "text0" parameter const.
9576 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9577 * breakpoint.c (condition_completer): Make "text" and "word"
9578 parameters const. Adjust.
9579 (check_tracepoint_command): Adjust to validate_actionline
9581 (catch_syscall_completer): Make "text" and "word" parameters
9583 * cli/cli-cmds.c (show_user): Make "comname" local const.
9584 (valid_command_p): Make "command" parameter const.
9585 (alias_command): Make "alias_prefix" and "command_prefix" locals
9587 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9588 (add_alias_cmd): Make "name" and "oldname" parameters const.
9589 Adjust. No longer make copy of OLDNAME.
9590 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9591 (add_setshow_cmd_full, add_setshow_enum_cmd)
9592 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9593 (add_setshow_filename_cmd, add_setshow_string_cmd)
9594 (add_setshow_string_noescape_cmd)
9595 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9596 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9597 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9598 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9599 Make "name" parameter const.
9600 (help_cmd): Rename "command" parameter to "arg". New const local
9602 (find_cmd): Make "command" parameter const.
9603 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9604 deprecated_cmd_warning prototype change.
9605 (undef_cmd_error): Make "cmdtype" parameter const.
9606 (lookup_cmd): Make "line" parameter const.
9607 (deprecated_cmd_warning): Change type of "text" parameter to
9608 pointer to const char, from pointer to pointer to char. Adjust.
9609 (lookup_cmd_composition): Make "text" parameter const.
9610 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9612 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9614 * cli/cli-script.c (validate_comname): Make "tem" local const.
9615 (define_command): New const local "tem_c". Use it in calls to
9617 (document_command): Make "tem" and "comfull" locals const.
9618 (show_user_1): Make "prefix" and "name" parameters const.
9619 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9621 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9622 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9623 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9624 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9625 (complete_on_enum, add_setshow_enum_cmd)
9626 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9627 (add_setshow_filename_cmd, add_setshow_string_cmd)
9628 (add_setshow_string_noescape_cmd)
9629 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9630 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9631 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9632 Change prototypes, constifying strings.
9633 * completer.c (noop_completer, filename_completer): Make "text"
9634 and "prefix" parameters const.
9635 (location_completer, expression_completer)
9636 (complete_line_internal): Make "text" and "prefix" parameters
9638 (command_completer, signal_completer): Make "text" and "prefix"
9640 * completer.h (noop_completer, filename_completer)
9641 (expression_completer, location_completer, command_completer)
9642 (signal_completer): Change prototypes.
9643 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9645 * cp-abi.c (cp_abi_completer): Likewise.
9646 * expression.h (parse_expression_for_completion): Change
9648 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9650 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9651 * infrun.c (handle_completer): Make "text" and "word" parameters
9653 * interps.c (interpreter_completer): Make "text" and "word"
9655 * language.h (struct language_defn)
9656 <la_make_symbol_completion_list>: Make "text" and "word"
9658 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9659 (parse_exp_in_context): Rename to ...
9660 (parse_exp_in_context_1): ... this.
9661 (parse_exp_in_context): Reimplement, with const hack from
9663 (parse_expression_for_completion): Make "string" parameter const.
9664 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9665 to pointer to const char. Adjust.
9666 (print_command_1): Make "exp" parameter const.
9667 (output_command): Rename to ...
9668 (output_command_const): ... this. Make "exp" parameter const.
9669 (output_command): Reimplement.
9670 (x_command): Adjust.
9671 (display_command): Rename "exp" parameter to "arg". New "exp"
9672 local, const version of "arg".
9673 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9674 "cmd_name" local const.
9675 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9677 (cmdpy_completer): Make "text" and "word" parameters const.
9678 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9679 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9681 * remote.c (_initialize_remote): Make "cmd_name" local const.
9682 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9683 parameters const. Adjust.
9684 (completion_list_add_fields): Make "sym_text", "text" and "word"
9686 (struct add_name_data) <sym_text, text, word>: Make fields const.
9687 (default_make_symbol_completion_list_break_on): Make "text" and
9688 "word" parameters const. Adjust locals.
9689 (default_make_symbol_completion_list)
9690 (make_symbol_completion_list, make_symbol_completion_type)
9691 (make_symbol_completion_list_fn): Make "text" and "word"
9693 (make_file_symbol_completion_list): Make "text", "word" and
9694 "srcfile" parameters const. Adjust locals.
9695 (add_filename_to_list): Make "text" and "word" parameters const.
9696 (struct add_partial_filename_data) <text, word>: Make fields
9698 (make_source_files_completion_list): Make "text" and "word"
9700 * symtab.h (default_make_symbol_completion_list_break_on)
9701 (default_make_symbol_completion_list, make_symbol_completion_list)
9702 (make_symbol_completion_type enum type_code)
9703 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9704 (make_source_files_completion_list): Change prototype.
9705 * top.c (execute_command): Adjust to pass pointer to pointer to
9706 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9708 (set_verbose): Make "cmdname" local const.
9709 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9711 (validate_actionline): Make "line" parameter a pointer to const
9713 (encode_actions_1): Make "action_exp" local const, and adjust.
9714 (encode_actions): Adjust.
9715 (replace_comma): Delete.
9716 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9717 const, and adjust. Don't frob the action string while splitting
9718 it at commas. Instead, make a copy of each split substring in
9720 (trace_dump_command): Adjust to validate_actionline prototype
9722 * tracepoint.h (decode_agent_options, decode_agent_options)
9723 (encode_actions, validate_actionline): Change prototypes.
9724 * valprint.h (output_command): Delete declaration.
9725 (output_command_const): Declare.
9726 * value.c (function_destroyer): Cast const away in xfree call.
9728 2013-03-13 Pedro Alves <palves@redhat.com>
9730 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9731 rather than casting 'const char * const *' to 'const char **'.
9732 * ada-lex.l (processInt): Make "trailer" local const. Remove
9733 'const char **' cast.
9734 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9735 locals, and use those as strtol output pointer, instead than doing
9736 invalid casts to from 'const char **' to 'char **'.
9737 (_initialize_demangle): Remove cast.
9738 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9739 locals, and use those as strtol output pointer, instead than doing
9740 invalid casts to from 'const char **' to 'char **'.
9741 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9743 * stap-probe.c (stap_parse_register_operand)
9744 (stap_parse_single_operand): Likewise.
9746 2013-03-13 Yao Qi <yao@codesourcery.com>
9748 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9749 the last matched 'V' blcok in trace frame.
9751 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9753 * NEWS: Create a new section for the next release branch.
9754 Rename the section of the current branch, now that it has
9757 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9759 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9760 * version.in: Bump version to 7.6.50.20130312-cvs.
9762 2013-03-12 Keith Seitz <keiths@redhat.com>
9764 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9765 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9766 Remove temporary copy of input string.
9767 (mi_execute_command_wrapper): Make "cmd" const.
9768 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9769 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9771 (mi_parse): Make "cmd" const.
9773 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9775 2013-03-12 Keith Seitz <keiths@redhat.com>
9777 * ada-lang.c (ada_read_renaming_var_value): Pass const
9778 pointer to expression string to parse_exp_1.
9779 (create_excep_cond_exprs): Likewise.
9780 * ax-gdb.c (agent_eval_command_one): Likewise.
9781 (maint_agent_printf_command): Likewise.
9782 Constify much of the string handling/parsing.
9783 * breakpoint.c (set_breakpoint_condition): Pass const
9784 pointer to expression string to parse_exp_1.
9785 (update_watchpoint): Likewise.
9786 (parse_cmd_to_aexpr): Constify string handling.
9787 Pass const pointer to parse_exp_1.
9788 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9789 (find_condition_and_thread): Likewise.
9791 (watch_command_1): Make "arg" const.
9792 Constify string handling.
9793 Copy the expression string instead of changing the input
9795 (update_breakpoint_location): Pass const pointer to
9797 * eval.c (parse_and_eval_address): Make "exp" const.
9798 (parse_to_comma_and_eval): Make "expp" const.
9799 (parse_and_eval): Make "exp" const.
9800 * expression.h (parse_expression): Make argument const.
9801 (parse_exp_1): Make first argument const.
9802 * findcmd.c (parse_find_args): Treat "args" as const.
9803 * linespec.c (parse_linespec): Pass const pointer to
9804 linespec_expression_to_pc.
9805 (linespec_expression_to_pc): Make "exp_ptr" const.
9806 * parse.c (parse_exp_1): Make "stringptr" const.
9807 Make a copy of the expression to pass to parse_exp_in_context until
9808 this whole interface can be constified.
9809 (parse_expression): Make "string" const.
9810 * printcmd.c (ui_printf): Treat "arg" as const.
9811 Handle const strings.
9812 * tracepoint.c (validate_actionline): Pass const pointer to
9813 all calls to parse_exp_1.
9814 (encode_actions_1): Likewise.
9815 * value.h (parse_to_comma_and_eval): Make argument const.
9816 (parse_and_eval_address): Likewise.
9817 (parse_and_eval): Likewise.
9818 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9819 (varobj_set_value): Likewise.
9820 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9821 constify string handling.
9822 Pass const pointers to parse_and_eval_address and
9823 parse_to_comman_and_eval.
9824 * cli/cli-utils.c (skip_to_space): Rename to ...
9825 (skip_to_space_const): ... this. Handle const strings.
9826 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9827 skip_to_space_const.
9828 (skip_to_space_const): Declare.
9829 * common/format.c (parse_format_string): Make "arg" const.
9830 Handle const strings.
9831 * common/format.h (parse_format_string): Make "arg" const.
9832 * gdbserver/ax.c (ax_printf): Make "format" const.
9833 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9834 of the expression string.
9836 2013-03-12 Hui Zhu <hui@codesourcery.com>
9838 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9840 2013-03-12 Yao Qi <yao@codesourcery.com>
9841 Hui Zhu <hui@codesourcery.com>
9843 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9844 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9847 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9849 * ada-lex.l (rules): Only recognize 'thread' as a
9850 delimiter when followed by numerals, as for c-exp.y.
9851 Use new rewind_to_char function to rewind the input for
9852 expression-delimiting tokens.
9853 (rewind_to_char): New function.
9855 2013-03-11 Pedro Alves <palves@redhat.com>
9856 Jan Kratochvil <jan.kratochvil@redhat.com>
9858 * configure: Regenerate.
9859 * configure.ac (check dynamic export flag): Link python test with
9862 2013-03-11 Doug Evans <dje@google.com>
9863 Keith Seitz <keiths@redhat.com>
9865 * linespec.c (find_linespec_symbols): Call find_function_symbols
9866 first, and then call lookup_prefix_sym/find_method.
9868 2013-03-11 Pedro Alves <palves@redhat.com>
9870 * charset.c (convert_between_encodings): Don't cast between
9871 different pointer to pointer types. Instead, make the 'inp' local
9872 be of the type iconv expects.
9873 (wchar_iterate): Don't cast between different pointer to pointer
9874 types. Instead, use new pointer local of the type iconv expects.
9875 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9876 Add new local of type char pointer, and use it to get a
9877 char/string view of the byte buffer, instead of casting between
9878 pointer to pointer types.
9880 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9882 * remote.c (remote_set_trace_buffer_size): Move != operator
9883 to the start of next line to fix an ARI warning.
9885 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9887 * NEWS: Add record changes.
9889 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9891 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9892 the instruction history disassembly.
9893 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9894 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9896 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9898 * Makefile.in (SFILES): Add record-btrace.c
9899 (COMMON_OBS): Add record-btrace.o
9900 * record-btrace.c: New.
9901 * objfiles.c: Include btrace.h.
9902 (free_objfile): call btrace_free_objfile.
9904 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9906 * target.c (target_call_history, target_call_history_from,
9907 target_call_history_range): New.
9908 * target.h (target_ops) <to_call_history, to_call_history_from,
9909 to_call_history_range>: New fields.
9910 (target_call_history, target_call_history_from,
9911 target_call_history_range): New declaration.
9912 * record.c (get_call_history_modifiers, cmd_record_call_history,
9913 record_call_history_size): New.
9914 (_initialize_record): Add the "record function-call-history" command.
9915 Add "set/show record function-call-history-size" commands.
9916 * record.h (record_print_flag): New.
9918 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9920 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9921 to_insn_history_range>: New fields.
9922 (target_insn_history): New.
9923 (target_insn_history_from): New.
9924 (target_insn_history_range): New.
9925 * target.c (target_insn_history): New.
9926 (target_insn_history_from): New.
9927 (target_insn_history_range): New.
9928 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9929 (record_insn_history_size): New.
9930 (get_insn_number): New.
9931 (get_context_size): New.
9933 (get_insn_history_modifiers): New.
9934 (cmd_record_insn_history): New.
9935 (_initialize_record): Add "set/show record instruction-history-size"
9936 command. Add "record instruction-history" command.
9938 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9940 * record.h (record_disconnect): New.
9941 (record_detach): New.
9942 (record_mourn_inferior): New.
9944 * record-full.c (record_disconnect, record_detach,
9945 record_mourn_inferior, record_kill): Move to...
9946 * record.c: ...here.
9949 (record_unpush): New.
9950 (cmd_record_stop): Call record_stop. Replace unpush_target
9951 call with record_unpush call.
9952 (record_disconnect, record_detach): Assert that the target
9953 is of record stratum. Call record_unpush, record_stop, and
9955 (record_mourn_inferior, record_kill): Assert that the target
9956 is of record stratum. Call record_unpush and DEBUG.
9958 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9960 * record-full.h, record-full.c (record_memory_query): Rename
9962 (record_full_memory_query): ...this. Update all users.
9963 (record_arch_list_add_reg): Rename to ...
9964 (record_full_arch_list_add_reg): ...this. Update all users.
9965 (record_arch_list_add_mem): Rename to ...
9966 (record_full_arch_list_add_mem): ...this. Update all users.
9967 (record_arch_list_add_end): Rename to ...
9968 (record_full_arch_list_add_end): ...this. Update all users.
9969 (record_gdb_operation_disable_set): Rename to ...
9970 (record_full_gdb_operation_disable_set): ...this.
9973 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9975 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9976 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9977 (RECORD_IS_REPLAY): Renamed to ...
9978 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9979 (RECORD_FILE_MAGIC): Renamed to ...
9980 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9981 (record_mem_entry): Renamed to ...
9982 (record_full_mem_entry): ... this. Updated all users.
9983 (record_reg_entry): Renamed to ...
9984 (record_full_reg_entry): ... this. Updated all users.
9985 (record_end_entry): Renamed to ...
9986 (record_full_end_entry): ... this. Updated all users.
9987 (record_type) <record_end, record_reg, record_mem>: Renamed
9989 (record_full_type) <record_full_end, record_full_reg,
9990 record_full_mem>: ... this. Updated all users.
9991 (record_entry): Renamed to ...
9992 (record_full_entry): ... this. Updated all users.
9993 (record_core_buf_entry): Renamed to ...
9994 (record_full_core_buf_entry): ... this. Updated all users.
9995 (record_core_regbuf): Renamed to ...
9996 (record_full_core_regbuf): ... this. Updated all users.
9997 (record_core_start): Renamed to ...
9998 (record_full_core_start): ... this. Updated all users.
9999 (record_core_end): Renamed to ...
10000 (record_full_core_end): ... this. Updated all users.
10001 (record_core_buf_list): Renamed to ...
10002 (record_full_core_buf_list): ... this. Updated all users.
10003 (record_first): Renamed to ...
10004 (record_full_first): ... this. Updated all users.
10005 (record_list): Renamed to ...
10006 (record_full_list): ... this. Updated all users.
10007 (record_arch_list_head): Renamed to ...
10008 (record_full_arch_list_head): ... this. Updated all users.
10009 (record_arch_list_tail): Renamed to ...
10010 (record_full_arch_list_tail): ... this. Updated all users.
10011 (record_stop_at_limit): Renamed to ...
10012 (record_full_stop_at_limit): ... this. Updated all users.
10013 (record_insn_max_num): Renamed to ...
10014 (record_full_insn_max_num): ... this. Updated all users.
10015 (record_insn_num): Renamed to ...
10016 (record_full_insn_num): ... this. Updated all users.
10017 (record_insn_count): Renamed to ...
10018 (record_full_insn_count): ... this. Updated all users.
10019 (record_ops): Renamed to ...
10020 (record_full_ops): ... this. Updated all users.
10021 (record_core_ops): Renamed to ...
10022 (record_full_core_ops): ... this. Updated all users.
10023 (set_record_cmdlist): Renamed to ...
10024 (set_record_full_cmdlist): ... this. Updated all users.
10025 (show_record_cmdlist): Renamed to ...
10026 (show_record_full_cmdlist): ... this. Updated all users.
10027 (record_cmdlist): Renamed to ...
10028 (record_full_cmdlist): ... this. Updated all users.
10029 (record_beneath_to_resume_ops): Renamed to ...
10030 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10031 (record_beneath_to_resume): Renamed to ...
10032 (record_full_beneath_to_resume): ... this. Updated all users.
10033 (record_beneath_to_wait_ops): Renamed to ...
10034 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10035 (record_beneath_to_wait): Renamed to ...
10036 (record_full_beneath_to_wait): ... this. Updated all users.
10037 (record_beneath_to_store_registers_ops): Renamed to ...
10038 (record_full_beneath_to_store_registers_ops): ... this.
10040 (record_beneath_to_store_registers): Renamed to ...
10041 (record_full_beneath_to_store_registers): ... this.
10043 (record_beneath_to_xfer_partial_ops): Renamed to ...
10044 (record_full_beneath_to_xfer_partial_ops): ... this.
10046 (record_beneath_to_xfer_partial): Renamed to ...
10047 (record_full_beneath_to_xfer_partial): ... this.
10049 (record_beneath_to_insert_breakpoint): Renamed to ...
10050 (record_full_beneath_to_insert_breakpoint): ... this.
10052 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10053 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10055 (record_beneath_to_stopped_data_address): Renamed to ...
10056 (record_full_beneath_to_stopped_data_address): ... this.
10058 (record_beneath_to_async): Renamed to ...
10059 (record_full_beneath_to_async): ... this. Updated all users.
10060 (record_goto_insn): Renamed to ...
10061 (record_full_goto_insn): ... this. Updated all users.
10062 (record_save): Renamed to ...
10063 (record_full_save): ... this. Updated all users.
10064 (record_reg_alloc): Renamed to ...
10065 (record_full_reg_alloc): ... this. Updated all users.
10066 (record_reg_release): Renamed to ...
10067 (record_full_reg_release): ... this. Updated all users.
10068 (record_mem_alloc): Renamed to ...
10069 (record_full_mem_alloc): ... this. Updated all users.
10070 (record_mem_release): Renamed to ...
10071 (record_full_mem_release): ... this. Updated all users.
10072 (record_end_alloc): Renamed to ...
10073 (record_full_end_alloc): ... this. Updated all users.
10074 (record_end_release): Renamed to ...
10075 (record_full_end_release): ... this. Updated all users.
10076 (record_entry_release): Renamed to ...
10077 (record_full_entry_release): ... this. Updated all users.
10078 (record_list_release): Renamed to ...
10079 (record_full_list_release): ... this. Updated all users.
10080 (record_list_release_following): Renamed to ...
10081 (record_full_list_release_following): ... this.
10083 (record_list_release_first): Renamed to ...
10084 (record_full_list_release_first): ... this. Updated all users.
10085 (record_arch_list_add): Renamed to ...
10086 (record_full_arch_list_add): ... this. Updated all users.
10087 (record_get_loc): Renamed to ...
10088 (record_full_get_loc): ... this. Updated all users.
10089 (record_check_insn_num): Renamed to ...
10090 (record_full_check_insn_num): ... this. Updated all users.
10091 (record_arch_list_cleanups): Renamed to ...
10092 (record_full_arch_list_cleanups): ... this. Updated all users.
10093 (record_message): Renamed to ...
10094 (record_full_message): ... this. Updated all users.
10095 (record_message_wrapper): Renamed to ...
10096 (record_full_message_wrapper): ... this. Updated all users.
10097 (record_message_wrapper_safe): Renamed to ...
10098 (record_full_message_wrapper_safe): ... this. Updated all users.
10099 (record_gdb_operation_disable): Renamed to ...
10100 (record_full_gdb_operation_disable): ... this. Updated all users.
10101 (record_hw_watchpoint): Renamed to ...
10102 (record_full_hw_watchpoint): ... this. Updated all users.
10103 (record_exec_insn): Renamed to ...
10104 (record_full_exec_insn): ... this. Updated all users.
10105 (record_restore): Renamed to ...
10106 (record_full_restore): ... this. Updated all users.
10107 (record_async_inferior_event_token): Renamed to ...
10108 (record_full_async_inferior_event_token): ... this.
10110 (record_async_inferior_event_handler): Renamed to ...
10111 (record_full_async_inferior_event_handler): ... this.
10113 (record_core_open_1): Renamed to ...
10114 (record_full_core_open_1): ... this. Updated all users.
10115 (record_open_1): Renamed to ...
10116 (record_full_open_1): ... this. Updated all users.
10117 (record_open): Renamed to ...
10118 (record_full_open): ... this. Updated all users.
10119 (record_close): Renamed to ...
10120 (record_full_close): ... this. Updated all users.
10121 (record_resume_step): Renamed to ...
10122 (record_full_resume_step): ... this. Updated all users.
10123 (record_resumed): Renamed to ...
10124 (record_full_resumed): ... this. Updated all users.
10125 (record_execution_dir): Renamed to ...
10126 (record_full_execution_dir): ... this. Updated all users.
10127 (record_resume): Renamed to ...
10128 (record_full_resume): ... this. Updated all users.
10129 (record_get_sig): Renamed to ...
10130 (record_full_get_sig): ... this. Updated all users.
10131 (record_sig_handler): Renamed to ...
10132 (record_full_sig_handler): ... this. Updated all users.
10133 (record_wait_cleanups): Renamed to ...
10134 (record_full_wait_cleanups): ... this. Updated all users.
10135 (record_wait_1): Renamed to ...
10136 (record_full_wait_1): ... this. Updated all users.
10137 (record_wait): Renamed to ...
10138 (record_full_wait): ... this. Updated all users.
10139 (record_stopped_by_watchpoint): Renamed to ...
10140 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10141 (record_disconnect): Renamed to ...
10142 (record_full_disconnect): ... this. Updated all users.
10143 (record_detach): Renamed to ...
10144 (record_full_detach): ... this. Updated all users.
10145 (record_mourn_inferior): Renamed to ...
10146 (record_full_mourn_inferior): ... this. Updated all users.
10147 (record_kill): Renamed to ...
10148 (record_full_kill): ... this. Updated all users.
10149 (record_stopped_data_address): Renamed to ...
10150 (record_full_stopped_data_address): ... this. Updated all users.
10151 (record_registers_change): Renamed to ...
10152 (record_full_registers_change): ... this. Updated all users.
10153 (record_store_registers): Renamed to ...
10154 (record_full_store_registers): ... this. Updated all users.
10155 (record_xfer_partial): Renamed to ...
10156 (record_full_xfer_partial): ... this. Updated all users.
10157 (record_breakpoint): Renamed to ...
10158 (record_full_breakpoint): ... this. Updated all users.
10159 (record_breakpoint_p): Renamed to ...
10160 (record_full_breakpoint_p): ... this. Updated all users.
10161 (record_breakpoints): Renamed to ...
10162 (record_full_breakpoints): ... this. Updated all users.
10163 (record_sync_record_breakpoints): Renamed to ...
10164 (record_full_sync_record_breakpoints): ... this.
10166 (record_init_record_breakpoints): Renamed to ...
10167 (record_full_init_record_breakpoints): ... this.
10169 (record_insert_breakpoint): Renamed to ...
10170 (record_full_insert_breakpoint): ... this. Updated all users.
10171 (record_remove_breakpoint): Renamed to ...
10172 (record_full_remove_breakpoint): ... this. Updated all users.
10173 (record_can_execute_reverse): Renamed to ...
10174 (record_full_can_execute_reverse): ... this. Updated all users.
10175 (record_get_bookmark): Renamed to ...
10176 (record_full_get_bookmark): ... this. Updated all users.
10177 (record_goto_bookmark): Renamed to ...
10178 (record_full_goto_bookmark): ... this. Updated all users.
10179 (record_async): Renamed to ...
10180 (record_full_async): ... this. Updated all users.
10181 (record_can_async_p): Renamed to ...
10182 (record_full_can_async_p): ... this. Updated all users.
10183 (record_is_async_p): Renamed to ...
10184 (record_full_is_async_p): ... this. Updated all users.
10185 (record_execution_direction): Renamed to ...
10186 (record_full_execution_direction): ... this. Updated all users.
10187 (record_info): Renamed to ...
10188 (record_full_info): ... this. Updated all users.
10189 (record_delete): Renamed to ...
10190 (record_full_delete): ... this. Updated all users.
10191 (record_is_replaying): Renamed to ...
10192 (record_full_is_replaying): ... this. Updated all users.
10193 (record_goto_entry): Renamed to ...
10194 (record_full_goto_entry): ... this. Updated all users.
10195 (record_goto_begin): Renamed to ...
10196 (record_full_goto_begin): ... this. Updated all users.
10197 (record_goto_end): Renamed to ...
10198 (record_full_goto_end): ... this. Updated all users.
10199 (record_goto): Renamed to ...
10200 (record_full_goto): ... this. Updated all users.
10201 (init_record_ops): Renamed to ...
10202 (init_record_full_ops): ... this. Updated all users.
10203 (record_core_resume): Renamed to ...
10204 (record_full_core_resume): ... this. Updated all users.
10205 (record_core_kill): Renamed to ...
10206 (record_full_core_kill): ... this. Updated all users.
10207 (record_core_fetch_registers): Renamed to ...
10208 (record_full_core_fetch_registers): ... this. Updated all users.
10209 (record_core_prepare_to_store): Renamed to ...
10210 (record_full_core_prepare_to_store): ... this. Updated all users.
10211 (record_core_store_registers): Renamed to ...
10212 (record_full_core_store_registers): ... this. Updated all users.
10213 (record_core_xfer_partial): Renamed to ...
10214 (record_full_core_xfer_partial): ... this. Updated all users.
10215 (record_core_insert_breakpoint): Renamed to ...
10216 (record_full_core_insert_breakpoint): ... this. Updated all users.
10217 (record_core_remove_breakpoint): Renamed to ...
10218 (record_full_core_remove_breakpoint): ... this. Updated all users.
10219 (record_core_has_execution): Renamed to ...
10220 (record_full_core_has_execution): ... this. Updated all users.
10221 (init_record_core_ops): Renamed to ...
10222 (init_record_full_core_ops): ... this. Updated all users.
10223 (cmd_record_restore): Renamed to ...
10224 (cmd_record_full_restore): ... this. Updated all users.
10225 (record_save_cleanups): Renamed to ...
10226 (record_full_save_cleanups): ... this. Updated all users.
10227 (cmd_record_start): Renamed to ...
10228 (cmd_record_full_start): ... this. Updated all users.
10229 (set_record_insn_max_num): Renamed to ...
10230 (set_record_full_insn_max_num): ... this. Updated all users.
10231 (set_record_command): Renamed to ...
10232 (set_record_full_command): ... this. Updated all users.
10233 (show_record_command): Renamed to ...
10234 (show_record_full_command): ... this. Updated all users.
10235 (_initialize_record): Renamed to ...
10236 (_initialize_record_full): ... this. Updated all users.
10238 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10240 * record.h: Split into this and ...
10241 * record-full.h: ... this.
10242 * record.c: Split into this and ...
10243 * record-full.c: ... this.
10244 * target.h (target_ops): Add new fields to_info_record,
10245 to_save_record, to_delete_record, to_record_is_replaying,
10246 to_goto_record_begin, to_goto_record_end, to_goto_record.
10247 (target_info_record): New.
10248 (target_save_record): New.
10249 (target_supports_delete_record): New.
10250 (target_delete_record): New.
10251 (target_record_is_replaying): New.
10252 (target_goto_record_begin): New.
10253 (target_goto_record_end): New.
10254 (target_goto_record): New.
10255 * target.c (target_info_record): New.
10256 (target_save_record): New.
10257 (target_supports_delete_record): New.
10258 (target_delete_record): New.
10259 (target_record_is_replaying): New.
10260 (target_goto_record_begin): New.
10261 (target_goto_record_end): New.
10262 (target_goto_record): New.
10263 * record.h: Declare struct cmd_list_element.
10264 (record_cmdlist): New declaration.
10265 (set_record_cmdlist): New declaration.
10266 (show_record_cmdlist): New declaration.
10267 (info_record_cmdlist): New declaration.
10268 (cmd_record_goto): New declaration.
10269 * record.c: Remove unnecessary includes.
10270 Include inferior.h.
10271 (cmd_record_goto): Remove declaration.
10272 (record_cmdlist): Now extern. Initialize.
10273 (set_record_cmdlist): Now extern. Initialize.
10274 (show_record_cmdlist): Now extern. Initialize.
10275 (info_record_cmdlist): Now extern. Initialize.
10276 (find_record_target): New.
10277 (require_record_target): New.
10278 (cmd_record_start): Update.
10279 (cmd_record_delete): Remove target-specific code.
10280 Call target_delete_record.
10281 (cmd_record_stop): Unpush any record target.
10282 (set_record_insn_max_num): Move to record-full.c
10283 (set_record_command): Add comment.
10284 (show_record_command): Add comment.
10285 (info_record_command): Update comment.
10286 Remove target-specific code.
10287 Call the record target's to_info_record.
10288 (cmd_record_start): New.
10289 (cmd_record_goto): Now extern.
10290 Remove target-specific code.
10291 Call target_goto_begin, target_goto_end, or target_goto.
10292 (_initialize_record): Move record target ops initialization to
10294 Change "record" command help text.
10295 Move "record restore", "record set", and "record show" commands to
10297 * Makefile.in (SFILES): Add record-full.c.
10298 (HFILES_NO_SRCDIR): Add record-full.h.
10299 (COMMON_OBS): Add record-full.o.
10300 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10301 * arm-tdep.c: Include record-full.h.
10302 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10303 * i386-tdep.c: Include record-full.h.
10304 * infrun.c: Include record-full.h.
10305 * linux-record.c: Include record-full.h.
10306 * moxie-tdep.c: Include record-full.h.
10307 * record-full.c: Include record-full.h.
10308 Change module comment.
10309 (set_record_full_cmdlist): New.
10310 (show_record_full_cmdlist): New.
10311 (record_full_cmdlist): New.
10312 (record_goto_insn): New declaration.
10313 (record_save): New declaration.
10314 (record_check_insn_num): Change query string.
10315 (record_info): New.
10316 (record_delete): New.
10317 (record_is_replaying): New.
10318 (record_goto_entry): New.
10319 (record_goto_begin): New.
10320 (record_goto_end): New.
10321 (record_goto): New.
10322 (init_record_ops): Update.
10323 (init_record_core_ops): Update.
10324 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10325 (cmd_record_start): New.
10326 (set_record_insn_max_num): Moved from record.c
10327 (set_record_full_command): New.
10328 (show_record_full_command): New.
10329 (_initialize_record_full): New.
10331 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10333 * target.h (add_deprecated_target_alias): New.
10334 * target.c (add_deprecated_target_alias): New.
10336 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10338 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10340 (linux_supports_btrace): Add kernel and
10342 (kernel_supports_btrace): New function.
10343 (cpu_supports_btrace): New function.
10344 (intel_supports_btrace): New function.
10346 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10348 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10349 * remote.c: Include btrace.h.
10350 (struct btrace_target_info): New struct.
10351 (remote_supports_btrace): New function.
10352 (send_Qbtrace): New function.
10353 (remote_enable_btrace): New function.
10354 (remote_disable_btrace): New function.
10355 (remote_teardown_btrace): New function.
10356 (remote_read_btrace): New function.
10357 (init_remote_ops): Add btrace ops.
10358 (enum <unnamed>): Add btrace packets.
10359 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10360 (_initialize_remote): Add packet configuration for branch tracing.
10362 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10364 * features/btrace.dtd: New file.
10365 * Makefile.in (XMLFILES): Add btrace.dtd.
10366 * btrace.h (parse_xml_btrace): New declaration.
10367 * btrace.c: Include xml-support.h.
10368 (parse_xml_btrace): New function.
10369 (parse_xml_btrace_block): New function.
10370 (block_attributes): New struct.
10371 (btrace_attributes): New struct.
10372 (btrace_children): New struct.
10373 (btrace_elements): New struct.
10375 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10377 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10378 (amd64_linux_enable_btrace): New.
10379 (amd64_linux_disable_btrace): New.
10380 (amd64_linux_teardown_btrace): New.
10381 (_initialize_amd64_linux_nat): Initialize btrace ops.
10382 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10383 (i386_linux_enable_btrace): New.
10384 (i386_linux_disable_btrace): New.
10385 (i386_linux_teardown_btrace): New.
10386 (_initialize_i386_linux_nat): Initialize btrace ops.
10387 * config/i386/linux.mh: Add linux-btrace.o.
10388 * config/i386/linux64.mh: Add linux-btrace.o.
10390 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10392 * common/linux_btrace.h: New file.
10393 * common/linux_btrace.c: New file.
10394 * Makefile.in (SFILES): Add btrace.c.
10395 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10396 (COMMON_OBS): Add btrace.o.
10397 (linux-btrace.o): New rule.
10399 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10401 * target.h: Include btrace.h.
10402 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10403 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10404 * target.c (target_supports_btrace): New function.
10405 (target_enable_btrace): New function.
10406 (target_disable_btrace): New function.
10407 (target_teardown_btrace): New function.
10408 (target_read_btrace): New function.
10409 * btrace.h: New file.
10410 * btrace.c: New file.
10411 * Makefile.in: Add btrace.c.
10412 * gdbthread.h: Include btrace.h.
10413 (struct thread_info): Add btrace field.
10414 * thread.c: Include btrace.h.
10415 (clear_thread_inferior_resources): Call target_teardown_btrace.
10416 * common/btrace-common.h: New file.
10418 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10420 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10421 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10422 kill_status to outer block.
10424 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10426 Fix entry-values if the callee called a noreturn function.
10427 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10428 get_frame_address_in_block. Add new comment.
10430 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10432 Fix entry-values in C++ across CUs.
10433 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10434 lookup_minimal_symbol. Add a comment.
10436 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10437 DW_AT_linkage_name.
10439 2013-03-08 Yao Qi <yao@codesourcery.com>
10441 * tracepoint.c (_initialize_tracepoint): Indent the code.
10443 2013-03-08 Pedro Alves <palves@redhat.com>
10445 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10446 (parse_find_args, find_command): Change type of pattern buffer
10447 locals to 'gdb_byte *'.
10449 2013-03-08 Stan Shebs <stan@codesourcery.com>
10450 Hafiz Abid Qadeer <abidh@codesourcery.com>
10452 * NEWS: Mention set and show trace-buffer-size commands.
10453 Mention new packet.
10454 * target.h (struct target_ops): New method
10455 to_set_trace_buffer_size.
10456 (target_set_trace_buffer_size): New macro.
10457 * target.c (update_current_target): Set up new method.
10458 * tracepoint.c (trace_buffer_size): New global.
10459 (start_tracing): Send it to the target.
10460 (set_trace_buffer_size): New function.
10461 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10462 * remote.c (remote_set_trace_buffer_size): New function.
10463 (_initialize_remote): Use it.
10464 (QTBuffer:size) New remote command.
10465 (PACKET_QTBuffer_size): New enum.
10466 (remote_protocol_features): Add an entry for
10467 PACKET_QTBuffer_size.
10469 2013-03-08 Tom Tromey <tromey@redhat.com>
10471 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10474 2013-03-07 Pedro Alves <palves@redhat.com>
10476 * target.c (target_read_stralloc, target_fileio_read_alloc):
10477 *Cast pointer to 'gdb_byte *' in target call.
10479 2013-03-07 Pedro Alves <palves@redhat.com>
10481 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10484 2013-03-07 Keith Seitz <keiths@redhat.com>
10486 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10487 (trace_pass_command): Likewise.
10488 * cli/cli-cmds.c: Include cli/cli-utils.h.
10489 (source_command): Use skip-spaces.
10490 (disassemble_command): Likewise.
10491 * findcmd.c: Include cli/cli-utils.h.
10492 (parse_find_args): Use skip_spaces.
10493 * go32-nat.c: Include cli/cli-utils.h.
10494 (go32_sldt): Use skip_spaces.
10495 (go32_sgdt): Likewise.
10496 (go32_sidt): Likewise.
10497 (go32_pde): Likewise.
10498 (go32_pte): Likewise.
10499 (go32_pte_for_address): Likewise.
10500 * infcmd.c: Include cli/cli-utils.h.
10501 (registers_info): Use skip_spaces.
10502 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10503 (linux_info_proc): Likewise.
10504 * linux-thread-db.c: Include cli/cli-utils.h.
10505 (info_auto_load_libthread_db): Use skip_spaces_const.
10506 * m32r-rom.c: Include cli/cli-utils.h.
10507 (m32r_upload_command): Use skip_spaces.
10508 * maint.c: Include cli/cli-utils.h.
10509 (maintenance_translate_address): Use skip_spaces.
10510 * mi/mi-parse.c: Include cli/cli-utils.h.
10511 (mi_parse_argv): Use skip_spaces.
10512 (mi_parse): Likewise.
10513 * minsyms.c: Include cli/cli-utils.h.
10514 (msymbol_hash_iw): Use skip_spaces_const.
10515 * objc-lang.c: Include cli/cli-utils.h.
10516 (parse_selector): Use skip_spaces.
10517 (parse_method): Likewise.
10518 * python/python.c: Include cli/cli-utils.h.
10519 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10520 (python_command)[HAVE_PYTHON]: Likewise.
10521 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10522 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10523 (m32r_load): Use skip_spaces.
10524 * serial.c: Include cli/cli-utils.h.
10525 (serial_open): Use skip_spaces_const.
10526 * stack.c: Include cli/cli-utils.h.
10527 (parse_frame_specification_1): Use skip_spaces_const.
10528 * symfile.c: Include cli/cli-utils.h.
10529 (set_ext_lang_command): Use skip_spaces.
10530 * symtab.c: Include cli/cli-utils.h.
10531 (rbreak_command): Use skip_spaces.
10532 * thread.c (thread_name_command): Use skip_spaces.
10533 * tracepoint.c (validate_actionline): Use skip_spaces.
10534 (encode_actions_1): Likewise.
10535 (trace_find_range_command): Likewise.
10536 (trace_find_outside_command): Likewise.
10537 (trace_dump_actions): Likewise.
10539 2013-03-07 Pedro Alves <palves@redhat.com>
10541 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10542 * expprint.c (print_subexp_standard): Likewise.
10543 * utils.c (host_char_to_target): Likewise.
10544 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10545 * varobj.c (value_get_print_value): Change type of local to char*.
10546 Cast it gdb_byte * in call to language printer.
10548 2013-03-07 Pedro Alves <palves@redhat.com>
10550 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10552 (make_wchar_iterator): Remove cast to char*.
10553 (wchar_iterate): Change type of local.
10555 2013-03-07 Pedro Alves <palves@redhat.com>
10557 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10558 for 'regcache->register_status'.
10560 2013-03-07 Pedro Alves <palves@redhat.com>
10562 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10565 2013-03-07 Pedro Alves <palves@redhat.com>
10567 * stap-probe.c (handle_stap_probe): Add cast to char*.
10569 2013-03-07 Pedro Alves <palves@redhat.com>
10571 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10572 RECORD_MSGRCV>: Pass a signed variable to
10573 regcache_raw_read_signed, instead of an unsigned one.
10575 2013-03-07 Pedro Alves <palves@redhat.com>
10577 * remote-notif.c (notif_debug): Change type to int.
10578 * remote-notif.h (notif_debug): Likewise.
10580 2013-03-07 Pedro Alves <palves@redhat.com>
10582 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10584 2013-03-07 Pedro Alves <palves@redhat.com>
10586 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10587 * remote.h (hex2bin, bin2hex): ... here.
10588 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10590 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10592 * utils.c (initialize_utils): Improve doc strings of "set/show
10593 width", "set/show height", and "set/show pagination".
10595 2013-03-06 Keith Seitz <keiths@redhat.com>
10597 * ax-gdb.c (gen_printf): Make FORMAT const.
10598 * ax-gdb.h (gen_printf): Likewise.
10599 * ax-general.c (ax_string): Make STR const.
10600 * ax.h (ax_string): Likewise.
10602 2013-03-06 Doug Evans <dje@google.com>
10604 * elfread.c (elf_symfile_read): Move debugging printf to more
10607 2013-03-06 Pedro Alves <palves@redhat.com>
10609 * python/py-utils.c (target_string_to_unicode): Delete function.
10610 * python/python-internal.h (target_string_to_unicode): Delete
10613 2013-03-06 Pierre Muller <muller@sourceware.org>
10615 * linespec.c (get_current_search_block): ARI fix, use (void)
10616 for empty parameter list.
10618 2013-03-05 Doug Evans <dje@google.com>
10620 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10621 of old ada_lookup_symbol_list. In !full_search case, don't
10622 search superblocks.
10623 (ada_lookup_symbol_list): Delete arg full_search, all callers
10624 updated. Call ada_lookup_symbol_list_worker.
10625 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10626 * ada-lang.h (ada_lookup_symbol_list): Update.
10627 * language.h (language_defn): Update comment for
10628 la_iterate_over_symbols.
10629 * linespec.c (iterate_over_file_blocks): New function.
10630 (iterate_over_all_matching_symtabs): Call it.
10631 (lookup_prefix_sym): Ditto.
10632 (get_current_search_block): New function.
10633 (get_search_block): Delete.
10634 (find_label_symbols): Call get_current_search_block.
10635 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10636 * symtab.c (iterate_over_symbols): Don't search superblocks.
10638 2013-03-05 Yao Qi <yao@codesourcery.com>
10640 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10641 parameter VAR's type from "unsigned int" to "int".
10642 * command.h (var_zuinteger_unlimited): Update its comments.
10643 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10645 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10647 * NEWS: Mention new target x86_64-*-cygwin*.
10649 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10651 * configure.host: Add x86_64-*-cygwin* as host.
10652 * configure.tgt: Add x86_64-*-cygwin* as target.
10653 * config/i386/cygwin64.mh: New file.
10655 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10657 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10659 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10661 * linespec.c (struct linespec_canonical_name): New.
10662 (struct linespec_state): Change canonical_names type to it.
10663 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10664 xrealloc element size. Initialize the different CANONICAL fields.
10665 (canonical_to_fullform): New.
10666 (filter_results): Use it. Add variables canonical, fullform and
10668 (struct decode_line_2_item, decode_line_2_compare_items): New.
10669 (decode_line_2): Remove variables iter and item_names, add variables
10670 items and items_count. Modify the code for these new variables.
10672 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10674 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10675 calling do_cleanup.
10677 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10679 * tracepoint.c (build_traceframe_info): Add code for byte order.
10681 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10683 * v850-tdep.c: (v850e2_register_name): Revise system register
10684 names to match current V850E2M architecture specifications.
10685 Update register number enum comments too.
10687 2013-03-01 Jiong Wang <jiwang@tilera.com>
10688 Pedro Alves <palves@redhat.com>
10690 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10692 (tilegx_skip_prologue): Limit prologue analysis to section end.
10694 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10696 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10699 2013-03-01 Pedro Alves <palves@redhat.com>
10701 Use gdb_byte for bytes from the program being debugged.
10703 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10704 Change type of local 'buf' to gdb_byte.
10705 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10706 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10707 * cris-tdep.c (cris_sigcontext_addr)
10708 (cris_sigtramp_frame_unwind_cache): Likewise.
10709 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10710 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10712 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10713 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10714 (hppa32_hpux_search_dummy_call_sequence)
10715 (hppa_hpux_supply_save_state): Likewise.
10716 * hppa-linux-tdep.c (insns_match_pattern)
10717 (hppa_linux_find_global_pointer): Likewise.
10718 * hppa-tdep.c (hppa_in_function_epilogue_p)
10719 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10720 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10721 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10722 (i386fbsd_collect_uthread): Likewise.
10723 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10724 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10725 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10726 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10727 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10728 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10729 (ia64_libunwind_frame_prev_register)
10730 (ia64_libunwind_sigtramp_frame_this_id)
10731 (ia64_find_global_pointer_from_dynamic_section)
10732 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10733 (ia64_unwind_pc): Likewise.
10734 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10735 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10736 (m68hc11_extract_return_value): Likewise.
10737 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10738 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10739 (mep_get_insn, mep_push_dummy_call): Likewise.
10740 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10741 (mips_linux_in_dynsym_stub): Likewise.
10742 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10743 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10744 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10746 * remote-mips.c (mips_set_register): Likewise.
10747 * remote-sim.c (gdbsim_fetch_register): Likewise.
10748 * score-tdep.c (score7_fetch_inst): Change type of parameter
10749 'memblock' and local 'buf' to gdb_byte.
10750 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10751 Change type of local 'buf' to gdb_byte. Adjust.
10752 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10754 (score7_analyze_prologue): Change type of 'memblock' and
10755 'memblock_ptr' locals to gdb_byte*.
10756 * sh64-tdep.c (sh64_extract_return_value)
10757 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10758 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10759 * solib-pa64.c (pa64_solib_create_inferior_hook)
10760 (pa64_open_symbol_file_object): Remove local 'buf'.
10761 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10762 (som_open_symbol_file_object): Likewise.
10763 * solib-spu.c (spu_current_sos): Likewise.
10764 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10765 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10766 (spu_store_registers): Likewise.
10767 * target.c (debug_print_register): Likewise.
10768 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10769 * xstormy16-tdep.c (xstormy16_store_return_value)
10770 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10771 (xstormy16_find_jmp_table_entry): Likewise.
10773 2013-03-01 Jiong Wang <jiwang@tilera.com>
10775 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10776 (tilegx_gdbarch_init): Install it.
10778 2013-02-28 Tom Tromey <tromey@redhat.com>
10780 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10783 2013-02-28 Doug Evans <dje@google.com>
10785 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10786 * python/python.c (gdbpy_find_pc_line): Ditto.
10788 2013-02-28 Tom Tromey <tromey@redhat.com>
10790 * contrib/excheck.py: New file.
10791 * contrib/exsummary.py: New file.
10792 * contrib/gcc-with-excheck: New file.
10794 2013-02-28 Tom Tromey <tromey@redhat.com>
10796 * python/python.c (gdbpy_print_stack): Call begin_line and
10797 fprintf_filtered inside TRY_CATCH.
10799 2013-02-28 Tom Tromey <tromey@redhat.com>
10801 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10804 2013-02-28 Tom Tromey <tromey@redhat.com>
10806 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10807 frame_object_to_frame_info inside TRY_CATCH.
10809 2013-02-28 Tom Tromey <tromey@redhat.com>
10811 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10814 2013-02-28 Tom Tromey <tromey@redhat.com>
10816 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10818 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10820 * windows-nat.c: Throughout, fix format strings and casts of
10821 printf-like functions to avoid type related warnings on all
10823 (handle_output_debug_string): Fetch context information address
10824 from debug string using string_to_core_addr.
10826 2013-02-27 Jiong Wang <jiwang@tilera.com>
10828 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10829 * regformats/reg-tilegx32.dat: New.
10831 2013-02-27 Jiong Wang <jiwang@tilera.com>
10833 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10835 2013-02-27 Jiong Wang <jiwang@tilera.com>
10837 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10839 2013-02-27 Yao Qi <yao@codesourcery.com>
10840 Pedro Alves <palves@redhat.com>
10842 * tracepoint.c (tfile_trace_find): For tfind
10843 pc/tp/range/outside, look for the next trace frame instead of
10844 always starting from frame 0.
10846 2013-02-26 Anthony Green <green@moxielogic.com>
10848 * configure.tgt: Add support for moxie-*-rtems* target.
10850 2013-02-25 Pedro Alves <palves@redhat.com>
10852 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10855 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10857 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10858 if $fp is used as the virtual frame pointer.
10860 2013-02-23 Alan Modra <amodra@gmail.com>
10862 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10864 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10865 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10866 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10867 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10869 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10872 * elfread.c (build_id_bfd_get): Make the return type const.
10873 (build_id_verify): Make the check parameter const.
10874 (build_id_to_debug_filename): Make the build_id parameter and variable
10876 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10878 2013-02-21 Alan Modra <amodra@gmail.com>
10880 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10882 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10884 Add a new method 'disassemble' to gdb.Architecture class.
10885 * python/py-arch.c (archpy_disassmble): Implementation of the
10886 new method gdb.Architecture.disassemble.
10887 (arch_object_methods): Add entry for the new method.
10889 2013-02-20 Jiong Wang <jiwang@tilera.com>
10891 * MAINTAINERS (Write After Approval): Add myself to the list.
10893 2013-02-19 Pedro Alves <palves@redhat.com>
10895 Garbage collect 'struct monitor_ops'::load_routine.
10897 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10898 * monitor.c (monitor_load): No longer call
10899 current_monitor->load_routine.
10900 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10901 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10902 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10904 2013-02-19 Pedro Alves <palves@redhat.com>
10908 Harmonize with generic_load.
10910 * monitor.c: Include "readline/readline.h".
10911 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10912 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10913 long/strtol for the 'load_offset' local. Error out if no argument
10914 is given or if too many arguments are given. Tilde expand the
10915 passed in file name.
10917 2013-02-19 Kai Tietz <ktietz@redhat.com>
10920 * symfile.c (load_section_data): Change type of load_offset
10922 (generic_load): User strtoulst instead of strtoul for conversion
10925 2013-02-19 Jiong Wang <jiwang@tilera.com>
10927 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10928 for return address, "lr" register, saved on stack.
10929 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10930 after we invoke tilegx_analyze_prologue.
10932 2013-02-19 Jiong Wang <jiwang@tilera.com>
10934 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10936 2013-02-19 Jiong Wang <jiwang@tilera.com>
10938 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10940 2013-02-19 Jiong Wang <jiwang@tilera.com>
10942 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10943 (tilegx_write_pc): New function.
10944 (tilegx_cannot_reference_register): Return zero if REGNO
10945 is TILEGX_FAULTNUM_REGNUM.
10946 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10947 (tilegx_register_name): Add handling of "faultnum" register.
10948 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10949 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10950 handling of TILEGX_FAULTNUM_REGNUM.
10951 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10953 2013-02-19 Jiong Wang <jiwang@tilera.com>
10955 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10956 should be aligned to 64bit.
10958 2013-02-19 Kai Tietz <ktietz@redhat.com>
10960 * windows-nat.c (windows_xfer_memory): Fix debug-output
10963 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10965 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10966 Don't check DSP register number if HAVE_DSP is not set.
10968 2013-02-19 Alan Modra <amodra@gmail.com>
10970 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10971 throughout file instead.
10972 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10973 Don't xmalloc return value.
10974 (build_id_verify): Similarly. Don't xfree.
10975 (build_id_to_debug_filename): Update.
10976 (find_separate_debug_file_by_buildid): Update, don't xfree.
10978 2013-02-18 Tom Tromey <tromey@redhat.com>
10981 * dwarf2read.c (read_subrange_type): Use result of
10984 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10986 * frame.c: Remove one extra white space after #include
10989 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10991 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10993 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10995 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10996 and dir commands into an if block.
10998 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11000 * python/py-breakpoint (struct pybp_code): Use int instead of
11003 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11004 Hafiz Abid Qadeer <abidh@codesourcery.com>
11006 * NEWS: Mention new field "trace-file".
11007 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11008 (tfile_open): Record the trace file's filename in the trace
11010 (tfile_files_info): Mention the name of the trace file.
11011 Check the "filename" field explicitely.
11012 (trace_status_command): Explicitely check "filename" field.
11013 (trace_find_command): Ditto.
11014 (trace_find_pc_command): Ditto.
11015 (trace_find_tracepoint_command): Ditto.
11016 (trace_find_line_command): Ditto.
11017 (trace_find_range_command): Ditto.
11018 (trace_find_outside_command): Ditto.
11019 * tracepoint.h (struct trace_status) <from_file>: Rename it
11020 to "filename" and make it hold the trace file's filename
11021 instead of a boolean.
11022 * remote.c (remote_get_trace_status): Initialize "filename"
11023 field with NULL instead of 0.
11025 2013-02-15 Yao Qi <yao@codesourcery.com>
11027 * remote.c: Fix a typo.
11029 2013-02-14 Pierre Muller <muller@sourceware.org>
11031 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11033 2013-02-14 Pedro Alves <palves@redhat.com>
11035 * utils.c (savestring): Don't #undef it. Move function to
11036 common/common-utils.c.
11037 * common/common-utils.c: Include gdb_string.h.
11038 (savestring): Move here from utils.c.
11039 * common/common-utils.h (savestring): Declare.
11041 2013-02-14 Pedro Alves <palves@redhat.com>
11043 * utils.c (savestring): Rename parameter 'size' to 'len'.
11045 2013-02-14 Pedro Alves <palves@redhat.com>
11046 Yufeng Zhang <yufeng.zhang@arm.com>
11048 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11049 (aarch64_inferior_data, struct aarch64_inferior_data):
11051 (struct aarch64_process_info): New.
11052 (aarch64_process_list): New global.
11053 (aarch64_find_process_pid, aarch64_add_process)
11054 (aarch64_process_info_get): New functions.
11055 (aarch64_inferior_data_get): Delete.
11056 (aarch64_process_info_get): New function.
11057 (aarch64_forget_process): New function.
11058 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11059 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11060 aarch64_get_debug_reg_state.
11061 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11062 instead of linux_nat_iterate_watchpoint_lwps.
11063 (aarch64_linux_new_fork): New function.
11064 (aarch64_linux_child_post_startup_inferior): Use
11065 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11066 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11067 (aarch64_linux_remove_hw_breakpoint)
11068 (aarch64_handle_aligned_watchpoint)
11069 (aarch64_handle_unaligned_watchpoint)
11070 (aarch64_linux_insert_watchpoint)
11071 (aarch64_linux_remove_watchpoint)
11072 (aarch64_linux_stopped_data_address): Adjust to pass the current
11073 process id to aarch64_debug_reg_state.
11074 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11075 linux_nat_new_fork hook, and aarch64_forget_process as
11076 linux_nat_forget_process hook; remove the call to
11077 register_inferior_data_with_cleanup.
11079 2013-02-14 Pedro Alves <palves@redhat.com>
11081 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11082 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11085 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11086 Hafiz Abid Qadeer <abidh@codesourcery.com>
11088 * tracepoint.h (validate_trace_state_variable_name): Declare.
11089 * tracepoint.c (validate_trace_state_variable_name): New.
11090 (trace_variable_command): Parse the trace state variable's name
11091 without using parse_expression. Do several validations.
11092 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11093 trace state variable's name with parse_expression. Validate it.
11095 2013-02-14 Yao Qi <yao@codesourcery.com>
11097 * infcmd.c (breakpoint_proceeded): Remove it.
11099 2013-02-14 Yao Qi <yao@codesourcery.com>
11101 * tracepoint.c (end_actions_pseudocommand): Make it static.
11102 (while_stepping_pseudocommand): Likewise.
11103 * tracepoint.h (end_actions_pseudocommand): Remove the
11105 (while_stepping_pseudocommand): Likewise.
11107 2013-02-14 Yao Qi <yao@codesourcery.com>
11109 * cli/cli-decode.c (help_cmd): Remove the declaration of
11111 (help_all): Likewise.
11113 2013-02-13 Pedro Alves <palves@redhat.com>
11115 * amd64-linux-nat.c (update_debug_registers_callback):
11117 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11119 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11120 i386_debug_reg_state.
11121 (amd64_linux_new_fork): New function.
11122 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11123 linux_nat_new_fork hook, and i386_forget_process as
11124 linux_nat_forget_process hook.
11125 * i386-linux-nat.c (update_debug_registers_callback):
11127 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11129 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11130 i386_debug_reg_state.
11131 (i386_linux_new_fork): New function.
11132 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11133 linux_nat_new_fork hook, and i386_forget_process as
11134 linux_nat_forget_process hook.
11135 * i386-nat.c (i386_init_dregs): Delete.
11136 (i386_inferior_data, struct i386_inferior_data):
11138 (struct i386_process_info): New.
11139 (i386_process_list): New global.
11140 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11142 (i386_inferior_data_get): Delete.
11143 (i386_process_info_get): New function.
11144 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11145 (i386_forget_process): New function.
11146 (i386_cleanup_dregs): Rewrite.
11147 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11148 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11149 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11150 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11151 to i386_debug_reg_state.
11152 (i386_use_watchpoints): Don't register inferior data.
11153 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11155 (i386_forget_process): Declare.
11156 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11157 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11158 New static globals.
11159 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11160 (add_initial_lwp): New, factored out from ...
11161 (add_lwp): ... this. Don't check the number of lwps before
11162 calling linux_nat_new_thread.
11163 (linux_nat_iterate_watchpoint_lwps): Delete.
11164 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11165 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11167 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11169 (linux_nat_kill, linux_nat_mourn_inferior): Call
11170 linux_nat_forget_process.
11171 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11172 (linux_nat_forget_process): New functions.
11173 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11175 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11176 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11178 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11179 (linux_nat_forget_process): New declarations.
11181 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11182 (amd64fbsd_mourn_inferior): New function.
11183 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11184 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11186 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11188 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11191 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11193 * aarch64-linux-nat.c (debug_reg_change_callback)
11194 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11197 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11199 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11202 2013-02-13 Pedro Alves <palves@redhat.com>
11203 Hafiz Abid Qadeer <abidh@codesourcery.com>
11205 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11207 2013-02-12 Tom Tromey <tromey@redhat.com>
11210 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11212 (classify_inner_name): Remove 'first_name' argument, add
11213 'context'. Remove unused variable.
11214 (yylex): Explicitly maintain the context type. Exit loop earlier
11215 if NAME result is seen.
11217 2013-02-12 Pedro Alves <palves@redhat.com>
11219 * amd64-darwin-tdep.c: Add (C) after Copyright.
11220 * cli/cli-cmds.h: Ditto.
11221 * cli/cli-decode.c: Ditto.
11222 * cli/cli-decode.h: Ditto.
11223 * cli/cli-dump.c: Ditto.
11224 * cli/cli-dump.h: Ditto.
11225 * cli/cli-interp.c: Ditto.
11226 * cli/cli-logging.c: Ditto.
11227 * cli/cli-script.c: Ditto.
11228 * cli/cli-script.h: Ditto.
11229 * cli/cli-setshow.c: Ditto.
11230 * cli/cli-setshow.h: Ditto.
11231 * cli/cli-utils.c: Ditto.
11232 * cli/cli-utils.h: Ditto.
11233 * config/alpha/nm-osf3.h: Ditto.
11234 * config/djgpp/djconfig.sh: Ditto.
11235 * config/i386/nm-fbsd.h: Ditto.
11236 * config/i386/nm-i386gnu.h: Ditto.
11237 * config/nm-linux.h: Ditto.
11238 * config/nm-nto.h: Ditto.
11239 * config/rs6000/nm-rs6000.h: Ditto.
11240 * config/sparc/nm-sol2.h: Ditto.
11241 * darwin-nat-info.c: Ditto.
11244 * gdb-demangle.h: Ditto.
11245 * i386-darwin-nat.c: Ditto.
11246 * i386-darwin-tdep.c: Ditto.
11247 * linux-fork.h: Ditto.
11248 * m32c-tdep.c: Ditto.
11249 * microblaze-linux-tdep.c: Ditto.
11250 * microblaze-rom.c: Ditto.
11251 * microblaze-tdep.c: Ditto.
11252 * microblaze-tdep.h: Ditto.
11253 * mips-linux-tdep.h: Ditto.
11254 * ppc-ravenscar-thread.c: Ditto.
11255 * ppc-ravenscar-thread.h: Ditto.
11256 * prologue-value.c: Ditto.
11257 * prologue-value.h: Ditto.
11258 * ravenscar-thread.c: Ditto.
11259 * ravenscar-thread.h: Ditto.
11260 * sparc-ravenscar-thread.c: Ditto.
11261 * sparc-ravenscar-thread.h: Ditto.
11262 * tilegx-linux-tdep.c: Ditto.
11263 * unwind_stop_reasons.def: Ditto.
11264 * windows-nat.h: Ditto.
11265 * xtensa-linux-tdep.c: Ditto.
11266 * xtensa-xtregs.c: Ditto.
11267 * regformats/regdat.sh: Ditto.
11268 * regformats/regdef.h: Ditto.
11270 2013-02-12 Pedro Alves <palves@redhat.com>
11272 * break-catch-sig.c: Update copyright years.
11274 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11276 Add support for a destructor for ui_out data and use it to
11277 provide a ui_out destructor.
11278 * ui-out.h: Declare the new ui_out destructor.
11279 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11280 * ui-out.c (default_data_destroy): Add a default data destructor
11281 which does nothing.
11282 (default_ui_out_impl): Set the new data_destroy field to
11283 default_data_destroy
11284 (uo_data_destroy): Local function which invokes the data
11285 destructor if present.
11286 (clear_table): Local function which clears the table data of a
11288 (ui_out_destroy): Public function which frees a ui_out object.
11289 (ui_out_table_end): Use the new clear_table function.
11290 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11292 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11295 2013-02-11 Doug Evans <dje@google.com>
11297 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11298 (printf_decfloat): New function. Broken out from ui_printf.
11299 Remove unnecessary code to shift the entire format string down.
11300 (printf_pointer): New function.
11301 (ui_printf): Code to print C strings, wide C strings, decfloats,
11302 and pointers moved to separate functions.
11304 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11306 * valops.c (value_assign): Handling bitfield offset in
11307 `lval_internalvar_component' case.
11309 2013-02-08 Doug Evans <dje@google.com>
11311 * common/format.c (parse_format_string): Fix whitespace.
11313 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11315 * stack.c (return_command): Work around uninitialized variable
11318 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11320 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11321 number of the registers from 36 to 34.
11323 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11325 * NEWS: Mention new AArch64 native and target support.
11327 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11329 * MAINTAINERS (Write After Approval): Add myself.
11331 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11332 Marcus Shawcroft <marcus.shawcroft@arm.com>
11333 Nigel Stephens <nigel.stephens@arm.com>
11334 Yufeng Zhang <yufeng.zhang@arm.com>
11336 * aarch64-linux-nat.c: New file.
11337 * config/aarch64/linux.mh: New file.
11338 * configure.host: Add AArch64.
11339 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11341 2013-02-07 Doug Evans <dje@google.com>
11343 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11344 disassemble command.
11346 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11348 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11349 set_gdbarch_fetch_tls_load_module_address.
11351 2013-02-06 David S. Miller <davem@davemloft.net>
11353 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11354 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11355 * value.c (struct_return_convention): New function.
11356 (using_struct_return): Implement in terms of struct_return_convention.
11357 * value.h (struct_return_convention): Declare.
11358 * stack.c (return_command): Allow successful overriding of the return
11359 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11361 2013-02-06 Tom Tromey <tromey@redhat.com>
11363 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11364 outside of TRY_CATCH.
11366 2013-02-06 Yao Qi <yao@codesourcery.com>
11368 * mi/mi-interp.c: Include "tracepoint.h".
11369 (mi_tsv_modified): Declare.
11370 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11371 (mi_interpreter_init): Call observer_attach_tsv_modified.
11372 (mi_tsv_modified): New.
11373 (mi_tsv_created, mi_tsv_deleted): Update.
11374 * tracepoint.c (trace_variable_command): Call
11375 observer_notify_tsv_modified if the initial value of tsv is
11377 (delete_trace_state_variable): Call
11378 observer_notify_tsv_deleted earlier.
11379 (trace_variable_command): Caller update.
11380 (create_tsv_from_upload): Likewise.
11381 * observer.sh: Declare "struct trace_state_variable".
11383 * NEWS: Mention the new MI notification "=tsv-modified".
11385 2013-02-05 Doug Evans <dje@google.com>
11387 * completer.c (location_completer): Fix typo in comment.
11389 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11391 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11394 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11396 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11397 Refactor if statement to avoid trailing || operator.
11399 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11401 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11403 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11405 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11406 * configure.host: Add powerpc*-*-freebsd* target.
11407 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11408 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11409 * config/powerpc/fbsd.mh: New file.
11411 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11412 Denys Vlasenko <dvlasenk@redhat.com>
11413 Pedro Alves <palves@redhat.com>
11415 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11416 (struct elf_internal_linux_prpsinfo): Forward declare.
11417 * gdbarch.h, gdbarch.c: Regenerate.
11418 * linux-tdep.c: Include `cli/cli-utils.h'.
11419 (linux_fill_prpsinfo): New function.
11420 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11421 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11422 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11423 depending on gdbarch pointer bitness.
11424 * ppc-linux-tdep.c: Include elf-bfd.h.
11425 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11428 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11429 Marcus Shawcroft <marcus.shawcroft@arm.com>
11430 Nigel Stephens <nigel.stephens@arm.com>
11431 Yufeng Zhang <yufeng.zhang@arm.com>
11433 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11435 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11436 Marcus Shawcroft <marcus.shawcroft@arm.com>
11437 Nigel Stephens <nigel.stephens@arm.com>
11438 Yufeng Zhang <yufeng.zhang@arm.com>
11440 * aarch64-newlib-tdep.c: New file.
11441 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11443 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11444 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11445 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11446 * osabi.c (gdb_osabi_names): Add "Newlib".
11448 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11449 Marcus Shawcroft <marcus.shawcroft@arm.com>
11450 Nigel Stephens <nigel.stephens@arm.com>
11451 Yufeng Zhang <yufeng.zhang@arm.com>
11453 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11454 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11455 * aarch64-linux-tdep.c: New file.
11456 * aarch64-linux-tdep.h: New file.
11457 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11458 * configure.tgt: Add aarch64-none-linux-gnu.
11460 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11461 Marcus Shawcroft <marcus.shawcroft@arm.com>
11462 Nigel Stephens <nigel.stephens@arm.com>
11463 Yufeng Zhang <yufeng.zhang@arm.com>
11465 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11466 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11467 (ALLDEPFILES): Add aarch64-tdep.c.
11468 * aarch64-tdep.c: New file.
11469 * aarch64-tdep.h: New file.
11470 * configure.tgt: Add AArch64.
11471 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11472 (aarch64-expedite): New definition.
11473 * features/aarch64-core.xml: New file.
11474 * features/aarch64-fpu.xml: New file.
11475 * features/aarch64-without-fpu.c: New file (generated).
11476 * features/aarch64-without-fpu.xml: New file.
11477 * features/aarch64.c: New file (generated).
11478 * features/aarch64.xml: New file.
11479 * regformats/aarch64-without-fpu.dat: New file (generated).
11480 * regformats/aarch64.dat: New file (generated).
11482 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11484 * contrib/expect-read1.c: New file.
11485 * contrib/expect-read1.sh: New file.
11487 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11489 * dwarf2read.c (file_file_name): New function with code from
11491 (file_full_name): Move most of the code to file_file_name.
11492 (macro_start_file): Rename variable full_name to file_name and use
11493 file_file_name for it. Add comp_dir parameter to new_macro_table.
11494 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11495 macro_source_file->filename access by macro_source_fullname call.
11496 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11498 * macrotab.c (struct macro_table): New field comp_dir.
11499 (macro_include): New variables link_fullname and source_fullname.
11500 Replace any macro_source_file->filename access by macro_source_fullname
11502 (macro_lookup_inclusion): Remove the partial filenames checking code.
11503 (check_for_redefinition): New variables source_fullname and
11504 found_key_fullname. Replace any macro_source_file->filename access by
11505 macro_source_fullname call.
11506 (macro_undef): New variables source_fullname and key_fullname. Replace
11507 any macro_source_file->filename access by macro_source_fullname call.
11508 (macro_lookup_definition): New variables retval and source_fullname.
11509 Replace any macro_source_file->filename access by macro_source_fullname
11511 (foreach_macro): New variable key_fullname. Replace any
11512 macro_source_file->filename access by macro_source_fullname call.
11513 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11514 macro_source_file->filename access by macro_source_fullname call.
11515 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11516 (macro_source_fullname): New function.
11517 * macrotab.h (struct macro_source_file): Extent the filename field
11519 (new_macro_table): New parameter comp_dir, add a comment for it.
11520 (macro_source_fullname): new declaration.
11522 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11524 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11525 this_real_name to outer block. Use it also for
11526 compare_filenames_for_search.
11527 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11528 with dw2_get_real_path for file_matcher, considering also
11529 BASENAMES_MAY_DIFFER.
11530 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11532 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11534 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11535 to the file_matcher parameter. Pass 0 to it.
11536 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11537 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11538 NULL psymtab_to_fullname result.
11539 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11540 an expected filename instead.
11541 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11542 file_matcher parameter. Call also psymtab_to_fullname, after newly
11543 considering BASENAMES_MAY_DIFFER.
11544 * source.c (rewrite_source_path): Remove static.
11545 * source.h (rewrite_source_path): New declaration.
11546 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11547 the expand_symtabs_matching field. Comment it.
11548 * symtab.c (file_matches): New function comment. Add parameter
11549 basenames, implement it.
11550 (search_symbols_file_matches): Add basenames parameter. Update the
11551 file_matches caller.
11552 (search_symbols): Match FILES also against symtab_to_fullname.
11553 Optimize it for BASENAMES_MAY_DIFFER.
11555 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11557 * source.c (print_source_lines_base): Print for TUI also "fullname".
11558 * tui/tui-data.c (init_content_element): Change tui_locator_element
11559 field to full_name.
11560 * tui/tui-data.h (struct tui_locator_element): Likewise.
11561 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11562 tui_update_locator_filename calls to tui_update_locator_fullname.
11563 Replace symtab->filename refererence by symtab_to_fullname call.
11564 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11565 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11566 field to full_name. Replace symtab->filename refererence by
11567 symtab_to_fullname call.
11568 (tui_show_symtab_source): Rename parameter to fullname. Change
11569 tui_locator_element field to full_name.
11570 * tui/tui-stack.c: Include source.h.
11571 (tui_set_locator_filename): Rename the declaration to ...
11572 (tui_set_locator_fullname): ... here. Rename its parameter to
11573 fullname, updates its comment.
11574 (tui_set_locator_info): Rename its parameter to fullname.
11575 (tui_set_locator_filename): Rename the definition to ...
11576 (tui_set_locator_fullname): ... here. Rename its parameter to
11577 fullname, updates its comment. Change tui_locator_element field to
11579 (tui_set_locator_info): Rename its parameter to fullname.
11580 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11581 (tui_update_locator_filename): Rename to ...
11582 (tui_update_locator_fullname): ... here. Rename callee to
11583 tui_set_locator_fullname.
11584 (tui_show_frame_info): Replace symtab->filename refererence by
11585 symtab_to_fullname call.
11586 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11587 (tui_update_locator_fullname): ... here.
11588 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11589 tui_update_locator_fullname. Replace symtab->filename refererence by
11590 symtab_to_fullname call.
11591 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11592 Rename the callee to tui_update_locator_fullname.
11593 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11595 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11597 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11598 by symtab_to_filename_for_display calls.
11599 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11600 (clear_command): New variable sal_fullname, initialize it. Replace
11601 compare_filenames_for_search by filename_cmp with sal_fullname.
11602 (say_where, update_static_tracepoint): Replace symtab->filename
11603 refererences by symtab_to_filename_for_display calls.
11604 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11606 * dwarf2read.c: Include source.h.
11607 (fixup_go_packaging): Replace symtab->filename refererences by
11608 symtab_to_filename_for_display calls.
11609 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11610 Replace symtab->filename refererences by symtab_to_filename_for_display
11612 (create_sals_line_offset, convert_linespec_to_sals): New variable
11613 fullname, initialize it, replace symtab->filename reference by the
11615 * linux-fork.c: Include source.h.
11616 (info_checkpoints_command): Replace symtab->filename refererences by
11617 symtab_to_filename_for_display calls.
11618 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11619 by symtab_to_filename_for_display calls.
11620 * mdebugread.c: Include source.h.
11621 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11622 symtab_to_filename_for_display calls.
11623 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11624 (mi_cmd_file_list_exec_source_files): Likewise.
11625 * printcmd.c: Include source.h.
11626 (build_address_symbolic): Replace symtab->filename refererences by
11627 symtab_to_filename_for_display calls.
11628 * psymtab.c (partial_map_symtabs_matching_filename)
11629 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11630 with psymtab_to_fullname.
11631 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11632 by symtab_to_filename_for_display calls.
11633 (stpy_get_filename): New variable filename, initialize it, use instead
11634 of symtab->filename refererences.
11635 (salpy_str): Make variable filename const char *. Replace
11636 symtab->filename refererences by symtab_to_filename_for_display calls.
11637 * skip.c: Include source.h and filenames.h.
11638 (skip_file_command): Remove const from the symtab variable. Replace
11639 symtab->filename refererences by symtab_to_fullname call.
11640 (function_name_is_marked_for_skip): New variables searched_for_fullname
11641 and fullname. Use them to search also with symtab's fullname.
11642 * source.c (find_source_lines): Replace symtab->filename refererences
11643 by symtab_to_filename_for_display calls.
11644 (print_source_lines_base): New variable filename, use it instead of
11645 symtab->filename. Replace symtab->filename refererences by
11646 symtab_to_filename_for_display calls.
11647 (line_info, forward_search_command): Replace symtab->filename
11648 refererences by symtab_to_filename_for_display calls.
11649 (reverse_search_command): Replace symtab->filename refererences by
11650 symtab_to_filename_for_display calls. New variable filename for it.
11651 * stack.c (frame_info): Likewise.
11652 * symmisc.c: Include source.h.
11653 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11654 (maintenance_info_symtabs): Replace symtab->filename refererences by
11655 symtab_to_filename_for_display calls.
11656 * symtab.c (iterate_over_some_symtabs): Call
11657 compare_filenames_for_search also with symtab_to_fullname.
11658 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11659 symtab->filename refererences by symtab_to_filename_for_display calls.
11660 (find_line_symtab): Replace symtab->filename refererences by
11661 symtab_to_filename_for_display calls.
11662 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11663 (print_symbol_info): Make the last parameter const char *. New
11664 variable s_filename. Use it in the function.
11665 (symtab_symbol_info): Make the last_filename variable const char *.
11666 Replace symtab->filename refererences by symtab_to_filename_for_display
11668 (rbreak_command): New variable fullname. Use it. Replace
11669 symtab->filename refererence by symtab_to_filename_for_display call.
11670 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11671 (print_one_static_tracepoint_marker): Replace symtab->filename
11672 refererences by symtab_to_filename_for_display calls.
11673 * tui/tui-source.c (tui_set_source_content): New variables filename and
11674 s_filename. Replace symtab->filename refererences by this variable.
11675 Replace other symtab->filename refererences by
11676 symtab_to_filename_for_display calls.
11678 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11679 Jan Kratochvil <jan.kratochvil@redhat.com>
11681 Add a new variable that controls a way in which filenames are
11683 * NEWS (set filename-display): New entry.
11684 * source.c (filename_display_basename, filename_display_relative)
11685 (filename_display_absolute, filename_display_kind_names)
11686 (filename_display_string, show_filename_display_string)
11687 (symtab_to_filename_for_display): New.
11688 (_initialize_source): Added initialization of 'filename-display'
11690 * source.h (symtab_to_filename_for_display): Added declaration.
11691 * stack.c (print_frame): Added new variable and calling of a new
11692 function and condition with this variable. Changed third argument of
11693 calling of a function.
11695 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11697 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11698 Rename field reference filename to fullname.
11699 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11700 fullname. New comment for it.
11701 * tui/tui-source.c (tui_set_source_content): Rename field reference
11702 filename to fullname. Initialize field by symtab_to_fullname now.
11703 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11704 reference filename to fullname. Use symtab_to_fullname during
11707 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11710 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11711 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11712 filename to fullname. Rename variable this_name to this_fullname.
11713 Lowercase FILENAME_CMP call.
11714 (dw2_find_symbol_file): New comment for the returned string.
11715 (dwarf2_gdb_index_functions): Rename the function to
11716 dw2_expand_symtabs_with_fullname.
11717 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11718 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11720 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11721 * symfile.h (struct quick_symbol_functions): Rename field
11722 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11723 parameter filename to fullname. Document returned string meaning for
11725 * symtab.c (find_line_symtab): Rename the called function to
11726 expand_symtabs_with_fullname.
11728 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11731 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11732 call of filename_cmp with compare_filenames_for_search.
11733 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11734 is_abs, unify the call of FILENAME_CMP with
11735 compare_filenames_for_search. New gdb_asserts for real_path and name.
11736 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11737 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11738 * symfile.h (struct quick_symbol_functions): Extend the comment for
11739 map_symtabs_matching_filename.
11740 * symtab.c (compare_filenames_for_search): Remove the function comment
11741 relative path requirement. Handle absolute filenames, with a comment.
11742 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11743 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11744 real_path and name. Unify the call of compare_filenames_for_search
11746 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11748 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11751 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11752 source_file references by symtab field references. Remove variables
11754 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11755 (clear_command, say_where): Replace bp_location field source_file
11756 references by symtab field references.
11757 (bp_location_dtor): Remove the source_file reference.
11758 (update_static_tracepoint): Replace bp_location field source_file
11759 references by symtab field references.
11760 (breakpoint_free_objfile): New function.
11761 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11762 Replace the field source_file by field symtab, extend its comment.
11763 (breakpoint_free_objfile): New declaration.
11764 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11765 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11766 field source_file references by symtab field references.
11768 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11770 Replace xfullpath calls by gdb_realpath calls.
11771 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11773 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11774 Remove it from the iterate_over_some_symtabs call.
11775 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11776 Remove it from the dw2_map_expand_apply calls, remove a block handling
11778 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11779 Remove it from the iterate_over_some_symtabs call.
11780 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11781 Remove it from the partial_map_expand_apply calls, remove a block
11782 handling it. Drop gdb_realpath call and cleanups from the real_path
11784 * source.c (openp): Drop the comment part about xfullpath. Replace
11785 xfullpath calls by gdb_realpath calls.
11786 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11787 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11788 from method map_symtabs_matching_filename and its comment.
11789 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11791 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11792 remove it also from the function comment, remove a block handling it.
11793 Drop gdb_realpath call and cleanups from the real_path handling.
11794 (iterate_over_symtabs): Drop variable full_path and its use.
11795 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11796 * utils.c (xfullpath): Remove.
11797 * utils.h (xfullpath): Remove.
11799 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11801 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11802 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11803 (ALLDEPFILES): Add ppc64-tdep.c.
11804 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11805 ppc64-tdep.o to gdb_target_obs.
11806 * ppc64-tdep.h: New file.
11807 * ppc64-tdep.c: New file.
11808 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11809 ppc-linux-tdep.c to here.
11810 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11811 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11812 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11813 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11814 from ppc-linux-tdep.c to here.
11815 (ppc64_convert_from_func_ptr_addr): Rename from
11816 ppc64_linux_convert_from_func_ptr_addr to
11817 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11820 (read_insn): Move from ppc-linux-tdep.c to here.
11821 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11822 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11823 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11824 Removed above functions.
11825 (ppc_linux_init_abi): Adjust.
11827 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11829 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11831 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11833 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11835 2013-02-01 Pedro Alves <palves@redhat.com>
11837 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11838 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11840 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11842 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11843 files with no separate debug info.
11844 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11845 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11846 only for files with no separate debug info.
11848 2013-01-31 Tom Tromey <tromey@redhat.com>
11850 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11852 (struct jit_program_space_data): Rename from jit_inferior_data.
11854 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11855 Change return type. Attach data to program space.
11856 (jit_program_space_data_cleanup): Rename from
11857 jit_inferior_data_cleanup; change argument type.
11858 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11860 (jit_register_code): Update.
11861 (jit_update_inferior_cache): Remove.
11862 (jit_breakpoint_deleted): Get jit data from the location's program
11864 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11865 'ps_data', change type.
11866 (jit_inferior_init, jit_breakpoint_re_set_internal)
11867 (jit_event_handler): Update.
11868 (free_objfile_data): Get data from objfile's program space.
11869 (_initialize_jit): Update.
11871 2013-01-31 Tom Tromey <tromey@redhat.com>
11874 * jit.c (struct jit_inferior_data) <cached_code_address,
11875 jit_breakpoint>: New fields.
11876 (jit_breakpoint_re_set_internal): Fix logging. Only create
11877 breakpoint if cached address has changed.
11878 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11880 (_initialize_jit): Register breakpoint deleted observer.
11882 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11884 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11885 (save_infcall_suspend_state): Ifdef out unused inf.
11886 (restore_infcall_suspend_state): Ifdef out unused inf.
11887 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11888 (jit_frame_sniffer): Remove unused inf_data.
11890 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11892 * c-exp.y (classify_inner_name): Remove unused type.
11893 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11894 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11896 (c_get_string): Remove unused kind.
11897 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11899 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11901 * charset.c (intermediate_encoding): Remove unused i.
11902 * completer.c (signal_completer): Remove unused i.
11903 * continuations.c (discard_my_continuations_1): Remove unused
11905 * corelow.c (core_close): Remove unuseD name.
11906 (get_core_siginfo): Remove unused pid.
11907 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11909 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11910 (loclist_describe_location): Remove unused first.
11911 * event-top.c (command_line_handler): Remove unused got_eof.
11912 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11913 (resize_section_table): Remove unused old_value.
11914 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11915 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11916 * i386-tdep.c (i386_process_record): Remove unused rex.
11917 * infcmd.c (get_return_value): Remove unused uiout.
11918 * jv-lang.c (type_from_class): Remove unused is_array.
11919 * jv-valprint.c (java_val_print): Remove unused i.
11920 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11921 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11922 * m2-typeprint.c (m2_print_type): Remove unused code.
11923 * macroexp.c (get_character_constant): Remove unused body_start.
11924 (macro_stringify): Remove unused result.
11925 * objc-lang.c (find_methods): Remove unused gdbarch.
11926 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11927 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11928 * stack.c (print_frame_args): Remove unused summary.
11929 * thread.c (thread_apply_command): Remove unused p.
11930 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11931 * valops.c (search_struct_method): Remove unused skip.
11932 * valprint.c (generic_val_print): Remove unused byte_order.
11933 * varobj.c (varobj_update): Remove unused changed.
11934 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11935 (alias_command): Remove unused c.
11936 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11937 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11939 (mi_cmd_data_write_memory): Remove unused word_format.
11940 (mi_cmd_data_write_memory_bytes): Remove unused r.
11941 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11943 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11944 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11947 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11949 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11950 * symtab.c (iterate_over_symtabs): Remove unused s.
11951 (find_pc_sect_symtab): Remove unused pspAce.
11952 (find_pc_sect_line): Remove unused alt_symtab.
11953 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11954 (completion_list_add_name): Remove unused newsize.
11956 2013-01-31 Tom Tromey <tromey@redhat.com>
11959 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11962 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11964 * target.c (target_read_string): Remove unused origlen.
11966 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11968 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11969 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11970 * ax-general.c (ax_print): Remove unused is_float.
11971 * blockframe.c (block_innermost_frame): Remove unused start, end.
11972 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11974 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11976 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11977 (svr4_read_so_list): Remove unused lmo.
11978 * solib-target.c (solib_target_relocate_section_addresses): Remove
11981 2013-01-30 Tom Tromey <tromey@redhat.com>
11983 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11985 2013-01-30 Tom Tromey <tromey@redhat.com>
11987 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11988 * utils.c (gnu_debuglink_crc32): Remove.
11989 * utils.h (gnu_debuglink_crc32): Don't declare.
11991 2013-01-30 Tom Tromey <tromey@redhat.com>
11993 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11994 (read_structure_type, read_enumeration_type): Remove cast.
11996 2013-01-30 Tom Tromey <tromey@redhat.com>
11998 * dwarf2read.c (read_namespace_type): Remove cast.
11999 (read_typedef): Likewise.
12001 2013-01-29 Tom Tromey <tromey@redhat.com>
12003 * dwarf2read.c (free_dwo_file): Remove assert.
12005 2013-01-29 Tom Tromey <tromey@redhat.com>
12007 * value.c (deprecated_set_value_modifiable): Remove.
12008 * value.h (deprecated_set_value_modifiable): Remove.
12010 2013-01-28 Doug Evans <dje@google.com>
12012 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12013 to addresses from dwo files.
12015 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12017 * valops.c (find_overload_match): Remove unused argument 'lax'.
12018 * value.h: Remove unused argument 'lax' from the declaration of
12019 find_overload_match.
12020 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12021 to find_overload_match.
12022 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12023 argument to find_overload_match.
12025 2013-01-25 Tom Tromey <tromey@redhat.com>
12027 * dwarf2read.c (processing_has_namespace_info): Remove.
12028 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12029 (process_die, read_func_scope, dwarf2_start_symtab)
12030 (new_symbol_full): Update.
12032 2013-01-25 Tom Tromey <tromey@redhat.com>
12034 * cp-namespace.c (cp_set_block_scope): Remove.
12035 * cp-support.h (cp_set_block_scope): Remove.
12036 * dbxread.c: Include block.h.
12037 (cp_set_block_scope): New function.
12038 (process_one_symbol): Update.
12039 * dwarf2read.c (read_func_scope): Use block_set_scope.
12041 2013-01-25 Pedro Alves <palves@redhat.com>
12043 * remote.c (add_current_inferior_and_thread): Tweak comment.
12045 2013-01-25 Tom Tromey <tromey@redhat.com>
12047 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12048 (cp_add_using_directive): Add 'copy_names' argument.
12049 * cp-support.h (cp_add_using_directive): Update.
12050 (struct using_direct) <import_src, import_dest, alias,
12051 declaration>: Now const.
12052 * dwarf2read.c (read_import_statement): Use obconcat.
12053 Don't copy names passed to cp_add_using_directive.
12055 2013-01-25 Tom Tromey <tromey@redhat.com>
12057 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12059 2013-01-25 Pedro Alves <palves@redhat.com>
12061 * remote.c (stop_reply_extract_thread): New.
12062 (add_current_inferior_and_thread): New parameter 'wait_status'.
12064 (remote_start_remote): Pass wait status to
12065 add_current_inferior_and_thread.
12066 (extended_remote_run): Update comment.
12067 (extended_remote_create_inferior_1): Pass wait status to
12068 add_current_inferior_and_thread.
12070 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12071 Ulrich Weigand <uweigand@de.ibm.com>
12073 * valarith.c (value_vector_widen): New function for replicating a
12074 scalar into a vector.
12075 (value_binop): Use value_vector_widen to widen scalar to vector
12076 rather than casting, this better matches gcc C behaviour.
12077 * valops.c (value_casst): Update logic for casting between vector
12078 types, and for casting from scalar to vector, try to match gcc C
12080 * value.h (value_vector_widen): Declare.
12081 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12082 function, handle special case for casting scalar to vector.
12083 (opencl_relop): Use opencl_value_cast.
12084 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12085 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12086 in order to use opencl_value_cast.
12088 2013-01-25 Yao Qi <yao@codesourcery.com>
12090 * event-loop.c: Include "queue.h".
12091 (gdb_event_p): New typedef.
12092 (DECLARE_QUEUE_P): Use.
12093 (DEFINE_QUEUE_P): Use.
12094 (async_queue_event): Remove.
12095 (gdb_event_xfree): New.
12096 (initialize_event_loop): New.
12097 (process_event): Use QUEUE macros.
12098 (event_queue): Remove.
12099 (gdb_wait_for_event): Caller update.
12100 (check_async_event_handlers): Likewise.
12101 (poll_timers): Likewise.
12102 * event-loop.h (initialize_event_loop): Declare.
12103 * event-loop.c (gdb_event_xfree): New.
12104 * top.c (gdb_init): Call initialize_event_loop.
12106 2013-01-25 Yao Qi <yao@codesourcery.com>
12108 * event-loop.c (async_queue_event): Remove one parameter
12109 'position'. Remove code handling 'position' == TAIL.
12110 (gdb_wait_for_event): Caller update.
12111 (check_async_event_handlers): Caller update.
12112 (poll_timers): Caller update.
12113 * event-loop.h (enum queue_position): Remove.
12115 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12117 * MAINTAINERS: Update my email.
12119 2013-01-25 Yao Qi <yao@codesourcery.com>
12121 * main.c (print_gdb_help): Remove "--epoch" from the help
12124 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12126 * symtab.c (skip_prologue_using_sal): Consider a file
12127 change the same as an increased line number
12129 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12131 * MAINTAINERS (Write After Approval): Add myself to the list.
12133 2013-01-24 Tom Tromey <tromey@redhat.com>
12135 * ada-lang.h (ada_decode_symbol): Make return type const.
12136 * ada-lang.c (ada_decode_symbol): Likewise.
12138 2013-01-23 Doug Evans <dje@google.com>
12140 * linespec.c (find_linespec_symbols): Make static.
12142 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12144 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12145 type on float conversion for complex type.
12147 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12149 Add a new class gdb.Architecture which exposes GDB's
12150 internal representation of architecture via GDB Python API.
12151 * Makefile.in: Add entries corresponding to the new file
12153 * NEWS (Python Scripting): Add entries for the new class
12154 gdb.Architecture and the new method gdb.Frame.architecture.
12155 * python/py-arch.c: Implement gdb.Architecture class.
12156 * python/py-frame.c (frapy_arch): Implement the method
12157 gdb.Frame.architecture().
12158 (frame_object_methods): Add 'architecture' to the method table.
12159 * python/python-internal.h: Add declarations of new utility
12161 * python/python.c (_initialize_python): Initialize
12162 gdb.Architecture class.
12164 2013-01-23 Doug Evans <dje@google.com>
12166 Work around binutils/15021.
12167 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12168 type_unit_group out of union s. All uses updated.
12169 (read_index_from_section): Watch for index version 8.
12170 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12171 an imported symtab.
12172 (write_psymtabs_to_index): Increment version number to 8.
12174 2013-01-22 Pedro Alves <palves@redhat.com>
12176 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12179 2013-01-22 Pedro Alves <palves@redhat.com>
12181 * annotate.c (annotate_breakpoints_changed): Rename to ...
12182 (annotate_breakpoints_invalid): ... this. Make static.
12183 (breakpoint_changed): Adjust.
12184 (_initialize_annotate): Always install the observers. Install a
12185 "breakpoint_created" observer.
12186 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12187 * breakpoint.c (set_breakpoint_condition)
12188 (breakpoint_set_commands, do_map_commands_command)
12189 (init_raw_breakpoint, clear_command, set_ignore_count)
12190 (enable_breakpoint_disp): No longer call
12191 annotate_breakpoints_changed.
12193 2013-01-22 Pedro Alves <palves@redhat.com>
12195 * annotate.c: Include "inferior.h".
12196 (frames_invalid_emitted)
12197 (breakpoints_invalid_emitted): New globals.
12198 (async_background_execution_p): New function.
12199 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12200 emitting the annotation if it has already been emitted.
12201 (annotate_display_prompt): New function.
12202 * annotate.h (annotate_display_prompt): New declaration.
12203 * event-top.c: Include annotate.h.
12204 (display_gdb_prompt): Call annotate_display_prompt.
12206 2013-01-22 Pedro Alves <palves@redhat.com>
12208 * annotate.c (ignore_count_changed): Delete.
12209 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12210 (annotate_ignore_count_change): Delete.
12211 (annotate_stopped): Don't emit a delayed breakpoints-changed
12213 * annotate.h (annotate_ignore_count_change): Delete.
12214 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12215 annotate_ignore_count_change.
12217 2013-01-22 Tom Tromey <tromey@redhat.com>
12219 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12220 require_rvalue for a register location.
12222 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12224 * breakpoint.c (print_one_breakpoint_location): Add MI
12225 field 'thread-groups' when printing a breakpoint.
12226 (output_thread_groups): New function.
12228 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12230 * python/lib/gdb/commands/explore.py
12231 (CompoundExplorer.explore_expr): Correct the name of a method
12233 (ExploreTypeCommand.invoke): Add a missing 'return'.
12235 2013-01-21 Tom Tromey <tromey@redhat.com>
12237 * gdb_obstack.h (obconcat): Move declaration here, from...
12238 * symfile.h (obconcat): ... here.
12239 * gdb_obstack.c: New file.
12240 (obconcat): Move from...
12241 * symfile.c (obconcat): ... here.
12242 * Makefile.in (SFILES): Add gdb_obstack.c.
12243 (COMMON_OBS): Add gdb_obstack.o.
12245 2013-01-21 Tom Tromey <tromey@redhat.com>
12247 * symfile.h (obsavestring): Don't declare.
12248 * symfile.c (obsavestring): Remove.
12249 * ada-exp.y: Use obstack_copy0, not obsavestring.
12250 * ada-lang.c: Use obstack_copy0, not obsavestring.
12251 * coffread.c: Use obstack_copy0, not obsavestring.
12252 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12253 * dbxread.c: Use obstack_copy0, not obsavestring.
12254 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12255 * jit.c: Use obstack_copy0, not obsavestring.
12256 * mdebugread.c: Use obstack_copy0, not obsavestring.
12257 * psymtab.c: Use obstack_copy0, not obsavestring.
12258 * stabsread.c: Use obstack_copy0, not obsavestring.
12259 * xcoffread.c: Use obstack_copy0, not obsavestring.
12261 2013-01-21 Tom Tromey <tromey@redhat.com>
12263 * dwarf2read.c (fixup_go_packaging): Save package name
12264 on objfile obstack.
12265 * gdbtypes.c (init_type): Don't copy name.
12267 2013-01-21 Tom Tromey <tromey@redhat.com>
12269 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12271 (struct attribute) <u.str>: Now const.
12272 (struct fnfieldlist) <name>: Now const.
12273 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12274 (partial_die_parent_scope): Make return type const.
12275 (partial_die_full_name, add_partial_symbol): Update.
12276 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12278 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12279 (read_file_scope, read_func_scope, dwarf2_add_field)
12280 (dwarf2_add_member_fn, read_structure_type)
12281 (process_enumeration_scope, read_array_type, read_module_type)
12282 (read_base_type, read_subrange_type): Update.
12283 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12284 (new_symbol_full, guess_full_die_structure_name): Update.
12285 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12286 (dwarf2_name): Return const type.
12287 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12290 2013-01-21 Tom Tromey <tromey@redhat.com>
12292 * gdbtypes.c (init_type): Make 'name' const.
12293 * gdbtypes.h (init_type): Update.
12295 2013-01-21 Tom Tromey <tromey@redhat.com>
12297 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12298 (start_symtab): Make 'name' and 'dirname' const. Use
12299 set_last_source_file.
12300 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12301 (last_source_file): Define. Now static.
12302 (set_last_source_file, get_last_source_file): New functions.
12303 * buildsym.h (last_source_file): Don't declare.
12304 (start_symtab): Update.
12305 (set_last_source_file, get_last_source_file): Declare.
12306 * coffread.c (complete_symtab): Use set_last_source_file.
12307 (coff_end_symtab): Likewise.
12308 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12309 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12310 set_last_source_file.
12311 (process_one_symbol): Use get_last_source_file.
12312 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12313 (psymtab_to_symtab_1): Use get_last_source_file.
12314 * xcoffread.c (process_linenos): Use get_last_source_file.
12315 (complete_symtab): Use set_last_source_file.
12316 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12317 (scan_xcoff_symtab): Use set_last_source_file.
12319 2013-01-21 Tom Tromey <tromey@redhat.com>
12321 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12322 (symbol_set_names): Remove casts. Handle field const-ness.
12324 2013-01-21 Tom Tromey <tromey@redhat.com>
12326 * dwarf2read.c (new_symbol_full): Remove cast.
12327 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12328 * symtab.h (symbol_set_demangled_name): Update.
12330 2013-01-21 Tom Tromey <tromey@redhat.com>
12332 * main.c (captured_main): Call bfd_init.
12334 2013-01-21 Tom Tromey <tromey@redhat.com>
12336 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12337 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12338 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12341 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12343 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12345 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12347 Fix gdb.fortran/common-block.exp crash in PIE mode.
12348 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12350 * f-valprint.c (info_common_command_for_block): Expect
12351 LOC_COMMON_BLOCK in gdb_assert.
12352 * symtab.h (struct general_symbol_info): Update comment for the
12353 common_block member.
12354 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12355 (enum address_class): New member LOC_COMMON_BLOCK.
12357 2013-01-18 David Blaikie <dblaikie@gmail.com>
12359 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12361 2013-01-18 Tom Tromey <tromey@redhat.com>
12364 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12365 Call require_rvalue.
12367 2013-01-18 Yao Qi <yao@codesourcery.com>
12369 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12370 (dbx_read_symtab): New declaration.
12371 (dbx_psymtab_to_symtab): Delete.
12372 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12373 Rename parameter PST to SELF. Exchanged two parameters.
12374 (start_psymtab): Caller update.
12375 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12376 (dwarf2_read_symtab): New declaration.
12377 (dwarf2_psymtab_to_symtab): Delete.
12378 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12379 Rename parameter PST to SELF. Exchanged two parameters.
12380 (create_partial_symtab): Caller update.
12381 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12382 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12383 Rename parameter PST to SELF. Exchanged two parameters.
12384 (parse_partial_symbols, new_psymtab): Caller update.
12385 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12387 * psymtab.c (psymtab_to_symtab): Caller update.
12388 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12389 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12390 Rename parameter PST to SELF. Exchanged two parameters.
12391 (xcoff_start_psymtab): Caller update.
12393 2013-01-18 Yao Qi <yao@codesourcery.com>
12395 * infrun.c (proceed): Rename local variable 'oneproc' to
12398 2013-01-17 Doug Evans <dje@google.com>
12400 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12401 (dw2_build_type_unit_groups): Delete. All uses updated.
12403 * symtab.h (struct symbol_search): Add comment.
12405 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12407 * symtab.c (compare_filenames_for_search): New comment for
12410 2013-01-17 Tom Tromey <tromey@redhat.com>
12412 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12414 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12416 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12417 initialize it by existing make_cleanup. Call new do_cleanups.
12419 2013-01-17 Tom Tromey <tromey@redhat.com>
12421 * cp-abi.c (cp_abi_completer): New function.
12422 (_initialize_cp_abi): Set completer for "set cp-abi".
12424 2013-01-17 Tom Tromey <tromey@redhat.com>
12426 * mem-break.c: Remove obsolete comment.
12427 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12429 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12431 * jit.c (jit_reader_load_command): Interpret the jit reader name
12432 as an absolute path if it begins with a forward slash.
12434 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12438 * jit.c (finalize_symtab): Ensure that only the global block has a
12441 2013-01-17 Pedro Alves <palves@redhat.com>
12443 * acinclude.m4: Include ../config/plugins.m4,
12444 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12445 * Makefile.in (aclocal_m4_deps): Update.
12446 * aclocal.m4: Renegerate.
12448 2013-01-16 Doug Evans <dje@google.com>
12450 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12452 2013-01-16 Pedro Alves <palves@redhat.com>
12453 Tom Tromey <tromey@redhat.com>
12456 * NEWS: Add "catch signal".
12457 * breakpoint.c (base_breakpoint_ops): No longer static.
12458 (bpstat_explains_signal): New function.
12459 (init_catchpoint): No longer static.
12460 (base_breakpoint_explains_signal): New function.
12461 (base_breakpoint_ops): Initialize new field.
12462 * breakpoint.h (enum bpstat_signal_value): New.
12463 (struct breakpoint_ops) <explains_signal>: New field.
12464 (bpstat_explains_signal): Remove macro, declare as function.
12465 (base_breakpoint_ops, init_catchpoint): Declare.
12466 * break-catch-sig.c: New file.
12467 * inferior.h (signal_catch_update): Declare.
12468 * infrun.c (signal_catch): New global.
12469 (handle_syscall_event): Update for change to
12470 bpstat_explains_signal.
12471 (handle_inferior_event): Likewise. Always handle random signals
12473 (signal_cache_update): Check signal_catch.
12474 (signal_catch_update): New function.
12475 (_initialize_infrun): Initialize signal_catch.
12476 * Makefile.in (SFILES): Add break-catch-sig.c.
12477 (COMMON_OBS): Add break-catch-sig.o.
12479 2013-01-16 Tom Tromey <tromey@redhat.com>
12481 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12482 (print_one_catch_solib, print_one_catch_syscall)
12483 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12486 2013-01-16 Yao Qi <yao@codesourcery.com>
12488 * printcmd.c (current_display_number): Make it static.
12490 2013-01-16 Yao Qi <yao@codesourcery.com>
12492 * infcmd.c (step_once): Don't check '!single_inst' as it was
12495 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12497 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12499 2013-01-14 Tom Tromey <tromey@redhat.com>
12501 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12503 * command.h (add_setshow_string_noescape_cmd): Update.
12504 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12505 (complete_set_gnutarget): New function.
12506 (_initialize_core): Set the "set gnutarget" completer.
12508 2013-01-14 Tom Tromey <tromey@redhat.com>
12511 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12512 (c_type_print_modifier): Likewise.
12513 * dwarf2read.c (read_tag_restrict_type): New function.
12514 (read_type_die_1): Handle DW_TAG_restrict_type.
12515 * gdbtypes.c (make_restrict_type): New function.
12516 (recursive_dump_type): Handle TYPE_RESTRICT.
12517 * gdbtypes.h (enum type_flag_values): Renumber.
12518 (enum type_instance_flag_value): Add
12519 TYPE_INSTANCE_FLAG_RESTRICT.
12520 (TYPE_RESTRICT): New macro.
12521 (make_restrict_type): Declare.
12523 2013-01-14 Tom Tromey <tromey@redhat.com>
12526 * psymtab.c (struct psymtab_state): New.
12527 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12529 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12530 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12532 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12533 Pedro Alves <palves@redhat.com>
12537 * remote.c (remote_threads_info): Make a copy of the reply from
12538 qfThreadInfo and use that instead of rs->buf.
12540 2013-01-14 Yao Qi <yao@codesourcery.com>
12542 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12543 (dbx_psymtab_to_symtab): Likewise.
12544 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12545 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12546 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12548 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12550 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12551 make_cleanup_restore_current_language. Call set_language. Move
12552 OLD_CHAIN and INNER_CHAIN cleanups.
12553 * utils.c (do_restore_current_language)
12554 (make_cleanup_restore_current_language): New functions.
12555 * utils.h (make_cleanup_restore_current_language): New declaration.
12557 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12559 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12560 non-existing files.
12562 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12563 non-existing files if FILENAME is already absolute.
12565 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12567 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12568 fputs_filtered. Append trailing newline.
12570 2013-01-11 Yao Qi <yao@codesourcery.com>
12571 Stan Shebs <stan@codesourcery.com>
12573 * psymtab.c (init_psymbol_list): Clarify the comment.
12575 2013-01-11 Yao Qi <yao@codesourcery.com>
12577 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12578 (update_dprintf_command_list): Assert that 'printf_line' is
12579 non-null. Remove condition check.
12581 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12584 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12586 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12588 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12590 2013-01-09 Anthony Green <green@moxielogic.com>
12592 * cp-abi.c (cplus_print_vtable): Don't return value from void
12594 * ada-lang.c (re_set_catch_assert): Ditto.
12596 2013-01-09 Doug Evans <dje@google.com>
12598 * symfile.h (quick_symbol_functions): Delete member
12599 pre_expand_symtabs_matching. All uses removed.
12600 * dwarf2read.c (dw2_lookup_symbol): Implement.
12601 (dw2_do_expand_symtabs_matching): Delete.
12602 (dw2_pre_expand_symtabs_matching): Delete.
12603 (struct dw2_symtab_iterator): New type.
12604 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12605 (dw2_expand_symtabs_for_function): Rewrite.
12606 (dwarf2_gdb_index_functions): Update.
12607 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12608 (psym_functions): Update.
12610 2013-01-09 Tom Tromey <tromey@redhat.com>
12612 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12613 * configure: Rebuild.
12614 * configure.ac: Add somread.o to the build if BFD has SOM
12616 * somread.c: Include som/aout.h, not syms.h.
12617 (som_symtab_read): Use som_external_symbol_dictionary_record.
12618 Unpack records manually.
12619 (_initialize_somread): Declare.
12621 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12623 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12624 Cast return_address to 64bits.
12626 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12628 * printcmd.c: Remove define of function output_command.
12629 * tracepoint.c: Remove extern of function output_command.
12630 * valprint.h: (output_command): New extern.
12632 2013-01-07 Tom Tromey <tromey@redhat.com>
12634 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12636 (objc_language_defn): Use c_printchar, c_printstr,
12639 2013-01-07 Tom Tromey <tromey@redhat.com>
12643 * ada-valprint.c (printstr, print_field_values): Remove
12645 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12647 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12649 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12650 * main.c (captured_main): Remove "epoch" argument.
12651 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12652 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12653 * p-valprint.c (pascal_object_print_value_fields): Remove
12655 * printcmd.c (print_command_1): Remove 'inspect' argument.
12656 (print_command, call_command): Update.
12657 (inspect_command): Remove.
12658 (_initialize_printcmd): Make "inspect" an alias for "print".
12659 * top.c (epoch_interface): Remove.
12660 * top.h (epoch_interface): Remove.
12661 * valprint.c (user_print_options): Update.
12662 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12663 * valprint.h (struct value_print_options) <inspect_it>: Remove
12666 2013-01-04 Tom Tromey <tromey@redhat.com>
12668 * valprint.h (read_string): Add 'extern'.
12670 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12672 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12673 used to decide whether to define darwin_read_dyld_info or not.
12675 2013-01-03 Pierre Muller <muller@sourceware.org>
12677 * main.c (relocate_gdb_directory): Avoid calling stat function
12680 2013-01-03 Yao Qi <yao@codesourcery.com>
12682 * psymtab.c (fixup_psymbol_section): Update declaration.
12683 (fixup_psymbol_section): Remove code returning value.
12685 2013-01-03 Yao Qi <yao@codesourcery.com>
12687 * symtab.h: Remove some out of date comments.
12688 (enum exception_event_kind): Move it ...
12689 * breakpoint.c: ... here.
12691 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12694 * darwin-nat.c (darwin_read_dyld_info): Only build if
12695 TASK_DYLD_INFO_COUNT is defined.
12696 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12697 TASK_DYLD_INFO_COUNT is defined.
12699 2013-01-02 Tom Tromey <tromey@redhat.com>
12701 * symfile.h (struct ecoff_debug_hack): Remove.
12702 * objfiles.c: Don't include mdebugread.h.
12704 2013-01-02 Tom Tromey <tromey@redhat.com>
12706 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12707 * configure.ac: Check for Mach-O support in BFD. Update
12709 * configure: Rebuild.
12711 2013-01-02 Tom Tromey <tromey@redhat.com>
12713 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12714 * configure.ac: Use GDB_AC_CHECK_BFD.
12715 * configure: Rebuild.
12717 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12719 * MAINTAINERS: Update my email.
12721 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12723 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12725 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12727 * rs6000-nat.c (bss_data_overlap): New function.
12728 (vmap_symtab): Use it to adjust the .bss section's offset.
12730 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12732 Update year range in copyright notice of all files.
12734 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12736 * top.c (print_gdb_version): Update copyright year.
12738 For older changes see ChangeLog-2012.
12744 version-control: never