1 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
3 * gdbarch.sh: Remove include of "gdb_string.h", replace by
6 2013-11-29 Doug Evans <xdje42@gmail.com>
8 * python/py-auto-load.c (source_section_scripts): Move comment to
9 more relevant location.
12 * python/py-breakpoint.c: Remove trailing whitespace.
13 * python/py-cmd.c: Ditto.
14 * python/py-evts.c: Ditto.
15 * python/py-finishbreakpoint.c: Ditto.
16 * python/py-frame.c: Ditto.
17 * python/py-function.c: Ditto.
18 * python/py-inferior.c: Ditto.
19 * python/py-infthread.c: Ditto.
20 * python/py-param.c: Ditto.
21 * python/py-prettyprint.c: Ditto.
22 * python/py-symbol.c: Ditto.
23 * python/py-type.c: Ditto.
24 * python/py-utils.c: Ditto.
25 * python/py-value.c: Ditto.
26 * python/python-internal.h: Ditto.
27 * python/python.c: Ditto.
29 2013-11-29 Pedro Alves <palves@redhat.com>
31 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
33 2013-11-29 Pedro Alves <palves@redhat.com>
35 * breakpoint.c (build_target_condition_list): Release previous
37 (build_target_command_list): Release previous commands.
38 (bp_location_dtor): Release target conditions and commands.
39 * remote.c (remote_add_target_side_condition): Don't release
41 (remote_add_target_side_commands): Don't release commands.
43 2013-11-29 Yao Qi <yao@codesourcery.com>
44 Pedro Alves <palves@redhat.com>
46 * dcache.c (dcache_read_line): Use current_target.beneath
47 instead of ¤t_target.
48 * target.c (memory_xfer_partial_1): Factor code out to ...
49 (raw_memory_xfer_partial): ... it. New function.
50 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
51 is TARGET_OBJECT_RAW_MEMORY.
53 2013-11-28 Doug Evans <xdje42@gmail.com>
55 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
56 breakpoint_object. All uses updated.
57 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
58 breakpoint_object. All uses updated.
59 * python.c (*): All uses of breakpoint_object updated.
60 * python.h (*): All uses of breakpoint_object updated.
61 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
62 * python/py-finishbreakpoint.c (*): Ditto.
64 2013-11-28 Doug Evans <xdje42@gmail.com>
66 * configure.ac: Add comments delineating libpython and libmcheck.
67 * configure: Regenerate.
69 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
70 Pedro Alves <palves@redhat.com>
72 * valprint.c (value_check_printable): If the value is entirely
73 unavailable, print a single "<unavailable>" instead of printing
76 2013-11-28 Pedro Alves <palves@redhat.com>
78 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
79 Add "set debug frame" output.
80 (frame_stop_reason_symbol_string): New function.
82 2013-11-28 Pedro Alves <palves@redhat.com>
84 * frame-unwind.c (default_frame_unwind_stop_reason): Return
85 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
86 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
88 2013-11-28 Pedro Alves <palves@redhat.com>
90 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
91 set the unwind stop reason to UNWIND_OUTERMOST, not
92 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
94 2013-11-28 Pedro Alves <palves@redhat.com>
96 * frame.c (frame_unwind_register): Say the register was "not
97 saved" instead of "optimized out".
99 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
102 * configure: Rebuild.
103 * configure.ac: Tighten cygwin detection check.
105 2013-11-27 Pedro Alves <palves@redhat.com>
107 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
108 register in the previous frame's arch.
110 2013-11-27 Pedro Alves <palves@redhat.com>
112 * frame-unwind.c (frame_unwind_got_optimized): Return
113 an lval_register value instead of a not_lval value.
115 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
117 * frame.c: Include "valprint.h".
118 (frame_unwind_register_value): Use value_optimized_out.
119 * value.c (value_fetch_lazy): Likewise.
121 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
123 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
125 2013-11-26 Tom Tromey <tromey@redhat.com>
127 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
130 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
132 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
133 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
134 (HAS_MPX): New macro.
135 (HAS_AVX): New macro.
136 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
138 2013-11-25 Keith Seitz <keiths@redhat.com>
141 * c-exp.y (classify_inner_name): If no matching symbol was
142 found, try looking up the token as a base class.
143 Likewise if a constructor was found.
144 * cp-namespace.c (find_type_baseclass_by_name): New function.
145 * cp-support.h (find_type_baseclass_by_name): Declare.
146 * valops.c (value_struct_elt_for_reference): If we get
147 a non-static field, try to get a value based on the
148 current instance, if any.
150 2013-11-24 Yao Qi <yao@codesourcery.com>
152 * disasm.c (dis_asm_read_memory): Call target_read_code
153 instead of target_read_memory.
155 2013-11-24 Yao Qi <yao@codesourcery.com>
157 * NEWS: Add note on new "set code-cache" option.
158 * target-dcache.c (code_cache_enabled_1): New variable.
159 (code_cache_enabled): New variable.
160 (show_code_cache, set_code_cache): New function.
161 (code_cache_enabled_p): New function.
162 (_initialize_target_dcache): Register command.
163 * target-dcache.h (code_cache_enabled_p): Declare.
164 * target.c (memory_xfer_partial_1):Handle
165 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
166 (target_read_code): New function.
167 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
169 (target_read_code): Declare.
171 2013-11-24 Yao Qi <yao@codesourcery.com>
173 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
174 (stack_cache_enabled_1): ... this. New variable.
175 (stack_cache_enabled_p): Rename to ...
176 (stack_cache_enabled): ... this. New variable.
177 (set_stack_cache_enabled_p): Rename to ...
178 (set_stack_cache): ... this. Update caller.
179 (show_stack_cache_enabled_p): Rename to ...
180 (show_stack_cache): ... this. Update caller.
181 (stack_cache_enabled): Rename to ...
182 (stack_cache_enabled_p): ... this. Update caller.
183 (_initialize_target_dcache): Replace "data cache" with
184 "target memory cache".
185 * target-dcache.h (stack_cache_enabled): Remove declaration.
186 (stack_cache_enabled_p): Add declaration.
188 2013-11-23 Doug Evans <xdje42@gmail.com>
190 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
193 2013-11-23 Doug Evans <xdje42@gmail.com>
195 * python/py-frame.c (frapy_block): Fix error message text.
197 2013-11-23 Doug Evans <xdje42@gmail.com>
199 * cli/cli-script.c (multi_line_command_p): New function.
200 (recurse_read_control_structure, read_command_lines_1): Call it.
201 (execute_control_command): Consistently have a blank line between
204 2013-11-22 Sterling Augustine <saugustine@google.com>
207 * valprint.c (read_string): Set new variable fetchlen based on
208 fetchlimit and size. Use it in call to partial_memory_read.
211 2013-11-22 Tom Tromey <tromey@redhat.com>
214 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
215 the return address column is unspecified.
217 2013-11-22 Tom Tromey <tromey@redhat.com>
218 Pedro Alves <palves@redhat.com>
221 * value.c (value_fetch_lazy): Internal error if
222 get_frame_register_value returns the same register.
224 2013-11-22 Pedro Alves <palves@redhat.com>
225 Tom Tromey <tromey@redhat.com>
227 * frame.c (frame_stash_add): Now returns whether a frame with the
228 same ID was already known.
229 (compute_frame_id): New function, factored out from get_frame_id.
230 (get_frame_id): No longer lazilly compute the frame id here.
231 (get_prev_frame_if_no_cycle): New function. Detects wider stack
233 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
234 and checking for stack cycles here.
236 2013-11-22 Pedro Alves <palves@redhat.com>
239 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
240 this frame and the new previous frame, not between this frame and
243 2013-11-22 Pedro Alves <palves@redhat.com>
246 * dwarf2-frame.c (struct dwarf2_frame_cache)
247 <checked_tailcall_bottom, entry_cfa_sp_offset,
248 entry_cfa_sp_offset_p>: New fields.
249 (dwarf2_frame_cache): Adjust to use the new cache fields instead
250 of locals. Don't call dwarf2_tailcall_sniffer_first here.
251 (dwarf2_frame_prev_register): Call it here, but only once.
253 2013-11-21 Doug Evans <xdje42@gmail.com>
255 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
256 (type_equality_entry): Move here from python/py-type.c.
257 (type_equality_entry_d): Ditto.
258 (compare_maybe_null_strings, check_types_equal): Ditto.
259 (check_types_worklist, types_deeply_equal): Ditto.
260 * gdbtypes.h (types_deeply_equal): Declare.
261 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
262 (typy_richcompare): Update.
264 2013-11-20 Joel Brobecker <brobecker@adacore.com>
266 * python/py-value.c (is_intlike): Delete.
267 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
268 by use of is_integral_type.
269 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
270 by use of is_integral_type and check for TYPE_CODE_PTR.
272 2013-11-20 Tom Tromey <tromey@redhat.com>
274 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
276 * gnulib/aclocal.m4: Update.
277 * gnulib/config.in: Update.
278 * gnulib/configure: Update.
279 * gnulib/import/Makefile.am: Update.
280 * gnulib/import/Makefile.in: Update.
281 * gnulib/import/errno.in.h: Remove.
282 * gnulib/import/intprops.h: Remove.
283 * gnulib/import/m4/errno_h.m4: Remove.
284 * gnulib/import/m4/gnulib-cache.m4: Update.
285 * gnulib/import/m4/gnulib-comp.m4: Update.
286 * gnulib/import/m4/strerror.m4: Remove.
287 * gnulib/import/m4/sys_socket_h.m4: Remove.
288 * gnulib/import/strerror-override.c: Remove.
289 * gnulib/import/strerror-override.h: Remove.
290 * gnulib/import/strerror.c: Remove.
291 * gnulib/update-gnulib.sh: Update.
293 2013-11-20 Yao Qi <yao@codesourcery.com>
295 * target-dcache.c (target_dcache_get_or_init): Call
296 set_address_space_data if 'dcache' is NULL.
298 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
300 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
302 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
304 * python/lib/gdb/command/bound_register.py: New file.
305 * data-directory/Makefile.in: Copy bond_register.py to the right path
306 to be initialized at gdb startup.
308 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
310 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
312 (amd64_linux_read_description): Add initialization for MPX and
314 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
315 (amd64_linux_gregset_reg_offset): Add MPX registers.
316 (amd64_linux_core_read_description): Add initialization for MPX
318 (_initialize_amd64_linux_tdep): Initialize MPX targets.
319 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
320 register on the list.
321 (tdesc_amd64_mpx_linux) Add new target for MPX.
322 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
323 (amd64_mpx_names): MPX register names.
324 (amd64_init_abi): Add MPX register while initializing the ABI.
325 (_initialize_amd64_tdep): Initialize MPX targets.
326 * amd64-tdep.h (amd64_regnum): Add MPX registers.
327 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
329 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
331 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
332 registers on the range of registers to be read from
334 (i386_linux_read_description): Add case for MPX.
335 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
336 (i386_linux_gregset_reg_offset): Add MPX registers.
337 (i386_linux_core_read_description): Initialize also MPX.
338 (_initialize_i386_linux_tdep): Add mpx initialization.
339 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
341 (i386_regnum): Add MPX registers.
342 (I386_MPX_NUM_REGS): New macro.
343 (i386_bnd_regnum_p): New function.
344 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
345 number of registers to be the number of BNDSTATUS.
346 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
347 * i386-tdep.c: Include features/i386/i386-mpx.c.
348 (i386_mpx_names): Add MPX register names array.
349 (i386_bnd_names): Add bnd pseudo register names array.
350 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
352 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
353 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
355 (i386_bnd_type): New function.
356 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
358 (i386_pseudo_register_read_into_value): Add bnd case.
359 (i386_pseudo_register_write): Add bnd pseudo registers.
360 (i386_register_reggroup_p): Add MPX register to the group all.
361 (i386_validate_tdesc_p): Add MPX to the target description
363 (i386_pseudo_register_name): Add bnd pseudo registers.
364 (i386_gdbarch_init): Add MPX for architecture initialization.
365 (_initia_initialize_i386_tdep): Add mpx initialization.
366 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
368 (XSAVE_MPX_ADDR): New macro.
369 (i387_supply_xsave): Add MPX case.
370 (i387_collect_xsave): Add MPX case.
371 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
372 (I387_BNDCFGU_REGNUM): New macro.
373 (I387_NUM_MPX_REGS): New macro.
374 (I387_NUM_BND_REGS): New macro.
375 (I387_NUM_MPX_CTRL_REGS): New macro.
376 (I387_MPXEND_REGNUM): New macro.
377 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
378 (I386_XSTATE_BNDCFG): Likewise.
379 (I386_XSTATE_MPX_MASK): Likewise.
380 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
381 (I386_XSTATE_BNDREGS_SIZE): New macro.
382 (I386_XSTATE_BNDCFG_SIZE): Likewise.
383 (I386_XSTATE_SIZE): Adapt for MPX.
384 (I386_XSTATE_MAX_SIZE): Likewise.
386 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
388 * features/i386/Makefile: Adapts for using MPX registers.
389 * features/i386/32bit-mpx.xml: New file.
390 * features/i386/64bit-mpx.xml: Likewise.
391 * features/i386/amd64-mpx-linux.c: Likewise.
392 * features/i386/amd64-mpx-linux.xml: Likewise.
393 * features/i386/amd64-mpx.c: Likewise.
394 * features/i386/amd64-mpx.xml: Likewise.
395 * features/i386/i386-mpx-linux.c: Likewise.
396 * features/i386/i386-mpx-linux.xml: Likewise.
397 * features/i386/i386-mpx.c: Likewise.
398 * features/i386/i386-mpx.xml: Likewise.
399 * regformats/i386/amd64-mpx-linux.dat: New file.
400 * regformats/i386/amd64-mpx.dat: Likewise.
401 * regformats/i386/i386-mpx-linux.dat: Likewise.
402 * regformats/i386/i386-mpx.dat: Likewise.
404 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
406 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
407 Modified logic of creating a bitfield to be in sync with
410 2013-11-20 Will Newton <will.newton@linaro.org>
412 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
415 2013-11-20 Yao Qi <yao@codesourcery.com>
417 * progspace.h (struct address_space_data): Declare.
418 * target-dcache.c: Include "progspace.h".
419 (target_dache): Remove.
420 (target_dcache_aspace_key): New.
421 (target_dcache_cleanup): New function.
422 (target_dcache_init_p): Get data through
423 target_dcache_aspace_key.
424 (target_dcache_invalidate): Likewise.
425 (target_dcache_get): Likewise.
426 (target_dcache_get_or_init): Likewise.
427 (_initialize_target_dcache): Initialize
428 target_dcache_aspace_key.
430 2013-11-20 Yao Qi <yao@codesourcery.com>
432 * progspace.c (struct address_space): Update comments.
433 <REGISTRY_FIELDS>: New fields.
434 DEFINE_REGISTRY for address_space.
435 (new_address_space): Call address_space_alloc_data.
436 (free_address_space): Call address_space_free_data.
437 * progspace.h: Use DECLARE_REGISTRY.
439 2013-11-20 Yao Qi <yao@codesourcery.com>
441 * Makefile.in (SFILES):Add target-dcache.c.
442 (HFILES_NO_SRCDIR): Add target-dcache.h.
443 (COMMON_OBS): Add target-dcache.o.
444 * dcache.c: Remove inclusion to "target.h". Include
446 * memattr.c: Include "target-dcache.h".
448 * tracepoint.c: Likewise.
449 * target.c: (stack_cache_enabled_p_1): Move to
451 (stack_cache_enabled_p): Likewise.
452 (set_stack_cache_enabled_p): Likewise.
453 (show_stack_cache_enabled_p): Likewise.
454 (target_dcache, target_dcache_init_p): Likewise.
455 (target_dcache_invalidate): Likewise.
456 (target_dcache_get, target_dcache_get_or_init): Likewise.
457 (memory_xfer_partial_1): Call function stack_cache_enabled.
458 (initialize_target): Move code to target-dcache.c.
459 * target.h (target_dcache_invalidate): Move to
461 (target_dcache_get): Likewise.
462 * target-dcache.c: New.
463 * target-dcache.h: New.
465 2013-11-20 Yao Qi <yao@codesourcery.com>
467 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
470 2013-11-20 Yao Qi <yao@codesourcery.com>
472 * dcache.c (last_cache): Remove.
473 (dcache_free, dcache_init): Update.
475 (dcache_print_line): Add parameter 'dcache'. Replace
476 'target_dcache' with 'dcache'.
477 (dcache_info): Move code to dcache_info_1. Call
479 (dcache_info_1): New function.
480 (set_dcache_size): Call target_dcache_invalidate.
481 (set_dcache_line_size): Call target_dcache_invalidate.
482 * target.c (target_dcache_init_p): New function.
483 (target_dcache_invalidate): Check target_dcache_init_p first.
484 (target_dcache_get, target_dcache_get_or_init): New function.
485 (memory_xfer_partial_1): Adjust.
486 (initialize_target): Don't initialize 'target_dcache'.
487 * target.h (struct dcache_struct): Declare.
488 (target_dcache_get): Declare.
490 2013-11-19 Yao Qi <yao@codesourcery.com>
492 * varobj.c (varobj_get_type): Fix typo.
494 2013-11-19 Joel Brobecker <brobecker@adacore.com>
496 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
498 2013-11-19 Joel Brobecker <brobecker@adacore.com>
500 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
503 2013-11-18 Tom Tromey <tromey@redhat.com>
505 * common/gdb_stat.h: Remove.
506 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
507 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
508 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
509 * corefile.c: Use sys/stat.h, not gdb_stat.h.
510 * ctf.c: Use sys/stat.h, not gdb_stat.h.
511 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
512 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
513 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
514 * exec.c: Use sys/stat.h, not gdb_stat.h.
515 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
516 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
517 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
518 * jit.c: Use sys/stat.h, not gdb_stat.h.
519 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
520 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
521 * main.c: Use sys/stat.h, not gdb_stat.h.
522 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
523 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
524 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
525 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
526 * procfs.c: Use sys/stat.h, not gdb_stat.h.
527 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
528 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
529 * remote.c: Use sys/stat.h, not gdb_stat.h.
530 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
531 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
532 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
533 * source.c: Use sys/stat.h, not gdb_stat.h.
534 * symfile.c: Use sys/stat.h, not gdb_stat.h.
535 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
536 * symtab.c: Use sys/stat.h, not gdb_stat.h.
537 * top.c: Use sys/stat.h, not gdb_stat.h.
538 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
540 2013-11-18 Tom Tromey <tromey@redhat.com>
542 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
544 * gnulib/aclocal.m4: Update.
545 * gnulib/config.in: Update.
546 * gnulib/configure: Update.
547 * gnulib/import/Makefile.am: Update.
548 * gnulib/import/Makefile.in: Update.
549 * gnulib/import/m4/gnulib-cache.m4: Update.
550 * gnulib/import/m4/gnulib-comp.m4: Update.
551 * gnulib/import/m4/sys_stat_h.m4: New.
552 * gnulib/import/m4/time_h.m4: New.
553 * gnulib/import/sys_stat.in.h: New.
554 * gnulib/import/time.in.h: New.
556 2013-11-18 Tom Tromey <tromey@redhat.com>
558 * configure: Rebuild.
559 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
561 2013-11-18 Tom Tromey <tromey@redhat.com>
563 * configure: Rebuild.
564 * configure.ac: Don't check for unistd.h.
566 2013-11-18 Tom Tromey <tromey@redhat.com>
568 * configure: Rebuild.
569 * configure.ac: Don't check for stdlib.h
570 * defs.h: Include stdlib.h unconditionally.
572 2013-11-18 Tom Tromey <tromey@redhat.com>
574 * config.in: Rebuild.
575 * configure: Rebuild.
576 * configure.ac: Don't check for stddef.h.
577 * defs.h: Unconditionally include stddef.h. Remove duplicate
580 2013-11-18 Tom Tromey <tromey@redhat.com>
582 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
583 * common/gdb_dirent.h: Remove.
584 * common/filestuff.c: Use dirent.h.
585 * common/linux-osdata.c: Use dirent.h.
587 * config.in: Rebuild.
588 * configure: Rebuild.
589 * configure.ac: Don't use AC_HEADER_DIRENT.
590 * linux-fork.c: Use dirent.h
591 * linux-nat.c: Use dirent.h.
592 * nto-procfs.c: Use dirent.h.
593 * procfs.c: Use dirent.h.
595 2013-11-18 Tom Tromey <tromey@redhat.com>
597 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
598 * gnulib/aclocal.m4: Update.
599 * gnulib/config.in: Update.
600 * gnulib/configure: Update.
601 * gnulib/import/Makefile.am: Update.
602 * gnulib/import/Makefile.in: Update.
603 * gnulib/import/dirent.in.h: New.
604 * gnulib/import/m4/dirent_h.m4: New.
605 * gnulib/import/m4/gnulib-cache.m4: Update.
606 * gnulib/import/m4/gnulib-comp.m4: Update.
608 2013-11-18 Tom Tromey <tromey@redhat.com>
610 * configure: Rebuild.
611 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
614 2013-11-18 Tom Tromey <tromey@redhat.com>
616 * common/gdb_string.h: Remove.
617 * aarch64-tdep.c: Use string.h, not gdb_string.h.
618 * ada-exp.y: Use string.h, not gdb_string.h.
619 * ada-lang.c: Use string.h, not gdb_string.h.
620 * ada-lex.l: Use string.h, not gdb_string.h.
621 * ada-typeprint.c: Use string.h, not gdb_string.h.
622 * ada-valprint.c: Use string.h, not gdb_string.h.
623 * aix-thread.c: Use string.h, not gdb_string.h.
624 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
625 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
626 * alpha-nat.c: Use string.h, not gdb_string.h.
627 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
628 * alpha-tdep.c: Use string.h, not gdb_string.h.
629 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
630 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
631 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
632 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
633 * amd64-nat.c: Use string.h, not gdb_string.h.
634 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
635 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
636 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
637 * arch-utils.c: Use string.h, not gdb_string.h.
638 * arm-linux-nat.c: Use string.h, not gdb_string.h.
639 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
640 * arm-tdep.c: Use string.h, not gdb_string.h.
641 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
642 * armbsd-tdep.c: Use string.h, not gdb_string.h.
643 * armnbsd-nat.c: Use string.h, not gdb_string.h.
644 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
645 * armobsd-tdep.c: Use string.h, not gdb_string.h.
646 * avr-tdep.c: Use string.h, not gdb_string.h.
647 * ax-gdb.c: Use string.h, not gdb_string.h.
648 * ax-general.c: Use string.h, not gdb_string.h.
649 * bcache.c: Use string.h, not gdb_string.h.
650 * bfin-tdep.c: Use string.h, not gdb_string.h.
651 * breakpoint.c: Use string.h, not gdb_string.h.
652 * build-id.c: Use string.h, not gdb_string.h.
653 * buildsym.c: Use string.h, not gdb_string.h.
654 * c-exp.y: Use string.h, not gdb_string.h.
655 * c-lang.c: Use string.h, not gdb_string.h.
656 * c-typeprint.c: Use string.h, not gdb_string.h.
657 * c-valprint.c: Use string.h, not gdb_string.h.
658 * charset.c: Use string.h, not gdb_string.h.
659 * cli-out.c: Use string.h, not gdb_string.h.
660 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
661 * cli/cli-decode.c: Use string.h, not gdb_string.h.
662 * cli/cli-dump.c: Use string.h, not gdb_string.h.
663 * cli/cli-interp.c: Use string.h, not gdb_string.h.
664 * cli/cli-logging.c: Use string.h, not gdb_string.h.
665 * cli/cli-script.c: Use string.h, not gdb_string.h.
666 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
667 * cli/cli-utils.c: Use string.h, not gdb_string.h.
668 * coffread.c: Use string.h, not gdb_string.h.
669 * common/common-utils.c: Use string.h, not gdb_string.h.
670 * common/filestuff.c: Use string.h, not gdb_string.h.
671 * common/linux-procfs.c: Use string.h, not gdb_string.h.
672 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
673 * common/signals.c: Use string.h, not gdb_string.h.
674 * common/vec.h: Use string.h, not gdb_string.h.
675 * core-regset.c: Use string.h, not gdb_string.h.
676 * corefile.c: Use string.h, not gdb_string.h.
677 * corelow.c: Use string.h, not gdb_string.h.
678 * cp-abi.c: Use string.h, not gdb_string.h.
679 * cp-support.c: Use string.h, not gdb_string.h.
680 * cp-valprint.c: Use string.h, not gdb_string.h.
681 * cris-tdep.c: Use string.h, not gdb_string.h.
682 * d-lang.c: Use string.h, not gdb_string.h.
683 * dbxread.c: Use string.h, not gdb_string.h.
684 * dcache.c: Use string.h, not gdb_string.h.
685 * demangle.c: Use string.h, not gdb_string.h.
686 * dicos-tdep.c: Use string.h, not gdb_string.h.
687 * disasm.c: Use string.h, not gdb_string.h.
688 * doublest.c: Use string.h, not gdb_string.h.
689 * dsrec.c: Use string.h, not gdb_string.h.
690 * dummy-frame.c: Use string.h, not gdb_string.h.
691 * dwarf2-frame.c: Use string.h, not gdb_string.h.
692 * dwarf2loc.c: Use string.h, not gdb_string.h.
693 * dwarf2read.c: Use string.h, not gdb_string.h.
694 * elfread.c: Use string.h, not gdb_string.h.
695 * environ.c: Use string.h, not gdb_string.h.
696 * eval.c: Use string.h, not gdb_string.h.
697 * event-loop.c: Use string.h, not gdb_string.h.
698 * exceptions.c: Use string.h, not gdb_string.h.
699 * exec.c: Use string.h, not gdb_string.h.
700 * expprint.c: Use string.h, not gdb_string.h.
701 * f-exp.y: Use string.h, not gdb_string.h.
702 * f-lang.c: Use string.h, not gdb_string.h.
703 * f-typeprint.c: Use string.h, not gdb_string.h.
704 * f-valprint.c: Use string.h, not gdb_string.h.
705 * fbsd-nat.c: Use string.h, not gdb_string.h.
706 * findcmd.c: Use string.h, not gdb_string.h.
707 * findvar.c: Use string.h, not gdb_string.h.
708 * fork-child.c: Use string.h, not gdb_string.h.
709 * frame.c: Use string.h, not gdb_string.h.
710 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
711 * frv-tdep.c: Use string.h, not gdb_string.h.
712 * gdb.c: Use string.h, not gdb_string.h.
713 * gdb_bfd.c: Use string.h, not gdb_string.h.
714 * gdbarch.c: Use string.h, not gdb_string.h.
715 * gdbtypes.c: Use string.h, not gdb_string.h.
716 * gnu-nat.c: Use string.h, not gdb_string.h.
717 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
718 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
719 * go-exp.y: Use string.h, not gdb_string.h.
720 * go-lang.c: Use string.h, not gdb_string.h.
721 * go32-nat.c: Use string.h, not gdb_string.h.
722 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
723 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
724 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
725 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
726 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
727 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
728 * i386-linux-nat.c: Use string.h, not gdb_string.h.
729 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
730 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
731 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
732 * i386-tdep.c: Use string.h, not gdb_string.h.
733 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
734 * i386gnu-nat.c: Use string.h, not gdb_string.h.
735 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
736 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
737 * i387-tdep.c: Use string.h, not gdb_string.h.
738 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
739 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
740 * inf-child.c: Use string.h, not gdb_string.h.
741 * inf-ptrace.c: Use string.h, not gdb_string.h.
742 * inf-ttrace.c: Use string.h, not gdb_string.h.
743 * infcall.c: Use string.h, not gdb_string.h.
744 * infcmd.c: Use string.h, not gdb_string.h.
745 * inflow.c: Use string.h, not gdb_string.h.
746 * infrun.c: Use string.h, not gdb_string.h.
747 * interps.c: Use string.h, not gdb_string.h.
748 * iq2000-tdep.c: Use string.h, not gdb_string.h.
749 * irix5-nat.c: Use string.h, not gdb_string.h.
750 * jv-exp.y: Use string.h, not gdb_string.h.
751 * jv-lang.c: Use string.h, not gdb_string.h.
752 * jv-typeprint.c: Use string.h, not gdb_string.h.
753 * jv-valprint.c: Use string.h, not gdb_string.h.
754 * language.c: Use string.h, not gdb_string.h.
755 * linux-fork.c: Use string.h, not gdb_string.h.
756 * linux-nat.c: Use string.h, not gdb_string.h.
757 * lm32-tdep.c: Use string.h, not gdb_string.h.
758 * m2-exp.y: Use string.h, not gdb_string.h.
759 * m2-typeprint.c: Use string.h, not gdb_string.h.
760 * m32c-tdep.c: Use string.h, not gdb_string.h.
761 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
762 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
763 * m32r-rom.c: Use string.h, not gdb_string.h.
764 * m32r-tdep.c: Use string.h, not gdb_string.h.
765 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
766 * m68k-tdep.c: Use string.h, not gdb_string.h.
767 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
768 * m68klinux-nat.c: Use string.h, not gdb_string.h.
769 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
770 * m88k-tdep.c: Use string.h, not gdb_string.h.
771 * macrocmd.c: Use string.h, not gdb_string.h.
772 * main.c: Use string.h, not gdb_string.h.
773 * mdebugread.c: Use string.h, not gdb_string.h.
774 * mem-break.c: Use string.h, not gdb_string.h.
775 * memattr.c: Use string.h, not gdb_string.h.
776 * memory-map.c: Use string.h, not gdb_string.h.
777 * mep-tdep.c: Use string.h, not gdb_string.h.
778 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
779 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
780 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
781 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
782 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
783 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
784 * mi/mi-console.c: Use string.h, not gdb_string.h.
785 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
786 * mi/mi-interp.c: Use string.h, not gdb_string.h.
787 * mi/mi-main.c: Use string.h, not gdb_string.h.
788 * mi/mi-parse.c: Use string.h, not gdb_string.h.
789 * microblaze-rom.c: Use string.h, not gdb_string.h.
790 * microblaze-tdep.c: Use string.h, not gdb_string.h.
791 * mingw-hdep.c: Use string.h, not gdb_string.h.
792 * minidebug.c: Use string.h, not gdb_string.h.
793 * minsyms.c: Use string.h, not gdb_string.h.
794 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
795 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
796 * mips-tdep.c: Use string.h, not gdb_string.h.
797 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
798 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
799 * mipsread.c: Use string.h, not gdb_string.h.
800 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
801 * mn10300-tdep.c: Use string.h, not gdb_string.h.
802 * monitor.c: Use string.h, not gdb_string.h.
803 * moxie-tdep.c: Use string.h, not gdb_string.h.
804 * mt-tdep.c: Use string.h, not gdb_string.h.
805 * nbsd-tdep.c: Use string.h, not gdb_string.h.
806 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
807 * nto-procfs.c: Use string.h, not gdb_string.h.
808 * nto-tdep.c: Use string.h, not gdb_string.h.
809 * objc-lang.c: Use string.h, not gdb_string.h.
810 * objfiles.c: Use string.h, not gdb_string.h.
811 * opencl-lang.c: Use string.h, not gdb_string.h.
812 * osabi.c: Use string.h, not gdb_string.h.
813 * osdata.c: Use string.h, not gdb_string.h.
814 * p-exp.y: Use string.h, not gdb_string.h.
815 * p-lang.c: Use string.h, not gdb_string.h.
816 * p-typeprint.c: Use string.h, not gdb_string.h.
817 * parse.c: Use string.h, not gdb_string.h.
818 * posix-hdep.c: Use string.h, not gdb_string.h.
819 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
820 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
821 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
822 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
823 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
824 * printcmd.c: Use string.h, not gdb_string.h.
825 * procfs.c: Use string.h, not gdb_string.h.
826 * prologue-value.c: Use string.h, not gdb_string.h.
827 * python/py-auto-load.c: Use string.h, not gdb_string.h.
828 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
829 * ravenscar-thread.c: Use string.h, not gdb_string.h.
830 * regcache.c: Use string.h, not gdb_string.h.
831 * registry.c: Use string.h, not gdb_string.h.
832 * remote-fileio.c: Use string.h, not gdb_string.h.
833 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
834 * remote-mips.c: Use string.h, not gdb_string.h.
835 * remote-sim.c: Use string.h, not gdb_string.h.
836 * remote.c: Use string.h, not gdb_string.h.
837 * reverse.c: Use string.h, not gdb_string.h.
838 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
839 * ser-base.c: Use string.h, not gdb_string.h.
840 * ser-go32.c: Use string.h, not gdb_string.h.
841 * ser-mingw.c: Use string.h, not gdb_string.h.
842 * ser-pipe.c: Use string.h, not gdb_string.h.
843 * ser-tcp.c: Use string.h, not gdb_string.h.
844 * ser-unix.c: Use string.h, not gdb_string.h.
845 * serial.c: Use string.h, not gdb_string.h.
846 * sh-tdep.c: Use string.h, not gdb_string.h.
847 * sh64-tdep.c: Use string.h, not gdb_string.h.
848 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
849 * skip.c: Use string.h, not gdb_string.h.
850 * sol-thread.c: Use string.h, not gdb_string.h.
851 * solib-dsbt.c: Use string.h, not gdb_string.h.
852 * solib-frv.c: Use string.h, not gdb_string.h.
853 * solib-osf.c: Use string.h, not gdb_string.h.
854 * solib-spu.c: Use string.h, not gdb_string.h.
855 * solib-target.c: Use string.h, not gdb_string.h.
856 * solib.c: Use string.h, not gdb_string.h.
857 * somread.c: Use string.h, not gdb_string.h.
858 * source.c: Use string.h, not gdb_string.h.
859 * sparc-nat.c: Use string.h, not gdb_string.h.
860 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
861 * sparc-tdep.c: Use string.h, not gdb_string.h.
862 * sparc64-tdep.c: Use string.h, not gdb_string.h.
863 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
864 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
865 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
866 * spu-linux-nat.c: Use string.h, not gdb_string.h.
867 * spu-multiarch.c: Use string.h, not gdb_string.h.
868 * spu-tdep.c: Use string.h, not gdb_string.h.
869 * stabsread.c: Use string.h, not gdb_string.h.
870 * stack.c: Use string.h, not gdb_string.h.
871 * std-regs.c: Use string.h, not gdb_string.h.
872 * symfile.c: Use string.h, not gdb_string.h.
873 * symmisc.c: Use string.h, not gdb_string.h.
874 * symtab.c: Use string.h, not gdb_string.h.
875 * target.c: Use string.h, not gdb_string.h.
876 * thread.c: Use string.h, not gdb_string.h.
877 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
878 * tilegx-tdep.c: Use string.h, not gdb_string.h.
879 * top.c: Use string.h, not gdb_string.h.
880 * tracepoint.c: Use string.h, not gdb_string.h.
881 * tui/tui-command.c: Use string.h, not gdb_string.h.
882 * tui/tui-data.c: Use string.h, not gdb_string.h.
883 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
884 * tui/tui-file.c: Use string.h, not gdb_string.h.
885 * tui/tui-layout.c: Use string.h, not gdb_string.h.
886 * tui/tui-out.c: Use string.h, not gdb_string.h.
887 * tui/tui-regs.c: Use string.h, not gdb_string.h.
888 * tui/tui-source.c: Use string.h, not gdb_string.h.
889 * tui/tui-stack.c: Use string.h, not gdb_string.h.
890 * tui/tui-win.c: Use string.h, not gdb_string.h.
891 * tui/tui-windata.c: Use string.h, not gdb_string.h.
892 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
893 * typeprint.c: Use string.h, not gdb_string.h.
894 * ui-file.c: Use string.h, not gdb_string.h.
895 * ui-out.c: Use string.h, not gdb_string.h.
896 * user-regs.c: Use string.h, not gdb_string.h.
897 * utils.c: Use string.h, not gdb_string.h.
898 * v850-tdep.c: Use string.h, not gdb_string.h.
899 * valarith.c: Use string.h, not gdb_string.h.
900 * valops.c: Use string.h, not gdb_string.h.
901 * valprint.c: Use string.h, not gdb_string.h.
902 * value.c: Use string.h, not gdb_string.h.
903 * varobj.c: Use string.h, not gdb_string.h.
904 * vax-tdep.c: Use string.h, not gdb_string.h.
905 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
906 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
907 * windows-nat.c: Use string.h, not gdb_string.h.
908 * xcoffread.c: Use string.h, not gdb_string.h.
909 * xml-support.c: Use string.h, not gdb_string.h.
910 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
911 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
913 2013-11-18 Tom Tromey <tromey@redhat.com>
915 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
917 * gnulib/aclocal.m4: Update.
918 * gnulib/config.in: Update.
919 * gnulib/configure: Update.
920 * gnulib/import/Makefile.am: Update.
921 * gnulib/import/Makefile.in: Update.
922 * gnulib/import/errno.in.h: New.
923 * gnulib/import/intprops.h: New.
924 * gnulib/import/m4/errno_h.m4: New.
925 * gnulib/import/m4/gnulib-cache.m4: Update.
926 * gnulib/import/m4/gnulib-comp.m4: Update.
927 * gnulib/import/m4/strerror.m4: New.
928 * gnulib/import/m4/strstr.m4: New.
929 * gnulib/import/m4/sys_socket_h.m4: New.
930 * gnulib/import/strerror-override.c: New.
931 * gnulib/import/strerror-override.h: New.
932 * gnulib/import/strerror.c: New.
933 * gnulib/import/strstr.c: New.
935 2013-11-18 Tom Tromey <tromey@redhat.com>
937 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
940 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
942 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
943 * sparc-tdep.h: And its prototype.
945 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
947 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
949 2013-11-18 Pedro Alves <palves@redhat.com>
951 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
954 2013-11-18 Joel Brobecker <brobecker@adacore.com>
956 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
957 to -list-features output.
959 2013-11-17 Joel Brobecker <brobecker@adacore.com>
961 * dwarf2expr.h (struct dwarf_expr_context_funcs)
962 <read_addr_from_reg>: Renames "read_reg".
963 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
965 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
966 Use read_addr_from_reg in place of read_reg.
967 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
968 in place of read_reg.
969 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
971 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
972 with dwarf_expr_read_addr_from_reg.
973 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
974 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
975 needs_frame_read_addr_from_reg.
977 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
979 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
981 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
983 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
986 2013-11-15 Tom Tromey <tromey@redhat.com>
989 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
990 (classify_name): Likewise. Prefer a field of "this" over a
992 (classify_inner_name, yylex): Update.
994 2013-11-15 Joel Brobecker <brobecker@adacore.com>
996 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
997 Extend the documentation a bit.
998 <get_reg_value>: New field.
999 * dwarf2loc.c (dwarf_expr_get_reg_value)
1000 (needs_frame_get_reg_value): New functions.
1001 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1003 * dwarf2-frame.c (get_reg_value): New function.
1004 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1005 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1006 Use new callback to compute result_val.
1008 2013-11-15 Alan Modra <amodra@gmail.com>
1010 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1011 (ppc64_desc_entry_point): ..this. Update comments here and at
1013 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1014 ppc64_standard_linkage3): Update comments.
1015 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1016 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1018 (ppc64_standard_linkage4_target): New function.
1019 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1020 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1021 nop match. Fix comment wrap.
1023 2013-11-14 Pedro Alves <palves@redhat.com>
1025 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1026 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1028 2013-11-14 Pedro Alves <palves@redhat.com>
1030 * infrun.c (struct execution_control_state)
1031 <stepped_after_stopped_by_watchpoint>: New field.
1032 (get_inferior_stop_soon): New function.
1033 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1034 moved to struct execution_control_state -- adjust. Use
1035 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1037 (handle_signal_stop): New function, factored out from
1038 handle_inferior_event.
1040 2013-11-14 Pedro Alves <palves@redhat.com>
1042 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1044 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1046 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1047 Adjust to return a boolean.
1048 * breakpoint.h (enum bpstat_signal_value): Delete.
1049 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1050 (bpstat_explains_signal): Likewise.
1051 * infrun.c (handle_inferior_event) <random signal checks>:
1052 bpstat_explains_signal now returns a boolean - adjust. No longer
1053 consider hiding signals.
1055 2013-11-14 Pedro Alves <palves@redhat.com>
1057 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1058 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1059 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1061 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1062 instead of BPSTAT_SIGNAL_HIDE.
1063 * infrun.c (handle_inferior_event): Rework random signal checks.
1065 2013-11-14 Pedro Alves <palves@redhat.com>
1067 * infrun.c (struct execution_control_state): Remove
1068 'random_signal' field.
1069 (handle_syscall_event): Use bpstat_causes_stop instead of
1070 bpstat_explains_signal. Don't set ecs->random_signal.
1071 (handle_inferior_event): New 'random_signal' local.
1072 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1073 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1074 bpstat_explains_signal. Don't set ecs->random_signal.
1075 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1078 2013-11-14 Pedro Alves <palves@redhat.com>
1080 * infrun.c (handle_inferior_event): Move comment from the
1081 function's body to the function's description, adjusted.
1083 2013-11-14 Pedro Alves <palves@redhat.com>
1085 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1086 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1087 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1090 2013-11-14 Tom Tromey <tromey@redhat.com>
1092 * python/py-linetable.c (ltpy_has_line)
1093 (ltpy_get_all_source_lines): Fix loop termination condition.
1095 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1097 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1098 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1099 PARSE->LANGUAGE during command execution, if set.
1100 * mi/mi-parse.c: Add "language.h" #include.
1101 (mi_parse): Add parsing of "--language" command option.
1103 * NEWS: Add entry mentioning the new "--language" command option.
1105 2013-11-14 Pedro Alves <palves@redhat.com>
1106 Joel Brobecker <brobecker@adacore.com>
1108 * cli/cli-utils.h (extract_arg_const): Add declaration.
1109 * cli/cli-utils.c (extract_arg_const): New function.
1110 (extract_arg): Reimplement using extract_arg_const.
1112 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1114 * language.h: Add "symtab.h" #include.
1116 2013-11-13 Doug Evans <xdje42@gmail.com>
1118 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1119 specific breakpoints, don't evaluate breakpoint condition if
1122 2013-11-13 Keith Seitz <keiths@redhat.com>
1126 * cp-support.c (insepct_type): Add support for substituting
1127 namespace aliases, too.
1128 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1129 for DW_TAG_imported_declaration.
1130 (add_partial_symbol): Likewise.
1131 (process_die): Handle namespace aliases with
1132 read_namespace_alias.
1133 (die_needs_namespace): Add DW_TAG_imported_declaration.
1134 (read_namespace_alias): New function.
1135 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1136 (new_symbol_full): Handle DW_TAG_imported_declaration.
1138 2013-11-13 Keith Seitz <keiths@redhat.com>
1140 * p-exp.y (uptok): Make first parameter const.
1141 (yylex): Make `tokstart' and `tokptr' const.
1142 Don't copy the lexer input to a temporary buffer.
1144 Remove const workaround for parse_escape.
1145 Create a temporary buffer for a convenience variable instead
1146 of doing in-place modification of the input.
1147 If a match is found with a different case from the input,
1148 do not change the input at all.
1149 Use `tmp' to construct the resultant stoken instead of
1152 2013-11-13 Doug Evans <xdje42@gmail.com>
1154 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1156 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1158 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1159 entry with "ada-exceptions".
1161 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1163 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1164 after re-initialization of OBJFILE's obstack.
1166 2013-11-12 Doug Evans <xdje42@gmail.com>
1168 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1169 bs->stop != 0 on entry. Update function comment. Simplify early
1170 exit for frame mismatch. Reindent rest of function.
1172 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1174 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1177 2013-11-12 Doug Evans <dje@google.com>
1179 Work around gold/15646.
1180 * dwarf2read.c (read_index_from_section): Update comment.
1181 (struct dw2_symtab_iterator): New member global_seen.
1182 (dw2_symtab_iter_init): Initialize it.
1183 (dw2_symtab_iter_next): Skip duplicate global symbols.
1184 (dw2_expand_symtabs_matching): Ditto.
1186 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1188 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1189 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1191 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1192 (mi_cmd_info_ada_exceptions): New function.
1193 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1195 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1197 * ada-lang.h: #include "vec.h".
1198 (struct ada_exc_info): New.
1199 (ada_exc_info): New typedef.
1200 (DEF_VEC_O(ada_exc_info)): New vector.
1201 (ada_exceptions_list): Add declaration.
1202 * ada-lang.c (ada_is_exception_sym)
1203 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1204 (sort_remove_dups_ada_exceptions_list)
1205 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1206 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1207 (ada_exceptions_list_1, ada_exceptions_list)
1208 (info_exceptions_command): New function.
1209 (_initialize_ada_language): Add "info exception" command.
1211 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1214 * NEWS: Add linetable feature.
1215 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1216 * python/py-linetable.c: New file.
1217 * python/py-symtab.c (stpy_get_linetable): New function.
1218 * python/python-internal.h (symtab_to_linetable_object): Declare.
1219 (gdbpy_initialize_linetable): Ditto.
1220 * python/python.c (_initialize_python): Call
1221 gdbpy_initialize_linetable.
1223 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1225 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1226 the documentation of fields "except_string" and "condition".
1227 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1228 CONDITION on the heap before passing it to
1229 create_ada_exception_catchpoint.
1230 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1233 2013-11-11 Tom Tromey <tromey@redhat.com>
1235 * config.in, configure: Rebuild.
1236 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1238 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1240 * remote-sim.c (gdbsim_detach): Break declaration into
1241 shorter lines. No code change.
1243 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1245 * remote-sim.c (gdbsim_detach): Fix prototype.
1247 2013-11-08 Doug Evans <dje@google.com>
1249 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1250 (create_debug_types_hash_table): Only print debugging messages for
1251 each TU if dwarf2-read >= 2.
1252 (process_queue): Ditto.
1253 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1256 2013-11-08 Tom Tromey <tromey@redhat.com>
1258 * configure: Rebuild.
1259 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1261 2013-11-08 Tom Tromey <tromey@redhat.com>
1263 * configure, config.in: Rebuild.
1264 * configure.ac: Remove unused configury.
1266 2013-11-08 Tom Tromey <tromey@redhat.com>
1268 * m32c-tdep.c: Use gdb_string.h.
1270 2013-11-08 Tom Tromey <tromey@redhat.com>
1272 * configure, config.in: Rebuild.
1273 * configure.ac: Remove all link.h-related checks.
1275 2013-11-08 Tom Tromey <tromey@redhat.com>
1277 * acinclude.m4: Include common.m4.
1278 * common/common.m4: New file.
1279 * configure, config.in: Rebuild.
1280 * configure.ac: Use GDB_AC_COMMON.
1282 2013-11-08 Doug Evans <dje@google.com>
1284 * NEWS: Mention that "set debug symtab-create" now accepts a
1286 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1287 to set the symtab's primary flag.
1288 * jit.c (finalize_symtab): Ditto.
1289 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1290 * symfile.c (allocate_symtab): Only print debugging messages for
1291 symtab_create_debug levels 2 and higher.
1292 * symtab.c (symtab_create_debug): Change type to unsigned int.
1293 (set_symtab_primary): New function.
1294 (_initialize_symtab): Change "set debug symtab-create" to a
1296 * symtab.h (set_symtab_primary): Declare.
1297 (symtab_create_debug): Update decl.
1299 2013-11-08 Tom Tromey <tromey@redhat.com>
1301 * aix-thread.c (aix_thread_detach): Update.
1302 * corelow.c (core_detach): Update.
1303 * darwin-nat.c (darwin_detach): Update.
1304 * dec-thread.c (dec_thread_detach): Update.
1305 * gnu-nat.c (gnu_detach): Update.
1306 * go32-nat.c (go32_detach): Update.
1307 * inf-ptrace.c (inf_ptrace_detach): Update.
1308 * inf-ttrace.c (inf_ttrace_detach): Update.
1309 * linux-fork.c (linux_fork_detach): Update.
1310 * linux-fork.h (linux_fork_detach): Update.
1311 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1312 local for const-correctness.
1313 * linux-thread-db.c (thread_db_detach): Update.
1314 * monitor.c (monitor_detach): Update.
1315 * nto-procfs.c (procfs_detach): Update.
1316 * procfs.c (procfs_detach): Update.
1317 * record.c (record_detach): Update.
1318 * record.h (record_detach): Update.
1319 * remote-m32r-sdi.c (m32r_detach): Update.
1320 * remote-mips.c (mips_detach): Update.
1321 * remote-sim.c (gdbsim_detach): Update.
1322 * remote.c (remote_detach_1, remote_detach)
1323 (extended_remote_detach): Update.
1324 * sol-thread.c (sol_thread_detach): Update.
1325 * target.c (target_detach): Make "args" const.
1326 (init_dummy_target): Update.
1327 * target.h (struct target_ops) <to_detach>: Make argument const.
1328 (target_detach): Likewise.
1329 * windows-nat.c (windows_detach): Update.
1331 2013-11-07 Doug Evans <dje@google.com>
1334 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1335 and align fields for PT_GNU_RELRO segments.
1337 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1340 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1342 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1344 * NEWS: Document Python temporary breakpoint support.
1345 * python/py-breakpoint.c (bppy_get_temporary): New function.
1346 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1347 to temporary if True.
1349 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1351 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1352 removed to allow analyzing unconditional branch instructions
1353 with PC-relative offsets of zero.
1355 2013-11-07 Yao Qi <yao@codesourcery.com>
1357 * mi/mi-cmd-var.c: Include "language.h".
1358 (mi_cmd_var_info_expression): Get language name from
1360 * varobj.c (varobj_language_string): Remove.
1361 (variable_language): Remove declaration.
1362 (languages): Remove.
1363 (varobj_get_language): Change the type of return value.
1364 (variable_language): Remove.
1365 * varobj.h (enum varobj_languages): Remove.
1366 (varobj_language_string): Remove declaration.
1367 (varobj_get_language): Update declaration.
1369 2013-11-07 Yao Qi <yao@codesourcery.com>
1371 * language.h (struct language_defn) <la_natural_name>: New
1373 * ada-lang.c (ada_language_defn): Initialize field
1375 * c-lang.c (c_language_defn): Likewise.
1376 (cplus_language_defn, asm_language_defn): Likewise.
1377 * d-lang.c (d_language_defn): Likewise.
1378 * f-lang.c (f_language_defn): Likewise.
1379 * go-lang.c (go_language_defn): Likewise.
1380 * jv-lang.c (java_language_defn): Likewise.
1381 * language.c (unknown_language_defn ): Likewise.
1382 (auto_language_defn): Likewise.
1383 * m2-lang.c (m2_language_defn): Likewise.
1384 * objc-lang.c (objc_language_defn): Likewise.
1385 * opencl-lang.c (opencl_language_defn): Likewise.
1386 * p-lang.c (pascal_language_defn): Likewise.
1388 2013-11-07 Yao Qi <yao@codesourcery.com>
1390 * language.c (language_str): Return const char *.
1391 (add_language): Add const to 'language_names'
1392 * language.h (struct language_defn) <la_name>: Add const.
1393 (language_str: Update declaration.
1395 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1397 * s390-linux-nat.c (s390_read_description): Consider the TE field
1398 in the HWCAP for determining 'have_regset_tdb'.
1400 2013-11-06 Will Newton <will.newton@linaro.org>
1403 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1404 values. (read_partial_die): Likewise.
1406 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1409 * top.c (command_line_input): Unify interactivity tests to use
1410 input_from_terminal_p.
1411 * event-top.c (command_line_handler): Likewise.
1413 2013-11-06 Yao Qi <yao@codesourcery.com>
1415 * Makefile.in (check-perf): New target.
1417 2013-11-05 Will Newton <will.newton@linaro.org>
1420 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1421 (arm_print_float_info): Likewise.
1423 2013-11-04 Anton Blanchard <anton@samba.org>
1425 * target.c (memory_xfer_partial): Cap write to 4KB.
1427 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1429 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1430 probe scan even when the arch provides no get_longjmp_target.
1432 2013-10-31 Pedro Alves <palves@redhat.com>
1434 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1435 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1436 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1437 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1438 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1439 <bpstat handling>: If the bpstat chain wants the signal to be
1440 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1443 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1445 * breakpoint.c (update_watchpoint): Update error message and add
1446 an additional error message.
1448 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1450 * s390-tdep.h: Rename to...
1451 * s390-linux-tdep.h: ...here.
1452 * s390-tdep.c: Rename to...
1453 * s390-linux-tdep.c: ...here. Adjust #include.
1454 * s390-nat.c: Rename to...
1455 * s390-linux-nat.c: ...here. Adjust #include.
1456 * config/s390/s390.mh: Rename to...
1457 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1459 * configure.host: Reflect host rename "s390" -> "linux".
1460 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1461 * Makefile.in (ALL_TARGET_OBS): Likewise.
1462 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1464 (ALLDEPFILES): Reflect rename of .c files.
1466 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1468 * s390-nat.c: Whitespace cleanup.
1469 * s390-tdep.c: Likewise.
1470 * s390-tdep.h: Remove empty line at end of file.
1472 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1474 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1477 2013-10-29 Tom Tromey <tromey@redhat.com>
1479 * utils.c (reg): Move undefinition...
1480 * gdb_curses.h: ... here. Update comment to mention AIX.
1482 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1484 * exec.h (add_target_sections_of_objfile): New declaration.
1485 * exec.c (add_target_sections_of_objfile): New function.
1486 * symfile.c (add_symbol_file_command): Update current target sections.
1487 (remove_symbol_file_command): New command.
1488 (symfile_free_objfile): New function.
1489 (_initialize_symfile): Register observer for free_objfile events.
1490 * NEWS: Add description of the remove-symbol-file command.
1491 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1492 * objfiles.c (free_objfile): Notify free_objfile.
1493 (is_addr_in_objfile): New function.
1494 * objfiles.h (is_addr_in_objfile): New declaration.
1495 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1496 events instead of solib_unloaded events.
1497 (_initialize_printcmd): Register observer for free_objfile instead
1498 of solib_unloaded notifications.
1499 * solib.c (remove_user_added_objfile): New function.
1500 (_initialize_symfile): Add remove-symbol-file.
1502 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1504 * infcmd.c (default_print_one_register_info): Use val_print to
1505 print all values even optimized out or unavailable ones. Don't
1506 try to print a raw form of optimized out or unavailable values.
1508 2013-10-29 Yao Qi <yao@codesourcery.com>
1510 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1511 parameter 'arg' instead of from program_space_data.
1512 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1513 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1514 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1515 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1516 * inflow.c (inflow_inferior_data_cleanup): Get data from
1517 parameter 'arg' instead of inferior_data.
1518 * registry.h: Add comments.
1520 2013-10-28 Pedro Alves <palves@redhat.com>
1522 * breakpoint.c (watchpoints_triggered)
1523 <!target_stopped_data_address>: Hardcode return 1.
1525 2013-10-28 Pedro Alves <palves@redhat.com>
1527 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1530 2013-10-28 Pedro Alves <palves@redhat.com>
1532 * infrun.c (process_event_stop_test): New function, factored out
1533 from handle_inferior_event.
1534 (handle_inferior_event): 'process_event_stop_test' is now a
1535 function instead of a goto label -- adjust.
1537 2013-10-28 Pedro Alves <palves@redhat.com>
1539 * infrun.c (handle_inferior_event): Move process_event_stop_test
1540 goto label to the else branch of the ecs->random_signal check,
1541 along with FRAME and GDBARCH re-fetching.
1543 2013-10-28 Pedro Alves <palves@redhat.com>
1545 * infrun.c (switch_back_to_stepped_thread): New function, factored
1546 out from handle_inferior_event.
1547 (handle_inferior_event): Adjust to call
1548 switch_back_to_stepped_thread. Call it also at the tail of the
1549 random signal handling, and return, instead of also handling
1550 random signals just before the stepping tests.
1552 2013-10-28 Pedro Alves <palves@redhat.com>
1554 * infrun.c (clear_stop_func): Delete.
1555 (handle_inferior_event): Don't call clear_stop_func and don't
1556 clear 'ecs->random_signal'.
1558 2013-10-27 Yao Qi <yao@codesourcery.com>
1560 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1561 (varobj_create, varobj_get_path_expr): Update.
1562 (varobj_value_has_mutated, varobj_update): Likewise.
1563 (create_child_with_value, new_root_variable): Likewise.
1564 (number_of_children, name_of_variable): Likewise.
1565 (value_of_child, my_value_of_variable): Likewise.
1566 (varobj_value_is_changeable_p): Likewise.
1568 2013-10-25 Yao Qi <yao@codesourcery.com>
1570 * language.h (struct lang_varobj_ops): Declare.
1571 (struct language_defn) <la_varobj_ops>: New field.
1572 * ada-lang.c: Include "varobj.h"
1573 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1575 * c-lang.c: Include "varobj.h"
1576 (c_language_defn): Initialize field 'la_varobj_ops' with
1578 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1580 (asm_language_defn): Initialize field 'la_varobj_ops' with
1582 (minimal_language_defn): Likewise.
1583 * d-lang.c (d_language_defn): Likewise.
1584 * f-lang.c (f_language_defn): Likewise.
1585 * go-lang.c (go_language_defn): Likewise.
1586 * m2-lang.c (m2_language_defn): Likewise.
1587 * objc-lang.c (objc_language_defn): Likewise.
1588 * opencl-lang.c (opencl_language_defn): Likewise.
1589 * p-lang.c (pascal_language_defn): Likewise.
1590 * language.c (unknown_language_defn): Likewise.
1591 (auto_language_defn): Likewise.
1592 (local_language_defn): Likewise.
1593 * jv-lang.c (java_language_defn): Initialize field
1594 'la_varobj_ops' with java_varobj_ops.
1595 * varobj.c (varobj_create): Update.
1596 * varobj.h (default_varobj_ops): Define macro.
1598 2013-10-25 Pedro Alves <palves@redhat.com>
1600 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1602 (cp_print_static_field): If the value is entirely optimized out,
1603 print <optimized out> here.
1604 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1606 * p-valprint.c (pascal_object_print_static_field): If the value is
1607 entirely optimized out, print <optimized out> here.
1608 * valops.c (do_search_struct_field)
1609 (value_struct_elt_for_reference): No longer handle a NULL static
1611 * value.c (value_static_field): Return an optimized out value
1614 2013-10-25 Yao Qi <yao@codesourcery.com>
1616 * remote.c (remote_traceframe_info): Return early if
1617 traceframe is not selected.
1619 2013-10-25 Yao Qi <yao@codesourcery.com>
1621 * tracepoint.c (traceframe_fun): Remove.
1622 (traceframe_sal): Remove.
1623 (set_traceframe_context): Add local variables.
1625 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1627 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1630 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1632 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1633 failure from register information collection.
1635 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1637 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1639 (linux_corefile_thread_callback): Update accordingly.
1640 (linux_make_corefile_notes): Likewise.
1642 2013-10-24 Pedro Alves <palves@redhat.com>
1644 * NEWS (New options): Mention set/show startup-with-shell.
1645 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1647 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1648 startup-with-shell'.
1649 (show_startup_with_shell): New function.
1650 (_initialize_fork_child): Register the set/show startup-with-shell
1652 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1653 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1654 * procfs.c (procfs_init_inferior): Remove comment.
1655 * infcmd.c (startup_with_shell): New global.
1656 * inferior.h (startup_with_shell): Declare global.
1657 (STARTUP_WITH_SHELL): Delete.
1658 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1660 2013-10-23 Pedro Alves <palves@redhat.com>
1662 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1663 * common/signals.c: Include "gdb_assert.h".
1664 (signals): New field 'symbol'.
1665 (SET): Use the 'symbol' parameter.
1666 (gdb_signal_to_symbol_string): New function.
1667 * infrun.c (handle_inferior_event) <random signal>: In debug
1668 output, print the random signal enum as string in addition to its
1670 * target/waitstatus.c (target_waitstatus_to_string): Print the
1671 signal's enum value as string instead of the (POSIX) signal name.
1673 2013-10-23 Gary Benson <gbenson@redhat.com>
1676 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1677 from 32 to 18. Adjusted fscanf format string accordingly.
1678 (Avoids leaving cmd unterminated.)
1679 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1680 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1681 that local_address and remote_address will not overflow.
1682 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1683 leaving dependencies unterminated. Parse size as "%u" to match
1686 2013-10-22 Pedro Alves <palves@redhat.com>
1688 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1689 set ecs->random signal.
1691 2013-10-22 Pedro Alves <palves@redhat.com>
1693 * infrun.c (keep_going): Update comments.
1695 2013-10-22 Pedro Alves <palves@redhat.com>
1697 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1698 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1700 2013-10-22 Pedro Alves <palves@redhat.com>
1702 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1704 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1705 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1706 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1707 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1708 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1709 (GDB_SIGNAL_LAST): Change description string.
1710 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1711 Adjust to signal renaming.
1712 * darwin-nat.c (darwin_decode_message): Likewise.
1714 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1716 * MAINTAINERS (Write After Approval): Add myself to the list.
1718 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1720 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1721 forced off, downgrade them to software watchpoints if possible,
1722 and error out if not possible.
1723 (watch_command_1): Move watchpoint type selection closer to
1724 watchpoint creation, and extend the comments.
1726 2013-10-18 Pedro Alves <palves@redhat.com>
1729 * infrun.c (handle_inferior_event): Keep going if we got a random
1730 signal we should not stop for, instead of falling through to the
1733 2013-10-18 Yao Qi <yao@codesourcery.com>
1735 * c-varobj.c (cplus_number_of_children): Fix indentation.
1737 2013-10-17 Tom Tromey <tromey@redhat.com>
1740 * printcmd.c (printcmd): Call gdb_flush.
1742 2013-10-17 Tom Tromey <tromey@redhat.com>
1744 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1745 (elf_locate_sections): Update.
1747 2013-10-17 Yao Qi <yao@codesourcery.com>
1749 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1750 * ada-varobj.c: Remove the include of ada-varobj.h.
1751 (ada_varobj_get_number_of_children): Declare.
1752 (ada_varobj_get_name_of_child): Make it static.
1753 (ada_varobj_get_path_expr_of_child): Likewise.
1754 (ada_varobj_get_value_of_child): Likewise.
1755 (ada_varobj_get_type_of_child): Likewise.
1756 (ada_varobj_get_value_of_array_variable): Likewise.
1757 * ada-varobj.h: Remove.
1759 2013-10-17 Yao Qi <yao@codesourcery.com>
1761 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1762 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1763 * ada-varobj.c: Include "varobj.h".
1764 (ada_number_of_children): New. Moved from varobj.c.
1765 (ada_name_of_variable, ada_name_of_child): Likewise.
1766 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1767 (ada_type_of_child, ada_value_of_variable): Likewise.
1768 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1769 (ada_varobj_ops): New.
1770 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1771 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1772 * gdbtypes.h (get_target_type): Declare.
1773 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1775 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1776 (ANONYMOUS_UNION_NAME): Likewise.
1777 (get_type, get_value_type, get_target_type): Remove declarations.
1778 (value_get_print_value, varobj_value_get_print_value): Likewise.
1779 (c_number_of_children, c_name_of_variable): Likewise.
1780 (c_name_of_child, c_path_expr_of_child): Likewise.
1781 (c_value_of_child, c_type_of_child): Likewise.
1782 (c_value_of_variable, cplus_number_of_children): Likewise.
1783 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1784 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1785 (cplus_value_of_child, cplus_type_of_child): Likewise.
1786 (cplus_value_of_variable, java_number_of_children): Likewise.
1787 (java_name_of_variable, java_name_of_child): Likewise.
1788 (java_path_expr_of_child, java_value_of_child): Likewise.
1789 (java_type_of_child, java_value_of_variable): Likewise.
1790 (ada_number_of_children, ada_name_of_variable): Likewise.
1791 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1792 (ada_value_of_child, ada_type_of_child): Likewise.
1793 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1794 (ada_value_has_mutated): Likewise.
1795 (struct language_specific): Move it to varobj.h.
1796 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1797 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1799 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1801 (is_anonymous_child): Move it to c-varobj.c and rename to
1802 varobj_is_anonymous_child. Caller update.
1803 (get_type): Move it to c-varobj.c.
1804 (get_value_type): Rename it varobj_get_value_type. Make it
1806 (get_target_type): Move it gdbtypes.c.
1807 (varobj_formatted_print_options): New function.
1808 (value_get_print_value): Rename it to
1809 varobj_value_get_print_value and make it extern.
1810 (varobj_value_is_changeable_p): Make it extern.
1811 (adjust_value_for_child_access): Move it to c-varobj.c.
1812 (default_value_is_changeable_p): Rename it to
1813 varobj_default_value_is_changeable_p. Make it extern.
1814 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1815 (c_name_of_child, c_path_expr_of_child): Likewise.
1816 (c_value_of_child, c_type_of_child): Likewise.
1817 (c_value_of_variable, cplus_number_of_children): Likewise.
1818 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1819 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1820 (cplus_value_of_child, cplus_type_of_child): Likewise.
1821 (cplus_value_of_variable): Likewise.
1822 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1823 (java_name_of_child, java_path_expr_of_child): Likewise.
1824 (java_value_of_child, java_type_of_child): Likewise.
1825 (java_value_of_variable): Likewise.
1826 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1827 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1828 (ada_value_of_child, ada_type_of_child): Likewise.
1829 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1830 (ada_value_has_mutated): Likewise.
1831 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1832 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1833 (c_varobj_ops, cplus_varobj_ops): Declare.
1834 (java_varobj_ops, ada_varobj_ops): Declare.
1835 (varobj_default_value_is_changeable_p): Declare.
1836 (varobj_value_is_changeable_p): Declare.
1837 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1838 (varobj_get_path_expr_parent): Declare.
1839 (varobj_value_get_print_value): Declare.
1840 (varobj_formatted_print_options): Declare.
1841 (varobj_restrict_range): Declare.
1843 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1845 * target/waitstatus.h (target_waitkind): Remove spurious
1846 character from the comments.
1848 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1850 * gdbarch.sh (get_longjmp_target): Add method documentation.
1851 * gdbarch.h: Regenerate.
1853 2013-10-16 Tom Tromey <tromey@redhat.com>
1855 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1858 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1860 * gcore.in: Call GDB using the full path to the gcore script.
1861 Error out if the GDB binary is not found.
1863 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1866 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1869 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1872 * target.c (target_disable_btrace): Fix invalid return value for
1874 (target_teardown_btrace): Likewise.
1876 2013-10-14 Yao Qi <yao@codesourcery.com>
1878 * varobj.c (struct varobj): Move most of the fields to
1880 (struct varobj_dynamic): New struct.
1881 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1882 (varobj_has_more): Likewise.
1883 (dynamic_varobj_has_child_method): Likewise.
1884 (update_dynamic_varobj_children): Likewise.
1885 (varobj_get_num_children): Likewise.
1886 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1887 (install_new_value_visualizer): Likewise.
1888 (install_new_value_visualizer, install_new_value): Likewise.
1889 (varobj_update, new_variable, free_variable): Likewise.
1890 (my_value_of_variable, value_get_print_value): Likewise.
1891 (install_visualizer): Change the type of parameter 'var' to
1892 'struct varobjd_dynamic *'. Callers update.
1893 * varobj.h (struct varobj): Moved from varobj.c.
1894 (struct varobj) <dynamic>: New field.
1896 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1898 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1899 as the preferred name of r30.
1900 * nios2-linux-tdep.c (reg_offsets): Likewise.
1901 * features/nios2-cpu.xml: Likewise.
1902 * features/nios2-linux.c: Regenerated.
1903 * features/nios2.c: Regenerated.
1904 * regformats/nios2-linux.dat: Regenerated.
1906 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1908 Canonicalize directories for EXEC_FILENAME.
1909 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1911 * utils.c (gdb_realpath_keepfile): New function.
1912 * utils.h (gdb_realpath_keepfile): New declaration.
1914 2013-10-11 Doug Evans <dje@google.com>
1916 * Makefile.in (GDBFLAGS): New variable.
1919 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1921 * NEWS: Add entry documenting the new "-catch-assert" and
1922 "-catch-exception" GDB/MI commands.
1924 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1926 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1928 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1929 "enabled". Set B->ENABLE_STATE accordingly.
1930 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1932 (create_ada_exception_catchpoint): Add declaration.
1933 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1934 (create_ada_exception_catchpoint): Make non-static. Add new
1935 parameter "disabled". Use it in call to
1936 init_ada_exception_breakpoint.
1937 (catch_ada_exception_command): Add parameter "enabled" in call
1938 to create_ada_exception_catchpoint.
1939 (catch_assert_command): Likewise.
1941 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1943 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1944 "catch-exception" commands.
1945 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1946 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1948 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1950 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1951 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1952 of all its enumerates with "ada_". Update the rest of this
1955 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1957 * ada-lang.c (ada_decode_exception_location): Delete.
1958 (create_ada_exception_catchpoint): Remove arguments "sal",
1959 "addr_string" and "ops". Add argument "ex_kind" instead.
1960 Adjust implementation accordingly, calling ada_exception_sal
1961 to get the entities it no longer gets passed as arguments.
1962 Document the function's arguments.
1963 (catch_ada_exception_command): Use catch_ada_exception_command_split
1964 instead of ada_decode_exception_location, and update call to
1965 create_ada_exception_catchpoint.
1966 (catch_ada_assert_command_split): Renames
1967 ada_decode_assert_location. Remove parameters "addr_string" and
1968 "ops", and now returns void. Adjust implementation accordingly.
1969 Update the function documentation.
1970 (catch_assert_command): Use catch_ada_assert_command_split
1971 instead of ada_decode_assert_location. Update call to
1972 create_ada_exception_catchpoint.
1974 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1976 * utils.h (perror_warning_with_name): Add declaration.
1977 * utils.c (perror_warning_with_name): New function.
1978 * cli/cli-cmds.c (source_script_with_search): Add call to
1979 perror_warning_with_name if from_tty is nul.
1981 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1983 * utils.c (perror_string): New function, extracted out of
1984 throw_perror_with_name.
1985 (throw_perror_with_name): Rework to use perror_string.
1987 2013-10-11 Yao Qi <yao@codesourcery.com>
1989 * remote.c (discard_pending_stop_replies_in_queue): Update
1991 (struct stop_reply) <rs>: New field.
1992 (remove_stop_reply_of_remote_state): New function.
1993 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1994 Callers update. Pass remove_stop_reply_of_remote_state to
1996 (remote_parse_stop_reply): Initialize field 'rs'.
1998 2013-10-10 Will Newton <will.newton@linaro.org>
2000 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2003 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2005 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2006 serial_baud_show_cmd.
2007 (_initialize_cli_cmds): Delete the code creating the
2008 "set/show remotebaud" commands.
2009 * serial.c (baud_rate): Move here from top.c.
2010 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2011 (_initialize_serial): Create "set/show serial baud" commands.
2012 Add "set/show remotebaud" command aliases.
2013 * top.c (baud_rate): Moved to serial.c.
2014 * NEWS: Document the new "set/show serial baud" commands,
2015 replacing "set/show remotebaud".
2017 2013-10-09 Pedro Alves <palves@redhat.com>
2019 * breakpoint.c (insert_bp_location): Use memory_error_message to
2020 build the memory error string.
2021 * c-lang.c: Include "gdbcore.h".
2022 (c_get_string): Use memory_error to throw error.
2023 (target_xfer_memory_error): Delete.
2024 (memory_error_message): New, factored out from
2025 target_xfer_memory_error.
2026 (memory_error): Change parameter type to target_xfer_error.
2028 (read_memory): Use memory_error instead of
2029 target_xfer_memory_error.
2030 * gdbcore.h: Include "target.h".
2031 (memory_error): Change parameter type to target_xfer_error.
2032 (memory_error_message): Declare function.
2033 * target.c (target_read_memory, target_read_stack)
2034 (target_write_memory, target_write_raw_memory): Return
2035 TARGET_XFER_E_IO on error. Adjust comments.
2036 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2038 * target.h (target_read, target_insert_breakpoint)
2039 (target_remove_breakpoint): Adjust comments.
2040 * valprint.c (partial_memory_read): Rename parameter, and adjust
2042 (val_print_string): Use memory_error_message to build the memory
2045 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2047 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2048 result variable. Rename variable fopen_e_ever_failed to
2049 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2051 2013-10-09 Pedro Alves <palves@redhat.com>
2053 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2054 (monitor_write_memory_longlongs, monitor_write_memory_block):
2055 Constify 'myaddr' parameter.
2056 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2058 (monitor_xfer_partial): New function.
2059 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2060 hook. Install a to_xfer_partial hook.
2062 2013-10-09 Tom Tromey <tromey@redhat.com>
2064 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2065 bfd_get_alt_debug_link_info.
2067 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2069 New flag OBJF_NOT_FILENAME.
2070 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2071 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2073 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2074 symbol_file_add_from_bfd.
2075 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2077 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2079 * objfiles.h (OBJF_NOT_FILENAME): New.
2081 2013-10-08 Tom Tromey <tromey@redhat.com>
2083 * Makefile.in (SFILES): Add build-id.c.
2084 (HFILES_NO_SRCDIR): Add build-id.h.
2085 * build-id.c: New file, largely from elfread.c. Modified
2087 * build-id.h: New file.
2088 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2089 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2090 Search for dwz file using build-id.
2091 * elfread.c (build_id_bfd_get, build_id_verify)
2092 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2094 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2096 * ada-lang.c (compare_names_with_case): Renamed from
2097 compare_names, adding a new parameter "casing" and its handling.
2098 New function documentation.
2099 (compare_names): New function, implemented using
2100 compare_names_with_case.
2102 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2104 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2106 2013-10-07 Tom Tromey <tromey@redhat.com>
2108 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2109 demangled_names_hash.
2110 (free_objfile): Don't delete the demangled_names_hash.
2111 * objfiles.h (struct objfile_per_bfd_storage)
2112 <demangled_names_hash>: New field.
2113 (struct objfile) <demangled_names_hash>: Move to
2114 objfile_per_bfd_storage.
2115 * symfile.c (reread_symbols): Don't delete the
2116 demangled_names_hash.
2117 * symtab.c (create_demangled_names_hash): Update.
2118 (symbol_set_names): Update.
2120 2013-10-07 Tom Tromey <tromey@redhat.com>
2122 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2123 needs_relocations>: New fields.
2124 (gdb_bfd_requires_relocations): New function.
2125 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2126 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2127 the BFD needs relocations applied.
2129 2013-10-07 Pedro Alves <palves@redhat.com>
2131 PR breakpoints/11568
2132 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2133 the thread list" instead of "gone".
2135 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2137 * NEWS: Mention new convenience variable $_exitsignal.
2138 * corelow.c (core_open): Reset exit convenience variables. Set
2139 $_exitsignal to the uncaught signal which generated the corefile.
2140 * infrun.c (handle_inferior_event): Reset exit convenience
2141 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2142 (clear_exit_convenience_vars): New function.
2143 * inferior.h (clear_exit_convenience_vars): New prototype.
2145 2013-10-06 Yao Qi <yao@codesourcery.com>
2147 * varobj.h: Add comments to enum varobj_languages.
2149 2013-10-04 Doug Evans <dje@google.com>
2151 Add support for DWP file format version 2.
2152 * NEWS: Mention support for DWP file format version 2.
2153 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2154 union of asection, containing_section. New fields virtual_offset
2155 and is_virtual. Change type of readin filed from int to char.
2156 (dwo_sections, dwo_file): Tweak comments.
2157 (dwp_v2_section_ids): New enum.
2158 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2160 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2162 (virtual_v2_dwo_sections): New struct.
2163 (dwp_hash_table): New fields version, nr_columns. Change type of
2164 section_pool field to a union.
2165 (dwp_file): New field version.
2166 (dwarf2_has_info): Check for virtual sections.
2167 (get_containing_section): New function.
2168 (get_section_bfd_owner, get_section_bfd_section): Call it.
2169 (dwarf2_locate_sections): Update.
2170 (dwarf2_section_empty_p): Update.
2171 (dwarf2_read_section): Handle virtual sections.
2172 (locate_dwz_sections): Update.
2173 (create_dwp_hash_table): Document and handle V2 format.
2174 (locate_v1_virtual_dwo_sections): Renamed from
2175 locate_virtual_dwo_sections and update. All callers updated.
2176 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2177 Delete arg htab. Rename arg section_index to unit_index.
2178 All callers updated.
2179 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2181 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2182 (lookup_dwo_unit_in_dwp): Add V2 support.
2183 (dwarf2_locate_dwo_sections): Update.
2184 (dwarf2_locate_common_dwp_sections): Renamed from
2185 dwarf2_locate_dwp_sections and update. All callers updated.
2186 (dwarf2_locate_v2_dwp_sections): New function.
2187 (open_and_init_dwp_file): Add V2 support.
2188 (read_str_index): New locals str_section, str_offsets_section.
2190 2013-10-04 Pedro Alves <palves@redhat.com>
2192 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2193 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2194 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2195 describing comments with references to ptid.h.
2196 * common/ptid.h: Remove intro description of constructors,
2197 accessors and predicates.
2198 (struct ptid): Reformat.
2199 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2200 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2201 describing comments.
2203 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2205 * aix-thread.c (sync_threadlists): Add missing ')' in call
2208 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2210 * procfs.c (procfs_init_inferior): Fix typo causing the build
2213 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2215 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2217 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2219 * mi/mi-main.c (run_one_inferior): Add function description.
2220 Make ARG a pointer to an integer whose value determines whether
2221 we should "run" or "start" the program.
2222 (mi_cmd_exec_run): Add handling of the "--start" option.
2223 Reject all other command-line options.
2224 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2226 2013-10-04 Yao Qi <yao@codesourcery.com>
2228 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2229 (struct notif_client) <pending_event>: Moved
2230 to struct remote_notif_state.
2232 (struct remote_notif_state) <pending_event>: New field.
2233 (notif_event_xfree): Declare.
2234 * remote-notif.c (handle_notification): Adjust.
2235 (notif_event_xfree): New function.
2236 (do_notif_event_xfree): Call notif_event_xfree.
2237 (remote_notif_state_xfree): Call notif_event_xfree to free
2238 each element in field pending_event.
2239 * remote.c (discard_pending_stop_replies): Remove declaration.
2240 (discard_pending_stop_replies_in_queue): Declare.
2241 (remote_close): Call discard_pending_stop_replies_in_queue
2242 instead of discard_pending_stop_replies.
2243 (remote_start_remote): Adjust.
2244 (stop_reply_xfree): Call notif_event_xfree.
2245 (notif_client_stop): Adjust initialization.
2246 (remote_notif_remove_all): Rename it to ...
2247 (remove_stop_reply_for_inferior): ... this. Update comments.
2248 Don't check INF is NULL.
2249 (discard_pending_stop_replies): Return early if notif_state is
2250 NULL. Adjust. Don't check INF is NULL.
2251 (remote_notif_get_pending_events): Adjust.
2252 (discard_pending_stop_replies_in_queue): New function.
2253 (remote_wait_ns): Likewise.
2255 2013-10-04 Yao Qi <yao@codesourcery.com>
2257 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2258 (notif_queue): Remove.
2259 (remote_notif_process): Add one parameter 'notif_queue'.
2260 Update comments. Callers update.
2261 (remote_async_get_pending_events_token): Remove.
2262 (remote_notif_register_async_event_handler): Remove.
2263 (remote_notif_unregister_async_event_handler): Remove.
2264 (handle_notification): Add parameter 'notif_queue'. Update
2265 comments. Callers update.
2266 (notif_xfree): Remove.
2267 (remote_notif_state_allocate): New function.
2268 (remote_notif_state_xfree): New function.
2269 (_initialize_notif): Remove code to allocate queue.
2270 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2271 (struct remote_notif_state): New.
2272 (handle_notification): Update declaration.
2273 (remote_notif_process): Likewise.
2274 (remote_notif_register_async_event_handler): Remove.
2275 (remote_notif_unregister_async_event_handler): Remove.
2276 (remote_notif_state_allocate): Declare.
2277 (remote_notif_state_xfree): Declare.
2278 * remote.c (struct remote_state) <notif_state>: New field.
2279 (remote_close): Don't call
2280 remote_notif_unregister_async_event_handler. Call
2281 remote_notif_state_xfree.
2282 (remote_open_1): Don't call
2283 remote_notif_register_async_event_handler. Call
2284 remote_notif_state_allocate.
2286 2013-10-04 Yao Qi <yao@codesourcery.com>
2288 * varobj.c (create_child_with_value): Remove 'const' from the
2289 type of parameter 'name'.
2290 (varobj_add_child): Likewise.
2291 (install_dynamic_child): Remove 'const' from the type of
2293 (varobj_add_child): Likewise.
2294 (create_child_with_value): Likewise. Update comments. Don't
2296 (update_dynamic_varobj_children): Duplicate 'name'
2297 and pass it to install_dynamic_child.
2299 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2301 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2302 conversion logic to occur after PyLong_Check. Comment on order
2303 change significance.
2304 * python/py-arch.c (archpy_disassemble): Comment on order of
2305 conversion for integers and longs.
2307 2013-10-03 Pedro Alves <palves@redhat.com>
2309 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2310 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2311 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2312 PTRACE_O_TRACEFORK is not supported.
2313 (linux_test_for_tracesysgood): New function.
2314 (linux_test_for_tracefork): New function, factored out from
2315 linux_check_ptrace_features, and also don't kill child_pid here.
2317 2013-10-03 Tristan Gingold <gingold@adacore.com>
2319 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2320 Remove verbose error reporting. Use detected state to
2321 thread_set_state call.
2322 (i386_darwin_dr_get): Fix return type. Remove verbose error
2324 Remove trailing spaces.
2326 2013-10-02 Pedro Alves <palves@redhat.com>
2328 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2329 val_print_optimized_out.
2330 * jv-valprint.c (java_print_value_fields): Likewise.
2331 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2332 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2333 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2334 new optimized out value.
2335 * findvar.c (address_from_register): Likewise.
2336 * frame.c (put_frame_register): Tweak error string to say the
2337 register was not saved, rather than optimized out.
2338 * infcmd.c (default_print_one_register_info): Adjust call to
2339 val_print_optimized_out. Use value_of_register instead of
2340 get_frame_register_value.
2341 * mi/mi-main.c (output_register): Use value_of_register instead of
2342 get_frame_register_value.
2343 * valprint.c (valprint_check_validity): Likewise.
2344 (val_print_optimized_out): New value parameter. If the value is
2345 lval_register, print <not saved> instead.
2346 (value_check_printable, val_print_scalar_formatted): Adjust calls
2347 to val_print_optimized_out.
2348 * valprint.h (val_print_optimized_out): New value parameter.
2349 * value.c (struct value) <optimized_out>: Extend comment.
2350 (error_value_optimized_out): New function.
2351 (require_not_optimized_out): Use it. Use a different string for
2352 lval_register values.
2353 * value.h (error_value_optimized_out): New declaration.
2354 * NEWS: Mention <not saved>.
2356 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2358 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2359 strcmp to compare two symtab filenames.
2361 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2363 * symtab.c (search_symbols_equal): Delete.
2364 (sort_search_symbols_remove_dups): Replace call to
2365 search_symbols_equal by call to compare_search_syms,
2366 adjusting as necessary.
2368 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2371 * python/python.c: Document gdb.execute command in Python help.
2373 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2375 * python/py-frame.c (frame_info_to_frame_object): Use
2376 gdbpy_convert_exception. Clean up Python object on failure.
2378 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2380 * python/lib/gdb/command/frame_filters.py
2381 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2382 (ShowFrameFilterPriority.invoke): Ditto.
2384 2013-10-01 Keith Seitz <keiths@redhat.com>
2386 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2387 (parse_linespec): Make 'argptr' const.
2388 Remove temporary cast of 'argptr' to const char **.
2389 (decode_line_full): Pass const pointer to parse_linespec.
2390 (decode_line_1): Likewise.
2391 (decode_objc): Make local variable 'new_argptr' const.
2392 (find_function_symbols): Remove temporary cast to char *
2394 * objc-lang.c (find_imps): Make argument 'method' const.
2396 * objc-lang.h (find_imps): Likewise.
2398 2013-10-01 Keith Seitz <keiths@redhat.com>
2400 * completer.c (skip_quoted_chars): Make all arguments const.
2402 (skip_quoted): Likewise.
2403 * completer.h (skip_quoted_chars): Likewise.
2404 (skip_quoted): Likewise.
2405 * defs.h (skip_quoted): Remove duplicate declaration.
2406 * jv-exp.y: Include completer.h.
2407 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2408 * p-exp.y: Include completer.h.
2410 2013-10-01 Keith Seitz <keiths@redhat.com>
2412 * c-exp.y (parse_number): Make first argument const.
2413 Make a copy of the input to manipulate.
2414 (c_parse_escape): Make first argument const.
2415 Make local variable 'tokptr' const.
2416 (parse_string_or_char): Make first two arguments const.
2417 (macro_original_text): Make const.
2418 (lex_one_token): Make local variable 'tokstart' const.
2419 Likewise for local variables named 'p'.
2420 Cast away const for struct stoken (temporary).
2421 * c-lang.h (c_parse_escpae): Make first argument const.
2422 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2424 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2426 * f-exp.y (parse_number): Make first argument const.
2427 (match_string_literal): Make local variable 'tokstart'
2429 (yylex): Make local variable 'p' const.
2430 Cast away const for struct stoken (temporary).
2431 * go-exp.y (parse_number): Make first argument const.
2432 (parse_string_or_char): Likewise.
2433 Make local variable 'tokstart' const.
2434 (lex_one_token): Likewise for numerous locals called 'p'.
2435 Cast away const for struct stoken (temporary).
2436 * jv-exp.y (parse_number): Make first argument const.
2437 Make local variables 'tokstart' and 'tokptr' const.
2438 Cast away const for call to skip_quoted (temporary).
2439 (yylex): Make local variable 'p' const.
2440 Cast away const for struct stoken (temporary).
2441 * m2-exp.y (parse_number): Make local variable 'p' const.
2442 (yylex): Likewise for 'tokstart'.
2443 Cast away const for struct stoken (temporary).
2444 Make local variable 'p' const.
2445 * macroexp.c (get_character_constant): Pass a const string
2447 (get_string_literal): Likewise.
2448 (macro_expand_next): Make first argument const.
2449 Cast away const for init_shared_buffer.
2450 * macroexp.h (macro_expand_next): Make first argument const.
2451 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2452 Pass a const string to c_parse_escape.
2453 Make local variables 'p' and 'namestart' const.
2454 * parse.c (lexptr): Make const.
2455 (prev_lexptr): Likewise.
2456 (find_template_name_end): Return const.
2457 Make argument const, too.
2458 (parse_exp_in_context): Make first argument const.
2459 Remove the entire const_hack.
2460 (parse_exp_in_context_1): Make first argument const.
2461 * parser-defs.h (find_template_name_end): Return const.
2462 Make argument const, too.
2463 (lexptr): Make const.
2464 (prev_lexptr): Likewise.
2465 * utils.c (parse_escape): Make second argument const.
2466 * utils.h (parse_escape): Likewise.
2468 2013-10-01 Keith Seitz <keiths@redhat.com>
2470 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2472 (block_lookup): Make 'raw_name' and 'name' const.
2473 * ada-lex.l (processString): Update for struct stoken.ptr.
2474 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2475 (operator_stoken): Likewise.
2476 (lex_one_token): Remove temporary cast to char * for
2478 * f-exp.y (yylex): Likewise.
2479 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2480 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2481 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2483 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2484 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2485 * linespec.c (struct ls_parser): Make 'stream' const.
2486 (find_parameter_list_end): Make argument 'input' and local
2488 (linespec_lexer_lex_string): Make local variables 'start' and
2490 Use skip_spaces_const instead of skip_spaces.
2491 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2493 (parse_linespec): Temporarily cast 'argptr' to const for
2494 'parser->lexer.stream'.
2495 * m2-exp.y (yylex): Remove temporary cast to char * for
2497 * objc-lang.c (add_msglist): Make local variable 'p' const.
2498 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2499 (exp : STRING): Make 'sp' const.
2500 (parse_number): Make argument 'p' const.
2501 * parser-defs.h (struct stoken): Make 'ptr' const.
2503 2013-10-01 Doug Evans <dje@google.com>
2505 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2507 2013-10-01 Yao Qi <yao@codesourcery.com>
2509 * varobj.c (c_value_of_root): Remove declaration.
2510 (cplus_value_of_root, java_value_of_root): Likewise.
2511 (ada_value_of_root): Likewise.
2512 (struct language_specific) <value_of_root>: Remove.
2513 (languages): Update initialization.
2514 (check_scope): Move earlier.
2515 (c_value_of_root): Move earlier and rename to ...
2516 (value_of_root_1): ... this.
2517 (value_of_root): Caller update.
2518 (cplus_value_of_root, java_value_of_root): Remove.
2519 (ada_value_of_root): Remove.
2521 2013-10-01 Yao Qi <yao@codesourcery.com>
2523 * varobj.c (varobj_format_string): Remove "unknown".
2524 (languages): Remove the first element.
2525 * varobj.h (enum varobj_languages): Remove vlang_c.
2527 2013-10-01 Yao Qi <yao@codesourcery.com>
2529 * varobj.c (struct language_specific) <language>: Remove.
2530 (languages): Update the initialization.
2532 2013-10-01 Yao Qi <yao@codesourcery.com>
2534 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2535 "solib-target.h". Include "windows-tdep.h".
2536 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2537 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2538 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2539 windows-tdep.o to gdb_target_obs.
2541 2013-10-01 Yao Qi <yao@codesourcery.com>
2543 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2545 (amd64_windows_init_abi): Don't call set_solib_ops and
2546 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2547 windows_init_abi instead.
2548 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2550 (i386_cygwin_init_abi): Don't call set_solib_ops,
2551 set_gdbarch_has_dos_based_file_system and
2552 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2553 windows_init_abi instead.
2554 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2555 (windows_init_abi): New function.
2556 (windows_iterate_over_objfiles_in_search_order): Make it
2558 * windows-tdep.h (windows_init_abi): Declare.
2559 (windows_iterate_over_objfiles_in_search_order): Remove
2562 2013-10-01 Jerome Guitton <guitton@adacore.com>
2564 Checked in by Joel Brobecker <brobecker@adacore.com>
2565 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2566 incomplete dictionnary instead of None in case of missing
2567 environment variables.
2568 (elinos_init): in case of an incomplete environment, best
2569 effort to load system libraries instead of abort.
2571 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2573 * ada-lang.c (ada_has_this_exception_support): Ignore
2574 mst_solib_trampoline minimal symbols.
2576 2013-09-30 Tristan Gingold <gingold@adacore.com>
2578 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2579 hardware watchpoint.
2580 (i386_darwin_dr_set): Support 32 and 64 bit states.
2581 (i386_darwin_dr_get): Likewise.
2582 (i386_darwin_dr_set_control): Make static.
2583 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2584 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2586 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2588 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2589 Replace TIDGET with ptid_get_lwp.
2590 Replace GET_LWP with ptid_get_lwp.
2591 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2592 Replace BUILD_THREAD with ptid_build.
2593 Replace BUILD_LWP with ptid_build.
2594 Replace PIDGET with ptid_get_pid.
2595 Replace TIDGET with ptid_get_lwp.
2596 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2597 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2598 Replace TIDGET with ptid_get_lwp.
2599 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2600 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2601 Replace TIDGET with ptid_get_lwp.
2602 Replace GET_LWP with ptid_get_lwp.
2603 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2605 * breakpoint.c: Likewise.
2606 * common/ptid.c (ptid_is_pid): Condense check for
2607 null_ptid and minus_one_ptid.
2608 (ptid_lwp_p): New function.
2609 (ptid_tid_p): New function.
2610 * common/ptid.h: Update comments for accessors.
2611 (ptid_lwp_p): New prototype.
2612 (ptid_tid_p): New prototype.
2613 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2614 * gcore.c: Replace PIDGET with ptid_get_pid.
2615 * gdbthread.h: Likewise.
2616 * gnu-nat.c: Likewise.
2617 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2618 Replace TIDGET with ptid_get_lwp.
2619 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2620 * hppanbsd-nat.c: Likewise.
2621 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2622 Replace TIDGET with ptid_get_lwp.
2623 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2624 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2625 * infcmd.c: Likewise.
2626 * inferior.h: Likewise.
2627 * inflow.c: Likewise.
2628 * infrun.c: Likewise.
2629 * linux-fork.c: Likewise.
2630 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2631 Replace GET_PID with ptid_get_pid.
2632 Replace is_lwp with ptid_lwp_p.
2633 Replace GET_LWP with ptid_get_lwp.
2634 Replace BUILD_LWP with ptid_build.
2636 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2638 * common/linux-btrace.c: Move sys/syscall.h out of the
2639 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2640 Also check for SYS_perf_event_open before attempting to buid.
2642 2013-09-27 Doug Evans <dje@google.com>
2644 * dwarf2read.c (dwarf2_section_info): Add comment.
2645 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2647 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2648 (dwarf2_read_section): Delete unused local "header". Add section
2649 name to error message.
2650 (create_dwo_in_dwp): Tweak comment.
2651 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2653 * dwarf2read.c (die_reader_specs): Tweak comment.
2654 (get_section_bfd_owner, get_section_bfd_section): New functions.
2655 (get_section_name, get_section_file_name): New functions.
2656 (get_section_id, get_section_flags): New functions.
2657 (*): Use new functions to access section fields.
2659 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2660 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2661 arg "htab". All callers updated.
2662 (create_debug_types_hash_table): Remove redundant copy of
2664 (create_dwo_in_dwp): Tweak comments.
2665 (read_str_index): Tweak comment. Record dwarf form name in static
2668 2013-09-27 Pedro Alves <palves@redhat.com>
2670 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2671 (remote_filename_p): Add comment.
2672 * remote.c (remote_filename_p): Adjust to use
2673 REMOTE_SYSROOT_PREFIX.
2674 * solib.c (solib_find): When deciding whether we need to add a
2675 directory separator, check whether the sysroot is "remote:"
2676 instead of checking whether the patch has a drive spec. Add
2679 2013-09-27 Pedro Alves <palves@redhat.com>
2681 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2683 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2686 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2688 Fix set debug frame output.
2689 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2690 SENTINEL_FRAME entry lower to match enum frame_type order.
2692 2013-09-26 Pierre Muller <muller@sourceware.org>
2694 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2695 AMD64_R15_REGNUM when a register index is expected.
2696 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2697 Substitute in array.
2698 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2699 (amd64_push_arguments): Substitute in integer_regnum array.
2701 2013-09-25 Doug Evans <dje@google.com>
2703 * objfiles.c (allocate_objfile): Move comment to better place.
2705 New option "set debug symfile on".
2706 * NEWS: Mention "set debug symfile".
2707 * Makefile.in (SFILES): Add symfile-debug.c.
2708 (COMMON_OBS): Add symfile-debug.o.
2709 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2710 objfile's symbol functions.
2711 * objfiles.h (objfile_set_sym_fns): Declare.
2712 * symfile-debug.c: New file.
2713 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2714 objfile's symbol functions.
2715 (reread_symbols): Ditto.
2717 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2719 (add_symtab_fns): Update prototype.
2720 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2721 (registered_sym_fns): ... this.
2722 (symtab_fns): Update.
2723 (add_symtab_fns): New arg "flavour". All callers updated.
2724 (find_sym_fns): Rewrite to use new sym_fns registry.
2726 * symfile.h (struct sym_fns): Add "objfile" argument to
2727 sym_read_linetable. All uses updated.
2729 * symtab.c (domain_name, search_domain_name): New functions.
2730 * symtab.h (domain_name, search_domain_name): Declare.
2732 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2733 map_matching_symbols so objfile is first. All uses updated.
2734 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2735 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2737 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2740 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2743 2013-09-24 Doug Evans <dje@google.com>
2745 * objfiles.c (free_objfile): Move comment.
2747 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2749 * ada-exp.y (string_to_operator): Delete.
2750 (dummy_string_to_ada_operator): Delete.
2752 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2755 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2757 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2758 call_dummy_integer_regs, and classify.
2759 * amd64-tdep.h (amd64_classify): Add declaration.
2760 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2761 (amd64_reg_class): Delete, moved to i386-tdep.h.
2762 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2763 Replace call to amd64_classify by call to tdep->classify.
2764 (amd64_push_arguments): Get the list of registers to use for
2765 passing integer parameters from the gdbarch tdep structure,
2766 rather than using a hardcoded one. Replace calls to amd64_classify
2767 by calls to tdep->classify.
2768 (amd64_push_dummy_call): Get the register number used for
2769 the "hidden" argument from tdep->call_dummy_integer_regs.
2770 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2771 and tdep->call_dummy_integer_regs. Set tdep->classify.
2773 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2776 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2777 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2778 where tdep->memory_args_by_pointer is non-zero.
2780 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2783 * i386-tdep.h (struct gdbarch_tdep): Add new field
2784 integer_param_regs_saved_in_caller_frame.
2785 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2786 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2788 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2790 * amd64-windows-tdep.c: #include "value.h"
2791 (amd64_windows_classify): Delete.
2792 (amd64_windows_passed_by_integer_register)
2793 (amd64_windows_passed_by_xmm_register)
2794 (amd64_windows_passed_by_pointer)
2795 (amd64_windows_adjust_args_passed_by_pointer)
2796 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2797 (amd64_windows_push_dummy_call): New functions.
2798 (amd64_windows_init_abi): Remove setting of
2799 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2800 tdep->classify, tdep->memory_args_by_pointer and
2801 tdep->integer_param_regs_saved_in_caller_frame.
2802 Add call to set_gdbarch_push_dummy_call.
2804 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2806 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2807 objfile->original_name.
2809 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2811 Pass down original filename for objfile.
2812 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2813 * elfread.c (elf_symfile_read): Likewise.
2814 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2815 longer set ORIGINAL_NAME.
2816 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2817 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2818 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2819 symbol_file_add_from_bfd call.
2820 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2821 (macho_check_dsym): Add parameter filenamep. Change function comment.
2823 (macho_symfile_read): New variable dsym_filename. Update
2824 macho_check_dsym call. Use it for symbol_file_add_separate.
2825 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2826 it. Use it for objfile->original_name.
2827 (objfile_name): Return OBFD's filename, if available.
2828 * objfiles.h (allocate_objfile): Add new parameter name.
2829 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2830 * symfile-mem.c (symbol_file_add_from_memory): Update
2831 symbol_file_add_from_bfd call.
2832 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2834 (symbol_file_add_with_addrs): New parameter name, add function comment
2835 for it. Remove variable name. Update allocate_objfile call.
2836 (symbol_file_add_separate): New parameter name, add function comment
2837 for it. Update symbol_file_add_with_addrs call.
2838 (symbol_file_add_from_bfd): New parameter name. Update
2839 symbol_file_add_with_addrs call.
2840 (symbol_file_add): Update symbol_file_add_from_bfd call.
2841 (reread_symbols): New variable original_name. Save
2842 objfile->original_name by it.
2843 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2846 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2848 Code cleanup: Add objfile_name accessor function.
2849 * ada-lang.c (is_known_support_routine): Use objfile_name.
2850 * auto-load.c (source_gdb_script_for_objfile)
2851 (auto_load_objfile_script): Likewise.
2852 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2853 * dbxread.c (dbx_symfile_read): Likewise.
2854 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2855 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2856 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2857 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2858 (lookup_dwp_signatured_type, lookup_dwo_unit)
2859 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2860 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2861 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2862 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2863 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2864 (read_subrange_type, load_partial_dies, read_partial_die)
2865 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2866 (die_containing_type, build_error_marker_type, lookup_die_type)
2867 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2868 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2869 (get_DW_AT_signature_type, write_psymtabs_to_index)
2870 (save_gdb_index_command): Likewise.
2871 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2873 * expprint.c (dump_subexp_body_standard): Likewise.
2874 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2875 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2877 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2878 obj_name, use objfile_name for it, use the variable.
2879 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2881 * machoread.c (macho_symtab_read, macho_check_dsym)
2882 (macho_symfile_relocate): Likewise.
2883 * maint.c (maintenance_translate_address): Likewise.
2884 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2885 * minsyms.c (install_minimal_symbols): Likewise.
2886 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2888 (filter_overlapping_sections): Use objfile_name.
2889 (objfile_name): New function.
2890 * objfiles.h (struct objfile): Rename field name to original_name.
2891 (objfile_name): New prototype.
2892 * printcmd.c (sym_info, address_info): Use objfile_name.
2893 * probe.c (parse_probes, collect_probes, compare_probes)
2894 (info_probes_for_ops): Likewise.
2895 * progspace.c (clone_program_space): Likewise.
2896 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2897 (maintenance_info_psymtabs): Likewise.
2898 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2899 (source_section_scripts): Likewise.
2900 * python/py-objfile.c (objfpy_get_filename): Likewise.
2901 * python/py-progspace.c (pspy_get_filename): Likewise.
2902 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2903 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2904 * solib.c (solib_read_symbols): Likewise.
2905 * stabsread.c (scan_file_globals): Likewise.
2906 * stap-probe.c (handle_stap_probe): Likewise.
2907 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2908 (find_separate_debug_file_by_debuglink): Likewise.
2909 (reread_symbols): Likewise. Use the objfile field name renamed to
2911 (allocate_symtab): Use objfile_name.
2912 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2913 (dump_objfile, dump_msymbols, dump_symtab_1)
2914 (maintenance_print_msymbols, maintenance_print_objfiles)
2915 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2916 * target.c (target_translate_tls_address, target_info): Likewise.
2917 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2920 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2923 * probe.c (parse_probes): Rename variable objfile_name to
2926 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2928 Remove solib-sunos.c.
2929 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2930 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2931 * objfiles.c (rt_common_objfile): Remove.
2932 (free_objfile): Remove rt_common_objfile comparison.
2933 * objfiles.h (rt_common_objfile): Remove.
2934 * solib-sunos.c: Remove.
2935 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2937 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2939 Remove a.out NetBSD and OpenBSD hosts.
2940 * NEWS (Removed native configurations): New.
2941 * config/arm/nbsdaout.mh: Remove.
2942 * config/i386/nbsdaout.mh: Remove.
2943 * config/i386/obsdaout.mh: Remove.
2944 * config/m68k/nbsdaout.mh: Remove.
2945 * config/sparc/nbsdaout.mh: Remove.
2946 * config/vax/nbsdaout.mh: Remove.
2947 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2948 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2949 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2951 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2952 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2953 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2955 2013-09-23 Tom Tromey <tromey@redhat.com>
2957 * linespec.c (struct minsym_and_objfile): Remove.
2958 (minsym_and_objfile_d): Remove.
2959 (struct linespec, struct collect_info, linespec_parse_basic)
2960 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2961 (compare_msymbols, find_method, find_function_symbols)
2962 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2963 (add_minsym, search_minsyms_for_name): Update.
2965 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2967 * regcache.c: Add include of valprint.h.
2968 (dump_endian_bytes): Delete.
2969 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2971 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2973 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2975 2013-09-19 Pedro Alves <palves@redhat.com>
2977 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2980 2013-09-19 Pedro Alves <palves@redhat.com>
2981 Thomas Schwinge <thomas@codesourcery.com>
2982 Yue Lu <hacklu.newborn@gmail.com>
2984 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2985 Take a gdb_byte pointer instead of a char pointer.
2987 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2988 gnu_xfer_partial helper.
2989 (gnu_xfer_partial): New function.
2990 (gnu_target): Don't install a deprecated_xfer_memory hook.
2991 Install a to_xfer_partial hook.
2993 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2996 * main.c (captured_main): Replace catch_command_errors by
2997 catch_command_errors_const. Twice.
2998 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2999 (symbol_file_add): Make name parameter const.
3000 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3001 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3002 variable name. Change their usage accordingly.
3003 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3005 (symbol_file_add_main): Make args parameter const.
3007 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3008 Ulrich Weigand <uweigand@de.ibm.com>
3010 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3012 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3014 2013-09-18 Pedro Alves <palves@redhat.com>
3015 Yue Lu <hacklu.newborn@gmail.com>
3017 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3018 (gnu_create_inferior)
3019 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3020 (set_sig_thread_cmd): Use the lwpid field of ptids to
3021 store/extract thread ids instead of the tid field.
3022 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3024 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3026 * infcmd.c (default_print_one_register_info): Add detection of
3027 optimized out values.
3028 (default_print_registers_info): Switch to using
3029 get_frame_register_value.
3031 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3033 * infrun.c (handle_inferior_event): Check if we know the
3034 function start address before setting a resume breakpoint.
3036 2013-09-18 Pedro Alves <palves@redhat.com>
3038 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3039 minus_one_ptid instead of looking at the ptid's tid field and
3040 comparing that to -1.
3042 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3044 * main.h (get_gdb_program_name): Remove extra whitespace.
3046 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3048 * main.h (get_gdb_program_name): Add declaration.
3049 * main.c (get_gdb_program_name): Add definition.
3051 2013-09-17 Doug Evans <dje@google.com>
3053 * dwarf2read.c: Move definitions of complaint functions to after
3054 forward declarations of local functions.
3056 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3057 Pedro Alves <palves@redhat.com>
3060 * breakpoint.c (remove_threaded_breakpoints): New function.
3061 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3062 as thread_exit observer.
3064 2013-09-17 Pedro Alves <palves@redhat.com>
3067 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3068 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3069 * corelow.c (core_open):
3070 * frame.h (print_stack_frame, print_frame_info): New
3071 'set_current_sal' parameter.
3072 * infcmd.c (finish_command, kill_command): Adjust call to
3074 * inferior.c (inferior_command): Likewise.
3075 * infrun.c (normal_stop): Likewise.
3076 * linux-fork.c (linux_fork_context): Likewise.
3077 * record-full.c (record_full_goto_entry, record_full_restore):
3079 * remote-mips.c (common_open): Likewise.
3080 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3082 (print_frame_info): New 'set_current_sal' parameter. Set the last
3083 displayed sal depending on the new paremeter instead of looking at
3085 (backtrace_command_1, select_and_print_frame, frame_command)
3086 (current_frame_command, up_command, down_command): Adjust call to
3088 * thread.c (print_thread_info, restore_selected_frame)
3089 (do_captured_thread_select): Adjust call to print_stack_frame.
3090 * tracepoint.c (tfind_1): Likewise.
3091 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3092 (mi_cmd_stack_info_frame): Likewise.
3093 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3094 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3096 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3098 * value.c (isvoid_internal_fn): Replace "parameter" with
3101 2013-09-16 Stan Shebs <stan@codesourcery.com>
3103 * README: Update references to writing code for GDB.
3104 * configure.ac (build_warnings): Remove obsolete comment.
3105 * configure: Regenerate.
3106 * gdbarch.sh: Remove references to gdbint.texinfo.
3107 * gdbarch.h: Regenerate.
3108 * gdbtypes.c (objfile_type): Remove comments referencing internals
3111 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3113 * NEWS: Mention new convenience function $_isvoid.
3114 * value.c (isvoid_internal_fn): New function.
3115 (_initialize_values): Add new convenience function $_isvoid.
3117 2013-09-16 Pierre Muller <muller@sourceware.org>
3119 * arm-linux-tdep.c: Add "elf/common.h" header.
3120 Remove AT_HWCAP macro definintion as it is provided in
3122 * s390-tdep.c: Remove system header <elf.h>
3123 Add "elf/common.h" header for AT_HWCAP definition.
3124 (s390_core_read_description): Use correct CORE_ADDR
3125 for hwcap local variable used as third parameter
3126 of function target_auxv_search.
3128 2013-09-14 Pierre Muller <muller@sourceware.org>
3129 Tom Tromey <tromey@redhat.com>
3130 Pedro Alves <palves@redhat.com>
3132 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3133 mode if operating system doesn't know O_CLOEXEC.
3135 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3138 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3141 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3143 * NEWS: Mention TDB support.
3144 * features/s390-tdb.xml: New file.
3145 * features/s390-te-linux64.xml: New file.
3146 * features/s390x-te-linux64.xml: New file.
3147 * features/Makefile (WHICH): Add new tdescs above.
3148 (s390-te-linux64-expedite): Set.
3149 (s390x-te-linux64-expedite): Set.
3150 * features/s390-te-linux64.c: New file (generated).
3151 * features/s390x-te-linux64.c: New file (generated).
3152 * regformats/s390-te-linux64.dat: New file (generated).
3153 * regformats/s390x-te-linux64.dat: New file (generated).
3154 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3155 (HWCAP_S390_TE): Likewise.
3156 (S390_TDB_DWORD0_REGNUM): Likewise.
3157 (S390_TDB_DWORD0_REGNUM): Likewise.
3158 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3159 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3160 (S390_TDB_ATIA_REGNUM): Likewise.
3161 (S390_TDB_R0_REGNUM): Likewise.
3162 (S390_TDB_R1_REGNUM): Likewise.
3163 (S390_TDB_R2_REGNUM): Likewise.
3164 (S390_TDB_R3_REGNUM): Likewise.
3165 (S390_TDB_R4_REGNUM): Likewise.
3166 (S390_TDB_R5_REGNUM): Likewise.
3167 (S390_TDB_R6_REGNUM): Likewise.
3168 (S390_TDB_R7_REGNUM): Likewise.
3169 (S390_TDB_R8_REGNUM): Likewise.
3170 (S390_TDB_R9_REGNUM): Likewise.
3171 (S390_TDB_R10_REGNUM): Likewise.
3172 (S390_TDB_R11_REGNUM): Likewise.
3173 (S390_TDB_R12_REGNUM): Likewise.
3174 (S390_TDB_R13_REGNUM): Likewise.
3175 (S390_TDB_R14_REGNUM): Likewise.
3176 (S390_TDB_R15_REGNUM): Likewise.
3177 (S390_NUM_REGS): Increase.
3178 (S390_IS_TDBREGSET_REGNUM): New macro.
3179 (s390_regmap_tdb): Declare.
3180 (s390_sizeof_tdbregset): Define.
3181 (tdesc_s390_te_linux64): Declare.
3182 (tdesc_s390x_te_linux64): Likewise.
3183 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3184 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3185 (s390_regmap_tdb): New regmap.
3186 (s390_supply_tdb_regset): New function.
3187 (s390_tdb_regset): New regset.
3188 (s390_linux64v2_regset_sections): Add TDB regset to list.
3189 (s390x_linux64v2_regset_sections): Likewise.
3190 (s390_regset_from_core_section): Recognize TDB core note section.
3191 (s390_core_read_description): If HWCAP indicates TE support,
3192 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3193 (s390_gdbarch_init): Handle TDB regset.
3194 (_initialize_s390_tdep): Initialize new tdescs.
3195 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3196 (have_regset_tdb): New variable.
3197 (s390_native_supply): Support register invalidation.
3198 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3199 (check_regset): Treat ENODATA as "regset exists".
3200 (s390_linux_fetch_inferior_registers): Add TDB.
3201 (s390_read_description): Check for TDB existence and select
3203 * gdbserver/Makefile.in (clean): Add removal of new makefile
3205 (s390-te-linux64.c): New makefile target.
3206 (s390x-te-linux64.c): Likewise.
3207 * gdbserver/configure.srv (srv_regobj): Append new objects
3208 s390-te-linux64.o and s390x-te-linux64.o.
3209 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3210 s390x-te-linux64.xml, and s390-tdb.xml.
3211 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3213 (tdesc_s390_te_linux64): Likewise.
3214 (init_registers_s390x_te_linux64): Likewise.
3215 (tdesc_s390x_te_linux64): Likewise.
3216 (s390_check_regset): Treat ENODATA as "regset exists".
3217 (s390_arch_setup): Add TDB regset support.
3218 (initialize_low_arch): Initialize registers for new tdescs.
3220 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3222 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3223 (S390_IS_FPREGSET_REGNUM): New macro.
3224 * s390-tdep.c (s390_dwarf_regmap): Make const.
3225 (regnum_is_gpr_full): New function for replacing repeated code.
3226 (s390_pseudo_register_name): Use it.
3227 (s390_pseudo_register_type): Likewise.
3228 (s390_pseudo_register_read): Likewise.
3229 (s390_pseudo_register_write): Likewise.
3230 (s390_unwind_pseudo_register): Likewise.
3231 (s390_regmap_gregset): New format for regmap.
3232 (s390x_regmap_gregset): Likewise.
3233 (s390_regmap_fpregset): Likewise.
3234 (s390_regmap_upper): Likewise.
3235 (s390_regmap_last_break): Likewise.
3236 (s390_regmap_system_call): Likewise.
3237 (s390_supply_regset): Adjust to new regmap format.
3238 (s390_collect_regset): Likewise.
3239 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3240 (s390_native_collect): Likewise.
3241 (supply_gregset): Likewise.
3242 (fill_gregset): Likewise.
3243 (supply_fpregset): Likewise.
3244 (fill_fpregset): Likewise.
3245 (fetch_regset): Likewise.
3246 (store_regset): Likewise.
3247 (s390_linux_fetch_inferior_registers): Likewise.
3248 (s390_linux_fetch_inferior_registers): Likewise.
3250 2013-09-12 Andrew Pinski <apinski@cavium.com>
3252 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3254 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3256 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3258 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3260 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3262 2013-09-06 Pedro Alves <palves@redhat.com>
3264 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3265 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3266 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3267 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3268 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3271 2013-09-06 Pedro Alves <palves@redhat.com>
3273 * remote-sim.c (dump_mem): Constify buf parameter.
3274 gdbsim_xfer_inferior_memory): Rename to ...
3275 (gdbsim_xfer_memory): ... this. Adjust interface as
3276 target_xfer_partial helper.
3277 (gdbsim_xfer_partial): New function.
3278 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3279 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3281 2013-09-06 Pedro Alves <palves@redhat.com>
3283 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3284 host_address_to_string, and send debug output to gdb_stdlog.
3286 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3288 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3289 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3290 gdb_target_obs for cris target.
3291 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3292 (cris_gdbarch_init): Move calls to
3293 set_gdbarch_fetch_tls_load_module_address and
3294 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3295 Add call to gdbarch_init_osabi.
3296 * cris-linux-tdep.c: New file.
3297 * cris-tdep.h: New file.
3299 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3301 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3302 to deprecated_init_ui_hook.
3304 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3306 * cli/cli-interp.c (_initialize_cli_interp): Add a
3307 command_loop_proc to interp_procs.
3308 * event-top.c (cli_command_loop): Change signature to match
3309 interp_command_loop_ftype.
3310 * event-top.h (cli_command_loop): Same.
3311 * interps.c (interp_new): Require every interpreter to have a
3313 (current_interp_command_loop): Just call the command_loop_proc on
3314 the current interpreter.
3315 * tui/tui-interp.c (_initialize_tui_interp): Add a
3316 command_loop_proc to interp_procs.
3318 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3320 * cris-tdep.c (cris_gdbarch_init): Add call to
3321 get_gdbarch_fetch_tls_load_module_address.
3323 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3325 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3326 (cris_elf_gregset_t): Rename from elf_gregset_t.
3327 (crisv32_elf_gregset_t): Adjust.
3328 (cris_supply_gregset, fetch_core_registers): Adjust.
3330 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3332 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3334 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3336 * defs.h (deprecated_command_loop_hook): Remove, including
3337 references in comments.
3338 * interps.c (current_interp_command_loop): No longer use
3339 deprecated_command_loop_hook.
3340 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3342 * top.c (deprecated_command_loop_hook): Remove.
3344 2013-09-05 Pedro Alves <palves@redhat.com>
3346 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3347 local is now int instead of ULONGEST. Print it with %d
3348 instead of paddress.
3350 2013-09-05 Tristan Gingold <gingold@adacore.com>
3352 * MAINTAINERS: Remove avr maintainership.
3354 2013-09-05 Pedro Alves <palves@redhat.com>
3356 * findvar.c (value_of_register): Rework in terms of
3357 value_of_register_lazy.
3359 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3361 * symfile.c (add_symbol_file_command): Remove trailing
3362 whitespaces and blank line after comment.
3364 2013-09-05 Pedro Alves <palves@redhat.com>
3366 * tui/tui-regs.c (tui_register_format): Don't look at the
3367 register's name here. Return string representing register
3368 value instead of storing it in the data element.
3369 (tui_get_register): Compare register string representations
3370 instead of register value states and contents.
3372 2013-09-05 Pedro Alves <palves@redhat.com>
3375 * tui/tui-regs.c (tui_show_registers): Show registers of the
3376 selected frame, not the current frame.
3378 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3380 * MAINTAINERS (Write After Approval): Add myself to the list.
3382 2013-09-04 Doug Evans <dje@google.com>
3384 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3385 (queue_and_load_dwo_tu): New function.
3386 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3387 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3388 Make dependent_cu optional.
3389 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3390 and an older .gdb_index is in use, queue and load all its TUs too.
3392 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3394 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3395 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3396 variable search_flags.
3397 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3398 (OPF_RETURN_REALPATH): ... here.
3399 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3400 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3402 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3404 * solib.c (solib_find): Likewise. Four times.
3405 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3406 in the function comment and for the realpath_fptr variable.
3407 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3408 (find_and_open_source): Likewise. Twice.
3409 * symfile.c (symfile_bfd_open): Likewise, also twice.
3411 2013-09-04 Doug Evans <dje@google.com>
3413 * progspace.c (save_current_space_and_thread): Remove unnecessary
3414 call to save_current_inferior.
3416 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3418 * sh64-tdep.c (sh64_do_register): Return after printing message
3419 about unavailable register contents.
3421 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3422 Pedro Alves <palves@redhat.com>
3424 * symfile.c (add_symbol_file_command): Error out on unknown
3425 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3426 options and collapse into single conditional branch.
3428 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3430 * inf-child.c (inf_child_follow_fork): New parameter
3432 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3433 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3434 * inferior.h (detach_fork): Remove.
3435 * infrun.c (detach_fork): Adjust comment and make it
3437 (follow_fork): Pass detach_fork parameter to
3439 * linux-nat.c (linux_child_follow_fork): New parameter
3441 * target.c (target_follow_fork): New parameter detach_fork.
3442 Pass detach_fork as parameter and print its value.
3443 * target.h (struct target_ops) <to_follow_fork>: New int
3445 (target_follow_fork): New parameter detach_fork.
3447 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3449 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3450 Replace sec->bfd by sec->the_bfd_section->owner.
3452 2013-09-03 Yao Qi <yao@codesourcery.com>
3454 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3455 from linux_has_shared_address_space.
3456 (linux_has_shared_address_space): Call linux_is_uclinux.
3457 * linux-tdep.h (linux_is_uclinux): Declare.
3458 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3461 2013-09-03 Yao Qi <yao@codesourcery.com>
3463 * config/djgpp/fnchange.lst: Remove entry of
3464 i386-interix-nat.c and i386-interix-tdep.c.
3465 * configure.ac: Remove '*-*-interix*'.
3466 * configure: Re-generated.
3467 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3468 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3470 * osabi.c (gdb_osabi_names): Remove "Interix".
3472 2013-09-03 Yao Qi <yao@codesourcery.com>
3474 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3476 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3478 * record.h (record_print_flag) <record_print_src_line,
3479 record_print_insn_range>: Rename into ...
3480 (record_print_flag) <record_print_src_line,
3481 record_print_insn_range>: ... this. Update all users.
3483 2013-09-02 Pierre Muller <muller@sourceware.org>
3485 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3488 2013-09-02 Pierre Muller <muller@sourceware.org>
3490 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3491 by use of plongest function.
3493 2013-09-02 Tristan Gingold <gingold@adacore.com>
3495 * NEWS: Add entry mentioning support for native Windows x64
3498 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3499 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3500 (struct amd64_windows_frame_cache): New struct.
3501 (amd64_windows_w2gdb_regnum): New global.
3502 (pc_in_range, amd64_windows_frame_decode_epilogue)
3503 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3504 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3505 (amd64_windows_frame_this_id): New functions.
3506 (amd64_windows_frame_unwind): New static global.
3507 (amd64_windows_skip_prologue): New function.
3508 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3509 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3510 with amd64_windows_skip_prologue.
3512 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3516 2013-08-30 Pedro Alves <palves@redhat.com>
3518 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3521 2013-08-30 Pedro Alves <palves@redhat.com>
3523 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3526 2013-08-30 Pedro Alves <palves@redhat.com>
3528 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3529 Adjust arguments to print_stack_frame.
3531 2013-08-30 Pedro Alves <palves@redhat.com>
3533 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3535 2013-08-30 Pedro Alves <palves@redhat.com>
3537 * frame.h (show_and_print_stack_frame): Delete declaration.
3539 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3542 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3543 (archpy_name): Check for valid architecture.
3544 (archpy_disassemble): Ditto.
3546 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3548 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3549 instead of "long long" in call to ptrace64.
3551 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3553 * mi/mi-interp.c (mi_command_loop): Change signature to match
3554 interp_command_loop_ftype.
3555 (mi1_command_loop): Remove.
3556 (mi2_command_loop): Remove.
3557 (mi3_command_loop): Remove.
3558 (mi_interpreter_resume): Remove setting of
3559 deprecated_command_loop_hook.
3560 (_initialize_mi_interp): Set mi_command_loop as the command loop
3563 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3565 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3568 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3570 * value.c (allocate_value_contents): Make static.
3571 * value.h (allocate_value_contents): Remove prototype.
3573 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3575 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3576 of assembling value via allocate_value_lazy and attribute setter.
3577 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3578 assembling value via allocate_value_lazy and attribute setter.
3579 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3580 assembling value via allocate_value_lazy and attribute setter.
3582 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3584 * value.c (value_from_contents_and_address): Replace allocate_value and
3585 memcpy with value_from_contents.
3587 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3589 * python/py-framefilter.c (py_print_frame): Remove usage of
3590 PyString_AsString. Use python_string_to_host_string instead.
3591 Refactor function to work with a string as a new allocation
3592 instead of a pointer.
3593 (py_print_frame): Ditto.
3594 * python/lib/gdb/frames.py (return_list): Cain iterators together
3595 instead of adding them as a list.
3596 (_sort_list): Call return_list, and remove duplicate code.
3597 (execute_frame_filters): Convert iterator to a list with list().
3598 * python/lib/gdb/command/frame_filters.py
3599 (SetFrameFilterPriority._set_filter_priority): Convert priority
3600 attribute to an integer.
3601 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3602 wrapper function __next__.
3603 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3606 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3609 * python/py-framefilter.c (apply_frame_filter): Check
3610 gdb_python_initialized. Exit if the Python frame-filter code
3611 cannot be initialized.
3613 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3616 * top.c (print_gdb_version): Remove erroneous newline after help
3619 2013-08-29 Yao Qi <yao@codesourcery.com>
3621 * varobj.c (install_dynamic_child): Remove trailing space.
3622 Add one blank line after variable declaration.
3624 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3627 * corefile.c (get_exec_file): Use exec_filename.
3628 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3629 * exec.c (exec_close): Free EXEC_FILENAME.
3630 (exec_file_attach): New variable canonical_pathname. Use
3631 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3633 * exec.h (exec_filename): New.
3634 * inferior.c (print_inferior, inferior_command): Use
3635 PSPACE_EXEC_FILENAME.
3636 * mi/mi-main.c (print_one_inferior): Likewise.
3637 * progspace.c (clone_program_space, print_program_space): Likewise.
3638 * progspace.h (struct program_space): New field pspace_exec_filename.
3639 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3640 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3642 2013-08-28 Will Newton <will.newton@linaro.org>
3644 * common/linux-ptrace.c: Include stdint.h unconditionally.
3646 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3651 2013-08-28 Yao Qi <yao@codesourcery.com>
3652 Pedro Alves <palves@redhat.com>
3654 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3655 instead of stdio_fileopen.
3656 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3657 .Call stderr_fileopen instead of stdio_fileopen.
3658 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3659 [__MINGW32__] (stderr_file_fputs): New function.
3660 (stderr_fileopen): New function.
3661 * ui-file.h (stderr_fileopen): Declare.
3663 2013-08-27 Doug Evans <dje@google.com>
3665 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3666 (struct dwarf2_per_cu_data): Ditto.
3667 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3668 (process_imported_unit_die): Ditto.
3669 (follow_die_sig_1): Simplify assert.
3671 2013-08-27 Pedro Alves <palves@redhat.com>
3673 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3674 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3675 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3676 windows_xfer_memory directly.
3677 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3679 2013-08-27 Pedro Alves <palves@redhat.com>
3681 * darwin-nat.c (darwin_xfer_memory): Delete.
3682 (_initialize_darwin_inferior): Don't install a
3683 deprecated_xfer_memory method.
3685 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3686 Yao Qi <yao@codesourcery.com>
3688 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3689 (parse_no_frames_option): Remove.
3690 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3691 (mi_cmd_stack_list_args): Adjust.
3692 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3693 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3694 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3696 (list_args_or_locals): New parameter 'skip_unavailable'.
3698 * valprint.c (scalar_type_p): Rename to ...
3699 (val_print_scalar_type_p): ... this. Make extern.
3700 (val_print, value_check_printable): Adjust.
3701 * valprint.h (val_print_scalar_type_p): Declare.
3702 * value.c (value_entirely_unavailable): New function.
3703 * value.h (value_entirely_unavailable): Declare.
3705 * NEWS: Mention the new option "--skip-unavailable" to MI
3706 commands '-stack-list-locals', '-stack-list-arguments' and
3707 '-stack-list-variables'.
3709 2013-08-27 Yao Qi <yao@codesourcery.com>
3711 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3712 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3714 * mi/mi-getopt.c (mi_getopt): Remove.
3715 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3717 (mi_getopt): Call mi_getopt_1.
3718 (mi_getopt_silent): New.
3719 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3721 2013-08-26 Doug Evans <dje@google.com>
3724 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3725 .gdb_index is in use.
3726 * symfile.c (reread_symbols): Reset objfile->sf.
3728 * NEWS: Document "mt print objfiles" now takes optional regexp.
3729 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3730 regexp of objfiles to print.
3731 (_initialize_symmisc): Update doc string for "mt print objfiles".
3733 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3734 missing debug info checks.
3736 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3737 Ulrich Weigand <uweigand@de.ibm.com>
3739 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3740 line tables generated by XLC compiled binaries.
3742 2013-08-23 Doug Evans <dje@google.com>
3744 * symmisc.c (dump_symtab): Delete prototype.
3745 (dump_msymbols, dump_objfile): Ditto.
3746 (maintenance_info_symtabs): Mark as dont_repeat.
3747 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3749 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3750 debugging printf to better location.
3752 2013-08-23 Pedro Alves <palves@redhat.com>
3754 * target.c (target_read_live_memory): Change type of 'ret' local
3757 2013-08-23 Pedro Alves <palves@redhat.com>
3759 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3760 (remote_read_bytes): Change return type to LONGEST, and adjust to
3761 return a target_xfer_error on error.
3762 (remote_xfer_memory): Delete.
3763 (remote_flash_write): Change type of 'ret' local to LONGEST.
3764 (remote_xfer_partial, remote_xfer_partial): Adjust.
3765 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3767 2013-08-23 Pierre Muller <muller@sourceware.org>
3769 ARI fix: Push # directives to start of line.
3770 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3772 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3775 * breakpoint.c (enable_command, disable_command): Iterate over
3776 all specified breakpoint locations.
3778 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3780 * common/linux-ptrace.c (linux_fork_to_function): Push #
3781 directives to the start of the line.
3782 (linux_check_ptrace_features): Fix warning message to use
3785 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3787 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3788 nat/linux-waitpid.h.
3789 (linux-waitpid.o): New object file rule.
3790 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3791 (current_ptrace_options): Moved from linux-nat.c.
3792 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3794 (linux_fork_to_function): New function.
3795 (linux_grandchild_function): Likewise.
3796 (linux_child_function): Likewise.
3797 (linux_check_ptrace_features): New function, heavily
3798 based on linux-nat.c:linux_test_for_tracefork.
3799 (linux_enable_event_reporting): New function.
3800 (ptrace_supports_feature): Likewise.
3801 (linux_supports_tracefork): Likewise.
3802 (linux_supports_traceclone): Likewise.
3803 (linux_supports_tracevforkdone): Likewise.
3804 (linux_supports_tracesysgood): Likewise.
3805 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3806 gdbserver/linux-low.c.
3807 (linux_enable_event_reporting): New declaration.
3808 (linux_supports_tracefork): Likewise.
3809 (linux_supports_traceclone): Likewise.
3810 (linux_supports_tracevforkdone): Likewise.
3811 (linux_supports_tracesysgood): Likewise.
3812 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3813 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3814 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3815 * config/arm/linux.mh (NATDEPFILES): Likewise.
3816 * config/i386/linux.mh (NATDEPFILES): Likewise.
3817 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3818 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3819 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3820 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3821 * config/mips/linux.mh (NATDEPFILES): Likewise.
3822 * config/pa/linux.mh (NATDEPFILES): Likewise..
3823 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3824 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3825 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3826 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3827 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3828 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3829 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3830 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3831 ptrace's 4th argument's types.
3832 Check the type of PTRACE_TYPE_ARG4.
3833 * configure: Regenerate.
3834 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3835 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3836 (linux_supports_tracefork_flag): Remove.
3837 (linux_supports_tracesysgood_flag): Likewise.
3838 (linux_supports_tracevforkdone_flag): Likewise.
3839 (current_ptrace_options): Moved to
3840 common/linux-ptrace.c.
3841 (linux_tracefork_child): Remove.
3842 (my_waitpid): Remove.
3843 (linux_test_for_tracefork): Renamed to
3844 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3845 (linux_test_for_tracesysgood): Remove.
3846 (linux_supports_tracesysgood): Remove.
3847 (linux_supports_tracefork): Remove.
3848 (linux_supports_tracevforkdone): Remove.
3849 (linux_enable_tracesysgood): Remove.
3850 (linux_enable_event_reporting): Remove.
3851 (linux_init_ptrace): New function.
3852 (linux_child_post_attach): Call linux_init_ptrace.
3853 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3854 (linux_child_follow_fork): Call linux_supports_tracefork
3855 and linux_supports_tracevforkdone.
3856 (linux_child_insert_fork_catchpoint): Call
3857 linux_supports_tracefork.
3858 (linux_child_insert_vfork_catchpoint): Likewise.
3859 (linux_child_set_syscall_catchpoint): Call
3860 linux_supports_tracesysgood.
3861 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3862 * nat/linux-nat.h: New file.
3863 * nat/linux-waitpid.c: New file.
3864 * nat/linux-waitpid.h: New file.
3866 2013-08-22 Samuel Bronson <naesten@gmail.com>
3868 ARM Linux support for `catch syscall'.
3869 * syscalls/arm-linux.py: New file.
3870 * syscalls/arm-linux.xml: Likewise.
3871 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3872 (arm_linux_init_abi): Register the new function and syscall xml file.
3873 * data-directory/Makefile.in: Install the new syscall xml file.
3874 * NEWS: Brag about this.
3876 2013-08-22 Pedro Alves <palves@redhat.com>
3879 * corefile.c (target_xfer_memory_error): New function.
3880 (memory_error): Defer EIO to target_memory_error.
3881 (read_memory): Use target_xfer_partial, and handle finer-grained
3883 * target.c (target_xfer_error_to_string): New function.
3884 (memory_xfer_partial_1): If memory is known to be
3885 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3886 (target_xfer_partial): Make extern.
3887 * target.h (enum target_xfer_error): New enum.
3888 (target_xfer_error_to_string): Declare function.
3889 (target_xfer_partial): Declare function.
3890 (struct target_ops) <xfer_partial>: Adjust describing comment.
3892 2013-08-22 Alan Modra <amodra@gmail.com>
3894 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3895 * configure.tgt: Likewise as targets.
3897 2013-08-20 Doug Evans <dje@google.com>
3899 * buildsym.c (subfile_stack): Move here from buildsym.h.
3900 (pending_macros): Ditto.
3901 (get_macro_table): New function.
3902 (buildsym_init): Initialize subfile_stack.
3903 * coffread.c (type_vector,type_vector_length): Moved here from
3905 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3906 (coff_symtab_read): Use it.
3907 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3908 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3909 with call to get_macro_table.
3910 * stabsread.c (type_vector,type_vector_length): Moved here from
3912 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3913 * buildsym.h (get_macro_table): Declare.
3915 2013-08-20 Tom Tromey <tromey@redhat.com>
3917 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3919 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3921 2013-08-20 Doug Evans <dje@google.com>
3923 * blockframe.c: Remove #include "psymtab.h".
3924 * cp-support.c: Ditto.
3928 2013-08-20 Tom Tromey <tromey@redhat.com>
3931 * exceptions.h (return_mask): Now an enum.
3932 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3935 2013-08-20 Tom Tromey <tromey@redhat.com>
3937 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3939 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3940 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3941 * jit.c (jit_object_close_impl): Update.
3942 * jv-lang.c (get_dynamics_objfile): Update.
3943 * linespec.c (add_minsym): Use get_dynamics_objfile.
3944 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3945 (allocate_objfile): Don't initialize 'gdbarch' field.
3946 (get_objfile_arch): Update.
3947 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3949 (struct objfile) <gdbarch>: ... here. Remove.
3950 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3952 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3954 2013-08-20 Alan Modra <amodra@gmail.com>
3956 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3957 for IBM long double nan and inf.
3958 (floatformat_is_negative, floatformat_classify,
3959 floatformat_mantissa): Similarly.
3960 (floatformat_ieee_single, floatformat_ieee_double,
3961 floatformat_ieee_quad, floatformat_arm_ext,
3962 floatformat_ia64_spill): Delete unused vars.
3963 (_initialize_doublest): Delete unused function.
3964 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3965 little-endian variants of floatformat_ibm_long_double.
3967 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3969 * Makefile.in (SFILES): Remove common/target-common.c and
3970 add target/waitstatus.c.
3971 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3972 target/resume.h, target/wait.h and target/waitstatus.h.
3973 (COMMON_OBS): Remove target-common.o and add
3975 (target-common.o): Remove.
3976 (waitstatus.o): New target object file.
3977 * common/target-common.c: Move contents to
3978 target/waitstatus.c and remove.
3979 * common/target-common.h: Move contents to other files and
3981 (enum resume_kind: Move to target/resume.h.
3982 (TARGET_WNOHANG): Move to target/wait.h.
3983 (enum target_waitkind): Move to target/waitstatus.h.
3984 (struct target_waitstatus): Likewise.
3985 * target.h: Do not include target-common.h and
3986 include target/resume.h, target/wait.h and
3987 target/waitstatus.h.
3988 * target/resume.h: New file.
3989 * target/wait.h: New file.
3990 * target/waitstatus.h: New file.
3991 * target/waitstatus.c: New file.
3993 2013-08-19 Pedro Alves <palves@redhat.com>
3995 * linux-nat.c (linux_test_for_tracefork)
3996 (linux_test_for_tracesysgood, linux_child_follow_fork)
3997 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3998 (linux_nat_wait_1): Extend comment.
3999 (linux_async_pipe): Add comment.
4001 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4003 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4004 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4005 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4006 Update to account for fact that PC is now a pseudo-register.
4007 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4008 cases for RL78_PC_REGNUM.
4010 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4013 * top.c (quit_force): Skip writing history file
4014 if input is not from terminal.
4016 2013-08-14 Tom Tromey <tromey@redhat.com>
4018 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4019 resultthreadlist>: New fields.
4020 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4021 (remote_get_threadlist, remote_threadlist_iterator): Use
4022 new fields. Remove static variables.
4024 2013-08-14 Tom Tromey <tromey@redhat.com>
4026 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4027 remote_watch_data_address>: New fields.
4028 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4029 (process_stop_reply, remote_wait_as)
4030 (remote_check_watch_resources, remote_stopped_data_address): Update.
4032 2013-08-14 Tom Tromey <tromey@redhat.com>
4034 * remote.c (struct remote_state) <async_client_callback,
4035 async_client_context>: New fields.
4036 (async_client_callback, async_client_context): Remove.
4037 (remote_async_serial_handler, remote_async): Update.
4039 2013-08-14 Tom Tromey <tromey@redhat.com>
4041 * remote.c (sizeof_pkt): Remove.
4042 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4044 2013-08-14 Tom Tromey <tromey@redhat.com>
4046 * remote.c (struct remote_state) <use_threadinfo_query,
4047 use_threadextra_query>: New fields.
4048 (remote_threads_info, remote_threads_extra_info)
4049 (remote_open_1): Update.
4051 2013-08-14 Tom Tromey <tromey@redhat.com>
4053 * remote.c (struct remote_state) <finished_object,
4054 finished_annex, finished_offset>: New fields.
4055 (remote_read_qxfer): Use remote_state fields; remove static
4058 2013-08-14 Tom Tromey <tromey@redhat.com>
4060 * remote.c (struct remote_state) <last_sent_step>:
4062 (last_sent_step): Remove.
4063 (remote_resume, remote_wait_as): Update.
4065 2013-08-14 Tom Tromey <tromey@redhat.com>
4067 * remote.c (struct remote_state) <last_sent_signal>:
4069 (last_sent_signal): Remove.
4070 (new_remote_state, remote_resume, remote_wait_as): Update.
4072 2013-08-14 Tom Tromey <tromey@redhat.com>
4074 * remote.c (struct remote_state) <last_program_signals_packet>:
4076 (last_program_signals_packet): Remove.
4077 (remote_program_signals, remote_open_1): Update.
4079 2013-08-14 Tom Tromey <tromey@redhat.com>
4081 * remote.c (struct remote_state) <last_pass_packet>:
4083 (last_pass_packet): Remove.
4084 (remote_pass_signals, remote_open_1): Update.
4086 2013-08-14 Tom Tromey <tromey@redhat.com>
4088 * remote.c (struct remote_state) <remote_traceframe_number>:
4090 (remote_traceframe_number): Remove.
4091 (new_remote_state, remote_open_1, set_remote_traceframe)
4092 (remote_trace_find): Update.
4094 2013-08-14 Tom Tromey <tromey@redhat.com>
4096 * remote.c (struct remote_state) <general_thread, continue_thread>:
4098 (general_thread, continue_thread): Remove.
4099 (record_currthread, set_thread, set_general_process)
4100 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4101 (extended_remote_mourn_1): Update.
4103 2013-08-14 Tom Tromey <tromey@redhat.com>
4105 * remote.c (struct remote_state) <remote_desc>: New field.
4106 (remote_desc): Remove.
4107 (remote_threads_info, remote_threads_extra_info, remote_close)
4108 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4109 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4110 (remote_hostio_send_command, remote_file_put, remote_file_get)
4111 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4112 (remote_async, remote_new_objfile, set_range_stepping): Update.
4114 2013-08-14 Tom Tromey <tromey@redhat.com>
4116 * remote.c (remote_state): Now a pointer.
4117 (get_remote_state_raw): Update.
4118 (new_remote_state): New function.
4119 (_initialize_remote): Use new_remote_state.
4121 2013-08-14 Tom Tromey <tromey@redhat.com>
4123 * remote.c (remote_protocol_features): Now const.
4125 2013-08-14 Tom Tromey <tromey@redhat.com>
4127 * remote.c (crc32_table, crc32): Remove.
4128 (remote_verify_memory): Use xcrc32.
4130 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4132 * value.h (create_internalvar_type_lazy): Adjust prototype
4135 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4137 * common/format.c (parse_format_string): Don't allow '#' flag for
4138 pointer arguments in format string.
4140 2013-08-13 Pierre Muller <muller@sourceware.org>
4142 * utils.c (init_page_info): Only call tgetnum function
4143 if rl_get_screen_size did not return useful values.
4145 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4147 PR breakpoints/15117
4148 * linespec.c (linespec_parse_basic): Check for convenience
4149 variable or history value while parsing.
4151 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4153 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4155 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4156 different signals between the generic Linux kernel implementation
4158 (avr_linux_gdb_signal_from_target): Delete.
4159 (avr_linux_gdb_signal_to_target): Delete.
4160 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4162 2013-08-09 Doug Evans <dje@google.com>
4164 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4167 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4169 * linux-tdep.c: Define enum with generic signal numbers.
4170 (linux_gdb_signal_from_target): New function.
4171 (linux_gdb_signal_to_target): Likewise.
4172 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4173 methods to the functions above.
4174 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4175 (linux_gdb_signal_to_target): Likewise.
4176 * alpha-linux-tdep.c: Define new enum with signals different
4177 from generic Linux kernel.
4178 (alpha_linux_gdb_signal_from_target): New function.
4179 (alpha_linux_gdb_signal_to_target): Likewise.
4180 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4181 with the functions mentioned above.
4182 * avr-tdep.c: Define enum with differences between Linux kernel
4184 (avr_linux_gdb_signal_from_target): New function.
4185 (avr_linux_gdb_signal_to_target): Likewise.
4186 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4187 the functions mentioned above.
4188 * sparc-linux-tdep.c: Define enum with differences between SPARC
4189 and generic Linux kernel signal numbers.
4190 (sparc32_linux_gdb_signal_from_target): New function.
4191 (sparc32_linux_gdb_signal_to_target): Likewise.
4192 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4193 to the functions defined above.
4194 * xtensa-linux-tdep.c: Define enum with differences between
4195 Xtensa and Linux kernel generic signals.
4196 (xtensa_linux_gdb_signal_from_target): New function.
4197 (xtensa_linux_gdb_signal_to_target): Likewise.
4198 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4199 to the functions defined above.
4200 * mips-linux-tdep.c: Define enum with differences between
4201 signals in MIPS and Linux kernel generic ones.
4202 (mips_gdb_signal_to_target): New function.
4203 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4204 only different signals from the Linux kernel generic.
4205 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4206 the functions defined above.
4207 * mips-linux-tdep.h (enum mips_signals): Remove.
4209 2013-08-09 Pedro Alves <palves@redhat.com>
4211 * avr-tdep.c (XMALLOC): Delete macro.
4212 * cli/cli-dump.c (XMALLOC): Delete macro.
4214 2013-08-09 Pedro Alves <palves@redhat.com>
4216 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4217 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4218 (fopen_with_cleanup, add_dump_command): Make static.
4219 * cli/cli-dump.h: Delete file.
4220 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4223 2013-08-09 Pedro Alves <palves@redhat.com>
4225 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4228 2013-08-09 Pedro Alves <palves@redhat.com>
4230 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4233 2013-08-09 Pedro Alves <palves@redhat.com>
4235 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4236 (gcore_command): Use tilde_expand here, and when showing the
4237 filename to the user, show the expanded version.
4239 2013-08-09 Yao Qi <yao@codesourcery.com>
4241 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4244 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4246 * gcore.c (create_gcore_bfd): Use tilde_expand.
4248 2013-08-08 Yao Qi <yao@codesourcery.com>
4250 * frame.h (read_frame_local): Declare.
4251 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4253 * stack.c (read_frame_local): New.
4255 2013-08-08 Yao Qi <yao@codesourcery.com>
4257 * mi/mi-cmd-stack.c: Update comments to function
4258 list_args_or_locals.
4260 2013-08-07 Tom Tromey <tromey@redhat.com>
4263 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4264 (process_psymtab_comp_unit_reader): Use it.
4265 (process_psymtab_comp_unit): Update. Add "pretend_language"
4267 (dwarf2_build_psymtabs_hard): Update.
4268 (scan_partial_symbols): Pass CU's language to
4269 process_psymtab_comp_unit.
4271 2013-08-07 Tom Tromey <tromey@redhat.com>
4273 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4274 (dwarf2_gdb_index_functions): Update.
4275 * psymtab.c (find_symbol_file_from_partial): Remove.
4276 (psym_functions): Update.
4277 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4280 2013-08-07 Tom Tromey <tromey@redhat.com>
4282 * symfile.c (set_initial_language): Look up "main" symbol
4283 and use its language.
4284 * symtab.c (find_main_filename): Remove.
4285 * symtab.h (find_main_filename): Remove.
4287 2013-08-07 Tom Tromey <tromey@redhat.com>
4289 * dwarf2read.c (recursively_compute_inclusions): Add
4290 "immediate_parent" argument. Set symtab's "user" field
4292 (compute_symtab_includes): Update.
4294 2013-08-07 Tom Tromey <tromey@redhat.com>
4296 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4297 when adding label symbols.
4299 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4300 Ulrich Weigand <uweigand@de.ibm.com>
4302 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4303 * configure.host (powerpc64-*-aix*): Likewise.
4305 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4306 Ulrich Weigand <uweigand@de.ibm.com>
4308 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4310 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4311 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4312 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4313 * configure.ac: Check for ptrace64.
4314 * configure, config.in: Regenerate.
4316 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4317 Ulrich Weigand <uweigand@de.ibm.com>
4319 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4320 Call ptrace64 instead of ptrace if defined.
4321 Add macro addr_ptr to take care of ptrace address argument.
4322 (pdc_read_regs): Likewise.
4323 (pdc_write_regs): Likewise.
4324 (aix_thread_resume): Likewise.
4325 (fetch_regs_kernel_thread): Likewise.
4326 (store_regs_kernel_thread): Likewise.
4328 2013-08-07 Anton Blanchard <anton@samba.org>
4330 * MAINTAINERS: Add myself to Write After Approval.
4332 2013-08-05 Tom Tromey <tromey@redhat.com>
4334 * aix-thread.c (_initialize_aix_thread): Use
4335 complete_target_initialization.
4336 * bsd-uthread.c (_initialize_bsd_uthread): Use
4337 complete_target_initialization.
4338 * dec-thread.c (_initialize_dec_thread): Use
4339 complete_target_initialization.
4340 * ravenscar-thread.c (_initialize_ravenscar): Use
4341 complete_target_initialization.
4342 * sol-thread.c (_initialize_sol_thread): Use
4343 complete_target_initialization.
4344 * spu-multiarch.c (_initialize_spu_multiarch): Use
4345 complete_target_initialization.
4347 2013-08-05 Tom Tromey <tromey@redhat.com>
4349 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4350 * ada-lang.c (ada_lookup_simple_minsym): Return
4351 bound_minimal_symbol.
4352 * ada-lang.h (ada_lookup_simple_minsym): Update.
4353 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4354 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4355 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4356 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4357 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4358 * minsyms.c (msymbol_objfile): Remove.
4359 (lookup_minimal_symbol_internal): New function, from
4360 lookup_minimal_symbol.
4361 (lookup_minimal_symbol): Rewrite using
4362 lookup_minimal_symbol_internal.
4363 (lookup_bound_minimal_symbol): New function.
4364 * minsyms.h (msymbol_objfile): Remove.
4365 (lookup_bound_minimal_symbol): Declare.
4366 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4367 * parse.c (write_exp_msymbol): Change parameter to a
4368 bound_minimal_symbol.
4369 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4370 * parser-defs.h (write_exp_msymbol): Update.
4371 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4372 * symfile.c (simple_read_overlay_table): Use
4373 lookup_bound_minimal_symbol.
4374 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4375 (search_symbols): Likewise.
4376 (print_msymbol_info): Take a bound_minimal_symbol argument.
4377 (symtab_symbol_info, rbreak_command): Update.
4378 * symtab.h (struct symbol_search) <msymbol>: Change type
4379 to bound_minimal_symbol.
4380 * valops.c (find_function_in_inferior): Use
4381 lookup_bound_minimal_symbol.
4382 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4384 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4387 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4389 (async_cleanup_sigint_signal_handler): ... this.
4390 (initialize_sigint_signal_handler): Remove declaration.
4391 (handle_remote_sigint): Rename the declaration to ...
4392 (async_handle_remote_sigint): ... this.
4393 (handle_remote_sigint_twice): Rename the declaration to ...
4394 (async_handle_remote_sigint_twice): ... this.
4395 (async_remote_interrupt, async_remote_interrupt_twice)
4396 (remote_interrupt): Remove the declarations.
4397 (remote_interrupt_twice): Rename the declaration ...
4398 (sync_remote_interrupt_twice): ... this.
4399 (sigint_remote_twice_token): Rename the variable to ...
4400 (async_sigint_remote_twice_token): ... this.
4401 (sigint_remote_token): Rename the variable to ...
4402 (async_sigint_remote_token): ... this.
4403 (initialize_sigint_signal_handler): Rename the function to ...
4404 (async_initialize_sigint_signal_handler): ... this. Update the name
4406 (handle_remote_sigint): Rename the function to ...
4407 (async_handle_remote_sigint): ... this. Update the names inside.
4408 (handle_remote_sigint_twice): Rename the function to ...
4409 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4410 (cleanup_sigint_signal_handler): Rename the function to ...
4411 (async_cleanup_sigint_signal_handler): ... this.
4412 (remote_interrupt): Rename the function to ...
4413 (sync_remote_interrupt): this. Update the names inside.
4414 (remote_interrupt_twice): Rename the function to ...
4415 (sync_remote_interrupt_twice): this. Update the names inside.
4416 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4417 (_initialize_remote): Update the names inside.
4419 2013-08-02 Tom Tromey <tromey@redhat.com>
4422 * breakpoint.c (update_watchpoint, watchpoint_check)
4423 (watch_command_1): Update.
4424 * eval.c (fetch_subexp_value): Add "preserve_errors"
4426 * ppc-linux-nat.c (check_condition): Update.
4427 * value.h (fetch_subexp_value): Update.
4429 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4431 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4434 2013-08-01 Doug Evans <dje@google.com>
4437 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4438 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4439 Add assert of sig_entry->dwo_unit == NULL.
4440 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4441 had already been read.
4442 (read_signatured_type): Set per_cu.tu_read.
4445 * valops.c (value_struct_elt): Add missing call to check_typedef.
4446 (value_find_oload_method_list): Ditto.
4448 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4449 effectively, struct symbol_search **.
4450 (make_cleanup_free_search_symbols): Change arg to struct
4451 symbol_search **. All callers updated.
4452 (compare_search_syms): Compare symtab file name and block as well.
4453 (search_symbols_equal): New function.
4454 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4455 New args new_head, new_tail. Result is now void. Remove dups after
4456 sorting the symbols.
4457 (search_symbols): Sort all found symbols once, after all have been
4458 found, and remove duplicates. Simplify cleanup tracking of result.
4459 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4461 Further workarounds for binutils/15021.
4462 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4463 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4464 Watch for duplicate symtabs coming from type units.
4465 (compute_symtab_includes): Update call to
4466 recursively_compute_inclusions. Build vector of included symtabs
4468 * symtab.h (symtab_ptr): New typedef.
4469 (DEF_VEC_P (symtab_ptr)): New VEC type.
4470 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4473 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4475 * cli/cli-script.c (script_from_file): Remove use of
4477 * main.c (captured_main): Remove use of error_pre_print and
4479 * utils.c (error_pre_print, quit_pre_print): Remove.
4480 * utils.h (error_pre_print, quit_pre_print): Likewise.
4482 2013-08-01 Yao Qi <yao@codesourcery.com>
4484 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4486 (mi_cmd_stack_list_variables): Likewise.
4488 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4490 * exceptions.c (deprecated_throw_reason): Remove.
4491 * exceptions.h (deprecated_throw_reason): Remove.
4493 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4495 * remote-mips.c (mips_error): Replace use of
4496 deprecated_throw_reason with throw_verror. Use the error message
4497 passed to mips_error as the error message for throw_verror.
4499 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4501 * monitor.c (monitor_interrupt_query): Replace use of
4502 deprecated_throw_reason with quit.
4503 * nto-procfs.c (interrupt_query): Likewise.
4504 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4505 * remote-mips.c (mips_kill): Likewise.
4506 * remote.c (interrupt_query): Likewise.
4508 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4510 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4513 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4514 Yao Qi <yao@codesourcery.com>
4516 * tracepoint.c (trace_dump_command): Select the current frame.
4518 2013-07-30 Doug Evans <dje@google.com>
4520 * dwarf2read.c (process_queue): Add type signature to debug output.
4522 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4524 * value.c (value_fetch_lazy): Mark optimized out values as such
4525 rather than raising an error.
4527 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4529 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4530 before checking which bits of the parent, not the child, value are
4533 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4536 * top.c: Include "filenames.h".
4537 (set_history_filename): New function.
4538 (init_main): Install it as set hook of the "set history filename"
4541 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4543 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4544 attribute parameter.
4545 (dwarf2_const_value_data): Constify struct attribute parameter.
4546 (dwarf2_const_value): Constify struct attribute parameter.
4547 (dwarf2_const_value_attr): Constify struct attribute parameter.
4548 (lookup_die_type): Constify struct attribute parameter.
4549 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4550 (follow_die_ref_or_sig): Constify struct attribute parameter.
4551 (follow_die_ref): Constify struct attribute parameter.
4552 (follow_die_sig): Constify struct attribute parameter.
4553 (get_DW_AT_signature_type): Constify struct attribute parameter.
4554 (get_type_unit_group): Constify struct attribute parameter.
4555 (fill_in_loclist_baton): Constify struct attribute parameter.
4556 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4557 (type_unit_group): Constify struct attribute parameter.
4559 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4561 * dwarf2read.c (attr_form_is_block): Make argument const.
4562 (attr_form_is_section_offset): Make argument const.
4563 (attr_form_is_constant): Make argument const.
4564 (attr_form_is_ref): Make argument const.
4566 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4568 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4570 (attr_form_is_ref): Moved below attr_form_is_constant.
4572 2013-07-29 Doug Evans <dje@google.com>
4574 * main.c (captured_command_loop): Tweak comment.
4576 * target.c (target_async_permitted_1): Fix comment.
4578 * symtab.c (iterate_over_some_symtabs): Add comment.
4580 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4582 2013-07-27 Yao Qi <yao@codesourcery.com>
4584 * NEWS: Mention that GDBserver now supports hardware
4585 watchpoints on the MIPS GNU/Linux target.
4587 2013-07-27 Yao Qi <yao@codesourcery.com>
4589 * Makefile.in (HFILES_NO_SRCDIR): Add
4590 common/mips-linux-watch.h.
4591 (mips-linux-watch.o): New rule.
4592 * common/mips-linux-watch.c: New.
4593 * common/mips-linux-watch.h: New.
4594 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4595 * mips-linux-nat.c: Include mips-linux-watch.h.
4596 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4597 to common/mips-linux-watch.h.
4598 (MAX_DEBUG_REGISTER): Likewise.
4599 (enum pt_watch_style): Likewise.
4600 (struct mips32_watch_regs): Likewise.
4601 (struct mips64_watch_regs): Likewise.
4602 (struct pt_watch_regs): Likewise.
4603 (struct mips_watchpoint): Likewise.
4604 (mips_linux_watch_get_irw_mask): Move to
4605 common/mips-linux-watch.c.
4606 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4607 (mips_linux_watch_get_watchlo): Likewise.
4608 (mips_linux_watch_set_watchlo): Likewise.
4609 (mips_linux_watch_get_watchhi): Likewise.
4610 (mips_linux_watch_set_watchhi): Likewise.
4611 (mips_linux_read_watch_registers): Likewise.
4612 (mips_linux_watch_type_to_irw): Likewise.
4613 (mips_linux_stopped_data_address, fill_mask): Likewise.
4614 (mips_linux_watch_try_one_watch): Likewise.
4615 (mips_linux_watch_populate_regs): Likewise.
4617 2013-07-27 Yao Qi <yao@codesourcery.com>
4619 * mips-linux-nat.c (get_irw_mask): Rename to ...
4620 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4621 'set' to 'n'. Update function comment. All callers changed.
4622 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4623 function comment. All callers changed.
4624 (get_num_valid): Rename to ...
4625 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4626 'set' to 'n'. Update function comment. All callers changed.
4627 (get_watchlo): Rename to ...
4628 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4629 'set' to 'n'. Update function comment. All callers changed.
4630 (set_watchlo): Rename to ...
4631 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4632 'set' to 'n'. Update function comment. All callers changed.
4633 (get_watchhi): Rename to ...
4634 (mips_linux_watch_get_watchhi): ... this. Update function
4635 comment. All callers changed.
4636 (set_watchhi): Rename to ...
4637 (mips_linux_watch_set_watchhi): ... this. Update function
4638 comment. All callers changed.
4639 (mips_linux_read_watch_registers): Update function comment.
4640 Add new parameters 'lwpid', 'watch_readback', and
4641 'watch_readback_valid'. Update.
4642 (type_to_irw): Rename to ...
4643 (mips_linux_watch_type_to_irw): ... this. Update function
4644 comment. All callers changed.
4645 (fill_mask): Update function comment.
4646 (try_one_watch): Rename to ...
4647 (mips_linux_watch_try_one_watch): ... this. Change the type
4648 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4649 (populate_regs_from_watches): Rename to ...
4650 (mips_linux_watch_populate_regs): ... this. Add parameter
4651 'current_watches'. All callers changed.
4653 2013-07-27 Yao Qi <yao@codesourcery.com>
4655 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4657 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4658 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4659 (struct pt_watch_regs): Likewise.
4660 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4661 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4662 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4663 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4664 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4666 2013-07-27 Yao Qi <yao@codesourcery.com>
4668 * breakpoint.h: Include break-common.h.
4669 (enum target_hw_bp_type): Move to ...
4670 * common/break-common.h: ... here. New.
4672 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4674 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4675 process group regardless of having tty on stdin.
4677 2013-07-25 Doug Evans <dje@google.com>
4679 * linux-fork.h (detach_fork): Delete.
4681 2013-07-25 Tom Tromey <tromey@redhat.com>
4683 PR remote/15256, PR remote/15266:
4684 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4685 * monitor.c (monitor_detach): Use unpush_target.
4686 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4687 * remote-mips.c (mips_detach): Use unpush_target. Don't
4689 * remote-sim.c (gdbsim_detach): Use unpush_target.
4690 * target.c (pop_target): Remove.
4691 (pop_all_targets_above): Don't call target_close.
4692 (target_close): Assert that the target is unpushed.
4693 * target.h (pop_target): Don't declare.
4694 * tracepoint.c (tfile_open): Use unpush_target.
4696 2013-07-25 Tom Tromey <tromey@redhat.com>
4698 * linux-thread-db.c (init_thread_db_ops): Call
4699 complete_target_initialization.
4700 (_initialize_thread_db): Don't call add_target.
4701 * target.c (complete_target_initialization): New function.
4702 (add_target_with_completer): Call it.
4703 * target.h (complete_target_initialization): Declare.
4705 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4707 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4708 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4709 (HPPANBSD_SIZEOF_GREGS): New define.
4710 (hppaobsd_supply_gregset): Handle additional registers.
4711 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4712 we provide more registers now.
4713 (hppabsd_supply_gregset): Supply additional registers.
4714 (hppabsd_collect_gregset): Collect additional registers.
4716 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4718 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4719 (hppabsd_dwarf2_frame_init_reg): New function.
4720 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4722 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4724 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4725 'z' format code. Remove error for optimized out values, standard
4726 code will handle these fine.
4728 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4730 * NEWS: Mention new 'z' formatter.
4731 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4732 (_initialize_printcmd): Mention 'z' formatter in help text of the
4735 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4737 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4740 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4742 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4743 interface can evaluate arguments. Fallback to the old mode if it
4745 (create_exception_master_breakpoint): Likewise.
4746 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4747 (struct sym_probe_fns elf_probe_fns): Export function above to the
4749 * probe.c (can_evaluate_probe_arguments): New function.
4750 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4752 (can_evaluate_probe_arguments): New function prototype.
4753 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4754 probe interface can evaluate arguments. Fallback to the old mode
4756 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4757 interface can evaluate arguments. Warning the user if it cannot.
4758 (stap_can_evaluate_probe_arguments): New function.
4759 (struct probe_ops stap_probe_ops): Export function above to the
4761 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4762 New function pointer.
4764 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4766 * Makefile.in (SFILES): Add common/target-common.c.
4767 Add common/target-common.h to headers.
4768 (COMMON_OBS): Add target-common.o.
4769 (target-common.o): New target.
4770 * linux-nat.h (resume_kind): Move to common/target-common.h.
4771 * target.c (target_waitstatus_to_string): Move to
4772 common/target-common.c.
4773 * target.h: Include target-common.h.
4774 (target_waitkind): Move to common/target-common.h.
4775 (target_waitstatus): Likewise.
4776 (TARGET_WNOHANG): Likewise.
4777 * common/target-common.c: New file.
4778 * common/target-common.h: New file.
4780 2013-07-24 Doug Evans <dje@google.com>
4782 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4785 2013-07-23 Yao Qi <yao@codesourcery.com>
4787 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4788 parameter 'gdbarch'.
4789 (i386_stack_tramp_frame_sniffer): Caller update.
4790 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4791 parameter 'gdbarch' and 'target'.
4792 (i386_linux_core_read_description): Caller update.
4793 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4795 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4798 2013-07-23 Tom Tromey <tromey@redhat.com>
4800 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4803 2013-07-22 Doug Evans <dje@google.com>
4805 * exec.h (remove_target_sections): Delete arg abfd.
4806 * exec.c (exec_close): Update call to remove_target_sections.
4807 (remove_target_sections): Delete arg abfd.
4808 * solib.c (update_solib_list): Ditto.
4809 (reload_shared_libraries_1): Ditto.
4810 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4811 * target.h (struct target_section): Rename key to owner.
4814 2013-07-22 Tom Tromey <tromey@redhat.com>
4816 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4818 2013-07-22 Tom Tromey <tromey@redhat.com>
4820 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4821 Simplify cleanup handling.
4823 2013-07-22 Tom Tromey <tromey@redhat.com>
4825 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4826 on all return paths.
4828 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4830 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4831 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4832 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4834 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4836 * top.c (print_gdb_version): Add help, apropos description and
4837 url to online documentation.
4839 2013-07-19 Hui Zhu <hui@codesourcery.com>
4842 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4844 2013-07-19 Yao Qi <yao@codesourcery.com>
4846 * target.c (update_current_target): Change the default action
4847 of 'to_traceframe_info' from tcomplain to return_zero.
4848 * target.h (struct target_ops) <to_traceframe_info>: Add more
4850 * valops.c (read_value_memory): Call
4851 traceframe_available_memory unconditionally.
4853 2013-07-18 Yao Qi <yao@codesourcery.com>
4855 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4856 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4857 symbol without prefix. If found, set its type to
4858 'mst_solib_trampoline'.
4860 2013-07-17 Doug Evans <dje@google.com>
4862 * NEWS: Mention "set print raw frame-arguments".
4863 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4864 * stack.c (print_raw_frame_arguments): New static global.
4865 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4866 (_initialize_stack): New command "set/show print raw frame-arguments".
4867 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4868 (set_print_raw, show_print_raw): New functions.
4869 (_initialize_valprint): New prefix command "set/show print raw".
4870 * valprint.h (value_print_options): Improve comments.
4872 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4873 of all *list variables.
4875 * gdbcmd.h (togglelist): Delete.
4876 * cli/cli-cmds.c (togglelist): Delete.
4877 (init_cmd_lists): Update.
4878 * cli/cli-cmds.h (togglelist): Delete.
4880 2013-07-17 Tom Tromey <tromey@redhat.com>
4882 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4885 2013-07-16 Doug Evans <dje@google.com>
4887 * nto-tdep.c (nto_relocate_section_addresses): Update,
4888 target_section.bfd deleted.
4889 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4890 * s390-tdep.c (s390_load): Ditto.
4891 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4893 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4895 * common/format.c (parse_format_string): Add checks for NULL
4896 character before calling strchr.
4898 2013-07-16 Doug Evans <dje@google.com>
4900 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4901 temp_pathname argument.
4902 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4903 when opening the file fails.
4905 * target.h (struct target_section): Delete member bfd.
4906 All users updated to use the_bfd_section->owner instead.
4907 * exec.c (add_to_section_table): Assert bfd is expected value.
4908 Remove initialization of target_section.bfd.
4909 (remove_target_sections): Update.
4910 (section_table_available_memory): Update.
4911 (section_table_xfer_memory_partial): Update.
4912 (print_section_info): Update.
4913 (exec_set_section_address): Update.
4914 * record-full.c (record_full_core_xfer_partial): Update.
4915 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4916 * solib-target.c (solib_target_relocate_section_addresses): Update.
4917 * symfile.c (build_section_addr_info_from_section_table): Update.
4918 * target.c (memory_xfer_live_readonly_partial): Update.
4919 (memory_xfer_partial_1): Update.
4921 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4923 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4924 now available for embedded (BookE) and server (BookS) processors,
4925 correct mentions of 'booke' and adjust comments accordingly in order to
4926 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4927 (have_ptrace_booke_interface): Rename function and variable
4928 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4929 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4930 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4931 'hwdebug_point_cmp'. Update all uses.
4932 (booke_find_thread_points_by_tid): Rename function
4933 'booke_find_thread_points_by_tid' to
4934 'hwdebug_find_thread_points_by_tid'. Update all uses.
4935 (booke_insert_point): Rename function 'booke_insert_point' to
4936 'hwdebug_insert_point'. Update all uses.
4937 (booke_remove_point): Rename function 'booke_remove_point' to
4938 'hwdebug_remove_point'. Update all uses.
4940 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4942 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4943 numbers with enum values.
4945 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4948 * thread.c (thread_apply_all_command): Check for valid threads
4950 (thread_array_cleanup): New struct.
4951 (set_thread_refcount): New function.
4953 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4955 * infcmd.c (default_print_one_register_info): Reuse function
4958 2013-07-10 Tom Tromey <tromey@redhat.com>
4960 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4961 (ada-exp.o): New target.
4963 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4965 * mt-tdep.c (mt_registers_info): Call
4966 get_no_prettyformat_print_options instead of
4967 get_raw_print_options (regression by last patch from Doug
4970 2013-07-09 Pedro Alves <palves@redhat.com>
4972 Checked in by Joel Brobecker <brobecker@adacore.com>.
4973 * ada-lang.c (coerce_unspec_val_to_type): Use
4974 value_optimized_out_const.
4975 * value.c (value_optimized_out_const): New function.
4976 * value.h (value_optimized_out_const): New declaration.
4978 2013-07-09 Doug Evans <dje@google.com>
4980 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4981 Enum values rename as well. All uses updated.
4982 * valprint.h (value_print_options): Rename member pretty to
4983 pretty format. Rename member prettyprint_arrays to
4984 prettyformat_arrays. Rename member prettyprint_structs to
4985 prettyformat_structs. All uses updated.
4986 (get_no_prettyformat_print_options): Renamed from
4987 get_raw_print_options.
4988 * valprint.c (get_no_prettyformat_print_options): Renamed from
4989 get_raw_print_options. All callers updated.
4990 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4991 All callers updated.
4992 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4993 All callers updated.
4994 (_initialize_valprint): Improve help text for "set print pretty" and
4997 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4999 * value.c (value_bits_valid): Revert previous change, and change
5000 by Pedro on 2013-07-04, due to regressions in
5001 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5003 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5004 Pedro Alves <palves@redhat.com>
5006 * value.c (value_bits_valid): If the value is not lval_computed
5007 or has no check validity handler then the answer is the
5008 optimized_out flag, otherwise defer to the handler.
5010 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5012 * top.c (print_gdb_configuration): Explain in output of
5013 --configuration what does "relocatable" mean.
5015 * main.c (print_gdb_help): Regroup options in the --help text.
5016 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5017 the relevant discussions.
5019 2013-07-06 Yao Qi <yao@codesourcery.com>
5021 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5022 Remove parameter 'lsal'.
5023 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5024 to inner block. Caller update.
5025 (base_breakpoint_create_breakpoints_sal): Update.
5026 (bkpt_create_breakpoints_sal): Likewise.
5027 (tracepoint_create_breakpoints_sal): Likewise.
5028 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5029 element 0 of vector 'canonical->sals'.
5031 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5033 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5034 register number instead of the pseudo register one.
5035 (rs6000_dwarf2_reg_to_regnum): Likewise.
5037 2013-07-04 Pedro Alves <palves@redhat.com>
5039 * findvar.c (value_of_register): Use allocate_optimized_out_value
5040 if the register has been optimized out, instead of
5041 set_value_optimized_out.
5042 * frame-unwind.c (frame_unwind_got_optimized): Use
5043 allocate_optimized_out_value.
5045 2013-07-04 Pedro Alves <palves@redhat.com>
5047 * value.c (value_bits_valid): If the value is not lval_computed,
5048 or doesn't have a check_validity hook, assume the value is entirely
5051 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5053 * stack.c (read_frame_arg): No longer fetch lazy values.
5054 * value.c (value_optimized_out): If the value is not already
5055 marked optimized out, and is lazy then fetch it.
5056 (value_primitive_field): Move optimized out check to later in the
5057 function, after we have loaded any lazy values.
5058 (value_fetch_lazy): Use optimized out flag directly rather than
5059 calling optimized_out method.
5061 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5063 * valops.c: Don't include "user-regs.h".
5064 (value_fetch_lazy): Moved to value.c.
5065 * value.c: Include "user-regs.h".
5066 (value_fetch_lazy): Moved from valops.c.
5068 2013-07-04 Yao Qi <yao@codesourcery.com>
5071 2013-06-27 Yao Qi <yao@codesourcery.com>
5073 * common/create-version.sh: Update comments. Handle the case
5074 that TARGET_ALIAS is empty.
5076 2013-07-03 Pedro Alves <palves@redhat.com>
5078 * Makefile.in (config.status): Depend on development.sh.
5079 (aclocal_m4_deps): Add libmcheck.m4.
5080 * acinclude.m4: Include libmcheck.m4.
5081 * configure.ac: Source development.sh instead of setting
5082 'development' here. --enable-libmcheck/--disable-libmcheck code
5083 factored out to GDB_AC_LIBMCHECK. Run it.
5084 * development.sh: New file.
5085 * libmcheck.m4: New file.
5086 * configure: Regenerate.
5088 2013-07-02 Tom Tromey <tromey@redhat.com>
5090 * contrib/ari/update-web-ari.sh: Update for version.in change.
5092 2013-07-02 Tom Tromey <tromey@redhat.com>
5094 * common/ptid.h: Comment fixes.
5096 2013-07-01 Tom Tromey <tromey@redhat.com>
5098 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5099 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5100 (dwarf2_read_index, create_all_comp_units): Update.
5102 2013-07-01 Tom Tromey <tromey@redhat.com>
5104 * configure.ac (build_warnings): Add -Wold-style-definition.
5105 * configure: Rebuild.
5106 * machoread.c (_initialize_machoread): Use "(void)".
5107 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5110 2013-07-01 Tom Tromey <tromey@redhat.com>
5112 * configure.ac (build_warnings): Add -Wold-style-declaration.
5113 * configure: Rebuild.
5114 * dsrec.c (make_srec): Use "static const", not "const static".
5115 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5117 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5118 Use "static const", not "const static".
5119 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5121 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5123 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5125 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5127 (v850_dbtrap_breakpoint_from_pc): Likewise.
5128 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5131 2013-07-01 Tom Tromey <tromey@redhat.com>
5133 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5134 * configure: Rebuild.
5136 2013-07-01 Pedro Alves <palves@redhat.com>
5138 * defs.h: Include "pathmax.h".
5139 * utils.c: Don't include sys/param.h.
5140 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5141 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5142 instead of MAXPATHLEN.
5143 * solib-sunos.c: Don't include sys/param.h.
5144 * xcoffread.c: Don't include sys/param.h.
5145 * bsd-kvm.c: Don't include sys/param.h.
5146 * darwin-nat.c: Don't include sys/param.h.
5147 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5148 * darwin-nat-info.c: Don't include sys/param.h.
5149 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5151 * i386obsd-nat.c: Don't include sys/param.h.
5152 * inf-child.c: Don't include sys/param.h.
5153 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5154 * linux-fork.c: Don't include sys/param.h.
5155 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5156 * linux-nat.c: Don't include sys/param.h.
5157 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5158 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5159 * m68klinux-nat.c: Don't include sys/param.h.
5160 * nbsd-nat.c: Don't include sys/param.h.
5161 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5162 * ppc-linux-nat.c: Don't include sys/param.h.
5163 * rs6000-nat.c: Don't include sys/param.h.
5164 * spu-linux-nat.c. Don't include sys/param.h.
5165 * windows-nat.c: Don't include sys/param.h.
5166 * xtensa-linux-nat.c: Don't include sys/param.h.
5167 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5169 2013-07-01 Pedro Alves <palves@redhat.com>
5171 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5172 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5173 * gnulib/aclocal.m4: Regenerate.
5174 * gnulib/config.in: Regenerate.
5175 * gnulib/configure: Regenerate.
5176 * gnulib/import/pathmax.h: New file.
5177 * gnulib/import/Makefile.am: Regenerate.
5178 * gnulib/import/Makefile.in: Regenerate.
5179 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5180 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5181 * gnulib/import/m4/pathmax.m4: New file.
5183 2013-07-01 Pedro Alves <palves@redhat.com>
5185 * configure.ac (GDBINIT): Define, depending on host.
5186 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5187 * top.c (PATH_MAX): Delete fallback definition.
5188 (GDBINIT_FILENAME): Delete.
5189 (gdbinit): Reimplement as const char array set to the GDBINIT
5191 * top.h (gdbinit): Make const.
5192 * configure, config.in: Regenerate.
5194 2013-07-01 Pedro Alves <palves@redhat.com>
5196 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5197 * cli/cli-cmds.h (source_script): Likewise.
5198 * exceptions.c (catch_command_errors_const): New function.
5199 * exceptions.h (catch_command_errors_const): Declare.
5200 * main.c (get_init_files): Make parameters const, and adjust.
5201 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5202 'local_gdbinit' locals const. Adjust to use
5203 catch_command_errors_const.
5204 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5205 'local_gdbinit' locals const.
5207 2013-07-01 Pedro Alves <palves@redhat.com>
5209 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5210 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5211 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5214 2013-07-01 Pedro Alves <palves@redhat.com>
5216 Import the "unistd" gnulib module.
5217 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5218 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5219 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5220 import/m4/unistd_h.m4.
5221 * gnulib/aclocal.m4: Renenerate.
5222 * gnulib/config.in: Renenerate.
5223 * gnulib/configure: Renenerate.
5224 * gnulib/import/Makefile.am: Renenerate.
5225 * gnulib/import/Makefile.in: Renenerate.
5226 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5227 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5228 * gnulib/import/m4/off_t.m4: New file.
5229 * gnulib/import/m4/ssize_t.m4: New file.
5230 * gnulib/import/m4/sys_types_h.m4: New file.
5231 * gnulib/import/m4/unistd_h.m4: New file.
5232 * gnulib/import/sys_types.in.h: New file.
5233 * gnulib/import/unistd.c: New file.
5234 * gnulib/import/unistd.in.h: New file.
5236 2013-07-01 Pedro Alves <palves@redhat.com>
5238 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5239 defined instead of checking HAVE_UNISTD_H.
5241 2013-07-01 Pedro Alves <palves@redhat.com>
5243 Reimport gnulib from scratch.
5244 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5245 import/m4/onceonly.m4.
5246 * gnulib/aclocal.m4: Renegerate.
5247 * gnulib/config.in: Renegerate.
5248 * gnulib/configure: Renegerate.
5249 * gnulib/import/Makefile.in: Renegerate.
5250 * gnulib/import/extra/update-copyright: Renegerate.
5251 * gnulib/import/m4/onceonly.m4: Delete.
5253 2013-07-01 Pedro Alves <palves@redhat.com>
5255 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5257 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5260 * remote.c (async_remote_interrupt_twice): Make it static.
5261 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5263 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5265 * ia64-linux-tdep.c: Include <ctype.h>.
5266 (ia64_linux_stap_is_single_operand): New function.
5267 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5269 2013-06-28 Tom Tromey <tromey@redhat.com>
5271 * Makefile.in (version.c): Use version.in, not
5273 * common/create-version.sh: Likewise.
5274 * common/version.in: Move...
5275 * version.in: ...here.
5277 2013-06-28 Pedro Alves <palves@redhat.com>
5279 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5281 * utils.h (pagination_enabled): Declare.
5283 2013-06-28 Pedro Alves <palves@redhat.com>
5285 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5286 Move higher up in file.
5288 2013-06-28 Tom Tromey <tromey@redhat.com>
5290 * tracepoint.c (deprecated_readline_begin_hook)
5291 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5294 2013-06-28 Pedro Alves <palves@redhat.com>
5297 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5298 checking if they're available.
5299 * value.c (value_available_contents_eq): Change comment.
5300 * value.h (value_available_contents_eq): Expand comment.
5302 2013-06-27 Tom Tromey <tromey@redhat.com>
5304 * target.c (find_run_target): Remove.
5305 * target.h (find_run_target): Remove.
5307 2013-06-27 Tom Tromey <tromey@redhat.com>
5309 * corelow.c (core_gdbarch): Now static.
5311 2013-06-27 Tom Tromey <tromey@redhat.com>
5313 * target.c (target_struct_index): Remove.
5315 2013-06-27 Pedro Alves <palves@redhat.com>
5317 * infrun.c: Remove comment describing the 'stepping over runtime
5318 loader dynamic symbol resolution code' mechanism; moved to
5321 2013-06-27 Pedro Alves <palves@redhat.com>
5323 * exceptions.c (catch_command_errors): Remove spurious space.
5324 * exceptions.h (catch_command_errors): Second parameter is "arg",
5327 2013-06-27 Yao Qi <yao@codesourcery.com>
5329 * common/create-version.sh: Update comments. Handle the case
5330 that TARGET_ALIAS is empty.
5332 2013-06-26 Pedro Alves <palves@redhat.com>
5334 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5337 2013-06-26 Pedro Alves <palves@redhat.com>
5339 * infrun.c: Update comments on stepping over runtime loader
5340 dynamic symbol resolution code.
5342 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5344 * ax-gdb.h (union exp_element): Forward declare.
5345 * parser-defs.h: Include expression.h.
5347 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5349 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5351 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5353 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5355 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5357 Fix trace-status to output proper start-time and stop-time.
5358 * tracepoint.c (trace_status_command): Fix type of printf arg to
5359 prevent improper type conversion.
5360 (trace_status_mi): Likewise.
5362 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5364 * mips-tdep.c (mips_next_pc): Fix a typo.
5366 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5368 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5370 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5371 Yao Qi <yao@codesourcery.com>
5373 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5374 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5375 * mi/mi-main.c (print_variable_or_computed): New function.
5376 (mi_cmd_trace_frame_collected): New function.
5377 * tracepoint.c (find_trace_state_variable_by_number): New.
5378 (struct traceframe_info): Move to tracepoint.h
5379 (struct collection_list): Likewise.
5380 (do_collect_symbol): Include locals and arguments in the
5381 collected variables list.
5382 (clear_collection_list): Clear wholly collected variables list
5383 and computed variables list.
5384 (append_exp): New function.
5385 (encode_actions_1): Include variables in the wholly
5386 collected variables list. Include memory ranges and
5387 full-fledged expressions in the computed expressions list.
5388 (encode_actions): Move some code to ...
5389 Return the cleanup chain.
5390 (encode_actions_rsp): ... here. New function.
5391 (get_traceframe_location, get_traceframe_info): Remove static.
5392 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5393 (struct collection_list): Moved from tracepoint.c. Add two
5394 new fields 'wholly_collected' and 'computed'.
5395 (find_trace_state_variable_by_number): Declare.
5396 (encode_actions): Adjust declaration.
5397 (encode_actions_rsp): Declare.
5398 (get_traceframe_info, get_traceframe_location): Declare.
5400 * NEWS: Mention new MI command -trace-frame-collected.
5402 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5403 Yao Qi <yao@codesourcery.com>
5405 * ctf.c (ctf_traceframe_info): Push trace state variables
5406 present in the trace data into the traceframe info object.
5407 * breakpoint.c (DEF_VEC_I): Remove.
5408 * common/filestuff.c (DEF_VEC_I): Likewise.
5409 * dwarf2loc.c (DEF_VEC_I): Likewise.
5410 * mi/mi-main.c (DEF_VEC_I): Likewise.
5411 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5412 * features/traceframe-info.dtd: Add tvar element and its
5414 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5415 (build_traceframe_info): Push trace state variables present in
5416 the trace data into the traceframe info object.
5417 (traceframe_info_start_tvar): New function.
5418 (tvar_attributes): New.
5419 (traceframe_info_children): Add "tvar" element.
5420 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5422 * NEWS: Mention the change in GDB and GDBserver.
5424 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5425 Yao Qi <yao@codesourcery.com>
5427 * tracepoint.c (trace_dump_command): Move code to ...
5428 (get_traceframe_location): ... here. New.
5430 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5431 Yao Qi <yao@codesourcery.com>
5433 * tracepoint.c (trace_dump_command): GDB emits an error
5434 instead of a warning when a traceframe is not selected.
5436 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5437 Yao Qi <yao@codesourcery.com>
5439 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5440 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5442 (do_clear_collection_list, init_collection_list): New.
5443 (encode_actions): Add local variables 'tracepoint_list' and
5444 'stepping_list'. Call init_collection_list and make cleanup
5445 which calls do_clear_collection_list. Don't call
5446 clear_collection_list.
5447 (_initialize_tracepoint): Delete references to
5448 'tracepoint_list' and 'stepping_list'.
5450 2013-06-25 Tom Tromey <tromey@redhat.com>
5452 * common/create-version.sh (date): Use "$", not "$$" in sed
5455 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5457 * NEWS (New targets): Add entry for TI MSP430.
5459 2013-06-25 Yao Qi <yao@codesourcery.com>
5461 * remote.c (remote_start_remote): Move code to upload tsv
5464 2013-06-25 Yao Qi <yao@codesourcery.com>
5465 Hui Zhu <hui@codesourcery.com>
5466 Pedro Alves <palves@redhat.com>
5468 PR breakpoints/15075
5469 PR breakpoints/15434
5470 * breakpoint.c (bpstat_stop_status): Call
5471 b->ops->after_condition_true.
5472 (update_dprintf_command_list): Don't append "continue" command
5473 to the command list of dprintf breakpoint.
5474 (base_breakpoint_after_condition_true): New function.
5475 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5476 (dprintf_after_condition_true): New function.
5477 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5478 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5480 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5482 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5483 (ALLDEPFILES): Add msp430-tdep.c.
5484 * configure.tgt (msp430*-*-elf): New target.
5485 * msp430-tdep.c: New file.
5487 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5489 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5490 microMIPS synthetic symbols.
5492 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5494 * objfiles.h (pc_in_section): New prototype.
5495 (in_plt_section): Remove name argument, replace prototype with
5496 static inline function.
5497 * mips-tdep.h: Include "objfiles.h".
5498 (in_mips_stubs_section): New function.
5499 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5500 in_solib_call_trampoline member.
5501 (hppa_in_solib_call_trampoline): Remove name argument.
5502 * objfiles.c (pc_in_section): New function.
5503 (in_plt_section): Remove function.
5504 * mips-linux-tdep.c: Include "objfiles.h".
5505 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5506 name argument. Return 1 rather than the low 16-bit halfword of
5507 any instruction examined.
5508 (mips_linux_in_dynsym_resolve_code): Update
5509 mips_linux_in_dynsym_stub call accordingly.
5510 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5511 rather than an equivalent hand-coded sequence.
5512 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5513 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5514 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5515 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5517 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5518 on call to tdep->in_solib_call_trampoline.
5519 (hppa_in_solib_call_trampoline): Remove name argument, update
5520 according to in_plt_section change.
5521 (hppa_skip_trampoline_code): Update according to in_plt_section
5523 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5524 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5526 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5527 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5528 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5529 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5530 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5531 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5532 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5533 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5534 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5535 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5536 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5537 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5538 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5540 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5542 * common/create-version.sh: Fix expansion of $host_alias
5543 and $target_alias in generation of HOST_NAME and TARGET_NAME
5546 2013-06-24 Tom Tromey <tromey@redhat.com>
5548 * common/create-version.sh: New file.
5549 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5551 (HFILES_NO_SRCDIR): Use common/version.h.
5552 * version.in: Move to ...
5553 * common/version.in: ... here. Replace date with "DATE".
5554 * version.h: Move to ...
5555 * common/version.h: ... here.
5557 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5559 * gdb/gnulib/Makefile.in: Update date in copyright header.
5560 * gdb/gnulib/configure.ac: Ditto.
5561 * gdb/gnulib/update-gnulib.sh: Ditto.
5563 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5565 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5566 "gdb/gnulib/import".
5568 2013-06-21 Will Newton <will.newton@linaro.org>
5570 * doublest.c (ldfrexp): Remove function.
5571 (convert_doublest_to_floatformat): Call frexpl instead of
5574 2013-06-21 Will Newton <will.newton@linaro.org>
5576 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5577 * gnulib/aclocal.m4: Regenerate.
5578 * gnulib/config.in: Regenerate.
5579 * gnulib/configure: Regenerate.
5580 * gnulib/import/Makefile.am: Update.
5581 * gnulib/import/Makefile.in: Update.
5582 * gnulib/import/m4/gnulib-cache.m4: Update.
5583 * gnulib/import/m4/gnulib-comp.m4: Update.
5584 * gnulib/import/float+.h: Import.
5585 * gnulib/import/float.c: Import.
5586 * gnulib/import/float.in.h: Import.
5587 * gnulib/import/fpucw.h: Import.
5588 * gnulib/import/frexp.c: Import.
5589 * gnulib/import/frexpl.c: Import.
5590 * gnulib/import/isnan.c: Import.
5591 * gnulib/import/isnand-nolibm.h: Import.
5592 * gnulib/import/isnand.c: Import.
5593 * gnulib/import/isnanl-nolibm.h: Import.
5594 * gnulib/import/isnanl.c: Import.
5595 * gnulib/import/itold.c: Import.
5596 * gnulib/import/m4/exponentd.m4: Import.
5597 * gnulib/import/m4/exponentl.m4: Import.
5598 * gnulib/import/m4/float_h.m4: Import.
5599 * gnulib/import/m4/fpieee.m4: Import.
5600 * gnulib/import/m4/frexp.m4: Import.
5601 * gnulib/import/m4/frexpl.m4: Import.
5602 * gnulib/import/m4/isnand.m4: Import.
5603 * gnulib/import/m4/isnanl.m4: Import.
5604 * gnulib/import/m4/math_h.m4: Import.
5605 * gnulib/import/math.c: Import.
5606 * gnulib/import/math.in.h: Import.
5608 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5610 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5611 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5612 signature_INTEL_edx comparisons.
5614 2013-06-20 Doug Evans <dje@google.com>
5617 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5618 All callers updated.
5619 (open_dwp_file): If we can't find the dwp file, search the basename
5620 in debug-file-directory.
5622 * dwarf2read.c (struct dwp_file): Fix comment.
5623 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5625 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5628 2013-06-20 Yao Qi <yao@codesourcery.com>
5630 * breakpoint.c (create_breakpoint): Fix code indentation.
5632 2013-06-20 Yao Qi <yao@codesourcery.com>
5634 * breakpoint.c (create_breakpoints_sal_default): Remove
5635 parameter 'lsal'. Update declaration.
5636 (bkpt_create_breakpoints_sal): Caller update.
5637 (tracepoint_create_breakpoints_sal): Likewise.
5639 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5640 Yao Qi <yao@codesourcery.com>
5642 * NEWS: Mention the new option '--skip-unavailable' of command
5643 -data-list-register-values.
5644 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5645 --skip-unavailable option. Adjust to use output_register.
5646 (output_register): Add new 'skip_unavailable' parameter.
5649 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5651 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5652 common/i386-gcc-cpuid.h.
5653 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5654 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5655 Copy the latest version from upstream gcc.
5656 * common/linux-btrace.c: Include i386-cpuid.h.
5657 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5659 (cpu_supports_btrace): Likewise.
5660 * go32-nat.c: Include i386-cpuid.h.
5661 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5663 2013-06-19 Doug Evans <dje@google.com>
5665 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5666 (get_section_index): Ditto.
5668 2013-06-19 Tom Tromey <tromey@redhat.com>
5670 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5673 2013-06-18 Doug Evans <dje@google.com>
5675 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5677 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5678 Move test of cu_index closer to use. Print complaint if cu_index
5681 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5683 * machoread.c (oso_vector): Delete this global.
5684 (macho_register_oso): Add new parameter "oso_vector_ptr".
5685 Use it instead of the "oso_vector" global.
5686 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5687 (macho_symfile_read): Use a local oso_vector, to be free'ed
5688 at the end of this function, in place of the old "oso_vector"
5689 global. Update various function calls accordingly. Use one
5690 single cleanup chain for the entire function.
5692 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5694 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5695 DWARF2_PER_OBJFILE by uses of DATA instead.
5697 2013-06-18 Tom Tromey <tromey@redhat.com>
5699 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5701 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5702 Special case signals other than GDB_SIGNAL_TRAP.
5703 (explains_signal_watchpoint): New function.
5704 (base_breakpoint_explains_signal): Add 'sig' argument.
5705 (initialize_breakpoint_ops): Set 'explains_signal' method for
5707 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5709 (bpstat_explains_signal): Likewise.
5710 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5712 2013-06-18 Tom Tromey <tromey@redhat.com>
5714 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5716 2013-06-18 Tom Tromey <tromey@redhat.com>
5718 * python/python.c (finish_python_initialization): Decref
5719 'pythondir' on failure path as well.
5721 2013-06-18 Tom Tromey <tromey@redhat.com>
5724 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5725 after taking bits_to_skip into account. Sign extend byte_offset.
5726 * utils.h (gdb_sign_extend): Declare.
5727 * utils.c (gdb_sign_extend): New function.
5729 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5731 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5733 2013-06-17 Pierre Muller <muller@sourceware.org>
5735 * corelow.c (core_open): Print GDB signal name instead of target
5738 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5740 * .gitignore: Add /gcore.
5742 2013-06-13 Doug Evans <dje@google.com>
5744 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5745 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5747 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5749 * stack.c (backtrace_command_1): Fix indentation.
5751 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5753 * window-nat.c (thread_rec): Add missing empty line after
5754 local variable declaration.
5756 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5758 * windows-nat.c (thread_rec): Revert format used to print
5759 error code returned by SuspendThread from %d back to %u.
5761 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5763 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5765 (get_windows_debug_event): Likewise, for all debug traces.
5767 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5769 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5772 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5773 Yao Qi <yao@codesourcery.com>
5775 * mi/mi-main.c (get_register): Remove declaration.
5776 (output_register): Declare.
5777 (mi_cmd_data_list_register_values): Remove local variable
5778 'tuple_cleanup'. Move some code into output_register.
5779 (get_register): Renamed to ...
5780 (output_register): ... this. Output the register's
5781 "number" ui_out tuple here.
5783 2013-06-07 Pedro Alves <palves@redhat.com>
5785 * darwin-nat.c: Fix formating in copyright header.
5786 * darwin-nat.h: Likewise.
5787 * gnu-nat.c: Likewise.
5788 * machoread.c: Likewise.
5790 2013-06-07 Pedro Alves <palves@redhat.com>
5793 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5794 static. Output a global target description pointer.
5795 (init_registers_${name}): Adjust to initialize a
5796 target description structure.
5798 2013-06-07 Will Newton <will.newton@linaro.org>
5800 * printcmd.c (build_address_symbolic): Call
5801 gdbarch_addr_bits_remove for text minimal symbols.
5803 2013-06-07 Will Newton <will.newton@linaro.org>
5805 * MAINTAINERS: Add myself to Write After Approval.
5807 2013-06-07 Yao Qi <yao@codesourcery.com>
5809 * tracepoint.c (start_tracing): Move code to ...
5810 (trace_reset_local_state): ... here. New.
5811 (disconnect_tracing): Don't call set_current_traceframe,
5812 set_tracepoint_num, and set_traceframe_context. Call
5813 trace_reset_local_state instead.
5814 (tfile_close): Call trace_reset_local_state.
5815 * ctf.c (ctf_close): Likewise.
5816 * remote.c (remote_close): Likewise.
5817 * tracepoint.h (trace_reset_local_state): Declare.
5819 2013-06-06 Doug Evans <dje@google.com>
5821 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5822 and fix header docs.
5824 2013-06-05 Doug Evans <dje@google.com>
5825 Keith Seitz <keiths@redhat.com>
5828 * cp-namespace.c (find_symbol_in_baseclass): Call
5829 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5830 Check result of call to lookup_symbol_static.
5831 Call lookup_static_symbol_aux unconditionally.
5832 Call check_typedef on base types before accessing them.
5833 (cp_lookup_nested_symbol): Fix comment.
5835 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5837 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5838 minimal symbols pointing to function descriptors.
5840 2013-06-05 Tom Tromey <tromey@redhat.com>
5842 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5844 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5845 Pedro Alves <palves@redhat.com>
5847 * remote.c (remote_wait_as): Restore signal handler before returning
5848 when GDB gets a notification.
5850 2013-06-04 Gary Benson <gbenson@redhat.com>
5853 * breakpoint.h (handle_solib_event): Moved function declaration
5855 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5856 (bpstat_stop_status): Pass new argument to handle_solib_event.
5857 * solib.h (update_solib_breakpoints): New function declaration.
5858 (handle_solib_event): Moved function declaration from
5860 * solib.c (update_solib_breakpoints): New function.
5861 (handle_solib_event): Moved function from breakpoint.c.
5862 Updated to call solib_ops->handle_event if not NULL.
5863 * solist.h (target_so_ops): New fields "update_breakpoints" and
5865 * infrun.c (set_stop_on_solib_events): New function.
5866 (_initialize_infrun): Use the above for "set
5867 stop-on-solib-events".
5868 (handle_inferior_event): Pass new argument to handle_solib_event.
5869 * solib-svr4.c (probe.h): New include.
5870 (svr4_free_library_list): New forward declaration.
5871 (probe_action): New enum.
5872 (probe_info): New struct.
5873 (probe_info): New static variable.
5874 (NUM_PROBES): New definition.
5875 (svr4_info): New fields "using_xfer", "probes_table" and
5877 (free_probes_table): New function.
5878 (free_solib_list): New function.
5879 (svr4_pspace_data_cleanup): Free probes table and solib list.
5880 (svr4_copy_library_list): New function.
5881 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5882 (svr4_read_so_list): New parameter "prev_lm".
5883 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5884 (svr4_current_sos): New function.
5885 (probe_and_action): New struct.
5886 (hash_probe_and_action): New function.
5887 (equal_probe_and_action): Likewise.
5888 (register_solib_event_probe): Likewise.
5889 (solib_event_probe_at): Likewise.
5890 (solib_event_probe_action): Likewise.
5891 (solist_update_full): Likewise.
5892 (solist_update_incremental): Likewise.
5893 (disable_probes_interface_cleanup): Likewise.
5894 (svr4_handle_solib_event): Likewise.
5895 (svr4_update_solib_event_breakpoint): Likewise.
5896 (svr4_update_solib_event_breakpoints): Likewise.
5897 (svr4_create_solib_event_breakpoints): Likewise.
5898 (enable_break): Free probes table before creating breakpoints.
5899 Use svr4_create_solib_event_breakpoints to create breakpoints.
5900 (svr4_solib_create_inferior_hook): Free the solib list.
5901 (_initialize_svr4_solib): Initialise
5902 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5904 2013-06-04 Gary Benson <gbenson@redhat.com>
5906 * target.h (target_ops): New field
5907 "to_augmented_libraries_svr4_read".
5908 (target_augmented_libraries_svr4_read): New macro.
5909 * target.c (update_current_target): Handle
5910 to_augmented_libraries_svr4_read.
5911 * remote.c (remote_state): New field
5912 "augmented_libraries_svr4_read".
5913 (remote_augmented_libraries_svr4_read_feature): New function.
5914 (remote_protocol_features): Add entry for
5915 "augmented-libraries-svr4-read".
5916 (remote_augmented_libraries_svr4_read): New function.
5917 (init_remote_ops): Initialize
5918 remote_ops.to_augmented_libraries_svr4_read.
5920 2013-06-04 Gary Benson <gbenson@redhat.com>
5924 2013-06-04 Gary Benson <gbenson@redhat.com>
5926 * objfiles.h (inhibit_section_map_updates): New function
5928 (resume_section_map_updates): Likewise.
5929 (resume_section_map_updates_cleanup): Likewise.
5930 * objfiles.c (objfile_pspace_info): Removed field
5931 "objfiles_changed_p". New fields "new_objfiles_available",
5932 "section_map_dirty" and "inhibit_updates".
5933 (allocate_objfile): Set new_objfiles_available.
5934 (free_objfile): Set section_map_dirty.
5935 (objfile_relocate1): Likewise.
5936 (in_plt_section): Likewise.
5937 (find_pc_section): Update the conditions under which the
5938 section map will be updated.
5939 (inhibit_section_map_updates): New function.
5940 (resume_section_map_updates): Likewise.
5941 (resume_section_map_updates_cleanup): Likewise.
5943 2013-06-04 Gary Benson <gbenson@redhat.com>
5945 * probe.h (get_probe_argument_count): New declaration.
5946 (evaluate_probe_argument): Likewise.
5947 * probe.c (get_probe_argument_count): New function.
5948 (evaluate_probe_argument): Likewise.
5949 (probe_safe_evaluate_at_pc): Use the above new functions.
5951 2013-06-04 Alan Modra <amodra@gmail.com>
5953 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5954 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5955 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5956 target mem reads on optional insns.
5957 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5958 ppc_insns_match_pattern calls.
5959 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5960 Add match for power7 thread safety insns, and new order of
5961 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5962 invocation in comment, and update rest of comment.
5963 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5964 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5965 (ppc64_standard_linkage2_target): Update insn offsets.
5966 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5967 stubs first. Update calls.
5969 2013-06-04 Yao Qi <yao@codesourcery.com>
5971 * solib.c (solib_find): Don't need dir separator if path has
5974 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5976 Revert (indirectly causes a SIGSEGV):
5977 * machoread.c (macho_symfile_read): Assign first cleanup to
5980 2013-06-03 Yao Qi <yao@codesourcery.com>
5982 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5983 mi-parse.c. Make them static.
5984 (mi_all_values): Likewise.
5985 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5986 mi_parse_print_values. Make it external.
5987 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5988 Remove the declarations.
5989 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5990 * mi/mi-parse.h (mi_parse_print_values): Declare.
5991 * mi/mi-cmd-stack.c: Include mi-parse.h.
5992 (parse_print_values): Remove
5993 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5994 of parse_print_values.
5995 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5997 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5998 Yao Qi <yao@codesourcery.com>
6000 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6001 (encode_actions): Move code to ...
6002 (all_tracepoint_actions_and_cleanup): ... here. New.
6003 (trace_dump_command): Likewise.
6005 2013-05-30 Tom Tromey <tromey@redhat.com>
6007 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6009 2013-05-30 Tom Tromey <tromey@redhat.com>
6011 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6012 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6013 'old_chain' argument. Add 'parser_result' argument.
6014 (gdb_xml_create_parser_and_cleanup): Remove old version.
6015 (gdb_xml_parse_quick): Update.
6016 (xml_process_xincludes): Update.
6017 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6020 2013-05-30 Tom Tromey <tromey@redhat.com>
6022 * probe.c (collect_probes): Check arguments for NULL before
6023 calling compile_rx_or_error.
6024 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6027 2013-05-30 Tom Tromey <tromey@redhat.com>
6029 * infrun.c (adjust_pc_after_break): Introduce an outer null
6032 2013-05-30 Tom Tromey <tromey@redhat.com>
6034 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6036 2013-05-30 Tom Tromey <tromey@redhat.com>
6038 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6039 for 'old_chain'. Do not check 'head' before processing
6042 2013-05-30 Tom Tromey <tromey@redhat.com>
6044 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6047 2013-05-30 Tom Tromey <tromey@redhat.com>
6049 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6050 inner scope. Unconditionally call do_cleanups.
6052 2013-05-30 Tom Tromey <tromey@redhat.com>
6054 * source.c (find_and_open_source): Call do_cleanups.
6056 2013-05-30 Tom Tromey <tromey@redhat.com>
6058 * linux-thread-db.c (thread_db_load_search): Unconditionally
6061 2013-05-30 Tom Tromey <tromey@redhat.com>
6063 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6064 for 'cleanup'; instead use a later one.
6066 2013-05-30 Tom Tromey <tromey@redhat.com>
6068 * python/py-breakpoint.c (bppy_get_commands): Use
6069 explicit, unconditional return.
6070 * python/py-frame.c (frapy_read_var): Likewise.
6071 * python/python.c (gdbpy_decode_line): Likewise.
6073 2013-05-30 Tom Tromey <tromey@redhat.com>
6075 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6076 do_cleanups on all return paths.
6078 2013-05-30 Tom Tromey <tromey@redhat.com>
6080 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6082 2013-05-30 Tom Tromey <tromey@redhat.com>
6084 * stabsread.c (read_struct_type): Call do_cleanups along
6087 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6089 * mips-linux-tdep.c: Adjust formatting throughout.
6091 2013-05-30 Tom Tromey <tromey@redhat.com>
6093 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6094 along all return paths.
6096 2013-05-30 Tom Tromey <tromey@redhat.com>
6098 * symfile.c (find_separate_debug_file): Call do_cleanups
6099 along all return paths.
6101 2013-05-30 Tom Tromey <tromey@redhat.com>
6103 * symtab.c (search_symbols): Introduce a null cleanup for
6106 2013-05-30 Tom Tromey <tromey@redhat.com>
6108 * python/py-value.c (valpy_binop): Call do_cleanups before
6111 2013-05-30 Tom Tromey <tromey@redhat.com>
6113 * python/py-prettyprint.c (print_children): Remove extra
6116 2013-05-30 Tom Tromey <tromey@redhat.com>
6118 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6121 2013-05-30 Tom Tromey <tromey@redhat.com>
6123 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6124 along all return paths.
6126 2013-05-30 Tom Tromey <tromey@redhat.com>
6128 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6131 2013-05-30 Tom Tromey <tromey@redhat.com>
6133 * varobj.c (c_value_of_root): Call do_cleanups along all
6136 2013-05-30 Tom Tromey <tromey@redhat.com>
6138 * tracepoint.c (trace_dump_command): Unconditionally call
6141 2013-05-30 Tom Tromey <tromey@redhat.com>
6143 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6144 do_cleanups earlier.
6146 2013-05-30 Tom Tromey <tromey@redhat.com>
6148 * machoread.c (macho_symfile_read): Assign first cleanup to
6151 2013-05-30 Tom Tromey <tromey@redhat.com>
6153 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6155 2013-05-30 Tom Tromey <tromey@redhat.com>
6157 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6159 2013-05-30 Tom Tromey <tromey@redhat.com>
6161 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6162 call discard_cleanups.
6163 (inf_ptrace_attach): Likewise.
6165 2013-05-30 Tom Tromey <tromey@redhat.com>
6167 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6169 (mips_initialize): Likewise.
6170 (common_open): Call do_cleanups.
6172 2013-05-30 Tom Tromey <tromey@redhat.com>
6174 * utils.c (internal_vproblem): Call do_cleanups.
6176 2013-05-30 Tom Tromey <tromey@redhat.com>
6178 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6180 2013-05-30 Tom Tromey <tromey@redhat.com>
6182 * cli/cli-script.c (setup_user_args): Don't return after error.
6184 2013-05-30 Tom Tromey <tromey@redhat.com>
6186 * somread.c (som_symtab_read): Call do_cleanups.
6188 2013-05-30 Tom Tromey <tromey@redhat.com>
6190 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6192 2013-05-30 Tom Tromey <tromey@redhat.com>
6194 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6195 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6196 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6197 * source.c (show_substitute_path_command): Call do_cleanups.
6198 (unset_substitute_path_command, set_substitute_path_command):
6200 * symfile.c (load_command): Call do_cleanups.
6202 2013-05-30 Tom Tromey <tromey@redhat.com>
6204 * contrib/cleanup_check.py: New file.
6205 * contrib/gcc-with-excheck: Add option parsing.
6207 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6209 * windows-nat.c (windows_delete_thread): Add missing space
6212 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6214 * inferior.c (top level): Include tilde.h.
6215 (add_inferior_command): Call tilde_expand on the value of 'exec'
6218 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6219 Yao Qi <yao@codesourcery.com>
6221 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6223 (encode_actions): Likewise.
6224 * remote.c (remote_download_tracepoint): Caller update.
6225 * tracepoint.h (encode_actions): Update declaration.
6227 2013-05-30 Pedro Alves <palves@redhat.com>
6229 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6232 2013-05-30 Yao Qi <yao@codesourcery.com>
6234 * remote.c (remote_check_symbols): Remove unused parameter
6237 (remote_start_remote, remote_new_objfile): Caller update.
6239 2013-05-30 Yao Qi <yao@codesourcery.com>
6241 * mi/mi-cmds.c (mi_cmds): Define MI command
6242 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6245 2013-05-29 Pedro Alves <palves@redhat.com>
6247 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6248 (remote_insert_watchpoint, remote_remove_watchpoint)
6249 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6250 (remote_verify_memory, compare_sections_command)
6251 (remote_search_memory): Set the general process/thread on the
6254 2013-05-29 Pedro Alves <palves@redhat.com>
6256 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6257 (_initialize_aarch64_tdep): Don't call
6258 initialize_tdesc_aarch64_without_fpu.
6259 * features/Makefile (WHICH): Remove reference to
6260 aarch64-without-fpu.
6261 * features/aarch64-without-fpu.c: Delete file.
6262 * regformats/aarch64-without-fpu.dat: Delete file.
6264 2013-05-28 Yao Qi <yao@codesourcery.com>
6266 * tracepoint.c (stringify_collection_list): Remove parameter
6268 (encode_actions): Caller update. Remove local variables.
6270 2013-05-24 Yao Qi <yao@codesourcery.com>
6272 * tracepoint.c (TFILE_PID): Remove.
6273 (tfile_open): Don't add thread and inferior.
6274 (tfile_close): Don't set 'inferior_ptid'. Don't call
6275 exit_inferior_silent.
6276 (tfile_thread_alive): Remove.
6277 (init_tfile_ops): Don't set field 'to_thread_alive' of
6280 2013-05-23 Doug Evans <dje@google.com>
6282 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6284 2013-05-23 Pedro Alves <palves@redhat.com>
6286 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6287 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6288 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6289 Only define if HAVE_SOCKETS is defined.
6290 * configure.ac: Check for sys/socket.h.
6291 * config.in, configure: Regenerate.
6293 2013-05-23 Pedro Alves <palves@redhat.com>
6295 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6296 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6297 printing uint32_t variables.
6299 2013-05-23 Pedro Alves <palves@redhat.com>
6301 * NEWS: Mention GDBserver range stepping support.
6303 2013-05-23 Yao Qi <yao@codesourcery.com>
6304 Pedro Alves <palves@redhat.com>
6306 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6308 * infcmd.c (step_once, until_next_command): Enable range stepping.
6309 * infrun.c (displaced_step_prepare): Disable range stepping.
6310 (resume): Disable range stepping if stepping over a breakpoint or
6311 we have software watchpoints. If range stepping is enabled,
6312 assert the thread is in the stepping range.
6313 (clear_proceed_status_thread): Clear may_range_step.
6314 (handle_inferior_event): Disable range stepping as soon as we know
6315 the thread that hit the event. Re-enable it whenever we're going
6316 to step with a step range.
6317 * remote.c (struct vCont_action_support) <r>: New field.
6318 (use_range_stepping): New global.
6319 (remote_vcont_probe): Handle 'r' action.
6320 (append_resumption): Append an 'r' action if the thread may range
6322 (show_range_stepping): New function.
6323 (set_range_stepping): New function.
6324 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6325 'set range-stepping' and 'show range-stepping' commands.
6326 * NEWS: Mention range stepping, the new vCont;r action, and the
6327 new "set/show range-stepping" commands.
6329 2013-05-23 Yao Qi <yao@codesourcery.com>
6330 Pedro Alves <palves@redhat.com>
6332 * remote.c (struct vCont_action_support): New struct.
6333 (struct remote_state) <support_vCont_t>: Remove field.
6334 <vCont_actions_support>: New field.
6335 (remote_vcont_probe, remote_stop_ns): Update.
6337 2013-05-23 Yao Qi <yao@codesourcery.com>
6338 Pedro Alves <palves@redhat.com>
6340 * gdbthread.h (pc_in_thread_step_range): New declaration.
6341 * thread.c (pc_in_thread_step_range): New function.
6342 * infrun.c (handle_inferior_event): Use it.
6344 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6346 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6349 2013-05-22 Keith Seitz <keiths@redhat.com>
6351 * ada-lang.c (is_known_support_routine): Add explicit free of
6352 'func_name' from find_frame_funname.
6353 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6354 for func_name from find_frame_funname.
6355 * python/py-frame.c (frapy_name): Add explicit free of
6356 'name' from find_frame_funname.
6357 * stack.c (find_frame_funname): Add comment explaining that
6358 funcp must be freed by the caller.
6359 Return copy of symbol names instead of pointers.
6360 (print_frame): Add a cleanup for 'funname' from
6362 * stack.h (find_frame_funname): Remove "const" from
6363 'funname' parameter.
6365 2013-05-22 Tom Tromey <tromey@redhat.com>
6368 * c-valprint.c (c_value_print): Use value_addr for
6369 references. Convert back to reference type with value_ref.
6371 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6373 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6374 unloaded DLL, it will be done by handle_solib_event. See
6375 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6378 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6380 * ui-out.c: Create typedef ui_out_level_p and define vector
6381 operations for that type.
6382 (struct ui_out): Use a vector instead of an array.
6383 (current_level): Return level from a vector.
6384 (push_level): Create a level in a vector.
6385 (pop_level): Delete a level in a vector.
6386 (ui_out_new): Create initial level zero level, and store in a
6388 (ui_out_destroy): Add vector cleanup.
6390 2013-05-22 Pedro Alves <palves@redhat.com>
6392 * python/python-internal.h (gdb_Py_DECREF): Tag with
6393 "ARI: editCase function".
6395 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6397 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6399 2013-05-21 Pedro Alves <palves@redhat.com>
6401 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6402 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6403 * python/py-utils.c (py_decref): Don't check for NULL before
6406 2013-05-21 Pedro Alves <palves@redhat.com>
6408 * python/py-utils.c (py_decref): Remove extra braces.
6409 (gdb_pymodule_addobject): Remove extra braces.
6410 * python-internal.h (gdb_Py_DECREF): New static inline function.
6411 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6413 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6415 * breakpoints.c (detach_breakpoints): Do not
6416 detach breakpoints locations with loc_type bp_loc_other.
6418 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6420 Workaround Python 2.6.
6421 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6424 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6426 Code cleanup: constification.
6427 * solib.c (solib_ops): Make return type and ops variable type const.
6428 (set_solib_ops): Make the new_ops parameter and ops variable const.
6429 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6430 (solib_add, solib_keep_data_in_core, clear_solib)
6431 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6432 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6434 * solib.h (set_solib_ops): Make the new_ops parameter const.
6436 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6438 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6440 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6441 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6442 (SYSTEM_GDBINIT_FILES): New variables.
6443 (all): Add stamp-system-gdbinit.
6444 (stamp-system-gdbinit): New rule.
6445 (clean-system-gdbinit, install-system-gdbinit)
6446 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6447 (install-only): Add dependency on install-system-gdbinit.
6448 (uninstall): Add dependency on uninstall-system-gdbinit.
6449 (clean): Add dependency on clean-system-gdbinit.
6450 * system-gdbinit/elinos.py: New file.
6451 * system-gdbinit/wrs-linux.py: New file.
6453 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6455 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6457 2013-05-21 Hui Zhu <hui@codesourcery.com>
6459 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6460 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6461 * mi/mi-cmd-break.c (ctype.h): New include.
6462 (gdb_obstack.h): New include.
6463 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6464 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6465 (mi_cmd_dprintf_insert): New.
6466 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6467 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6469 2013-05-20 Tom Tromey <tromey@redhat.com>
6471 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6473 2013-05-20 Tom Tromey <tromey@redhat.com>
6475 * python/py-value.c (valpy_get_dynamic_type): Simplify
6476 dynamic_type assignment. Use Py_XINCREF.
6478 2013-05-20 Tom Tromey <tromey@redhat.com>
6480 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6482 2013-05-20 Tom Tromey <tromey@redhat.com>
6484 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6485 (gdbpy_selected_frame): Move object-construction code
6488 2013-05-20 Tom Tromey <tromey@redhat.com>
6490 * python/py-arch.c (gdbpy_initialize_arch): Use
6491 gdb_pymodule_addobject.
6492 * python/py-block.c (gdbpy_initialize_blocks): Use
6493 gdb_pymodule_addobject.
6494 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6495 gdb_pymodule_addobject.
6496 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6497 gdb_pymodule_addobject.
6498 * python/py-event.c (gdbpy_initialize_event_generic): Use
6499 gdb_pymodule_addobject.
6500 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6501 gdb_pymodule_addobject.
6502 * python/py-evts.c (add_new_registry): Use
6503 gdb_pymodule_addobject.
6504 (gdbpy_initialize_py_events): Likewise.
6505 * python/py-finishbreakpoint.c
6506 (gdbpy_initialize_finishbreakpoints): Use
6507 gdb_pymodule_addobject.
6508 * python/py-frame.c (gdbpy_initialize_frames): Use
6509 gdb_pymodule_addobject.
6510 * python/py-function.c (gdbpy_initialize_functions): Use
6511 gdb_pymodule_addobject.
6512 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6513 gdb_pymodule_addobject.
6514 * python/py-infthread.c (gdbpy_initialize_thread): Use
6515 gdb_pymodule_addobject.
6516 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6517 gdb_pymodule_addobject.
6518 * python/py-param.c (gdbpy_initialize_parameters): Use
6519 gdb_pymodule_addobject.
6520 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6521 gdb_pymodule_addobject.
6522 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6523 gdb_pymodule_addobject.
6524 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6525 gdb_pymodule_addobject.
6526 * python/py-type.c (gdbpy_initialize_types): Use
6527 gdb_pymodule_addobject.
6528 * python/py-utils.c (gdb_pymodule_addobject): New function.
6529 * python/py-value.c (gdbpy_initialize_values): Use
6530 gdb_pymodule_addobject.
6531 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6532 * python/python.c (_initialize_python): Use
6533 gdb_pymodule_addobject.
6535 2013-05-20 Tom Tromey <tromey@redhat.com>
6537 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6538 * python/py-param.c (get_set_value, get_show_value): Use
6540 * python/python.c (start_type_printers, apply_type_printers):
6541 Use explicit decrefs.
6543 2013-05-20 Tom Tromey <tromey@redhat.com>
6545 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6548 2013-05-20 Tom Tromey <tromey@redhat.com>
6550 * python/python.c (gdbpy_run_events): Decref the result
6551 of PyObject_CallObject.
6553 2013-05-20 Tom Tromey <tromey@redhat.com>
6555 * python/py-symtab.c (set_sal): Use
6556 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6557 (symtab_and_line_to_sal_object): Update.
6559 2013-05-20 Tom Tromey <tromey@redhat.com>
6561 * python/py-param.c (compute_enum_values): Decref 'item'.
6563 2013-05-20 Tom Tromey <tromey@redhat.com>
6565 * mi/mi-main.c: Include python-internal.h.
6566 (mi_cmd_list_features): Check gdb_python_initialized.
6567 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6568 (python_inferior_exit, python_new_objfile, add_thread_object)
6569 (delete_thread_object, py_free_inferior): Check
6570 gdb_python_initialized.
6571 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6572 gdb_python_initialized.
6573 * python/py-type.c (save_objfile_types): Check
6574 gdb_python_initialized.
6575 * python/python-internal.h (gdb_python_initialized): Declare.
6576 * python/python.c (ensure_python_env): Throw exception if
6577 Python not initialized.
6578 (before_prompt_hook, source_python_script_for_objfile)
6579 (start_type_printers, apply_type_printers,
6580 free_type_printers): Check gdb_python_initialized.
6581 * varobj.c (varobj_get_display_hint)
6582 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6583 (install_new_value_visualizer, varobj_set_visualizer)
6584 (value_get_print_value): Check gdb_python_initialized.
6586 2013-05-20 Tom Tromey <tromey@redhat.com>
6588 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6590 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6591 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6593 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6595 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6597 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6599 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6600 init function to return 'int'.
6601 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6602 Return 'int'. Check errors.
6603 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6605 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6606 Return 'int'. Check errors.
6607 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6609 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6611 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6613 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6615 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6617 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6619 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6621 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6623 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6625 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6627 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6629 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6631 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6633 * python/python-internal.h (gdbpy_initialize_auto_load,
6634 gdbpy_initialize_values, gdbpy_initialize_frames,
6635 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6636 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6637 gdbpy_initialize_blocks, gdbpy_initialize_types,
6638 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6639 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6640 gdbpy_initialize_finishbreakpoints,
6641 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6642 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6643 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6644 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6645 gdbpy_initialize_signal_event,
6646 gdbpy_initialize_breakpoint_event,
6647 gdbpy_initialize_continue_event,
6648 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6649 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6650 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6651 * python/python.c (gdb_python_initialized): New global.
6652 (gdbpy_initialize_events): Return 'int'. Check errors.
6653 (_initialize_python): Check errors. Set
6654 gdb_python_initialized.
6656 2013-05-20 Tom Tromey <tromey@redhat.com>
6658 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6659 Decref the reslut of PyObject_CallMethod.
6661 2013-05-20 Tom Tromey <tromey@redhat.com>
6663 * python/py-event.c (gdbpy_initialize_event_generic): Return
6664 early if PyType_Ready fails.
6666 2013-05-20 Tom Tromey <tromey@redhat.com>
6668 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6669 as 'default' in the switch.
6671 2013-05-20 Tom Tromey <tromey@redhat.com>
6673 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6674 get_addr_from_python calls out of TRY_CATCH.
6675 (infpy_write_memory, infpy_search_memory): Likewise.
6676 * python/py-utils.c (get_addr_from_python): Return negative
6677 value on error. Use TRY_CATCH.
6678 * python/python-internal.h (get_addr_from_python): Use
6679 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6681 2013-05-20 Tom Tromey <tromey@redhat.com>
6683 * python/py-event.c (evpy_emit_event): Decref the
6684 result of PyObject_CallFunctionObjArgs.
6686 2013-05-20 Tom Tromey <tromey@redhat.com>
6688 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6691 2013-05-20 Tom Tromey <tromey@redhat.com>
6693 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6695 2013-05-20 Tom Tromey <tromey@redhat.com>
6697 * python/py-event.h (gdbpy_initialize_event_generic): Use
6698 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6699 * python/py-evts.c (add_new_registry): Use
6700 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6701 * python/python-internal.h
6702 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6704 2013-05-20 Tom Tromey <tromey@redhat.com>
6706 * python/py-arch.c (archpy_disassemble): Update.
6707 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6708 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6709 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6710 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6712 (GDB_PY_HANDLE_EXCEPTION): Update.
6713 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6715 2013-05-20 Tom Tromey <tromey@redhat.com>
6717 * python/python-internal.h (events_object_type): Remove.
6719 2013-05-20 Tom Tromey <tromey@redhat.com>
6721 * python/py-event.h (evpy_emit_event): Use
6722 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6723 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6726 2013-05-20 Tom Tromey <tromey@redhat.com>
6728 * py-evtregistry.c (create_event_object): Decref
6729 eventregistry_object if PyList_New fails.
6731 2013-05-20 Tom Tromey <tromey@redhat.com>
6733 * py-cmd.c (gdbpy_string_to_argv): Check result of
6736 2013-05-20 Tom Tromey <tromey@redhat.com>
6738 * python/python.c (before_prompt_hook): Add cleanup to
6741 2013-05-20 Tom Tromey <tromey@redhat.com>
6743 * python/py-function.c (fnpy_init): Decref result of
6744 PyObject_GetAttrString.
6746 2013-05-20 Tom Tromey <tromey@redhat.com>
6748 * python/py-threadevent.c (get_event_thread): Use
6749 CPYCHECKER_RETURNS_BORROWED_REF.
6750 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6752 (pspace_to_pspace_object, objfile_to_objfile_object)
6753 (find_thread_object): Use it.
6755 2013-05-20 Tom Tromey <tromey@redhat.com>
6757 * python/py-arch.c (arch_object_type): Use
6758 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6759 * python/py-block.c (block_syms_iterator_object_type):
6760 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6761 * python/py-bpevent.c (breakpoint_event_object_type):
6762 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6763 * python/py-cmd.c (cmdpy_object_type): Use
6764 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6765 * python/py-continueevent.c (continue_event_object_type):
6766 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6767 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6768 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6769 * python/py-events.h (thread_event_object_type):
6770 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6771 * python/py-evtregistry.c (eventregistry_object_type): Use
6772 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6773 * python/py-exitedevent.c (exited_event_object_type):
6774 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6775 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6776 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6777 * python/py-function.c (fnpy_object_type): Use
6778 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6779 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6780 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6781 * python/py-infthread.c (thread_object_type): Use
6782 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6783 * python/py-lazy-string.c (lazy_string_object_type):
6784 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6785 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6786 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6787 * python/py-objfile.c (objfile_object_type): Use
6788 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6789 * python/py-param.c (parmpy_object_type):
6790 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6791 * python/py-progspace.c (pspace_object_type):
6792 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6793 * python/py-signalevent.c (signal_event_object_type):
6794 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6795 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6796 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6797 * python/py-type.c (type_object_type, field_object_type)
6798 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6799 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6801 (value_object_type, block_object_type, symbol_object_type)
6802 (event_object_type, stop_event_object_type, breakpoint_object_type)
6803 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6805 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6807 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6808 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6810 2013-05-20 Doug Evans <dje@google.com>
6812 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6814 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6815 reading_dwo_directly.
6816 (struct signatured_type): New member dwo_unit.
6817 (struct die_reader_specs): New member comp_dir.
6818 (create_signatured_type_table_from_index): Use malloc for
6819 all_type_units instead of objfile's obstack.
6820 (create_all_type_units): Ditto.
6821 (fill_in_sig_entry_from_dwo_entry): New function.
6822 (add_type_unit): New function.
6823 (lookup_dwo_signatured_type): New function.
6824 (lookup_dwp_signatured_type): New function.
6825 (lookup_signatured_type): New arg cu. All callers updated.
6826 (init_cu_die_reader): Initialize comp_dir.
6827 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6828 Change assert of matching type signatures to call error on mismatch.
6829 (lookup_dwo_unit): Add assert.
6830 (init_tu_and_read_dwo_dies): New function.
6831 (init_cutu_and_read_dies): Call it.
6832 (build_type_unit_groups): Handle case of no type unit groups created.
6833 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6834 (lookup_dwo_cutu): Tweak complaint.
6835 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6836 (dwarf2_per_objfile_free): Free all_type_units.
6838 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6840 * windows-nat.c (handle_unload_dll): Add missing empty line.
6842 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6844 * dwarf2read.c (prototyped_function_p): New function.
6845 (read_subroutine_type): Use it.
6847 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6849 * rs6000-aix-tdep.c: De-indent some example code provided
6852 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6854 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6855 region is ok for a hardware watchpoint using the new ptrace interface
6858 2013-05-17 Doug Evans <dje@google.com>
6860 * NEWS: Mention new maintenance commands check-symtabs, and
6861 expand-symtabs, and renamed check-psymtabs.
6862 * psymtab.c (maintenance_check_psymtabs): Renamed from
6863 maintenance_check_symtabs. Only process already-expanded symbol
6865 (_initialize_psymtab): Update.
6866 * symmisc.c (maintenance_check_symtabs): New function.
6867 (maintenance_expand_name_matcher): New function
6868 (maintenance_expand_file_matcher): New function
6869 (maintenance_expand_symtabs): New function.
6870 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6873 2013-05-17 Tom Tromey <tromey@redhat.com>
6875 * python/py-inferior.c (infpy_read_memory): Don't call
6876 PyErr_SetString if PyObject_New fails.
6877 * python/py-frame.c (frame_info_to_frame_object): Don't call
6878 PyErr_SetString if PyObject_New fails.
6880 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6882 * acinclude.m4: Add check for dlopen in libdl.
6883 * configure.ac: Ditto.
6884 * configure: Regenerate.
6886 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6888 * frame.c (frame_stash): Convert to htab.
6889 (frame_addr_hash): New function.
6890 (frame_addr_hash_eq): New function.
6891 (frame_stash_create): Convert function to create
6893 (frame_stash_add): Convert function to add an entry to a hash
6895 (frame_stash_find): Convert function to search the hash table.
6896 (frame_stash_invalidate): Convert function to empty the hash
6898 (get_frame_id): Only add to stash if a frame_id is created.
6899 (_initialize_frame): Call frame_stash_create.
6901 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6903 * configure.ac: Ensure MIG is available when building for GNU Hurd
6905 * configure: Regenerate.
6907 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6909 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6911 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6913 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6914 all cleanups are done before returning from this function.
6916 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6918 * utils.h: #include "exceptions.h".
6919 (enum errors): Remove partial declaration.
6921 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6923 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6924 * gdbarch.h, gdbarch.c: Regenerate.
6925 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6928 * rs6000-aix-tdep.h: New file.
6929 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6930 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6932 (struct field_info, struct ld_info_desc): New types.
6933 (ld_info32_desc, ld_info64_desc): New static constants.
6934 (struct ld_info): New type.
6935 (rs6000_aix_extract_ld_info): New function.
6936 (rs6000_aix_shared_library_to_xml): Likewise.
6937 (rs6000_aix_ld_info_to_xml): Likewise.
6938 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6939 (rs6000_aix_init_osabi): Add call to
6940 set_gdbarch_core_xfer_shared_libraries_aix.
6941 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6942 Remove "xml-utils.h" include.
6943 (LdInfo): Delete typedef.
6944 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6946 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6947 Adjust code accordingly.
6948 (rs6000_core_ldinfo): Delete, folded into
6949 rs6000_aix_core_xfer_shared_libraries_aix.
6950 (rs6000_xfer_shared_library): Delete.
6951 (rs6000_xfer_shared_libraries): Reimplement.
6953 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6955 * record.c (record_goto_cmdlist): New.
6956 (cmd_record_goto): Split into this ...
6957 (cmd_record_goto_begin): ... this
6958 (cmd_record_goto_end): ... and this.
6959 (_initialize_record): Change "record goto" to prefix command.
6960 Add commands for "record goto begin" and "record goto end".
6961 Add an alias for "record goto start" to "record goto begin".
6963 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6965 * linespec.c (convert_linespec_to_sals): New comment for
6966 SOURCE_FILENAME assignment.
6968 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6970 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6973 2013-05-14 Tom Tromey <tromey@redhat.com>
6975 * eval.c (parse_and_eval_long): Make 'exp' const.
6976 * value.h (parse_and_eval_long): Update.
6978 2013-05-14 Tom Tromey <tromey@redhat.com>
6980 * ui-file.c (gdb_fopen): Make arguments const.
6981 * ui-file.h (gdb_fopen): Make arguments const.
6983 2013-05-14 Tom Tromey <tromey@redhat.com>
6985 * remote.c (remote_set_trace_notes): Make arguments const.
6986 * target.c (update_current_target): Update cast.
6987 * target.h (to_set_trace_notes): Make arguments const.
6989 2013-05-14 Tom Tromey <tromey@redhat.com>
6991 * go32-nat.c (go32_terminal_info): Make 'args' const.
6992 * inferior.h (child_terminal_info): Update.
6993 * inflow.c (child_terminal_info): Make 'args' const.
6994 * target.c (default_terminal_info): Make 'args' const.
6995 (debug_to_terminal_save_ours): Likewise.
6996 * target.h (struct target_ops) <to_terminal_info>: Make argument
6999 2013-05-13 Tom Tromey <tromey@redhat.com>
7001 * gcore.c (create_gcore_bfd): Make 'filename' const.
7002 * gcore.h (create_gcore_bfd): Make 'filename' const.
7003 * record-full.c (record_full_save): Make 'recfilename' const.
7004 * target.c (target_save_record): Make 'filename' const.
7005 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7007 (target_save_record): Likewise.
7009 2013-05-13 Tom Tromey <tromey@redhat.com>
7012 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7013 ranges section has been read.
7015 2013-05-13 Tom Tromey <tromey@redhat.com>
7018 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7019 STRUCTOP_PTR>: Return a not_lval value for
7020 EVAL_AVOID_SIDE_EFFECTS.
7021 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7022 for EVAL_AVOID_SIDE_EFFECTS.
7024 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7026 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7027 floating point registers to register type before storing
7029 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7032 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7033 Tom Tromey <tromey@redhat.com>
7035 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7037 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7039 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7040 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7041 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7042 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7044 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7045 Tom Tromey <tromey@redhat.com>
7048 * configure: Rebuild.
7049 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7052 2013-05-10 Pedro Alves <palves@redhat.com>
7054 * remote.c (_initialize_remote): Fix spelling of
7055 qXfer:traceframe-info:read packet in packet config command.
7057 2013-05-10 David Taylor <dtaylor@emc.com>
7061 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7062 "QTro" at start of packet.
7064 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7066 * solib-aix.c (solib_aix_relocate_section_addresses):
7067 For the .bss section action, apply the same offset as
7070 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7072 * solib-aix.c (solib_aix_relocate_section_addresses):
7073 Remove FIXME comment.
7075 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7078 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7079 New functions, directly copied from sparc-sol-thread.c.
7080 * sparc-sol-thread.c: Delete.
7081 * configure.ac: Remove code handling sparc-solaris-thread.c.
7082 * configure: Regenerate.
7084 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7086 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7088 (backtrace_command): Add "no-filters" option parsing.
7089 (_initialize_stack): Alter help to reflect "no-filters" option.
7090 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7091 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7092 (py-frame.o): Add target
7093 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7095 * python/python.h: Add new frame filter constants, and flag enum.
7096 (apply_frame_filter): Add definition.
7097 * python/python.c (apply_frame_filter): New non-Python
7099 * python/py-utils.c (py_xdecref): New function.
7100 (make_cleanup_py_xdecref): Ditto.
7101 * python/py-objfile.c: Declare frame_filters dictionary.
7102 (objfpy_dealloc): Add frame_filters dealloc.
7103 (objfpy_new): Initialize frame_filters attribute.
7104 (objfile_to_objfile_object): Ditto.
7105 (objfpy_get_frame_filters): New function.
7106 (objfpy_set_frame_filters): New function.
7107 * python/py-progspace.c: Declare frame_filters dictionary.
7108 (pspy_dealloc): Add frame_filters dealloc.
7109 (pspy_new): Initialize frame_filters attribute.
7110 (pspacee_to_pspace_object): Ditto.
7111 (pspy_get_frame_filters): New function.
7112 (pspy_set_frame_filters): New function.
7113 * python/py-framefilter.c: New file.
7114 * python/lib/gdb/command/frame_filters.py: New file.
7115 * python/lib/gdb/frames.py: New file.
7116 * python/lib/gdb/__init__.py: Initialize global frame_filters
7118 * python/lib/gdb/FrameDecorator.py: New file.
7119 * python/lib/gdb/FrameIterator.py: New file.
7120 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7121 * mi/mi-cmds.h: Declare.
7122 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7123 --no-frame-filter logic, and Python frame filter logic.
7124 (stack_enable_frame_filters): New function.
7125 (parse_no_frame_option): Ditto.
7126 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7128 (mi_cmd_stack_list_locals): Ditto.
7129 (mi_cmd_stack_list_args): Ditto.
7130 (mi_cmd_stack_list_variables): Ditto.
7131 * NEWS: Add frame filter note.
7133 2013-05-09 Doug Evans <dje@google.com>
7135 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7136 All callers updated.
7137 (syms_from_objfile): Ditto. Make static.
7138 (symbol_file_add_with_addrs): Renamed from
7139 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7140 num_offsets. All callers updated.
7141 * symfile.h (syms_from_objfile): Delete.
7143 * symfile.c (decrement_reading_symtab): Add assert.
7144 (increment_reading_symtab): Ditto.
7146 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7148 * source.c (forward_search_command): Replace call to getc
7150 (reverse_search_command): Likewise.
7152 2013-05-08 Doug Evans <dje@google.com>
7154 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7157 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7159 * sol-thread.c (info_cb): Factorize the code a little.
7161 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7163 * sol-thread.c (info_cb): Rework the output of the "maintenance
7164 info sol-threads" command a bit.
7166 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7168 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7169 Replace ti.ti_startfunc by ti.ti_pc.
7171 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7173 * solib-aix.c (solib_aix_free_library_list): New function
7174 for the case where HAVE_LIBEXPAT is not defined.
7176 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7178 PR breakpoints/15413:
7179 * breakpoint.c (condition_completer): Simplify the code to
7180 disconsider multiple locations of breakpoints when completing the
7181 "condition" command.
7183 2013-05-07 Pierre Muller <muller@sourceware.org>
7185 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7186 instead of <sys/wait.h>.
7188 2013-05-07 Pierre Muller <muller@sourceware.org>
7190 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7191 trailing new line from warning message.
7193 2013-05-07 Pierre Muller <muller@sourceware.org>
7195 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7196 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7198 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7200 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7201 error message (ARI fix).
7203 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7205 * features/library-list-aix.dtd: Replace library-list by
7207 * rs6000-nat.c: Replace library-list by library-list-aix
7209 * solib-aix.c: Likewise.
7211 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7213 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7214 Renames TARGET_OBJECT_AIX_LIBRARIES.
7215 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7216 TARGET_OBJECT_LIBRARIES_AIX throughout.
7217 * solib-aix.c: Likwise.
7219 2013-05-07 Yao Qi <yao@codesourcery.com>
7221 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7222 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7224 2013-05-07 Yao Qi <yao@codesourcery.com>
7226 * solib-dsbt.c (enable_break): Declare.
7227 (dsbt_current_sos): Remove call to enable_break2.
7228 (enable_break2): Rename to enable_break. Set solib breakpoint
7229 on '_dl_debug_state'.
7230 (enable_break): Remove.
7232 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7234 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7235 debug state prior to replicating existing hardware watchpoints or
7238 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7240 * gcore.c (gcore_create_callback): Ignore sections with
7241 separate_debug_objfile_backlink != NULL.
7243 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7244 Andrew Jenner <andrew@codesourcery.com>
7245 Chung-Lin Tang <cltang@codesourcery.com>
7246 Julian Brown <julian@codesourcery.com>
7248 Based on the nios2-elf port from Altera Corporation.
7250 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7252 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7253 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7254 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7255 * nios2-tdep.h: New.
7256 * nios2-tdep.c: New.
7257 * nios2-linux-tdep.c: New.
7258 * features/Makefile (WHICH): Add nios2-linux.
7259 (nios2-linux-expedite): Set.
7260 * features/nios2-cpu.xml: New.
7261 * features/nios2.xml: New.
7262 * features/nios2-linux.xml: New.
7263 * features/nios2.c: New (autogenerated).
7264 * features/nios2-linux.c: New (autogenerated).
7265 * regformats/nios2-linux.dat: New (autogenerated).
7266 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7269 2013-05-06 Doug Evans <dje@google.com>
7271 * symfile.c: Whitespace cleanup.
7273 * solist.h (struct target_so_ops): New member clear_so.
7274 * solib-svr4.c (svr4_clear_so): New function.
7275 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7276 * solib.c (clear_so): Renamed from free_so_symbols.
7277 All callers updated. Call target clear_so if it exists.
7279 2013-05-06 Tom Tromey <tromey@redhat.com>
7281 * ada-lang.c (ada_value_primitive_packed_val): Don't
7283 * value.c (set_value_parent): Incref the new parent and decref
7285 (value_copy, value_primitive_field): Use set_value_parent.
7287 2013-05-06 Tom Tromey <tromey@redhat.com>
7289 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7290 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7292 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7293 * dwarf2read.c (write_constant_as_bytes)
7294 (dwarf2_fetch_constant_bytes): New functions.
7296 2013-05-06 Tom Tromey <tromey@redhat.com>
7298 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7300 (dwarf2_const_value_attr): Update.
7302 2013-05-06 Tom Tromey <tromey@redhat.com>
7304 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7305 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7306 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7309 2013-05-06 Tom Tromey <tromey@redhat.com>
7311 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7314 2013-05-06 Doug Evans <dje@google.com>
7316 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7317 * stabsread.h (process_one_symbol): Update declaration.
7318 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7319 * elfread.c (elf_symfile_relocate_probe): Ditto.
7320 * psymtab.c (relocate_psymtabs): Ditto.
7321 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7322 (objfile_relocate): Ditto.
7323 * objfiles.h (objfile_relocate): Update declaration.
7324 * symfile.c (relative_addr_info_to_section_offsets): Constify
7326 (default_symfile_offsets): Ditto.
7327 (syms_from_objfile_1): Constify offsets parameter.
7328 (syms_from_objfile): Ditto.
7329 (symbol_file_add_with_addrs_or_offsets): Ditto.
7330 (symfile_map_offsets_to_segments): Constify data parameter.
7331 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7332 delta parameters of member relocate.
7333 (struct sym_probe_fns): Constify new_offsets,
7334 delta parameters of member sym_relocate_probe.
7335 (struct sym_fns): Constify section_addr_info parameter of member
7337 (relative_addr_info_to_section_offsets): Update declaration.
7338 (default_symfile_offsets): Ditto.
7339 (syms_from_objfile): Ditto.
7340 (symfile_map_offsets_to_segments): Ditto.
7342 * symfile.c (syms_from_objfile_1): Use correct section count when
7343 objfile->sf == NULL.
7345 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7347 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7349 2013-05-06 Doug Evans <dje@google.com>
7351 * psympriv.h (struct partial_symtab): Augment comment for member
7354 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7356 Reimplement shared library support on ppc-aix...
7357 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7358 * features/library-list-aix.dtd: New file.
7359 * solib-aix.h, solib-aix.c: New file.
7360 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7361 (rs6000_find_toc_address_hook): Delete.
7362 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7363 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7364 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7366 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7367 (vmap_symtab, fixup_breakpoints): Delete.
7368 (rs6000_xfer_shared_libraries): New function.
7369 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7370 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7371 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7372 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7373 (rs6000_xfer_shared_library): New function.
7374 (find_toc_address): Delete.
7375 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7376 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7377 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7378 before creating minimal symbol. Adjust function description
7380 (scan_xcoff_symtab): Replace call to
7381 prim_record_minimal_symbol_and_info by call to
7382 record_minimal_symbol.
7383 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7384 around default_symfile_offsets.
7385 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7386 powerpc-aix targets.
7387 * config/rs6000/nm-rs6000.h: Delete.
7388 * config/powerpc/aix.mh (NAT_FILE): Delete.
7389 (NATDEPFILES): Remove xcoffsolib.o.
7390 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7391 (ALL_TARGET_OBS): Add solib-aix.o.
7392 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7393 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7394 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7395 * xcoffsolib.h, xcoffsolib.c: Delete.
7397 * solib.c (reload_shared_libraries): Remove reference to
7398 SOLIB_CREATE_INFERIOR_HOOK.
7399 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7400 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7401 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7403 * corelow.c (deprecated_core_resize_section_table): Delete.
7404 * exec.c: Remove include of xcoffsolib.h".
7405 (map_vmap, vmap): Delete.
7406 (exec_close_1): Remove references to vmap.
7407 (exec_file_attach): Remove vmap handling code, and reference
7408 to DEPRECATED_IBM6000_TARGET.
7409 (bfdsec_to_vmap): Delete.
7410 (exec_files_info): Remove block of code handling VMAP.
7411 * infcmd.c (post_create_inferior): Remove reference to
7412 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7413 * infrun.c (follow_exec): Remove reference to
7414 SOLIB_CREATE_INFERIOR_HOOK.
7415 * stack.c (print_frame): Remove reference to PC_SOLIB.
7416 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7417 (dsbt_relocate_main_executable): Likewise.
7418 * solib-frv.c (frv_current_sos): Likewise.
7420 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7422 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7423 to target_write_memory and target_read_memory.
7425 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7427 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7428 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7430 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7432 * darwin-nat.c: Replace all "%x" instances in format strings
7433 into "0x%x" throughout.
7435 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7437 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7438 gdb_assert by call to MACH_CHECK_ERROR.
7439 (darwin_attach_pid): Raise an error rather than a failed
7440 assertion when various system calls failed. Report a warning
7441 instead of raising a failed assertion when PREV_NOT is not NULL
7442 after call to mach_port_request_notification.
7443 (darwin_ptrace_me): Raise an error rather than a failed
7444 assertion when read returns nonzero.
7446 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7448 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7450 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7452 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7454 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7456 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7457 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7458 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7459 a stale cleanup. Fix double free of NAME.
7461 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7463 * windows-nat.c (windows_delete_thread): Accept an additional
7464 argument, the thread's exit code, and announce thread death when
7465 print_thread_events is non-zero and we are deleting a thread that
7466 is not the main thread.
7467 (get_windows_debug_event): Pass thread exit code to
7468 windows_delete_thread.
7470 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7472 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7473 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7474 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7475 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7476 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7477 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7478 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7479 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7480 (gdbarch_tdep): New struct.
7481 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7483 (v850e3v5_register_name): New function.
7484 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7485 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7486 code handling the struct return conventions for the RH850 ABI.
7488 (v850_eight_byte_align_p): New function.
7489 (v850_push_call_dummy): Push structs by value, not by reference
7490 for the RH850 ABI. Add support for eight byte alignment.
7491 (v850_dbtrap_breakpoint_from_pc): New function.
7492 (v850_gdbarch_init): Add ABI detection code. Register
7493 v850e3v5_register_name for the v850e3v5 architecture. Set the
7494 number of registers for v850e3v5. Register
7495 v850_dbtrap_breakpoint_from_pc as appropriate.
7496 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7498 2013-05-03 Doug Evans <dje@google.com>
7500 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7501 of bfd_count_sections.
7502 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7503 * symfile.c (default_symfile_offsets): Ditto.
7504 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7505 one entry, not bfd_count_sections entries.
7507 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7509 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7510 `save' and `restore' register groups. Don't include SPL
7511 or SPH in these groups.
7512 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7513 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7514 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7515 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7516 dwarf2_append_unwinders().
7518 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7520 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7521 ignore SIGINT and SIGTRAP in case these internal signals are
7524 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7526 * darwin-nat.c (darwin_read_write_inferior): Change types
7527 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7528 of copy_count to "mach_msg_type_number_t".
7529 (darwin_read_dyld_info): Change type of parameter
7530 rdaddr to "gdb_byte *".
7532 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7534 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7535 of &info->load_map from "char *" to "gdb_byte *".
7537 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7539 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7540 from "char *" to "gdb_byte *".
7541 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7543 2013-04-30 Doug Evans <dje@google.com>
7545 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7546 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7547 DWO stub. If DWO isn't found, just use stub.
7548 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7550 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7551 calling init_cutu_and_read_dies.
7553 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7555 * target-descriptions.c (maint_print_c_tdesc_cmd):
7556 Add case to parse structures as register types and
7559 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7561 * MAINTAINERS (Write After Approval): Add myself to the list.
7563 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7565 * sol-thread.c (rw_common): Change type of parameter "buf"
7567 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7568 rw_common to "gdb_byte *" instead of "char *".
7570 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7572 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7573 of local variable msym to const struct bound_minimal_symbol.
7574 Adjust use accordingly.
7575 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7577 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7579 * i386gnu-nat.c (CREG_OFFSET): New macro.
7580 (creg_offset): New array.
7581 (CREG_ADDR): Use creg_offset instead of reg_offset.
7583 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7585 * mep-tdep.c (mep_write_pc): Delete.
7586 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7587 Add call to set_gdbarch_pc_regnum.
7589 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7591 * common/filestuff.c: Replace #include <dirent.h> by
7592 #include "gdb_dirent.h".
7594 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7596 * common/filestuff.c: Replace #include <sys/stat.h> by
7597 #include "gdb_stat.h".
7599 2013-04-29 Pierre Muller <muller@sourceware.org>
7601 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7602 editCase function rule.
7603 (get_DW_AT_signature_type): Likewise.
7605 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7607 * m32r-tdep.c (m32r_write_pc): Delete.
7608 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7609 Add call to set_gdbarch_pc_regnum.
7611 2013-04-29 Pierre Muller <muller@sourceware.org>
7613 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7615 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7617 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7619 2013-04-28 Yao Qi <yao@codesourcery.com>
7621 * solib-dsbt.c (fetch_loadmap): Re-indent.
7622 (displacement_from_map, enable_break2): Likewise.
7623 (dsbt_relocate_section_addresses): Likewise.
7625 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7629 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7632 * dwarf2read.c (process_full_comp_unit): Always create a static
7635 2013-04-25 Hui Zhu <hui@codesourcery.com>
7637 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7638 to loc->cmd_bytecode.
7640 2013-04-24 Doug Evans <dje@google.com>
7642 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7644 2013-04-22 Keith Seitz <keiths@redhat.com>
7646 * tracepoint.c (trace_save): Call the writer's start method.
7648 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7651 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7654 2013-04-23 Tom Tromey <tromey@redhat.com>
7656 * common/filestuff.c: Check USE_WIN32API before including
7658 (HAVE_F_GETFD): New define.
7659 (mark_cloexec): Check HAVE_F_GETFD.
7660 (gdb_open_cloexec): Change 'mode' to unsigned long.
7661 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7662 (gdb_pipe_cloexec): Check HAVE_PIPE.
7663 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7666 2013-04-23 Hui Zhu <hui@codesourcery.com>
7669 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7671 2013-04-23 Hui Zhu <hui@codesourcery.com>
7674 * breakpoint.c (dprintf_print_recreate): New.
7675 (save_breakpoints): Let it not save dprintf commands.
7676 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7678 2013-04-22 Tom Tromey <tromey@redhat.com>
7681 * Makefile.in (SFILES): Add filestuff.c
7682 (COMMON_OBS): Add filestuff.o.
7683 (filestuff.o): New target.
7684 * auto-load.c (auto_load_objfile_script_1): Use
7686 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7687 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7688 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7689 * common/agent.c (gdb_connect_sync_socket): Use
7691 * common/filestuff.c: New file.
7692 * common/filestuff.h: New file.
7693 * common/linux-osdata.c (linux_common_core_of_thread)
7694 (command_from_pid, commandline_from_pid, print_source_lines)
7695 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7696 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7698 * common/linux-procfs.c (linux_proc_get_int)
7699 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7700 * config.in, configure: Rebuild.
7701 * configure.ac: Don't check for sys/socket.h. Check for
7703 * corelow.c (core_open): Use gdb_open_cloexec.
7704 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7705 * fork-child.c (fork_inferior): Call close_most_fds.
7706 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7707 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7708 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7709 Use gdb_fopen_cloexec.
7710 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7712 (linux_async_pipe): Use gdb_pipe_cloexec.
7713 * remote-fileio.c (remote_fileio_func_open): Use
7715 * remote.c (remote_file_put, remote_file_get): Use
7717 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7719 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7720 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7721 * solib.c (solib_find): Use gdb_open_cloexec.
7722 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7723 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7724 (tfile_open): Use gdb_open_cloexec.
7725 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7726 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7727 * xml-support.c (xml_fetch_content_from_file): Use
7729 * main.c (captured_main): Call notice_open_fds.
7731 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7733 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7734 'char *' to 'gdb_byte *'.
7735 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7738 2013-04-22 Yao Qi <yao@codesourcery.com>
7740 * infrun.c: Fix typo in comment.
7742 2013-04-22 Andrew Haley <aph@redhat.com>
7744 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7747 2013-04-20 Yao Qi <yao@codesourcery.com>
7749 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7750 'char *' to 'gdb_byte *'. Cast the return value of
7751 'bt_ctf_get_char_array' to 'gdb_byte *'.
7753 2013-04-19 Pedro Alves <palves@redhat.com>
7755 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7757 * configure: Regenerate.
7759 2013-04-19 Pedro Alves <palves@redhat.com>
7761 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7764 2013-04-19 Pedro Alves <palves@redhat.com>
7766 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7767 Change type of 'myaddr' parameter to gdb_byte pointer.
7768 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7769 to 'long long' pointer instead of to 'unsigned long long'.
7770 (monitor_write_memory_block, monitor_read_memory_single)
7771 (monitor_read_memory): Change type of 'myaddr' parameter to
7774 2013-04-19 Pedro Alves <palves@redhat.com>
7776 * record.c (validate_history_size): Make parameter 'setting'
7779 2013-04-19 Pedro Alves <palves@redhat.com>
7781 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7784 2013-04-19 Pedro Alves <palves@redhat.com>
7786 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7789 2013-04-19 Pedro Alves <palves@redhat.com>
7791 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7792 * ada-tasks.c (read_fat_string_value): Likewise.
7794 2013-04-19 Pedro Alves <palves@redhat.com>
7796 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7797 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7798 'offset', and adjust.
7800 2013-04-19 Pedro Alves <palves@redhat.com>
7802 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7803 (read_index_from_section): Add cast to 'char *'.
7805 2013-04-19 Pedro Alves <palves@redhat.com>
7807 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7809 2013-04-19 Pedro Alves <palves@redhat.com>
7811 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7813 2013-04-19 Pedro Alves <palves@redhat.com>
7815 * record-full.c (record_full_get_bookmark): Change local 'ret'
7816 type to char * and add cast to gdb_byte *.
7817 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7819 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7821 2013-04-19 Pedro Alves <palves@redhat.com>
7823 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7824 * python/py-prettyprint.c (print_string_repr): Change type of
7825 'output' local to char *. Add cast to gdb_byte * in
7826 LA_PRINT_STRING call.
7827 (print_children): Change type of 'output' local to char *.
7828 * python/py-value.c (valpy_string): Add cast to const char * in
7829 PyUnicode_Decode call.
7831 2013-04-19 Pedro Alves <palves@redhat.com>
7833 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7834 and change its type to 'const char *'. Adjust.
7835 (mips_send_packet): Add cast to 'char *', and remove cast to
7837 (mips_receive_packet): Remove cast to 'unsigned char *'.
7838 (mips_load_srec): Use bfd_byte.
7839 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7840 (pmon_checkset): Make 'value' parameter unsigned.
7842 2013-04-19 Pedro Alves <palves@redhat.com>
7844 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7846 2013-04-19 Pedro Alves <palves@redhat.com>
7848 * remote.c (remote_write_bytes_aux, compare_sections_command)
7850 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7851 (remote_hostio_readlink, remote_bfd_iovec_pread)
7852 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7853 binary buffer, and char when buffer is used as string.
7854 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7855 (trace_save, tfile_open, traceframe_walk_blocks)
7856 (tfile_fetch_registers): Likewise.
7858 2013-04-19 Pedro Alves <palves@redhat.com>
7860 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7861 buffer and size_t size. Adjust.
7862 * ser-base.h (ser_base_write): Adjust.
7863 * ser-go32.c (cnts): Change type to size_t.
7864 (dos_write): Change prototype -- take 'void *'
7865 buffer and size_t size. Adjust.
7866 (dos_info): Print elements of 'cnts' as unsigned long.
7867 * serial.c (serial_write): Likewise.
7868 * serial.h (serial_write): Adjust.
7869 (struct serial_ops) <write>: Change prototype -- take 'void *'
7870 buffer and size_t size. Adjust.
7872 2013-04-19 Pedro Alves <palves@redhat.com>
7874 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7876 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7878 2013-04-19 Pedro Alves <palves@redhat.com>
7880 * alpha-tdep.c (alpha_extract_return_value): Use
7881 regcache_cooked_read_unsigned to read 'v0'.
7883 2013-04-19 Pedro Alves <palves@redhat.com>
7885 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7886 parameters 'at', 'as' and 'offset' to uint32_t.
7888 2013-04-19 Pedro Alves <palves@redhat.com>
7890 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7891 'is64' to signed 'int'.
7893 2013-04-19 Pedro Alves <palves@redhat.com>
7895 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7898 2013-04-19 Pedro Alves <palves@redhat.com>
7900 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7901 'insnbuf' buffer type to unsigned int[].
7903 2013-04-19 Pedro Alves <palves@redhat.com>
7905 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7907 2013-04-19 Pedro Alves <palves@redhat.com>
7909 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7912 2013-04-19 Pedro Alves <palves@redhat.com>
7914 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7915 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7917 * mips-tdep.c (heuristic_fence_post): Change type to int.
7918 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7920 2013-04-19 Pedro Alves <palves@redhat.com>
7922 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7923 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7924 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7926 2013-04-19 Pedro Alves <palves@redhat.com>
7928 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7929 it to get a string view of the byte buffer.
7930 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7931 type to gdb_byte *. Adjust.
7932 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7933 Change local to char *.
7934 * solib-darwin.c (find_program_interpreter): Change return type to
7936 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7937 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7938 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7939 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7940 * solib-svr4.c (find_program_interpreter): Change return type to
7942 (enable_break): Change local 'interp_name' to char *.
7943 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7944 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7945 (spu_pseudo_register_write_spu): Use char for string buffer.
7947 (info_spu_event_command, info_spu_signal_command): Add casts to
7950 2013-04-19 Pedro Alves <palves@redhat.com>
7952 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7954 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7955 * ada-lang.c (ada_value_assign): Use gdb_byte.
7956 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7957 (alphanbsd_sigtramp_offset): Use gdb_byte.
7958 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7959 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7960 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7961 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7962 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7963 * arm-tdep.c (arm_stub_unwind_sniffer)
7964 (arm_displaced_init_closure): Use gdb_byte.
7965 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7966 (arm_default_thumb_le_breakpoint)
7967 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7968 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7969 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7970 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7971 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7972 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7973 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7974 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7975 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7976 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7977 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7978 (cris_store_return_value, cris_extract_return_value): Use
7980 (constraint): Change type of parameter to char * from signed
7981 char*. Use gdb_byte.
7982 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7983 of local buffer to gdb_byte *.
7984 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7985 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7986 (add_address_entry): Change type of local buffer to gdb_byte[].
7987 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7988 (frv_push_dummy_call): Use gdb_byte.
7989 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7990 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7991 (hppa_hpux_supply_save_state): Use gdb_byte.
7992 * hppa-tdep.c (hppa32_push_dummy_call)
7993 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7994 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7995 (slotN_contents, replace_slotN_contents): Change type of parameter
7997 (fetch_instruction, ia64_pseudo_register_write)
7998 (ia64_register_to_value, ia64_value_to_register)
7999 (ia64_extract_return_value, ia64_store_return_value)
8000 (ia64_push_dummy_call): Use gdb_byte.
8001 * m32c-tdep.c (m32c_return_value): Remove cast.
8002 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8003 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8005 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8006 * mn10300-tdep.c (mn10300_store_return_value)
8007 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8009 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8010 (moxie_process_record): Remove casts.
8011 * ppc-ravenscar-thread.c (supply_register_at_address)
8012 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8013 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8014 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8015 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8016 * remote.c (compare_sections_command): Use gdb_byte.
8017 * score-tdep.c (score7_free_memblock): Change type of parameter to
8019 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8020 gdb_byte *. Use gdb_byte.
8021 (sh_push_dummy_call_fpu): Use gdb_byte.
8022 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8023 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8024 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8025 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8026 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8027 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8028 (sh64_store_return_value, sh64_register_convert_to_virtual):
8029 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8030 (sh64_pseudo_register_write): Use gdb_byte.
8031 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8032 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8034 (irix_current_sos): Use gdb_byte.
8035 * solib-som.c (som_current_sos): Use gdb_byte.
8036 * sparc-ravenscar-thread.c (supply_register_at_address)
8037 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8038 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8039 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8040 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8042 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8044 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8045 * xstormy16-tdep.c (xstormy16_extract_return_value)
8046 (xstormy16_store_return_value): Change parameter type to
8047 'gdb_byte *'. Adjust.
8048 (xstormy16_push_dummy_call): Use gdb_byte.
8049 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8050 (call0_analyze_prologue, execute_code): Use gdb_byte.
8052 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8053 Pedro Alves <palves@redhat.com>
8055 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8058 2013-04-17 Doug Evans <dje@google.com>
8060 * dwarf2read.c (struct signatured_type): New member type.
8061 (struct attribute): Replace member signatured_type with signature.
8062 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8063 (read_call_site_scope): Call follow_die_ref instead of
8064 follow_die_ref_or_sig.
8065 (read_structure_type): Rewrite handling of signatured types.
8066 (read_enumeration_type): Ditto.
8067 (read_attribute_value): Update.
8068 (build_error_marker_type): New function.
8069 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8070 Don't call error for bad types, just build an error marker type.
8071 (dump_die_shallow): Update.
8072 (follow_die_sig_1): Renamed from follow_die_sig.
8073 Don't call error for bad types, instead return NULL.
8074 (follow_die_sig): New function.
8075 (get_signatured_type, get_DW_AT_signature_type): New functions.
8077 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8079 * aarch64-tdep.c (aarch64_write_pc): Removed.
8080 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8083 2013-04-17 Yao Qi <yao@codesourcery.com>
8085 * top.c (print_gdb_configuration): Print configure-time
8086 parameter on using libbabeltrace or not.
8088 2013-04-16 Pedro Alves <palves@redhat.com>
8090 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8092 2013-04-16 Pedro Alves <palves@redhat.com>
8094 * common/glibc_thread_db.h: Update from upstream glibc
8095 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8097 2013-04-16 Pedro Alves <palves@redhat.com>
8099 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8100 * common/glibc_thread_db.h: ... this new file ...
8101 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8103 2013-04-16 Will Newton <will.newton@gmail.com>
8104 Pedro Alves <palves@redhat.com>
8108 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8109 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8112 2013-04-16 Pedro Alves <palves@redhat.com>
8113 Eli Zaretskii <eliz@gnu.org>
8115 * NEWS: Mention "set foo unlimited".
8117 2013-04-15 Doug Evans <dje@google.com>
8119 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8120 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8121 (create_dwo_cu_reader): Renamed from
8122 create_dwo_debug_info_hash_table_reader.
8123 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8124 Remove support for multiple CUs in a DWO file.
8125 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8127 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8129 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8130 (create_dwo_in_dwp): Ditto.
8132 2013-04-15 Tom Tromey <tromey@redhat.com>
8134 * NEWS: Move recent entries into "since 7.6" section.
8136 2013-04-15 Tom Tromey <tromey@redhat.com>
8140 * break-catch-throw.c (struct exception_catchpoint)
8141 <exception_rx, pattern>: New fields.
8142 (fetch_probe_arguments, dtor_exception_catchpoint)
8143 (check_status_exception_catchpoint)
8144 (print_one_detail_exception_catchpoint): New functions.
8145 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8146 Compile regular expression if needed.
8147 (extract_exception_regexp): New function.
8148 (catch_exception_command_1): Use extract_exception_regexp.
8149 (compute_exception): Use fetch_probe_arguments.
8150 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8151 and check_status fields.
8152 * cp-abi.c (cplus_typename_from_type_info): New function.
8153 * cp-abi.h (cplus_typename_from_type_info): Declare.
8154 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8155 * gdb_regex.h (compile_rx_or_error): Declare.
8156 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8158 (init_gnuv3_ops): Set get_type_from_type_info field.
8159 * probe.c (compile_rx_or_error): Move...
8160 * utils.c (compile_rx_or_error): ... here.
8162 2013-04-15 Tom Tromey <tromey@redhat.com>
8166 * break-catch-throw.c (compute_exception): New function.
8167 (exception_funcs): New global.
8168 (_initialize_break_catch_throw): Create $_exception.
8169 * cp-abi.c (cplus_type_from_type_info): New function.
8170 * cp-abi.h (cplus_type_from_type_info): Declare.
8171 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8172 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8173 (gnuv3_get_type_from_type_info): New functions.
8174 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8176 2013-04-15 Tom Tromey <tromey@redhat.com>
8178 * break-catch-throw.c (struct exception_names): New.
8179 (exception_functions): Change type.
8180 (re_set_exception_catchpoint): Look for SDT probes.
8182 2013-04-15 Tom Tromey <tromey@redhat.com>
8185 * break-catch-throw.c (exception_functions): New global.
8186 (gnu_v3_exception_catchpoint_ops): Move earlier.
8187 (struct exception_catchpoint): New.
8188 (classify_exception_breakpoint): Rewrite.
8189 (re_set_exception_catchpoint): New function.
8190 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8191 Allocate a struct exception_catchpoint.
8192 (catch_exception_command_1): Update.
8193 (initialize_throw_catchpoint_ops): Set 're_set' method.
8195 2013-04-15 Tom Tromey <tromey@redhat.com>
8197 * Makefile.in (SFILES): Add break-catch-throw.c
8198 (COMMON_OBS): Add break-catch-throw.o.
8199 * break-catch-throw.c: New file.
8200 * breakpoint.c: Move exception-catching code to new file.
8201 (ep_parse_optional_if_clause): No longer static.
8202 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8204 2013-04-15 Tom Tromey <tromey@redhat.com>
8208 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8209 * c-exp.y (TYPEID): New token.
8210 (exp): Add new TYPEID productions.
8211 (ident_tokens): Add "typeid".
8212 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8213 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8214 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8215 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8216 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8218 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8219 (build_std_type_info_type, gnuv3_get_typeid_type)
8220 (gnuv3_get_typeid): New functions.
8221 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8222 new fields on ABI object.
8223 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8224 * std-operator.def (OP_TYPEID): New.
8226 2013-04-15 Tom Tromey <tromey@redhat.com>
8228 * elfread.c (elf_symtab_read): Install versioned symbol under
8229 unversioned name as well.
8231 2013-04-15 Tom Tromey <tromey@redhat.com>
8234 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8235 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8236 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8237 (gdb_demangle): New function.
8238 * cp-support.h (gdb_demangle): Declare.
8239 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8240 (dwarf2_name): Use gdb_demangle.
8241 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8242 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8244 (gnuv3_print_method_ptr): Use gdb_demangle.
8245 * jv-lang.c (java_demangle): Use gdb_demangle.
8246 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8247 * language.c (unk_lang_demangle): Use gdb_demangle.
8248 * symtab.c (symbol_find_demangled_name)
8249 (demangle_for_lookup): Use gdb_demangle.
8251 2013-04-15 Tom Tromey <tromey@redhat.com>
8255 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8257 (classify_exception_breakpoint): New function.
8258 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8259 (print_mention_exception_catchpoint)
8260 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8261 (catch_exception_command_1): Handle "rethrow" catchpoint.
8262 (catch_rethrow_command): New function.
8263 (_initialize_breakpoint): Add "catch rethrow" command.
8265 2013-04-15 Pierre Muller <muller@sourceware.org>
8267 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8268 set_gdbarch_write_pc as deprecated anymore.
8270 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8272 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8275 2013-04-13 Yao Qi <yao@codesourcery.com>
8277 * ctf.c (_initialize_ctf): Include "completer.h".
8278 Call add_target_with_completer instead of add_target.
8280 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8282 Fix GDB regression related to PR binutils/14813.
8283 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8284 * minidebug.c (lzma_close): Add return value comment.
8285 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8286 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8287 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8289 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8291 * config.in: Regenerate.
8293 2013-04-12 Tom Tromey <tromey@redhat.com>
8295 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8297 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8298 (struct die_reader_specs) <buffer>: Likewise.
8299 (die_reader_func_ftype): Make 'info_ptr' const.
8300 (struct line_header) <include_dirs, statement_program_start,
8301 statement_program_end>: Now const.
8302 (struct file_entry) <name>: Likewise.
8303 (struct partial_die_info) <sibling>: Likewise.
8304 (struct dwarf_block) <data>: Likewise.
8305 (dwarf2_read_section): Remove cast.
8306 (dwarf2_get_section_info): Make 'bufp' const.
8307 (read_index_from_section): Constify.
8308 (dw2_get_file_names_reader): Make 'info_ptr' const.
8309 (dw2_get_primary_filename_reader): Likewise.
8310 (read_comp_unit_head): Make 'info_ptr' and return type const.
8311 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8313 (read_abbrev_offset): Constify.
8314 (dwarf2_create_include_psymtab): Make 'name' const.
8315 (create_debug_types_hash_table): Update.
8316 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8317 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8319 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8320 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8321 (read_comp_units_from_section): Constify.
8322 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8323 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8325 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8326 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8327 (create_dwp_hash_table, dwarf2_ranges_read)
8328 (dwarf2_record_block_ranges): Constify.
8329 (read_die_and_children, read_die_and_siblings_1)
8330 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8332 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8333 (abbrev_table_read_table): Constify.
8334 (load_partial_dies): Make 'info_ptr' const.
8335 (read_partial_die, read_attribute_value, read_attribute): Make
8336 'info_ptr' and return type const.
8337 (read_address, read_initial_length)
8338 (read_checked_initial_length_and_offset, read_offset)
8339 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8341 (read_direct_string): Make 'buf' and return type const.
8342 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8343 (read_indirect_string): Make return type const.
8344 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8345 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8347 (read_str_index): Make return type const.
8348 (add_include_dir): Make 'include_dir' const.
8349 (add_file_name): Make 'name' const.
8350 (dwarf_decode_line_header): Constify.
8351 (psymtab_include_file_name): Make return type const.
8352 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8353 (dwarf2_start_subfile): Make 'filename' const.
8354 (dwarf2_const_value_attr): Make 'bytes' const.
8355 (read_signatured_type_reader): Make 'info_ptr' const.
8356 (decode_locdesc): Constify.
8357 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8359 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8360 'mac_end', and return type const.
8361 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8362 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8364 (per_cu_header_read_in): Constify.
8365 * symfile.h (dwarf2_get_section_info): Update.
8367 2013-04-12 Tom Tromey <tromey@redhat.com>
8369 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8371 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8373 * NEWS: Mention "show configuration", --configuration.
8374 * top.c (print_gdb_configuration): New function, displays the
8375 details about GDB configure-time parameters.
8376 (print_gdb_version): Mention "show configuration".
8377 * cli/cli-cmds.c (show_configuration): New function.
8378 (_initialize_cli_cmds): Add the "show configuration" command.
8379 * main.c (captured_main) <print_configuration>: New static var.
8380 <long_options>: Use it.
8381 If --configuration was given, call print_gdb_configuration.
8383 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8384 Pedro Alves <palves@redhat.com>
8386 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8387 (generated_files): Add gcore.
8388 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8389 HAVE_NATIVE_GCORE_HOST.
8391 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8392 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8393 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8394 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8395 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8396 Add HAVE_NATIVE_GCORE_HOST.
8397 * configure: Regenerate.
8398 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8399 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8400 AC_CONFIG_FILES for gcore.
8401 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8403 * gdb_gcore.sh: Rename to ...
8404 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8405 and GCORE_TRANSFORM_NAME substitutions.
8407 Fix parsing tabs in ${gdb_target_obs}.
8408 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8410 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8412 * remote.c (unpush_and_perror): Add output message final dot.
8414 2013-04-11 Yao Qi <yao@codesourcery.com>
8416 * tracepoint.c (tfile_interp_line): Fit parameters line and
8419 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8421 * solib.c (solib_map_sections): Remove code overwriting
8422 SO->SO_NAME with the bfd's filename.
8424 2013-04-10 Pedro Alves <palves@redhat.com>
8426 * cli/cli-decode.c (integer_unlimited_completer): New function.
8427 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8428 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8430 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8431 (is_unlimited_literal): New function.
8432 (do_set_command): Handle literal "unlimited" arguments.
8433 * frame.c (_initialize_frame) <set backtrace limit>: Document
8435 * printcmd.c (_initialize_printcmd) <set print
8436 max-symbolic-offset>: Add help text.
8437 * record-full.c (_initialize_record_full) <set record full
8438 insn-number-max>: Likewise.
8439 * record.c (_initialize_record) <set record
8440 instruction-history-size, set record function-call-history-size>:
8442 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8444 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8446 * source.c (_initialize_source) <set listsize>: Add help text.
8447 * utils.c (initialize_utils) <set height, set width>: Likewise.
8448 <set pagination>: Mention "set height unlimited".
8449 * valprint.c (_initialize_valprint) <set print elements, set print
8450 repeats>: Document "unlimited".
8452 2013-04-10 Pedro Alves <palves@redhat.com>
8454 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8455 instead of disconnect_tracing.
8456 * infcmd.c (detach_command, disconnect_command): Call
8457 query_if_trace_running. Adjust.
8458 * top.c: Include "tracepoint.h".
8459 (quit_target): Delete. Contents moved ...
8460 (quit_force): ... here. Wrap each stage of teardown in
8461 TRY_CATCH. Call disconnect_tracing before detaching.
8463 2013-04-10 Hui Zhu <hui@codesourcery.com>
8464 Yao Qi <yao@codesourcery.com>
8466 * configure.ac: Check libbabeltrace is installed.
8467 * config.in: Regenerate.
8468 * configure: Regenerate.
8469 * Makefile.in (LIBBABELTRACE): New.
8470 (CLIBS): Add LIBBABELTRACE.
8471 * ctf.c: Include "exec.h".
8472 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8473 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8474 (ctf_save_metadata_header): Define new type aliases in
8476 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8477 in metadata. Start a new faked packet for trace status.
8478 (ctf_write_status): Write trace status to CTF.
8479 (ctf_write_uploaded_tsv): Write TSV to CTF.
8480 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8481 (ctf_write_definition_end): End the faked packet.
8483 (ctx, ctf_iter, trace_dirname): New.
8484 (start_pos): New variable.
8485 (ctf_destroy, ctf_open_dir, ctf_open): New.
8486 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8488 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8489 (ctf_fetch_registers, ctf_xfer_partial): New.
8490 (ctf_get_trace_state_variable_value): New.
8491 (ctf_get_tpnum_from_frame_event): New.
8492 (ctf_get_traceframe_address): New.
8493 (ctf_trace_find, ctf_has_stack): New.
8494 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8495 (ctf_get_trace_status, ctf_read_status): New.
8496 (_initialize_ctf): New.
8497 * tracepoint.c (get_tracepoint_number): New
8498 (get_uploaded_tsv): Remove 'static'.
8499 (struct traceframe_info, trace_regblock_size): Move it to ...
8500 * tracepoint.h: ... here.
8501 (get_tracepoint_number): Declare it.
8502 (get_uploaded_tsv): Declare it.
8504 * NEWS: Mention new configure option.
8506 2013-04-10 Pedro Alves <palves@redhat.com>
8507 Hui Zhu <hui@codesourcery.com>
8509 * breakpoint.c (dprintf_re_set): New.
8510 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8513 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8515 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8516 Remove solib-svr4.o from the list.
8518 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8520 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8521 Use gdb_assert_not_reached instead of invalid boolean expression.
8523 2013-04-09 Pedro Alves <palves@redhat.com>
8525 * remote.c (unpush_and_perror): New function.
8526 (readchar, remote_serial_write): Use it.
8528 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8530 * NEWS: Mention new btrace RSP packets.
8532 2013-04-08 Tom Tromey <tromey@redhat.com>
8534 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8537 2013-04-08 Tom Tromey <tromey@redhat.com>
8539 * maint.c (print_bfd_section_info): Print the section index.
8540 * symmisc.c (dump_msymbols): Print the section index.
8542 2013-04-08 Tom Tromey <tromey@redhat.com>
8545 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8546 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8547 * breakpoint.c (resolve_sal_pc): Update.
8548 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8549 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8550 (minsym_lookup_iterator_cb): Use it.
8551 (default_read_var_value): Update.
8552 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8554 * infcmd.c (jump_command): Update.
8555 * linespec.c (minsym_found): Update.
8556 * maint.c (maintenance_translate_address): Update.
8557 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8558 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8559 * parse.c (write_exp_msymbol): Update.
8560 * printcmd.c (address_info): Update.
8561 * psymtab.c (find_pc_sect_psymbol): Update.
8562 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8564 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8565 Don't initialize SYMBOL_OBJ_SECTION.
8566 * spu-tdep.c (spu_catch_start): Update.
8567 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8568 * symmisc.c (dump_msymbols, print_symbol): Update.
8569 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8570 how fallback section is computed.
8571 (fixup_symbol_section): Update.
8572 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8574 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8575 Initialize SYMBOL_SECTION.
8576 * symtab.h (struct general_symbol_info) <section>: Update comment.
8577 <obj_section>: Remove.
8578 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8579 (SYMBOL_OBJFILE): New macro.
8581 2013-04-08 Tom Tromey <tromey@redhat.com>
8583 * coffread.c (record_minimal_symbol): Update.
8584 * dbxread.c (record_minimal_symbol): Update.
8585 * elfread.c (record_minimal_symbol): Update.
8586 * machoread.c (macho_symtab_add_minsym): Update.
8587 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8589 * minsyms.c (prim_record_minimal_symbol): Update.
8590 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8592 (prim_record_minimal_symbol_and_info): Likewise.
8593 * minsyms.h (prim_record_minimal_symbol_full)
8594 (prim_record_minimal_symbol_and_info): Update.
8595 * symtab.c (allocate_symbol, initialize_symbol)
8596 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8597 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8600 2013-04-08 Tom Tromey <tromey@redhat.com>
8603 * solib-som.c (som_solib_section_offsets): Use BFD section
8604 indices. Set offsets for all sections.
8605 * somread.c (som_symtab_read): Compute BFD section for
8606 symbol. Use prim_record_minimal_symbol_and_info.
8607 (som_symfile_read): Fix comment.
8608 (struct find_section_offset_arg): New.
8609 (find_section_offset, set_section_index): New functions.
8610 (som_symfile_offsets): Use set_section_index to compute
8613 2013-04-08 Tom Tromey <tromey@redhat.com>
8615 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8616 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8617 gdb_bfd_section_index.
8618 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8620 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8622 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8624 * objfiles.c (add_to_objfile_sections_full): New function.
8625 (add_to_objfile_sections): Use it.
8626 (build_section_table): Rewrite.
8627 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8628 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8629 (struct objfile) <sections>: Update comment.
8630 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8632 (ALL_OBJSECTIONS): Use it.
8633 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8634 * solib-frv.c (frv_relocate_main_executable): Update.
8635 * solib-target.c (solib_target_relocate_section_addresses):
8636 Use gdb_bfd_section_index.
8637 * symfile.c (build_section_addr_info_from_section_table):
8638 Use gdb_bfd_section_index.
8639 (build_section_addr_info_from_bfd, place_section): Likewise.
8640 * symtab.c (fixup_section): Update.
8641 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8643 2013-04-08 Tom Tromey <tromey@redhat.com>
8645 * minsyms.h (struct bound_minimal_symbol): New.
8646 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8647 Remove objfile argument.
8648 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8649 Return bound_minimal_symbol.
8650 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8651 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8652 Return bound_minimal_symbol.
8653 (in_gnu_ifunc_stub): Update.
8654 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8655 Remove 'objfile_p' argument.
8656 (lookup_solib_trampoline_symbol_by_pc): Update.
8657 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8658 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8659 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8660 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8661 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8662 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8663 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8664 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8665 stack.c, symtab.c, tui/tui-disasm.c: Update.
8667 2013-04-08 Tom Tromey <tromey@redhat.com>
8669 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8670 Use symbol's obstack, not an objfile.
8671 * coffread.c (process_coff_symbol): Update.
8672 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8673 * jv-lang.c (add_class_symbol): Update.
8674 * mdebugread.c (new_symbol): Update.
8675 * minsyms.c (prim_record_minimal_symbol_full)
8676 (terminate_minimal_symbol_table): Update.
8677 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8678 * stabsread.c (define_symbol, read_enum_type): Update.
8679 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8680 Handle Ada specially.
8681 (symbol_set_language): Add 'obstack' argument.
8682 (symbol_set_names): Update.
8683 (symbol_natural_name, symbol_demangled_name): Always use
8685 * symtab.h (struct general_symbol_info)
8686 <language_specific::obstack>: New field.
8687 <ada_mangled>: New field.
8688 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8689 (symbol_set_language): Update.
8691 2013-04-08 Tom Tromey <tromey@redhat.com>
8693 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8694 Take an obstack, not an objfile.
8695 (symbol_set_names): Update.
8696 * symtab.h (symbol_set_demangled_name): Update.
8698 2013-04-08 Tom Tromey <tromey@redhat.com>
8700 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8702 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8703 (read_func_scope): Call allocate_template_symbol.
8704 (new_symbol_full): Call allocate_symbol.
8705 * jit.c (finalize_symtab): Call allocate_symbol.
8706 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8707 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8708 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8709 (common_block_end): Call allocate_symbol.
8710 * symtab.c (allocate_symbol, initialize_symbol)
8711 (allocate_template_symbol): New functions.
8712 * symtab.c (allocate_symbol, initialize_symbol)
8713 (allocate_template_symbol): Declare.
8714 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8716 2013-04-08 Pedro Alves <palves@redhat.com>
8717 Keith Seitz <keiths@redhat.com>
8719 * breakpoint.c (create_breakpoint): Rename
8720 "parse_condition_and_thread" parameter to "parse_arg". Update
8721 describing comment. If !PARSE_ARG, then error out if ARG is not
8722 the empty string after extracting the location.
8723 * breakpoint.h (create_breakpoint): Rename
8724 "parse_condition_and_thread" parameter to "parse_arg".
8726 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8728 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8730 2013-04-07 Yao Qi <yao@codesourcery.com>
8732 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8733 and 'addr2' to CORE_ADDR.
8734 * target.c (update_current_target): Update.
8735 * target.h (struct target_ops) <to_trace_find>: Change parameter
8737 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8738 'addr2' to CORE_ADDR.
8739 (tfile_trace_find): Likewise.
8740 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8741 Change local variable 'addr' to type CORE_ADDR.
8742 * tracepoint.h (tfind_1): Update declaration.
8744 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8746 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8747 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8750 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8752 * main.h (windows_get_absolute_argv0): ...to here.
8754 2013-04-05 Doug Evans <dje@google.com>
8756 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8757 (read_cutu_die_from_dwo): Add comments.
8758 (read_structure_type): Update comment.
8759 (read_enumeration_type, read_namespace_type): Update comment.
8760 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8762 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8764 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8765 * Makefile.in (gdb.z): Remove.
8766 (install-only): Remove $(man1dir) and gdb.1 installation.
8769 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8771 Fix compatibility with Linux kernel 3.8.3.
8772 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8773 to more inner block. Remove parsing of NUMBER from outer block.
8774 Parse NUMBER only if KEYWORD has been identified.
8776 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8778 Fix variable name shadowing.
8779 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8780 filename to mapsfilename and update its uses.
8782 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8784 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8785 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8786 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8787 details of the problem.
8789 2013-04-04 Pedro Alves <palves@redhat.com>
8790 Hui Zhu <hui@codesourcery.com>
8792 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8793 tracepoint, reset its STEP_COUNT and call validate_actionline.
8795 2013-04-03 Doug Evans <dje@google.com>
8797 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8798 read_die_and_siblings.
8799 (read_die_and_siblings): New function.
8800 (read_cutu_die_from_dwo): Dump die if requested.
8801 (read_die_and_children): Call read_full_die_1 and
8802 read_die_and_siblings_1.
8803 (read_full_die): Dump die if requested.
8805 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8807 * dwarf2read.c (struct dwo_file): New member comp_dir.
8808 Rename member name to dwo_name. All uses updated.
8809 (hash_dwo_file): Include comp_dir in computation.
8810 (eq_dwo_file): Ditto.
8811 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8812 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8814 * psymtab.c (read_psymtabs_with_fullname): Don't call
8815 psymtab_to_fullname if the basenames are different.
8817 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8819 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8820 New entry about "fullname" presence.
8822 2013-04-03 Pedro Alves <palves@redhat.com>
8824 * NEWS: Mention x86_64/Cygwin as new native configuration.
8826 2013-04-02 Doug Evans <dje@google.com>
8828 * dwarf2read.c (read_structure_type): Fix typo in comment.
8830 2013-04-02 Pedro Alves <palves@redhat.com>
8832 * NEWS: Mention "set/show debug aarch64", "set/show debug
8833 coff-pe-read" and "set/show debug mach-o".
8835 2013-04-02 Pedro Alves <palves@redhat.com>
8837 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8839 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8841 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8842 gdb_string.h is now in common/.
8844 2013-04-02 Pedro Alves <palves@redhat.com>
8846 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8847 under "New options".
8849 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8853 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8855 2013-04-02 Pedro Alves <palves@redhat.com>
8859 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8860 (remote_serial_write): New function.
8861 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8863 2013-04-01 Jiong Wang <jiwang@tilera.com>
8865 * NEWS: Mention TILE-Gx in "New native configurations" and
8866 "New targets" sections.
8868 2013-04-01 Doug Evans <dje@google.com>
8870 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8871 (process_enumeration_scope): Simplify.
8873 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8875 (struct signatured_type): ... to here.
8876 (sig_type_ptr): New typedef.
8877 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8878 out of union 't'. All uses updated.
8879 (dw2_get_file_names_reader): Assert not called for a type unit.
8880 (dw2_get_file_names): Assert not called for a type unit or type
8882 (build_type_psymtabs_reader): Assert called for a type unit.
8883 (build_type_psymtab_dependencies): Assert called for a type unit group.
8885 * dwarf2read.c (free_dwo_file): Add comment.
8886 (dwarf2_per_objfile_free): Unref dwp bfd.
8888 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8890 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8891 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8892 (read_pe_exported_syms): Remove unused 'exportix'.
8893 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8894 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8895 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8897 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8899 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8900 (print_it_watchpoint): Remove unused 'bl'.
8901 (say_where): Remove unused 'uiout'.
8902 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8903 (bkpt_breakpoint_hit): Remove unused 'b'.
8904 (internal_bkpt_print_it): Remove unused 'uiout'.
8905 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8907 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8909 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8910 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8912 2013-03-29 Doug Evans <dje@google.com>
8914 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8915 Delete arg is_dwp. All callers updated.
8916 (open_dwp_file): New function.
8917 (open_and_init_dwp_file): Call it.
8918 (get_dwp_file): New function.
8919 (lookup_dwo_cutu): Call it.
8921 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8922 unnecessary, cleanup.
8924 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8926 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8927 (lookup_dwo_unit): New function.
8928 (init_cutu_and_read_dies): Move DWO handling to new functions.
8930 * dwarf2read.c (struct signatured_type): Tweak comment.
8931 (struct dwo_unit): Tweak comment.
8932 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8933 (create_dwo_debug_info_hash_table): Tweak comment.
8934 (dwarf2_per_cu_offset_and_type): Tweak comment.
8936 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8937 missing .debug_types section.
8939 2013-03-29 Yao Qi <yao@codesourcery.com>
8941 * corelow.c: Include "completer.h".
8942 (_initialize_corelow): Call add_target_with_completer with
8943 argument 'filename_completer'.
8944 * tracepoint.c: Likewise.
8945 * exec.c (_initialize_exec): Likewise.
8946 * target.c (add_target): Rename to ...
8947 (add_target_with_completer): ... this. Call set_cmd_completer
8948 if parameter completer is not NULL.
8950 * target.h: Include "command.h".
8951 (add_target_with_completer): Declare it.
8953 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8955 * coffread.c (is_import_fixup_symbol): New function.
8956 (record_minimal_symbol): Use is_import_fixup_symbol to
8957 detect import fixup symbols, and discard them.
8959 2013-03-28 Doug Evans <dje@google.com>
8961 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8962 types hash table until we know we need it.
8964 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8967 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8968 All callers updated.
8969 (dw2_print_stats): Print #read CUs too.
8970 (dump_die_shallow): Print signatured types better.
8972 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8973 info_or_types_section to section. All uses updated.
8974 (struct dwo_unit): Ditto.
8976 2013-03-28 Pedro Alves <palves@redhat.com>
8978 * NEWS (New options): New section.
8979 (New options): Mention set/show remote trace-status-packet.
8980 * remote.c (PACKET_qTStatus): New enumeration value.
8981 (remote_get_trace_status): Skip sending qTStatus if the packet is
8982 disabled. Use packet_ok.
8983 (_initialize_remote): Register a configuration command for
8986 2013-03-28 Doug Evans <dje@google.com>
8988 * symfile.c (find_separate_debug_file): Add comment.
8989 (terminate_after_last_dir_separator): Tweak comment.
8991 * dwarf2read.c (create_partial_symtab): Add forward decl.
8992 (create_partial_symtab): Move to be closer to other psymtab functions.
8993 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8995 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8996 (compute_symtab_includes): Remove unnecessary forward declaration.
8997 (die_needs_namespace): Add comment marking group of functions for
8998 dwarf2 name computation.
9000 * typeprint.c (_initialize_typeprint): Improve type help text.
9002 * python/python.c (finish_python_initialization): Provide suggestion
9003 for how to tell gdb to find its python files.
9005 2013-03-28 Pedro Alves <palves@redhat.com>
9009 * source.c (_initialize_source): Change back "set listsize" to an
9012 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9015 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9017 2013-03-27 Pedro Alves <palves@redhat.com>
9019 * top.c (history_size): Rename to ...
9020 (history_size_setshow_var): ... this. Add comment.
9021 (show_commands): Use readline's 'history_length' instead of
9022 computing the history length by calling history_get in a loop.
9023 (set_history_size_command): Error out for sizes over INT_MAX.
9024 Restore previous history size on invalid size.
9025 (init_history): If HISTSIZE is negative, leave the history size as
9027 (init_main): Adjust.
9029 2013-03-27 Pedro Alves <palves@redhat.com>
9031 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9032 coff_pe_read" command to "set debug coff-pe-read".
9034 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9036 * record.c (command_size_to_target_size): Fix size comparison.
9037 Change parameter type from pointer to integer to integer.
9040 2013-03-27 Pierre Muller <muller@sourceware.org>
9042 * windows-nat.c (handle_output_debug_string): Avoid typecast
9043 from integer of different size warning.
9045 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9047 * windows-nat.c (handle_output_debug_string): Add empty line
9048 after local block variable definition.
9050 2013-03-26 Pedro Alves <palves@redhat.com>
9052 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9053 (net_open): Make 'polls' local unsigned.
9055 2013-03-26 Pedro Alves <palves@redhat.com>
9057 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9058 a zuinteger command instead of uinteger.
9060 2013-03-26 Pedro Alves <palves@redhat.com>
9062 * record-full.c (record_full_insn_num): Make it unsigned.
9063 (record_full_check_insn_num, record_full_message)
9064 (record_full_registers_change, record_full_xfer_partial): Remove
9065 record_full_insn_max_num check (it's always != 0).
9066 (record_full_info, record_full_restore): Use %u as format string.
9067 (): Use %u as format string.
9068 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9069 check (it's always != 0).
9071 2013-03-26 Pedro Alves <palves@redhat.com>
9073 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9074 and "set dcache size" commands zuinteger instead of uinteger.
9076 2013-03-26 Pedro Alves <palves@redhat.com>
9078 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9079 command zuinteger instead of uinteger.
9081 2013-03-26 Pedro Alves <palves@redhat.com>
9083 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9084 zuinteger instead of uinteger.
9086 2013-03-26 Pedro Alves <palves@redhat.com>
9088 * record.c (record_insn_history_size_setshow_var)
9089 (record_call_history_size_setshow_var): New globals.
9090 (command_size_to_target_size): New function.
9091 (cmd_record_insn_history, cmd_record_call_history): Use
9092 command_size_to_target_size instead of cast.
9093 (validate_history_size, set_record_insn_history_size)
9094 (set_record_call_history_size): New functions.
9095 (_initialize_record): Install set_record_insn_history_size and
9096 set_record_call_history_size as "set" hooks of "set record
9097 instruction-history-size" and "set record
9098 function-call-history-size".
9100 2013-03-26 Pedro Alves <palves@redhat.com>
9102 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9103 use with history_max_entries use. Remove FIXME note.
9105 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9107 * record-btrace.c (record_btrace_close): Call
9108 record_btrace_auto_disable.
9110 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9112 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9114 2013-03-25 Doug Evans <dje@google.com>
9116 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9118 2013-03-25 Tom Tromey <tromey@redhat.com>
9121 * c-exp.y (exp): Add new productions for destructors after '.' and
9123 (write_destructor_name): New function.
9125 2013-03-25 Tom Tromey <tromey@redhat.com>
9128 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9129 value_struct_elt, not lookup_struct_elt_type.
9130 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9131 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9132 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9134 2013-03-25 Yao Qi <yao@codesourcery.com>
9136 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9137 instead of '_mkdir'.
9139 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9141 * windows-nat.c (windows_get_absolute_argv0): New function.
9142 * windows-nat.h: Add its prototype.
9144 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9145 Use IS_DIR_SEPARATOR instead of looking for a character inside
9146 SLASH_STRING. Include filenames.h.
9147 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9148 relocate_gdb_directory works when passed gdb_program_name.
9149 Include windows-nat.h.
9151 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9153 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9154 * remote.c (trace_error): Remove the special handling of '2'.
9155 (readchar) <SERIAL_EOF>
9156 (readchar) <SERIAL_ERROR>
9157 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9158 (remote_get_trace_status): Call throw_exception if EX is
9160 * utils.c (perror_with_name): Rename to ...
9161 (throw_perror_with_name): ... here. New parameter errcode, describe it
9162 in the function comment.
9163 (perror_with_name): New function wrapper.
9164 * utils.h (enum errors): New stub declaration.
9165 (throw_perror_with_name): New declaration.
9167 2013-03-22 Pedro Alves <palves@redhat.com>
9168 Yao Qi <yao@codesourcery.com>
9169 Mark Kettenis <kettenis@gnu.org>
9171 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9172 Don't let the user set the value to UINT_MAX directly.
9173 <var_integer>: Don't let the user set the value to INT_MAX
9176 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9178 * remote.c (remote_unpush_target): New function.
9179 (remote_open_1): Remove two pop_target calls, update one comment, add
9180 comment to target_preopen call. Replace pop_target call by
9181 remote_unpush_target call.
9182 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9183 pop_target calls by remote_unpush_target calls.
9185 2013-03-22 Pedro Alves <palves@redhat.com>
9187 * linux-nat.c (linux_child_follow_fork): Don't call
9188 linux_enable_event_reporting.
9189 (linux_handle_extended_wait): Don't call
9190 linux_enable_event_reporting.
9192 2013-03-22 Pedro Alves <palves@redhat.com>
9194 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9195 use it to rewrite the trampoline buffers with type gdb_byte[], and
9196 undefine the macro. Remove char* cast.
9198 2013-03-21 Doug Evans <dje@google.com>
9200 New commands "mt set per-command {space,time,symtab} {on,off}".
9202 * event-top.c: #include "maint.h".
9203 * main.c: #include "maint.h".
9204 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9205 timeval-utils.h, maint.h, cli/cli-setshow.h.
9206 (per_command_time, per_command_space): New static globals.
9207 (per_command_symtab): New static global.
9208 (per_command_setlist, per_command_showlist): New static globals.
9209 (struct cmd_stats): Move here from utils.c.
9210 (set_per_command_time): Renamed from set_display_time in utils.c
9211 and moved here. All callers updated.
9212 (set_per_command_space): Renamed from set_display_space in utils.c
9213 and moved here. All callers updated.
9214 (count_symtabs_and_blocks): New function.
9215 (report_command_stats): Moved here from utils.c. Add support for
9216 printing symtab stats. Only print data if enabled before command
9218 (make_command_stats_cleanup): Ditto.
9219 (sert_per_command_cmd, show_per_command_cmd): New functions.
9220 (_initialize_maint_cmds): Add new commands
9221 mt set per-command {space,time,symtab} {on,off}.
9222 * maint.h: New file.
9223 * top.c: #include "maint.h".
9224 * utils.c (reset_prompt_for_continue_wait_time): New function.
9225 (get_prompt_for_continue_wait_time): New function.
9226 * utils.h (reset_prompt_for_continue_wait_time): Declare
9227 (get_prompt_for_continue_wait_time): Declare.
9228 (make_command_stats_cleanup): Moved to maint.h.
9229 (set_display_time, set_display_space): Moved to maint.h and renamed
9230 to set_per_command_time, set_per_command_space.
9231 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9232 parse_binary_operation and made non-static. Don't call error,
9233 just return an error marker. All callers updated.
9234 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9236 2013-03-21 Tom Tromey <tromey@redhat.com>
9238 * symfile.c (alloc_section_addr_info): Update header. Don't set
9239 'num_sections' field.
9240 (build_section_addr_info_from_section_table): Set 'num_sections'.
9241 (build_section_addr_info_from_bfd): Likewise.
9242 (build_section_addr_info_from_objfile): Remove dead loop
9244 (free_section_addr_info): Unconditionally call xfree.
9245 (relative_addr_info_to_section_offsets, addrs_section_sort)
9246 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9248 (syms_from_objfile_1): Remove dead 'if' condition. Check
9250 (add_symbol_file_command): Set 'num_sections'.
9251 * symfile-mem.c (symbol_file_add_from_memory): Set
9253 * somread.c (som_symfile_offsets): Remove dead loop condition.
9254 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9255 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9257 2013-03-21 Tom Tromey <tromey@redhat.com>
9259 * tracepoint.h (decode_agent_options): Add 'trace_string'
9261 * tracepoint.c (decode_agent_options): Add 'trace_string'
9263 (validate_actionline): Update.
9264 (collect_symbol): Add 'trace_string' argument.
9265 (struct add_local_symbols_data) <trace_string>: New field.
9266 (do_collect_symbol): Update.
9267 (add_local_symbols): Add 'trace_string' argument.
9268 (encode_actions_1): Update.
9269 (trace_dump_actions): Update.
9270 * dwarf2loc.c (access_memory): Update.
9271 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9272 * ax-general.c (new_agent_expr): Update.
9273 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9274 (gen_trace_for_return_address): Add argument.
9275 (trace_kludge, trace_string_kludge): Remove.
9276 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9277 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9278 (gen_trace_for_var): Add 'trace_string' argument.
9279 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9280 (gen_printf, agent_eval_command_one): Update.
9282 2013-03-21 Tom Tromey <tromey@redhat.com>
9285 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9286 Handle FILENAME token.
9288 2013-03-21 Tom Tromey <tromey@redhat.com>
9290 * c-exp.y (YYPRINT): Define.
9291 (c_print_token): New function.
9293 2013-03-21 Tom Tromey <tromey@redhat.com>
9295 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9297 2013-03-21 Yao Qi <yao@codesourcery.com>
9299 * ctf.c: Include "gdb_stat.h".
9300 [USE_WIN32API]: New macro 'mkdir'.
9301 (ctf_start): Use permission bits macros if they are defined.
9303 2013-03-20 Keith Seitz <keiths@redhat.com>
9305 * breakpoint.h (struct breakpoint): Add comment to
9306 extra_string indicating that this member is mallod'd.
9307 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9309 2013-03-20 Pedro Alves <palves@redhat.com>
9313 * cli/cli-setshow.c (do_set_command)
9314 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9315 the result of parsing the command argument. Throw error if the
9316 value is greater than UINT_MAX. Print the invalid value with
9318 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9319 result of parsing the command argument. Throw error if the value
9320 is greater than INT_MAX, not greater or equal. Also throw error
9321 if the value is less than INT_MIN. Print the invalid value with
9323 <var_zuinteger_unlimited>: Throw error if the value is greater
9324 than INT_MAX, not greater or equal.
9325 (do_show_command) <var_integer, var_zinteger,
9326 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9328 2013-03-20 Tom Tromey <tromey@redhat.com>
9330 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9332 * dwarf2read.c (read_func_scope): Remove old FIXME.
9333 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9335 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9336 Unconditionally call via computed ops, if possible.
9337 * printcmd.c (address_info): Unconditionally call via computed ops,
9339 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9341 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9342 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9345 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9346 Tom Tromey <tromey@redhat.com>
9349 * coffread.c (coff_register_index): New global.
9350 (process_coff_symbol, coff_read_enum_type): Set
9351 SYMBOL_ACLASS_INDEX.
9352 (_initialize_coffread): Initialize new global.
9353 * dwarf2loc.c (locexpr_find_frame_base_location)
9354 (dwarf2_block_frame_base_locexpr_funcs)
9355 (loclist_find_frame_base_location)
9356 (dwarf2_block_frame_base_loclist_funcs): New.
9357 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9358 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9359 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9360 (dwarf2_block_frame_base_loclist_funcs): New.
9361 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9362 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9364 (read_func_scope): Update.
9365 (fixup_go_packaging, mark_common_block_symbol_computed)
9366 (var_decode_location, new_symbol_full, dwarf2_const_value):
9367 Set SYMBOL_ACLASS_INDEX.
9368 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9369 (_initialize_dwarf2_read): Initialize new globals.
9370 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9371 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9372 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9374 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9375 (_initialize_mdebugread): Initialize new globals.
9376 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9377 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9378 (stab_register_index, stab_regparm_index): New globals.
9379 (define_symbol, read_enum_type, common_block_end): Set
9380 SYMBOL_ACLASS_INDEX.
9381 (_initialize_stabsread): Initialize new globals.
9382 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9384 (MAX_SYMBOL_IMPLS): New define.
9385 (register_symbol_computed_impl, register_symbol_block_impl)
9386 (register_symbol_register_impl)
9387 (initialize_ordinary_address_classes): New functions.
9388 (_initialize_symtab): Call initialize_ordinary_address_classes.
9389 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9390 (struct symbol_impl): New.
9391 (SYMBOL_ACLASS_BITS): New define.
9392 (struct symbol) <aclass, ops>: Remove fields.
9393 <aclass_index>: New field.
9394 (symbol_impls): Declare.
9395 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9396 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9397 (register_symbol_computed_impl, register_symbol_block_impl)
9398 (register_symbol_register_impl): Declare.
9399 (struct symbol_computed_ops): Add location_has_loclist.
9400 (struct symbol_block_ops): New.
9401 (SYMBOL_BLOCK_OPS): New.
9402 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9404 2013-03-20 Tom Tromey <tromey@redhat.com>
9406 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9407 (print_partial_symbols, recursively_search_psymtabs): Use
9410 2013-03-20 Pierre Muller <muller@sourceware.org>
9412 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9413 addtion, subtraction, multiplication and division binary operator.
9415 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9418 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9419 * bsd-kvm.c (bsd_kvm_close): Likewise.
9420 * bsd-uthread.c (bsd_uthread_close): Likewise.
9421 * corelow.c (core_close): Likewise.
9422 (core_close_cleanup): Remove parameter quitting from a caller.
9423 * event-top.c (async_disconnect): Likewise.
9424 * exec.c (exec_close_1): Remove parameter quitting.
9425 * go32-nat.c (go32_close): Likewise.
9426 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9427 parameter quitting from a caller.
9428 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9430 (mips_linux_close): Remove parameter quitting. Remove parameter
9431 quitting from a caller.
9432 * monitor.c (monitor_close): Remove parameter quitting.
9433 * monitor.h (monitor_close): Likewise.
9434 * record-btrace.c (record_btrace_close): Likewise.
9435 * record-full.c (record_full_close): Likewise.
9436 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9437 it also from fprintf_unfiltered.
9438 * remote-mips.c (mips_close): Remove parameter quitting.
9439 (mips_detach): Remove parameter quitting from a caller.
9440 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9441 (gdbsim_close): Remove duplicate function comment. Remove parameter
9442 quitting and remove it also from printf_filtered.
9443 * remote.c (remote_close): Remove parameter quitting.
9444 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9445 * target.c (update_current_target): Remove parameter int from to_close
9447 (push_target, unpush_target, pop_target): Remove parameter quitting from
9449 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9450 Remove parameter quitting from a caller.
9451 (target_preopen): Remove parameter quitting from a caller.
9452 (target_close): Remove parameter quitting. Remove parameter quitting
9453 from a caller two times. Remove parameter quitting also from
9455 * target.h (struct target_ops): Remove parameter quitting and as int
9456 from fields to_xclose and to_close.
9457 (extern struct target_ops current_target):
9458 (target_close, pop_all_targets): Remove parameter quitting. Update the
9460 (pop_all_targets_above): Remove parameter quitting.
9461 * top.c (quit_target): Remove parameter quitting from a caller.
9462 * tracepoint.c (tfile_close): Remove parameter quitting.
9463 * windows-nat.c (windows_close): Remove parameter quitting.
9465 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9467 * windows-nat.c (handle_output_debug_string): Replace call
9468 to string_to_core_addr with call to strtoull.
9470 2013-03-20 Yao Qi <yao@codesourcery.com>
9472 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9473 and write it to CTF metadata.
9475 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9477 * windows-nat.c (handle_output_debug_string): Change type of n to
9478 SIZE_T to avoid crash on 64 bit systems.
9480 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9482 * python/python-internal.h (HAVE_SNPRINTF)
9483 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9484 about redefinition of snprintf by pyerrors.h.
9486 2013-03-15 Steve Ellcey <sellcey@mips.com>
9488 * remote-sim.c (sim_command_completer): Make char arguments const.
9490 2013-03-15 Tom Tromey <tromey@redhat.com>
9493 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9495 2013-03-14 Tom Tromey <tromey@redhat.com>
9497 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9499 (get_file_crc): Move from symfile.c.
9500 (gdb_bfd_crc): New function.
9501 * gdb_bfd.h (gdb_bfd_crc): Declare.
9502 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9503 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9504 (separate_debug_file_exists): Use gdb_bfd_crc.
9506 2013-03-14 Tom Tromey <tromey@redhat.com>
9508 * symfile.c (get_debug_link_info): Remove.
9509 (find_separate_debug_file_by_debuglink): Use
9510 bfd_get_debug_link_info.
9512 2013-03-14 Tom Tromey <tromey@redhat.com>
9514 * symtab.c (error_in_psymtab_expansion): New function.
9515 (lookup_symbol_aux_quick)
9516 (basic_lookup_transparent_type_quick): Remove "last resort"
9517 code. Use error_in_psymtab_expansion.
9519 2013-03-14 Doug Evans <dje@google.com>
9520 Jan Kratochvil <jan.kratochvil@redhat.com>
9522 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9523 any successful compare_filenames_for_search or FILENAME_CMP.
9524 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9525 * symtab.c (iterate_over_some_symtabs): Likewise.
9527 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9529 * source.c (print_source_lines_base): Make a local copy of
9532 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9533 Jan Kratochvil <jan.kratochvil@redhat.com>
9535 * source.c (print_source_lines_base): Suppress "file" for TUI.
9537 2013-03-14 Keith Seitz <keiths@redhat.com>
9538 Alan Matsuoka <alanm@redhat.com>
9542 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9544 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9547 2013-03-14 Yao Qi <yao@codesourcery.com>
9549 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9550 status to tfile if trace is stopped by command 'tstop'.
9552 2013-03-14 Yao Qi <yao@codesourcery.com>
9554 * tracepoint.c (tfile_write_status): Write trace notes and user
9555 name into tfile if they are not NULL.
9557 2013-03-14 Hui Zhu <hui@codesourcery.com>
9558 Yao Qi <yao@codesourcery.com>
9560 * Makefile.in (REMOTE_OBS): Add ctf.o.
9561 (SFILES): Add ctf.c.
9562 (HFILES_NO_SRCDIR): Add ctf.h.
9563 * ctf.c, ctf.h: New files.
9564 * tracepoint.c: Include 'ctf.h'.
9565 (collect_pseudocommand): Remove static.
9566 (trace_save_command): Parse option "-ctf".
9567 Produce different trace file writers per option.
9568 Adjust output message.
9569 (trace_save_tfile, trace_save_ctf): New.
9570 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9571 * mi/mi-main.c: Include 'ctf.h'.
9572 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9573 trace_save_tfile or trace_save_ctf.
9574 * NEWS: Mention these changes.
9576 2013-03-14 Yao Qi <yao@codesourcery.com>
9578 * tracepoint.c (trace_file_writer_xfree): New.
9579 (struct tfile_writer_data): New.
9580 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9581 (tfile_write_header, tfile_write_regblock_type): New.
9582 (tfile_write_status, tfile_write_uploaded_tsv): New.
9583 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9584 (tfile_write_raw_data, (tfile_end): New.
9585 (tfile_write_ops): New global variable.
9586 (TRACE_WRITE_R_BLOCK): New macro.
9587 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9588 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9589 (TRACE_WRITE_V_BLOCK): New macro.
9590 (trace_save): Add extra one parameter WRITER. Make it static.
9591 Use WRITER to writer trace.
9592 (tfile_trace_file_writer_new): New.
9593 (trace_save_command): Caller update.
9594 (trace_save_tfile): Write trace data in TFILE format.
9595 * tracepoint.h (struct trace_frame_write_ops): New.
9596 (struct trace_file_write_ops): New.
9597 (struct trace_file_writer): New.
9598 (trace_save): Remove its declaration.
9599 (trace_save_tfile): Declare it.
9600 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9601 instead of trace_save.
9603 2013-03-13 Pedro Alves <palves@redhat.com>
9605 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9607 2013-03-13 Pedro Alves <palves@redhat.com>
9609 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9611 * demangle.c (current_demangling_style_string): Make it const.
9612 (set_demangling_command): Assert the demangling style is known.
9613 Remove all handling of unknown styles. Set
9614 'current_demangling_style_string' to an element of the
9615 demangling_style_names array.
9616 (set_demangling_style): Delete.
9617 (_initialize_demangler): Set current_demangling_style_string to the
9618 element of the demangling_style_names array that corresponds to
9619 the default demangling style. Remove FIXME note. Don't call
9620 set_demangling_style.
9621 * gdb-demangle.h (set_demangling_style): Remove declaration.
9623 2013-03-13 Pedro Alves <palves@redhat.com>
9625 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9627 (ada_make_symbol_completion_list): Make "text0" parameter const.
9628 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9629 * breakpoint.c (condition_completer): Make "text" and "word"
9630 parameters const. Adjust.
9631 (check_tracepoint_command): Adjust to validate_actionline
9633 (catch_syscall_completer): Make "text" and "word" parameters
9635 * cli/cli-cmds.c (show_user): Make "comname" local const.
9636 (valid_command_p): Make "command" parameter const.
9637 (alias_command): Make "alias_prefix" and "command_prefix" locals
9639 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9640 (add_alias_cmd): Make "name" and "oldname" parameters const.
9641 Adjust. No longer make copy of OLDNAME.
9642 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9643 (add_setshow_cmd_full, add_setshow_enum_cmd)
9644 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9645 (add_setshow_filename_cmd, add_setshow_string_cmd)
9646 (add_setshow_string_noescape_cmd)
9647 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9648 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9649 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9650 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9651 Make "name" parameter const.
9652 (help_cmd): Rename "command" parameter to "arg". New const local
9654 (find_cmd): Make "command" parameter const.
9655 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9656 deprecated_cmd_warning prototype change.
9657 (undef_cmd_error): Make "cmdtype" parameter const.
9658 (lookup_cmd): Make "line" parameter const.
9659 (deprecated_cmd_warning): Change type of "text" parameter to
9660 pointer to const char, from pointer to pointer to char. Adjust.
9661 (lookup_cmd_composition): Make "text" parameter const.
9662 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9664 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9666 * cli/cli-script.c (validate_comname): Make "tem" local const.
9667 (define_command): New const local "tem_c". Use it in calls to
9669 (document_command): Make "tem" and "comfull" locals const.
9670 (show_user_1): Make "prefix" and "name" parameters const.
9671 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9673 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9674 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9675 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9676 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9677 (complete_on_enum, add_setshow_enum_cmd)
9678 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9679 (add_setshow_filename_cmd, add_setshow_string_cmd)
9680 (add_setshow_string_noescape_cmd)
9681 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9682 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9683 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9684 Change prototypes, constifying strings.
9685 * completer.c (noop_completer, filename_completer): Make "text"
9686 and "prefix" parameters const.
9687 (location_completer, expression_completer)
9688 (complete_line_internal): Make "text" and "prefix" parameters
9690 (command_completer, signal_completer): Make "text" and "prefix"
9692 * completer.h (noop_completer, filename_completer)
9693 (expression_completer, location_completer, command_completer)
9694 (signal_completer): Change prototypes.
9695 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9697 * cp-abi.c (cp_abi_completer): Likewise.
9698 * expression.h (parse_expression_for_completion): Change
9700 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9702 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9703 * infrun.c (handle_completer): Make "text" and "word" parameters
9705 * interps.c (interpreter_completer): Make "text" and "word"
9707 * language.h (struct language_defn)
9708 <la_make_symbol_completion_list>: Make "text" and "word"
9710 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9711 (parse_exp_in_context): Rename to ...
9712 (parse_exp_in_context_1): ... this.
9713 (parse_exp_in_context): Reimplement, with const hack from
9715 (parse_expression_for_completion): Make "string" parameter const.
9716 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9717 to pointer to const char. Adjust.
9718 (print_command_1): Make "exp" parameter const.
9719 (output_command): Rename to ...
9720 (output_command_const): ... this. Make "exp" parameter const.
9721 (output_command): Reimplement.
9722 (x_command): Adjust.
9723 (display_command): Rename "exp" parameter to "arg". New "exp"
9724 local, const version of "arg".
9725 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9726 "cmd_name" local const.
9727 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9729 (cmdpy_completer): Make "text" and "word" parameters const.
9730 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9731 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9733 * remote.c (_initialize_remote): Make "cmd_name" local const.
9734 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9735 parameters const. Adjust.
9736 (completion_list_add_fields): Make "sym_text", "text" and "word"
9738 (struct add_name_data) <sym_text, text, word>: Make fields const.
9739 (default_make_symbol_completion_list_break_on): Make "text" and
9740 "word" parameters const. Adjust locals.
9741 (default_make_symbol_completion_list)
9742 (make_symbol_completion_list, make_symbol_completion_type)
9743 (make_symbol_completion_list_fn): Make "text" and "word"
9745 (make_file_symbol_completion_list): Make "text", "word" and
9746 "srcfile" parameters const. Adjust locals.
9747 (add_filename_to_list): Make "text" and "word" parameters const.
9748 (struct add_partial_filename_data) <text, word>: Make fields
9750 (make_source_files_completion_list): Make "text" and "word"
9752 * symtab.h (default_make_symbol_completion_list_break_on)
9753 (default_make_symbol_completion_list, make_symbol_completion_list)
9754 (make_symbol_completion_type enum type_code)
9755 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9756 (make_source_files_completion_list): Change prototype.
9757 * top.c (execute_command): Adjust to pass pointer to pointer to
9758 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9760 (set_verbose): Make "cmdname" local const.
9761 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9763 (validate_actionline): Make "line" parameter a pointer to const
9765 (encode_actions_1): Make "action_exp" local const, and adjust.
9766 (encode_actions): Adjust.
9767 (replace_comma): Delete.
9768 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9769 const, and adjust. Don't frob the action string while splitting
9770 it at commas. Instead, make a copy of each split substring in
9772 (trace_dump_command): Adjust to validate_actionline prototype
9774 * tracepoint.h (decode_agent_options, decode_agent_options)
9775 (encode_actions, validate_actionline): Change prototypes.
9776 * valprint.h (output_command): Delete declaration.
9777 (output_command_const): Declare.
9778 * value.c (function_destroyer): Cast const away in xfree call.
9780 2013-03-13 Pedro Alves <palves@redhat.com>
9782 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9783 rather than casting 'const char * const *' to 'const char **'.
9784 * ada-lex.l (processInt): Make "trailer" local const. Remove
9785 'const char **' cast.
9786 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9787 locals, and use those as strtol output pointer, instead than doing
9788 invalid casts to from 'const char **' to 'char **'.
9789 (_initialize_demangle): Remove cast.
9790 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9791 locals, and use those as strtol output pointer, instead than doing
9792 invalid casts to from 'const char **' to 'char **'.
9793 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9795 * stap-probe.c (stap_parse_register_operand)
9796 (stap_parse_single_operand): Likewise.
9798 2013-03-13 Yao Qi <yao@codesourcery.com>
9800 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9801 the last matched 'V' blcok in trace frame.
9803 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9805 * NEWS: Create a new section for the next release branch.
9806 Rename the section of the current branch, now that it has
9809 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9811 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9812 * version.in: Bump version to 7.6.50.20130312-cvs.
9814 2013-03-12 Keith Seitz <keiths@redhat.com>
9816 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9817 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9818 Remove temporary copy of input string.
9819 (mi_execute_command_wrapper): Make "cmd" const.
9820 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9821 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9823 (mi_parse): Make "cmd" const.
9825 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9827 2013-03-12 Keith Seitz <keiths@redhat.com>
9829 * ada-lang.c (ada_read_renaming_var_value): Pass const
9830 pointer to expression string to parse_exp_1.
9831 (create_excep_cond_exprs): Likewise.
9832 * ax-gdb.c (agent_eval_command_one): Likewise.
9833 (maint_agent_printf_command): Likewise.
9834 Constify much of the string handling/parsing.
9835 * breakpoint.c (set_breakpoint_condition): Pass const
9836 pointer to expression string to parse_exp_1.
9837 (update_watchpoint): Likewise.
9838 (parse_cmd_to_aexpr): Constify string handling.
9839 Pass const pointer to parse_exp_1.
9840 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9841 (find_condition_and_thread): Likewise.
9843 (watch_command_1): Make "arg" const.
9844 Constify string handling.
9845 Copy the expression string instead of changing the input
9847 (update_breakpoint_location): Pass const pointer to
9849 * eval.c (parse_and_eval_address): Make "exp" const.
9850 (parse_to_comma_and_eval): Make "expp" const.
9851 (parse_and_eval): Make "exp" const.
9852 * expression.h (parse_expression): Make argument const.
9853 (parse_exp_1): Make first argument const.
9854 * findcmd.c (parse_find_args): Treat "args" as const.
9855 * linespec.c (parse_linespec): Pass const pointer to
9856 linespec_expression_to_pc.
9857 (linespec_expression_to_pc): Make "exp_ptr" const.
9858 * parse.c (parse_exp_1): Make "stringptr" const.
9859 Make a copy of the expression to pass to parse_exp_in_context until
9860 this whole interface can be constified.
9861 (parse_expression): Make "string" const.
9862 * printcmd.c (ui_printf): Treat "arg" as const.
9863 Handle const strings.
9864 * tracepoint.c (validate_actionline): Pass const pointer to
9865 all calls to parse_exp_1.
9866 (encode_actions_1): Likewise.
9867 * value.h (parse_to_comma_and_eval): Make argument const.
9868 (parse_and_eval_address): Likewise.
9869 (parse_and_eval): Likewise.
9870 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9871 (varobj_set_value): Likewise.
9872 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9873 constify string handling.
9874 Pass const pointers to parse_and_eval_address and
9875 parse_to_comman_and_eval.
9876 * cli/cli-utils.c (skip_to_space): Rename to ...
9877 (skip_to_space_const): ... this. Handle const strings.
9878 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9879 skip_to_space_const.
9880 (skip_to_space_const): Declare.
9881 * common/format.c (parse_format_string): Make "arg" const.
9882 Handle const strings.
9883 * common/format.h (parse_format_string): Make "arg" const.
9884 * gdbserver/ax.c (ax_printf): Make "format" const.
9885 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9886 of the expression string.
9888 2013-03-12 Hui Zhu <hui@codesourcery.com>
9890 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9892 2013-03-12 Yao Qi <yao@codesourcery.com>
9893 Hui Zhu <hui@codesourcery.com>
9895 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9896 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9899 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9901 * ada-lex.l (rules): Only recognize 'thread' as a
9902 delimiter when followed by numerals, as for c-exp.y.
9903 Use new rewind_to_char function to rewind the input for
9904 expression-delimiting tokens.
9905 (rewind_to_char): New function.
9907 2013-03-11 Pedro Alves <palves@redhat.com>
9908 Jan Kratochvil <jan.kratochvil@redhat.com>
9910 * configure: Regenerate.
9911 * configure.ac (check dynamic export flag): Link python test with
9914 2013-03-11 Doug Evans <dje@google.com>
9915 Keith Seitz <keiths@redhat.com>
9917 * linespec.c (find_linespec_symbols): Call find_function_symbols
9918 first, and then call lookup_prefix_sym/find_method.
9920 2013-03-11 Pedro Alves <palves@redhat.com>
9922 * charset.c (convert_between_encodings): Don't cast between
9923 different pointer to pointer types. Instead, make the 'inp' local
9924 be of the type iconv expects.
9925 (wchar_iterate): Don't cast between different pointer to pointer
9926 types. Instead, use new pointer local of the type iconv expects.
9927 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9928 Add new local of type char pointer, and use it to get a
9929 char/string view of the byte buffer, instead of casting between
9930 pointer to pointer types.
9932 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9934 * remote.c (remote_set_trace_buffer_size): Move != operator
9935 to the start of next line to fix an ARI warning.
9937 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9939 * NEWS: Add record changes.
9941 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9943 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9944 the instruction history disassembly.
9945 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9946 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9948 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9950 * Makefile.in (SFILES): Add record-btrace.c
9951 (COMMON_OBS): Add record-btrace.o
9952 * record-btrace.c: New.
9953 * objfiles.c: Include btrace.h.
9954 (free_objfile): call btrace_free_objfile.
9956 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9958 * target.c (target_call_history, target_call_history_from,
9959 target_call_history_range): New.
9960 * target.h (target_ops) <to_call_history, to_call_history_from,
9961 to_call_history_range>: New fields.
9962 (target_call_history, target_call_history_from,
9963 target_call_history_range): New declaration.
9964 * record.c (get_call_history_modifiers, cmd_record_call_history,
9965 record_call_history_size): New.
9966 (_initialize_record): Add the "record function-call-history" command.
9967 Add "set/show record function-call-history-size" commands.
9968 * record.h (record_print_flag): New.
9970 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9972 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9973 to_insn_history_range>: New fields.
9974 (target_insn_history): New.
9975 (target_insn_history_from): New.
9976 (target_insn_history_range): New.
9977 * target.c (target_insn_history): New.
9978 (target_insn_history_from): New.
9979 (target_insn_history_range): New.
9980 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9981 (record_insn_history_size): New.
9982 (get_insn_number): New.
9983 (get_context_size): New.
9985 (get_insn_history_modifiers): New.
9986 (cmd_record_insn_history): New.
9987 (_initialize_record): Add "set/show record instruction-history-size"
9988 command. Add "record instruction-history" command.
9990 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9992 * record.h (record_disconnect): New.
9993 (record_detach): New.
9994 (record_mourn_inferior): New.
9996 * record-full.c (record_disconnect, record_detach,
9997 record_mourn_inferior, record_kill): Move to...
9998 * record.c: ...here.
10000 (record_stop): New.
10001 (record_unpush): New.
10002 (cmd_record_stop): Call record_stop. Replace unpush_target
10003 call with record_unpush call.
10004 (record_disconnect, record_detach): Assert that the target
10005 is of record stratum. Call record_unpush, record_stop, and
10007 (record_mourn_inferior, record_kill): Assert that the target
10008 is of record stratum. Call record_unpush and DEBUG.
10010 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10012 * record-full.h, record-full.c (record_memory_query): Rename
10014 (record_full_memory_query): ...this. Update all users.
10015 (record_arch_list_add_reg): Rename to ...
10016 (record_full_arch_list_add_reg): ...this. Update all users.
10017 (record_arch_list_add_mem): Rename to ...
10018 (record_full_arch_list_add_mem): ...this. Update all users.
10019 (record_arch_list_add_end): Rename to ...
10020 (record_full_arch_list_add_end): ...this. Update all users.
10021 (record_gdb_operation_disable_set): Rename to ...
10022 (record_full_gdb_operation_disable_set): ...this.
10025 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10027 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10028 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10029 (RECORD_IS_REPLAY): Renamed to ...
10030 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10031 (RECORD_FILE_MAGIC): Renamed to ...
10032 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10033 (record_mem_entry): Renamed to ...
10034 (record_full_mem_entry): ... this. Updated all users.
10035 (record_reg_entry): Renamed to ...
10036 (record_full_reg_entry): ... this. Updated all users.
10037 (record_end_entry): Renamed to ...
10038 (record_full_end_entry): ... this. Updated all users.
10039 (record_type) <record_end, record_reg, record_mem>: Renamed
10041 (record_full_type) <record_full_end, record_full_reg,
10042 record_full_mem>: ... this. Updated all users.
10043 (record_entry): Renamed to ...
10044 (record_full_entry): ... this. Updated all users.
10045 (record_core_buf_entry): Renamed to ...
10046 (record_full_core_buf_entry): ... this. Updated all users.
10047 (record_core_regbuf): Renamed to ...
10048 (record_full_core_regbuf): ... this. Updated all users.
10049 (record_core_start): Renamed to ...
10050 (record_full_core_start): ... this. Updated all users.
10051 (record_core_end): Renamed to ...
10052 (record_full_core_end): ... this. Updated all users.
10053 (record_core_buf_list): Renamed to ...
10054 (record_full_core_buf_list): ... this. Updated all users.
10055 (record_first): Renamed to ...
10056 (record_full_first): ... this. Updated all users.
10057 (record_list): Renamed to ...
10058 (record_full_list): ... this. Updated all users.
10059 (record_arch_list_head): Renamed to ...
10060 (record_full_arch_list_head): ... this. Updated all users.
10061 (record_arch_list_tail): Renamed to ...
10062 (record_full_arch_list_tail): ... this. Updated all users.
10063 (record_stop_at_limit): Renamed to ...
10064 (record_full_stop_at_limit): ... this. Updated all users.
10065 (record_insn_max_num): Renamed to ...
10066 (record_full_insn_max_num): ... this. Updated all users.
10067 (record_insn_num): Renamed to ...
10068 (record_full_insn_num): ... this. Updated all users.
10069 (record_insn_count): Renamed to ...
10070 (record_full_insn_count): ... this. Updated all users.
10071 (record_ops): Renamed to ...
10072 (record_full_ops): ... this. Updated all users.
10073 (record_core_ops): Renamed to ...
10074 (record_full_core_ops): ... this. Updated all users.
10075 (set_record_cmdlist): Renamed to ...
10076 (set_record_full_cmdlist): ... this. Updated all users.
10077 (show_record_cmdlist): Renamed to ...
10078 (show_record_full_cmdlist): ... this. Updated all users.
10079 (record_cmdlist): Renamed to ...
10080 (record_full_cmdlist): ... this. Updated all users.
10081 (record_beneath_to_resume_ops): Renamed to ...
10082 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10083 (record_beneath_to_resume): Renamed to ...
10084 (record_full_beneath_to_resume): ... this. Updated all users.
10085 (record_beneath_to_wait_ops): Renamed to ...
10086 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10087 (record_beneath_to_wait): Renamed to ...
10088 (record_full_beneath_to_wait): ... this. Updated all users.
10089 (record_beneath_to_store_registers_ops): Renamed to ...
10090 (record_full_beneath_to_store_registers_ops): ... this.
10092 (record_beneath_to_store_registers): Renamed to ...
10093 (record_full_beneath_to_store_registers): ... this.
10095 (record_beneath_to_xfer_partial_ops): Renamed to ...
10096 (record_full_beneath_to_xfer_partial_ops): ... this.
10098 (record_beneath_to_xfer_partial): Renamed to ...
10099 (record_full_beneath_to_xfer_partial): ... this.
10101 (record_beneath_to_insert_breakpoint): Renamed to ...
10102 (record_full_beneath_to_insert_breakpoint): ... this.
10104 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10105 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10107 (record_beneath_to_stopped_data_address): Renamed to ...
10108 (record_full_beneath_to_stopped_data_address): ... this.
10110 (record_beneath_to_async): Renamed to ...
10111 (record_full_beneath_to_async): ... this. Updated all users.
10112 (record_goto_insn): Renamed to ...
10113 (record_full_goto_insn): ... this. Updated all users.
10114 (record_save): Renamed to ...
10115 (record_full_save): ... this. Updated all users.
10116 (record_reg_alloc): Renamed to ...
10117 (record_full_reg_alloc): ... this. Updated all users.
10118 (record_reg_release): Renamed to ...
10119 (record_full_reg_release): ... this. Updated all users.
10120 (record_mem_alloc): Renamed to ...
10121 (record_full_mem_alloc): ... this. Updated all users.
10122 (record_mem_release): Renamed to ...
10123 (record_full_mem_release): ... this. Updated all users.
10124 (record_end_alloc): Renamed to ...
10125 (record_full_end_alloc): ... this. Updated all users.
10126 (record_end_release): Renamed to ...
10127 (record_full_end_release): ... this. Updated all users.
10128 (record_entry_release): Renamed to ...
10129 (record_full_entry_release): ... this. Updated all users.
10130 (record_list_release): Renamed to ...
10131 (record_full_list_release): ... this. Updated all users.
10132 (record_list_release_following): Renamed to ...
10133 (record_full_list_release_following): ... this.
10135 (record_list_release_first): Renamed to ...
10136 (record_full_list_release_first): ... this. Updated all users.
10137 (record_arch_list_add): Renamed to ...
10138 (record_full_arch_list_add): ... this. Updated all users.
10139 (record_get_loc): Renamed to ...
10140 (record_full_get_loc): ... this. Updated all users.
10141 (record_check_insn_num): Renamed to ...
10142 (record_full_check_insn_num): ... this. Updated all users.
10143 (record_arch_list_cleanups): Renamed to ...
10144 (record_full_arch_list_cleanups): ... this. Updated all users.
10145 (record_message): Renamed to ...
10146 (record_full_message): ... this. Updated all users.
10147 (record_message_wrapper): Renamed to ...
10148 (record_full_message_wrapper): ... this. Updated all users.
10149 (record_message_wrapper_safe): Renamed to ...
10150 (record_full_message_wrapper_safe): ... this. Updated all users.
10151 (record_gdb_operation_disable): Renamed to ...
10152 (record_full_gdb_operation_disable): ... this. Updated all users.
10153 (record_hw_watchpoint): Renamed to ...
10154 (record_full_hw_watchpoint): ... this. Updated all users.
10155 (record_exec_insn): Renamed to ...
10156 (record_full_exec_insn): ... this. Updated all users.
10157 (record_restore): Renamed to ...
10158 (record_full_restore): ... this. Updated all users.
10159 (record_async_inferior_event_token): Renamed to ...
10160 (record_full_async_inferior_event_token): ... this.
10162 (record_async_inferior_event_handler): Renamed to ...
10163 (record_full_async_inferior_event_handler): ... this.
10165 (record_core_open_1): Renamed to ...
10166 (record_full_core_open_1): ... this. Updated all users.
10167 (record_open_1): Renamed to ...
10168 (record_full_open_1): ... this. Updated all users.
10169 (record_open): Renamed to ...
10170 (record_full_open): ... this. Updated all users.
10171 (record_close): Renamed to ...
10172 (record_full_close): ... this. Updated all users.
10173 (record_resume_step): Renamed to ...
10174 (record_full_resume_step): ... this. Updated all users.
10175 (record_resumed): Renamed to ...
10176 (record_full_resumed): ... this. Updated all users.
10177 (record_execution_dir): Renamed to ...
10178 (record_full_execution_dir): ... this. Updated all users.
10179 (record_resume): Renamed to ...
10180 (record_full_resume): ... this. Updated all users.
10181 (record_get_sig): Renamed to ...
10182 (record_full_get_sig): ... this. Updated all users.
10183 (record_sig_handler): Renamed to ...
10184 (record_full_sig_handler): ... this. Updated all users.
10185 (record_wait_cleanups): Renamed to ...
10186 (record_full_wait_cleanups): ... this. Updated all users.
10187 (record_wait_1): Renamed to ...
10188 (record_full_wait_1): ... this. Updated all users.
10189 (record_wait): Renamed to ...
10190 (record_full_wait): ... this. Updated all users.
10191 (record_stopped_by_watchpoint): Renamed to ...
10192 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10193 (record_disconnect): Renamed to ...
10194 (record_full_disconnect): ... this. Updated all users.
10195 (record_detach): Renamed to ...
10196 (record_full_detach): ... this. Updated all users.
10197 (record_mourn_inferior): Renamed to ...
10198 (record_full_mourn_inferior): ... this. Updated all users.
10199 (record_kill): Renamed to ...
10200 (record_full_kill): ... this. Updated all users.
10201 (record_stopped_data_address): Renamed to ...
10202 (record_full_stopped_data_address): ... this. Updated all users.
10203 (record_registers_change): Renamed to ...
10204 (record_full_registers_change): ... this. Updated all users.
10205 (record_store_registers): Renamed to ...
10206 (record_full_store_registers): ... this. Updated all users.
10207 (record_xfer_partial): Renamed to ...
10208 (record_full_xfer_partial): ... this. Updated all users.
10209 (record_breakpoint): Renamed to ...
10210 (record_full_breakpoint): ... this. Updated all users.
10211 (record_breakpoint_p): Renamed to ...
10212 (record_full_breakpoint_p): ... this. Updated all users.
10213 (record_breakpoints): Renamed to ...
10214 (record_full_breakpoints): ... this. Updated all users.
10215 (record_sync_record_breakpoints): Renamed to ...
10216 (record_full_sync_record_breakpoints): ... this.
10218 (record_init_record_breakpoints): Renamed to ...
10219 (record_full_init_record_breakpoints): ... this.
10221 (record_insert_breakpoint): Renamed to ...
10222 (record_full_insert_breakpoint): ... this. Updated all users.
10223 (record_remove_breakpoint): Renamed to ...
10224 (record_full_remove_breakpoint): ... this. Updated all users.
10225 (record_can_execute_reverse): Renamed to ...
10226 (record_full_can_execute_reverse): ... this. Updated all users.
10227 (record_get_bookmark): Renamed to ...
10228 (record_full_get_bookmark): ... this. Updated all users.
10229 (record_goto_bookmark): Renamed to ...
10230 (record_full_goto_bookmark): ... this. Updated all users.
10231 (record_async): Renamed to ...
10232 (record_full_async): ... this. Updated all users.
10233 (record_can_async_p): Renamed to ...
10234 (record_full_can_async_p): ... this. Updated all users.
10235 (record_is_async_p): Renamed to ...
10236 (record_full_is_async_p): ... this. Updated all users.
10237 (record_execution_direction): Renamed to ...
10238 (record_full_execution_direction): ... this. Updated all users.
10239 (record_info): Renamed to ...
10240 (record_full_info): ... this. Updated all users.
10241 (record_delete): Renamed to ...
10242 (record_full_delete): ... this. Updated all users.
10243 (record_is_replaying): Renamed to ...
10244 (record_full_is_replaying): ... this. Updated all users.
10245 (record_goto_entry): Renamed to ...
10246 (record_full_goto_entry): ... this. Updated all users.
10247 (record_goto_begin): Renamed to ...
10248 (record_full_goto_begin): ... this. Updated all users.
10249 (record_goto_end): Renamed to ...
10250 (record_full_goto_end): ... this. Updated all users.
10251 (record_goto): Renamed to ...
10252 (record_full_goto): ... this. Updated all users.
10253 (init_record_ops): Renamed to ...
10254 (init_record_full_ops): ... this. Updated all users.
10255 (record_core_resume): Renamed to ...
10256 (record_full_core_resume): ... this. Updated all users.
10257 (record_core_kill): Renamed to ...
10258 (record_full_core_kill): ... this. Updated all users.
10259 (record_core_fetch_registers): Renamed to ...
10260 (record_full_core_fetch_registers): ... this. Updated all users.
10261 (record_core_prepare_to_store): Renamed to ...
10262 (record_full_core_prepare_to_store): ... this. Updated all users.
10263 (record_core_store_registers): Renamed to ...
10264 (record_full_core_store_registers): ... this. Updated all users.
10265 (record_core_xfer_partial): Renamed to ...
10266 (record_full_core_xfer_partial): ... this. Updated all users.
10267 (record_core_insert_breakpoint): Renamed to ...
10268 (record_full_core_insert_breakpoint): ... this. Updated all users.
10269 (record_core_remove_breakpoint): Renamed to ...
10270 (record_full_core_remove_breakpoint): ... this. Updated all users.
10271 (record_core_has_execution): Renamed to ...
10272 (record_full_core_has_execution): ... this. Updated all users.
10273 (init_record_core_ops): Renamed to ...
10274 (init_record_full_core_ops): ... this. Updated all users.
10275 (cmd_record_restore): Renamed to ...
10276 (cmd_record_full_restore): ... this. Updated all users.
10277 (record_save_cleanups): Renamed to ...
10278 (record_full_save_cleanups): ... this. Updated all users.
10279 (cmd_record_start): Renamed to ...
10280 (cmd_record_full_start): ... this. Updated all users.
10281 (set_record_insn_max_num): Renamed to ...
10282 (set_record_full_insn_max_num): ... this. Updated all users.
10283 (set_record_command): Renamed to ...
10284 (set_record_full_command): ... this. Updated all users.
10285 (show_record_command): Renamed to ...
10286 (show_record_full_command): ... this. Updated all users.
10287 (_initialize_record): Renamed to ...
10288 (_initialize_record_full): ... this. Updated all users.
10290 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10292 * record.h: Split into this and ...
10293 * record-full.h: ... this.
10294 * record.c: Split into this and ...
10295 * record-full.c: ... this.
10296 * target.h (target_ops): Add new fields to_info_record,
10297 to_save_record, to_delete_record, to_record_is_replaying,
10298 to_goto_record_begin, to_goto_record_end, to_goto_record.
10299 (target_info_record): New.
10300 (target_save_record): New.
10301 (target_supports_delete_record): New.
10302 (target_delete_record): New.
10303 (target_record_is_replaying): New.
10304 (target_goto_record_begin): New.
10305 (target_goto_record_end): New.
10306 (target_goto_record): New.
10307 * target.c (target_info_record): New.
10308 (target_save_record): New.
10309 (target_supports_delete_record): New.
10310 (target_delete_record): New.
10311 (target_record_is_replaying): New.
10312 (target_goto_record_begin): New.
10313 (target_goto_record_end): New.
10314 (target_goto_record): New.
10315 * record.h: Declare struct cmd_list_element.
10316 (record_cmdlist): New declaration.
10317 (set_record_cmdlist): New declaration.
10318 (show_record_cmdlist): New declaration.
10319 (info_record_cmdlist): New declaration.
10320 (cmd_record_goto): New declaration.
10321 * record.c: Remove unnecessary includes.
10322 Include inferior.h.
10323 (cmd_record_goto): Remove declaration.
10324 (record_cmdlist): Now extern. Initialize.
10325 (set_record_cmdlist): Now extern. Initialize.
10326 (show_record_cmdlist): Now extern. Initialize.
10327 (info_record_cmdlist): Now extern. Initialize.
10328 (find_record_target): New.
10329 (require_record_target): New.
10330 (cmd_record_start): Update.
10331 (cmd_record_delete): Remove target-specific code.
10332 Call target_delete_record.
10333 (cmd_record_stop): Unpush any record target.
10334 (set_record_insn_max_num): Move to record-full.c
10335 (set_record_command): Add comment.
10336 (show_record_command): Add comment.
10337 (info_record_command): Update comment.
10338 Remove target-specific code.
10339 Call the record target's to_info_record.
10340 (cmd_record_start): New.
10341 (cmd_record_goto): Now extern.
10342 Remove target-specific code.
10343 Call target_goto_begin, target_goto_end, or target_goto.
10344 (_initialize_record): Move record target ops initialization to
10346 Change "record" command help text.
10347 Move "record restore", "record set", and "record show" commands to
10349 * Makefile.in (SFILES): Add record-full.c.
10350 (HFILES_NO_SRCDIR): Add record-full.h.
10351 (COMMON_OBS): Add record-full.o.
10352 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10353 * arm-tdep.c: Include record-full.h.
10354 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10355 * i386-tdep.c: Include record-full.h.
10356 * infrun.c: Include record-full.h.
10357 * linux-record.c: Include record-full.h.
10358 * moxie-tdep.c: Include record-full.h.
10359 * record-full.c: Include record-full.h.
10360 Change module comment.
10361 (set_record_full_cmdlist): New.
10362 (show_record_full_cmdlist): New.
10363 (record_full_cmdlist): New.
10364 (record_goto_insn): New declaration.
10365 (record_save): New declaration.
10366 (record_check_insn_num): Change query string.
10367 (record_info): New.
10368 (record_delete): New.
10369 (record_is_replaying): New.
10370 (record_goto_entry): New.
10371 (record_goto_begin): New.
10372 (record_goto_end): New.
10373 (record_goto): New.
10374 (init_record_ops): Update.
10375 (init_record_core_ops): Update.
10376 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10377 (cmd_record_start): New.
10378 (set_record_insn_max_num): Moved from record.c
10379 (set_record_full_command): New.
10380 (show_record_full_command): New.
10381 (_initialize_record_full): New.
10383 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10385 * target.h (add_deprecated_target_alias): New.
10386 * target.c (add_deprecated_target_alias): New.
10388 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10390 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10392 (linux_supports_btrace): Add kernel and
10394 (kernel_supports_btrace): New function.
10395 (cpu_supports_btrace): New function.
10396 (intel_supports_btrace): New function.
10398 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10400 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10401 * remote.c: Include btrace.h.
10402 (struct btrace_target_info): New struct.
10403 (remote_supports_btrace): New function.
10404 (send_Qbtrace): New function.
10405 (remote_enable_btrace): New function.
10406 (remote_disable_btrace): New function.
10407 (remote_teardown_btrace): New function.
10408 (remote_read_btrace): New function.
10409 (init_remote_ops): Add btrace ops.
10410 (enum <unnamed>): Add btrace packets.
10411 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10412 (_initialize_remote): Add packet configuration for branch tracing.
10414 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10416 * features/btrace.dtd: New file.
10417 * Makefile.in (XMLFILES): Add btrace.dtd.
10418 * btrace.h (parse_xml_btrace): New declaration.
10419 * btrace.c: Include xml-support.h.
10420 (parse_xml_btrace): New function.
10421 (parse_xml_btrace_block): New function.
10422 (block_attributes): New struct.
10423 (btrace_attributes): New struct.
10424 (btrace_children): New struct.
10425 (btrace_elements): New struct.
10427 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10429 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10430 (amd64_linux_enable_btrace): New.
10431 (amd64_linux_disable_btrace): New.
10432 (amd64_linux_teardown_btrace): New.
10433 (_initialize_amd64_linux_nat): Initialize btrace ops.
10434 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10435 (i386_linux_enable_btrace): New.
10436 (i386_linux_disable_btrace): New.
10437 (i386_linux_teardown_btrace): New.
10438 (_initialize_i386_linux_nat): Initialize btrace ops.
10439 * config/i386/linux.mh: Add linux-btrace.o.
10440 * config/i386/linux64.mh: Add linux-btrace.o.
10442 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10444 * common/linux_btrace.h: New file.
10445 * common/linux_btrace.c: New file.
10446 * Makefile.in (SFILES): Add btrace.c.
10447 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10448 (COMMON_OBS): Add btrace.o.
10449 (linux-btrace.o): New rule.
10451 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10453 * target.h: Include btrace.h.
10454 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10455 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10456 * target.c (target_supports_btrace): New function.
10457 (target_enable_btrace): New function.
10458 (target_disable_btrace): New function.
10459 (target_teardown_btrace): New function.
10460 (target_read_btrace): New function.
10461 * btrace.h: New file.
10462 * btrace.c: New file.
10463 * Makefile.in: Add btrace.c.
10464 * gdbthread.h: Include btrace.h.
10465 (struct thread_info): Add btrace field.
10466 * thread.c: Include btrace.h.
10467 (clear_thread_inferior_resources): Call target_teardown_btrace.
10468 * common/btrace-common.h: New file.
10470 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10472 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10473 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10474 kill_status to outer block.
10476 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10478 Fix entry-values if the callee called a noreturn function.
10479 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10480 get_frame_address_in_block. Add new comment.
10482 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10484 Fix entry-values in C++ across CUs.
10485 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10486 lookup_minimal_symbol. Add a comment.
10488 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10489 DW_AT_linkage_name.
10491 2013-03-08 Yao Qi <yao@codesourcery.com>
10493 * tracepoint.c (_initialize_tracepoint): Indent the code.
10495 2013-03-08 Pedro Alves <palves@redhat.com>
10497 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10498 (parse_find_args, find_command): Change type of pattern buffer
10499 locals to 'gdb_byte *'.
10501 2013-03-08 Stan Shebs <stan@codesourcery.com>
10502 Hafiz Abid Qadeer <abidh@codesourcery.com>
10504 * NEWS: Mention set and show trace-buffer-size commands.
10505 Mention new packet.
10506 * target.h (struct target_ops): New method
10507 to_set_trace_buffer_size.
10508 (target_set_trace_buffer_size): New macro.
10509 * target.c (update_current_target): Set up new method.
10510 * tracepoint.c (trace_buffer_size): New global.
10511 (start_tracing): Send it to the target.
10512 (set_trace_buffer_size): New function.
10513 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10514 * remote.c (remote_set_trace_buffer_size): New function.
10515 (_initialize_remote): Use it.
10516 (QTBuffer:size) New remote command.
10517 (PACKET_QTBuffer_size): New enum.
10518 (remote_protocol_features): Add an entry for
10519 PACKET_QTBuffer_size.
10521 2013-03-08 Tom Tromey <tromey@redhat.com>
10523 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10526 2013-03-07 Pedro Alves <palves@redhat.com>
10528 * target.c (target_read_stralloc, target_fileio_read_alloc):
10529 *Cast pointer to 'gdb_byte *' in target call.
10531 2013-03-07 Pedro Alves <palves@redhat.com>
10533 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10536 2013-03-07 Keith Seitz <keiths@redhat.com>
10538 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10539 (trace_pass_command): Likewise.
10540 * cli/cli-cmds.c: Include cli/cli-utils.h.
10541 (source_command): Use skip-spaces.
10542 (disassemble_command): Likewise.
10543 * findcmd.c: Include cli/cli-utils.h.
10544 (parse_find_args): Use skip_spaces.
10545 * go32-nat.c: Include cli/cli-utils.h.
10546 (go32_sldt): Use skip_spaces.
10547 (go32_sgdt): Likewise.
10548 (go32_sidt): Likewise.
10549 (go32_pde): Likewise.
10550 (go32_pte): Likewise.
10551 (go32_pte_for_address): Likewise.
10552 * infcmd.c: Include cli/cli-utils.h.
10553 (registers_info): Use skip_spaces.
10554 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10555 (linux_info_proc): Likewise.
10556 * linux-thread-db.c: Include cli/cli-utils.h.
10557 (info_auto_load_libthread_db): Use skip_spaces_const.
10558 * m32r-rom.c: Include cli/cli-utils.h.
10559 (m32r_upload_command): Use skip_spaces.
10560 * maint.c: Include cli/cli-utils.h.
10561 (maintenance_translate_address): Use skip_spaces.
10562 * mi/mi-parse.c: Include cli/cli-utils.h.
10563 (mi_parse_argv): Use skip_spaces.
10564 (mi_parse): Likewise.
10565 * minsyms.c: Include cli/cli-utils.h.
10566 (msymbol_hash_iw): Use skip_spaces_const.
10567 * objc-lang.c: Include cli/cli-utils.h.
10568 (parse_selector): Use skip_spaces.
10569 (parse_method): Likewise.
10570 * python/python.c: Include cli/cli-utils.h.
10571 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10572 (python_command)[HAVE_PYTHON]: Likewise.
10573 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10574 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10575 (m32r_load): Use skip_spaces.
10576 * serial.c: Include cli/cli-utils.h.
10577 (serial_open): Use skip_spaces_const.
10578 * stack.c: Include cli/cli-utils.h.
10579 (parse_frame_specification_1): Use skip_spaces_const.
10580 * symfile.c: Include cli/cli-utils.h.
10581 (set_ext_lang_command): Use skip_spaces.
10582 * symtab.c: Include cli/cli-utils.h.
10583 (rbreak_command): Use skip_spaces.
10584 * thread.c (thread_name_command): Use skip_spaces.
10585 * tracepoint.c (validate_actionline): Use skip_spaces.
10586 (encode_actions_1): Likewise.
10587 (trace_find_range_command): Likewise.
10588 (trace_find_outside_command): Likewise.
10589 (trace_dump_actions): Likewise.
10591 2013-03-07 Pedro Alves <palves@redhat.com>
10593 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10594 * expprint.c (print_subexp_standard): Likewise.
10595 * utils.c (host_char_to_target): Likewise.
10596 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10597 * varobj.c (value_get_print_value): Change type of local to char*.
10598 Cast it gdb_byte * in call to language printer.
10600 2013-03-07 Pedro Alves <palves@redhat.com>
10602 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10604 (make_wchar_iterator): Remove cast to char*.
10605 (wchar_iterate): Change type of local.
10607 2013-03-07 Pedro Alves <palves@redhat.com>
10609 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10610 for 'regcache->register_status'.
10612 2013-03-07 Pedro Alves <palves@redhat.com>
10614 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10617 2013-03-07 Pedro Alves <palves@redhat.com>
10619 * stap-probe.c (handle_stap_probe): Add cast to char*.
10621 2013-03-07 Pedro Alves <palves@redhat.com>
10623 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10624 RECORD_MSGRCV>: Pass a signed variable to
10625 regcache_raw_read_signed, instead of an unsigned one.
10627 2013-03-07 Pedro Alves <palves@redhat.com>
10629 * remote-notif.c (notif_debug): Change type to int.
10630 * remote-notif.h (notif_debug): Likewise.
10632 2013-03-07 Pedro Alves <palves@redhat.com>
10634 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10636 2013-03-07 Pedro Alves <palves@redhat.com>
10638 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10639 * remote.h (hex2bin, bin2hex): ... here.
10640 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10642 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10644 * utils.c (initialize_utils): Improve doc strings of "set/show
10645 width", "set/show height", and "set/show pagination".
10647 2013-03-06 Keith Seitz <keiths@redhat.com>
10649 * ax-gdb.c (gen_printf): Make FORMAT const.
10650 * ax-gdb.h (gen_printf): Likewise.
10651 * ax-general.c (ax_string): Make STR const.
10652 * ax.h (ax_string): Likewise.
10654 2013-03-06 Doug Evans <dje@google.com>
10656 * elfread.c (elf_symfile_read): Move debugging printf to more
10659 2013-03-06 Pedro Alves <palves@redhat.com>
10661 * python/py-utils.c (target_string_to_unicode): Delete function.
10662 * python/python-internal.h (target_string_to_unicode): Delete
10665 2013-03-06 Pierre Muller <muller@sourceware.org>
10667 * linespec.c (get_current_search_block): ARI fix, use (void)
10668 for empty parameter list.
10670 2013-03-05 Doug Evans <dje@google.com>
10672 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10673 of old ada_lookup_symbol_list. In !full_search case, don't
10674 search superblocks.
10675 (ada_lookup_symbol_list): Delete arg full_search, all callers
10676 updated. Call ada_lookup_symbol_list_worker.
10677 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10678 * ada-lang.h (ada_lookup_symbol_list): Update.
10679 * language.h (language_defn): Update comment for
10680 la_iterate_over_symbols.
10681 * linespec.c (iterate_over_file_blocks): New function.
10682 (iterate_over_all_matching_symtabs): Call it.
10683 (lookup_prefix_sym): Ditto.
10684 (get_current_search_block): New function.
10685 (get_search_block): Delete.
10686 (find_label_symbols): Call get_current_search_block.
10687 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10688 * symtab.c (iterate_over_symbols): Don't search superblocks.
10690 2013-03-05 Yao Qi <yao@codesourcery.com>
10692 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10693 parameter VAR's type from "unsigned int" to "int".
10694 * command.h (var_zuinteger_unlimited): Update its comments.
10695 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10697 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10699 * NEWS: Mention new target x86_64-*-cygwin*.
10701 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10703 * configure.host: Add x86_64-*-cygwin* as host.
10704 * configure.tgt: Add x86_64-*-cygwin* as target.
10705 * config/i386/cygwin64.mh: New file.
10707 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10709 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10711 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10713 * linespec.c (struct linespec_canonical_name): New.
10714 (struct linespec_state): Change canonical_names type to it.
10715 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10716 xrealloc element size. Initialize the different CANONICAL fields.
10717 (canonical_to_fullform): New.
10718 (filter_results): Use it. Add variables canonical, fullform and
10720 (struct decode_line_2_item, decode_line_2_compare_items): New.
10721 (decode_line_2): Remove variables iter and item_names, add variables
10722 items and items_count. Modify the code for these new variables.
10724 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10726 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10727 calling do_cleanup.
10729 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10731 * tracepoint.c (build_traceframe_info): Add code for byte order.
10733 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10735 * v850-tdep.c: (v850e2_register_name): Revise system register
10736 names to match current V850E2M architecture specifications.
10737 Update register number enum comments too.
10739 2013-03-01 Jiong Wang <jiwang@tilera.com>
10740 Pedro Alves <palves@redhat.com>
10742 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10744 (tilegx_skip_prologue): Limit prologue analysis to section end.
10746 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10748 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10751 2013-03-01 Pedro Alves <palves@redhat.com>
10753 Use gdb_byte for bytes from the program being debugged.
10755 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10756 Change type of local 'buf' to gdb_byte.
10757 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10758 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10759 * cris-tdep.c (cris_sigcontext_addr)
10760 (cris_sigtramp_frame_unwind_cache): Likewise.
10761 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10762 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10764 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10765 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10766 (hppa32_hpux_search_dummy_call_sequence)
10767 (hppa_hpux_supply_save_state): Likewise.
10768 * hppa-linux-tdep.c (insns_match_pattern)
10769 (hppa_linux_find_global_pointer): Likewise.
10770 * hppa-tdep.c (hppa_in_function_epilogue_p)
10771 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10772 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10773 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10774 (i386fbsd_collect_uthread): Likewise.
10775 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10776 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10777 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10778 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10779 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10780 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10781 (ia64_libunwind_frame_prev_register)
10782 (ia64_libunwind_sigtramp_frame_this_id)
10783 (ia64_find_global_pointer_from_dynamic_section)
10784 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10785 (ia64_unwind_pc): Likewise.
10786 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10787 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10788 (m68hc11_extract_return_value): Likewise.
10789 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10790 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10791 (mep_get_insn, mep_push_dummy_call): Likewise.
10792 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10793 (mips_linux_in_dynsym_stub): Likewise.
10794 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10795 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10796 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10798 * remote-mips.c (mips_set_register): Likewise.
10799 * remote-sim.c (gdbsim_fetch_register): Likewise.
10800 * score-tdep.c (score7_fetch_inst): Change type of parameter
10801 'memblock' and local 'buf' to gdb_byte.
10802 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10803 Change type of local 'buf' to gdb_byte. Adjust.
10804 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10806 (score7_analyze_prologue): Change type of 'memblock' and
10807 'memblock_ptr' locals to gdb_byte*.
10808 * sh64-tdep.c (sh64_extract_return_value)
10809 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10810 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10811 * solib-pa64.c (pa64_solib_create_inferior_hook)
10812 (pa64_open_symbol_file_object): Remove local 'buf'.
10813 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10814 (som_open_symbol_file_object): Likewise.
10815 * solib-spu.c (spu_current_sos): Likewise.
10816 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10817 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10818 (spu_store_registers): Likewise.
10819 * target.c (debug_print_register): Likewise.
10820 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10821 * xstormy16-tdep.c (xstormy16_store_return_value)
10822 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10823 (xstormy16_find_jmp_table_entry): Likewise.
10825 2013-03-01 Jiong Wang <jiwang@tilera.com>
10827 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10828 (tilegx_gdbarch_init): Install it.
10830 2013-02-28 Tom Tromey <tromey@redhat.com>
10832 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10835 2013-02-28 Doug Evans <dje@google.com>
10837 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10838 * python/python.c (gdbpy_find_pc_line): Ditto.
10840 2013-02-28 Tom Tromey <tromey@redhat.com>
10842 * contrib/excheck.py: New file.
10843 * contrib/exsummary.py: New file.
10844 * contrib/gcc-with-excheck: New file.
10846 2013-02-28 Tom Tromey <tromey@redhat.com>
10848 * python/python.c (gdbpy_print_stack): Call begin_line and
10849 fprintf_filtered inside TRY_CATCH.
10851 2013-02-28 Tom Tromey <tromey@redhat.com>
10853 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10856 2013-02-28 Tom Tromey <tromey@redhat.com>
10858 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10859 frame_object_to_frame_info inside TRY_CATCH.
10861 2013-02-28 Tom Tromey <tromey@redhat.com>
10863 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10866 2013-02-28 Tom Tromey <tromey@redhat.com>
10868 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10870 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10872 * windows-nat.c: Throughout, fix format strings and casts of
10873 printf-like functions to avoid type related warnings on all
10875 (handle_output_debug_string): Fetch context information address
10876 from debug string using string_to_core_addr.
10878 2013-02-27 Jiong Wang <jiwang@tilera.com>
10880 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10881 * regformats/reg-tilegx32.dat: New.
10883 2013-02-27 Jiong Wang <jiwang@tilera.com>
10885 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10887 2013-02-27 Jiong Wang <jiwang@tilera.com>
10889 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10891 2013-02-27 Yao Qi <yao@codesourcery.com>
10892 Pedro Alves <palves@redhat.com>
10894 * tracepoint.c (tfile_trace_find): For tfind
10895 pc/tp/range/outside, look for the next trace frame instead of
10896 always starting from frame 0.
10898 2013-02-26 Anthony Green <green@moxielogic.com>
10900 * configure.tgt: Add support for moxie-*-rtems* target.
10902 2013-02-25 Pedro Alves <palves@redhat.com>
10904 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10907 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10909 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10910 if $fp is used as the virtual frame pointer.
10912 2013-02-23 Alan Modra <amodra@gmail.com>
10914 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10916 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10917 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10918 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10919 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10921 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10924 * elfread.c (build_id_bfd_get): Make the return type const.
10925 (build_id_verify): Make the check parameter const.
10926 (build_id_to_debug_filename): Make the build_id parameter and variable
10928 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10930 2013-02-21 Alan Modra <amodra@gmail.com>
10932 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10934 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10936 Add a new method 'disassemble' to gdb.Architecture class.
10937 * python/py-arch.c (archpy_disassmble): Implementation of the
10938 new method gdb.Architecture.disassemble.
10939 (arch_object_methods): Add entry for the new method.
10941 2013-02-20 Jiong Wang <jiwang@tilera.com>
10943 * MAINTAINERS (Write After Approval): Add myself to the list.
10945 2013-02-19 Pedro Alves <palves@redhat.com>
10947 Garbage collect 'struct monitor_ops'::load_routine.
10949 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10950 * monitor.c (monitor_load): No longer call
10951 current_monitor->load_routine.
10952 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10953 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10954 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10956 2013-02-19 Pedro Alves <palves@redhat.com>
10960 Harmonize with generic_load.
10962 * monitor.c: Include "readline/readline.h".
10963 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10964 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10965 long/strtol for the 'load_offset' local. Error out if no argument
10966 is given or if too many arguments are given. Tilde expand the
10967 passed in file name.
10969 2013-02-19 Kai Tietz <ktietz@redhat.com>
10972 * symfile.c (load_section_data): Change type of load_offset
10974 (generic_load): User strtoulst instead of strtoul for conversion
10977 2013-02-19 Jiong Wang <jiwang@tilera.com>
10979 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10980 for return address, "lr" register, saved on stack.
10981 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10982 after we invoke tilegx_analyze_prologue.
10984 2013-02-19 Jiong Wang <jiwang@tilera.com>
10986 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10988 2013-02-19 Jiong Wang <jiwang@tilera.com>
10990 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10992 2013-02-19 Jiong Wang <jiwang@tilera.com>
10994 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10995 (tilegx_write_pc): New function.
10996 (tilegx_cannot_reference_register): Return zero if REGNO
10997 is TILEGX_FAULTNUM_REGNUM.
10998 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10999 (tilegx_register_name): Add handling of "faultnum" register.
11000 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11001 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11002 handling of TILEGX_FAULTNUM_REGNUM.
11003 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11005 2013-02-19 Jiong Wang <jiwang@tilera.com>
11007 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11008 should be aligned to 64bit.
11010 2013-02-19 Kai Tietz <ktietz@redhat.com>
11012 * windows-nat.c (windows_xfer_memory): Fix debug-output
11015 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11017 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11018 Don't check DSP register number if HAVE_DSP is not set.
11020 2013-02-19 Alan Modra <amodra@gmail.com>
11022 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11023 throughout file instead.
11024 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11025 Don't xmalloc return value.
11026 (build_id_verify): Similarly. Don't xfree.
11027 (build_id_to_debug_filename): Update.
11028 (find_separate_debug_file_by_buildid): Update, don't xfree.
11030 2013-02-18 Tom Tromey <tromey@redhat.com>
11033 * dwarf2read.c (read_subrange_type): Use result of
11036 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11038 * frame.c: Remove one extra white space after #include
11041 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11043 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11045 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11047 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11048 and dir commands into an if block.
11050 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11052 * python/py-breakpoint (struct pybp_code): Use int instead of
11055 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11056 Hafiz Abid Qadeer <abidh@codesourcery.com>
11058 * NEWS: Mention new field "trace-file".
11059 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11060 (tfile_open): Record the trace file's filename in the trace
11062 (tfile_files_info): Mention the name of the trace file.
11063 Check the "filename" field explicitely.
11064 (trace_status_command): Explicitely check "filename" field.
11065 (trace_find_command): Ditto.
11066 (trace_find_pc_command): Ditto.
11067 (trace_find_tracepoint_command): Ditto.
11068 (trace_find_line_command): Ditto.
11069 (trace_find_range_command): Ditto.
11070 (trace_find_outside_command): Ditto.
11071 * tracepoint.h (struct trace_status) <from_file>: Rename it
11072 to "filename" and make it hold the trace file's filename
11073 instead of a boolean.
11074 * remote.c (remote_get_trace_status): Initialize "filename"
11075 field with NULL instead of 0.
11077 2013-02-15 Yao Qi <yao@codesourcery.com>
11079 * remote.c: Fix a typo.
11081 2013-02-14 Pierre Muller <muller@sourceware.org>
11083 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11085 2013-02-14 Pedro Alves <palves@redhat.com>
11087 * utils.c (savestring): Don't #undef it. Move function to
11088 common/common-utils.c.
11089 * common/common-utils.c: Include gdb_string.h.
11090 (savestring): Move here from utils.c.
11091 * common/common-utils.h (savestring): Declare.
11093 2013-02-14 Pedro Alves <palves@redhat.com>
11095 * utils.c (savestring): Rename parameter 'size' to 'len'.
11097 2013-02-14 Pedro Alves <palves@redhat.com>
11098 Yufeng Zhang <yufeng.zhang@arm.com>
11100 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11101 (aarch64_inferior_data, struct aarch64_inferior_data):
11103 (struct aarch64_process_info): New.
11104 (aarch64_process_list): New global.
11105 (aarch64_find_process_pid, aarch64_add_process)
11106 (aarch64_process_info_get): New functions.
11107 (aarch64_inferior_data_get): Delete.
11108 (aarch64_process_info_get): New function.
11109 (aarch64_forget_process): New function.
11110 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11111 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11112 aarch64_get_debug_reg_state.
11113 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11114 instead of linux_nat_iterate_watchpoint_lwps.
11115 (aarch64_linux_new_fork): New function.
11116 (aarch64_linux_child_post_startup_inferior): Use
11117 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11118 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11119 (aarch64_linux_remove_hw_breakpoint)
11120 (aarch64_handle_aligned_watchpoint)
11121 (aarch64_handle_unaligned_watchpoint)
11122 (aarch64_linux_insert_watchpoint)
11123 (aarch64_linux_remove_watchpoint)
11124 (aarch64_linux_stopped_data_address): Adjust to pass the current
11125 process id to aarch64_debug_reg_state.
11126 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11127 linux_nat_new_fork hook, and aarch64_forget_process as
11128 linux_nat_forget_process hook; remove the call to
11129 register_inferior_data_with_cleanup.
11131 2013-02-14 Pedro Alves <palves@redhat.com>
11133 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11134 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11137 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11138 Hafiz Abid Qadeer <abidh@codesourcery.com>
11140 * tracepoint.h (validate_trace_state_variable_name): Declare.
11141 * tracepoint.c (validate_trace_state_variable_name): New.
11142 (trace_variable_command): Parse the trace state variable's name
11143 without using parse_expression. Do several validations.
11144 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11145 trace state variable's name with parse_expression. Validate it.
11147 2013-02-14 Yao Qi <yao@codesourcery.com>
11149 * infcmd.c (breakpoint_proceeded): Remove it.
11151 2013-02-14 Yao Qi <yao@codesourcery.com>
11153 * tracepoint.c (end_actions_pseudocommand): Make it static.
11154 (while_stepping_pseudocommand): Likewise.
11155 * tracepoint.h (end_actions_pseudocommand): Remove the
11157 (while_stepping_pseudocommand): Likewise.
11159 2013-02-14 Yao Qi <yao@codesourcery.com>
11161 * cli/cli-decode.c (help_cmd): Remove the declaration of
11163 (help_all): Likewise.
11165 2013-02-13 Pedro Alves <palves@redhat.com>
11167 * amd64-linux-nat.c (update_debug_registers_callback):
11169 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11171 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11172 i386_debug_reg_state.
11173 (amd64_linux_new_fork): New function.
11174 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11175 linux_nat_new_fork hook, and i386_forget_process as
11176 linux_nat_forget_process hook.
11177 * i386-linux-nat.c (update_debug_registers_callback):
11179 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11181 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11182 i386_debug_reg_state.
11183 (i386_linux_new_fork): New function.
11184 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11185 linux_nat_new_fork hook, and i386_forget_process as
11186 linux_nat_forget_process hook.
11187 * i386-nat.c (i386_init_dregs): Delete.
11188 (i386_inferior_data, struct i386_inferior_data):
11190 (struct i386_process_info): New.
11191 (i386_process_list): New global.
11192 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11194 (i386_inferior_data_get): Delete.
11195 (i386_process_info_get): New function.
11196 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11197 (i386_forget_process): New function.
11198 (i386_cleanup_dregs): Rewrite.
11199 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11200 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11201 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11202 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11203 to i386_debug_reg_state.
11204 (i386_use_watchpoints): Don't register inferior data.
11205 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11207 (i386_forget_process): Declare.
11208 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11209 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11210 New static globals.
11211 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11212 (add_initial_lwp): New, factored out from ...
11213 (add_lwp): ... this. Don't check the number of lwps before
11214 calling linux_nat_new_thread.
11215 (linux_nat_iterate_watchpoint_lwps): Delete.
11216 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11217 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11219 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11221 (linux_nat_kill, linux_nat_mourn_inferior): Call
11222 linux_nat_forget_process.
11223 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11224 (linux_nat_forget_process): New functions.
11225 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11227 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11228 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11230 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11231 (linux_nat_forget_process): New declarations.
11233 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11234 (amd64fbsd_mourn_inferior): New function.
11235 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11236 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11238 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11240 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11243 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11245 * aarch64-linux-nat.c (debug_reg_change_callback)
11246 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11249 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11251 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11254 2013-02-13 Pedro Alves <palves@redhat.com>
11255 Hafiz Abid Qadeer <abidh@codesourcery.com>
11257 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11259 2013-02-12 Tom Tromey <tromey@redhat.com>
11262 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11264 (classify_inner_name): Remove 'first_name' argument, add
11265 'context'. Remove unused variable.
11266 (yylex): Explicitly maintain the context type. Exit loop earlier
11267 if NAME result is seen.
11269 2013-02-12 Pedro Alves <palves@redhat.com>
11271 * amd64-darwin-tdep.c: Add (C) after Copyright.
11272 * cli/cli-cmds.h: Ditto.
11273 * cli/cli-decode.c: Ditto.
11274 * cli/cli-decode.h: Ditto.
11275 * cli/cli-dump.c: Ditto.
11276 * cli/cli-dump.h: Ditto.
11277 * cli/cli-interp.c: Ditto.
11278 * cli/cli-logging.c: Ditto.
11279 * cli/cli-script.c: Ditto.
11280 * cli/cli-script.h: Ditto.
11281 * cli/cli-setshow.c: Ditto.
11282 * cli/cli-setshow.h: Ditto.
11283 * cli/cli-utils.c: Ditto.
11284 * cli/cli-utils.h: Ditto.
11285 * config/alpha/nm-osf3.h: Ditto.
11286 * config/djgpp/djconfig.sh: Ditto.
11287 * config/i386/nm-fbsd.h: Ditto.
11288 * config/i386/nm-i386gnu.h: Ditto.
11289 * config/nm-linux.h: Ditto.
11290 * config/nm-nto.h: Ditto.
11291 * config/rs6000/nm-rs6000.h: Ditto.
11292 * config/sparc/nm-sol2.h: Ditto.
11293 * darwin-nat-info.c: Ditto.
11296 * gdb-demangle.h: Ditto.
11297 * i386-darwin-nat.c: Ditto.
11298 * i386-darwin-tdep.c: Ditto.
11299 * linux-fork.h: Ditto.
11300 * m32c-tdep.c: Ditto.
11301 * microblaze-linux-tdep.c: Ditto.
11302 * microblaze-rom.c: Ditto.
11303 * microblaze-tdep.c: Ditto.
11304 * microblaze-tdep.h: Ditto.
11305 * mips-linux-tdep.h: Ditto.
11306 * ppc-ravenscar-thread.c: Ditto.
11307 * ppc-ravenscar-thread.h: Ditto.
11308 * prologue-value.c: Ditto.
11309 * prologue-value.h: Ditto.
11310 * ravenscar-thread.c: Ditto.
11311 * ravenscar-thread.h: Ditto.
11312 * sparc-ravenscar-thread.c: Ditto.
11313 * sparc-ravenscar-thread.h: Ditto.
11314 * tilegx-linux-tdep.c: Ditto.
11315 * unwind_stop_reasons.def: Ditto.
11316 * windows-nat.h: Ditto.
11317 * xtensa-linux-tdep.c: Ditto.
11318 * xtensa-xtregs.c: Ditto.
11319 * regformats/regdat.sh: Ditto.
11320 * regformats/regdef.h: Ditto.
11322 2013-02-12 Pedro Alves <palves@redhat.com>
11324 * break-catch-sig.c: Update copyright years.
11326 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11328 Add support for a destructor for ui_out data and use it to
11329 provide a ui_out destructor.
11330 * ui-out.h: Declare the new ui_out destructor.
11331 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11332 * ui-out.c (default_data_destroy): Add a default data destructor
11333 which does nothing.
11334 (default_ui_out_impl): Set the new data_destroy field to
11335 default_data_destroy
11336 (uo_data_destroy): Local function which invokes the data
11337 destructor if present.
11338 (clear_table): Local function which clears the table data of a
11340 (ui_out_destroy): Public function which frees a ui_out object.
11341 (ui_out_table_end): Use the new clear_table function.
11342 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11344 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11347 2013-02-11 Doug Evans <dje@google.com>
11349 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11350 (printf_decfloat): New function. Broken out from ui_printf.
11351 Remove unnecessary code to shift the entire format string down.
11352 (printf_pointer): New function.
11353 (ui_printf): Code to print C strings, wide C strings, decfloats,
11354 and pointers moved to separate functions.
11356 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11358 * valops.c (value_assign): Handling bitfield offset in
11359 `lval_internalvar_component' case.
11361 2013-02-08 Doug Evans <dje@google.com>
11363 * common/format.c (parse_format_string): Fix whitespace.
11365 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11367 * stack.c (return_command): Work around uninitialized variable
11370 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11372 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11373 number of the registers from 36 to 34.
11375 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11377 * NEWS: Mention new AArch64 native and target support.
11379 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11381 * MAINTAINERS (Write After Approval): Add myself.
11383 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11384 Marcus Shawcroft <marcus.shawcroft@arm.com>
11385 Nigel Stephens <nigel.stephens@arm.com>
11386 Yufeng Zhang <yufeng.zhang@arm.com>
11388 * aarch64-linux-nat.c: New file.
11389 * config/aarch64/linux.mh: New file.
11390 * configure.host: Add AArch64.
11391 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11393 2013-02-07 Doug Evans <dje@google.com>
11395 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11396 disassemble command.
11398 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11400 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11401 set_gdbarch_fetch_tls_load_module_address.
11403 2013-02-06 David S. Miller <davem@davemloft.net>
11405 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11406 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11407 * value.c (struct_return_convention): New function.
11408 (using_struct_return): Implement in terms of struct_return_convention.
11409 * value.h (struct_return_convention): Declare.
11410 * stack.c (return_command): Allow successful overriding of the return
11411 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11413 2013-02-06 Tom Tromey <tromey@redhat.com>
11415 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11416 outside of TRY_CATCH.
11418 2013-02-06 Yao Qi <yao@codesourcery.com>
11420 * mi/mi-interp.c: Include "tracepoint.h".
11421 (mi_tsv_modified): Declare.
11422 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11423 (mi_interpreter_init): Call observer_attach_tsv_modified.
11424 (mi_tsv_modified): New.
11425 (mi_tsv_created, mi_tsv_deleted): Update.
11426 * tracepoint.c (trace_variable_command): Call
11427 observer_notify_tsv_modified if the initial value of tsv is
11429 (delete_trace_state_variable): Call
11430 observer_notify_tsv_deleted earlier.
11431 (trace_variable_command): Caller update.
11432 (create_tsv_from_upload): Likewise.
11433 * observer.sh: Declare "struct trace_state_variable".
11435 * NEWS: Mention the new MI notification "=tsv-modified".
11437 2013-02-05 Doug Evans <dje@google.com>
11439 * completer.c (location_completer): Fix typo in comment.
11441 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11443 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11446 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11448 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11449 Refactor if statement to avoid trailing || operator.
11451 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11453 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11455 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11457 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11458 * configure.host: Add powerpc*-*-freebsd* target.
11459 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11460 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11461 * config/powerpc/fbsd.mh: New file.
11463 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11464 Denys Vlasenko <dvlasenk@redhat.com>
11465 Pedro Alves <palves@redhat.com>
11467 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11468 (struct elf_internal_linux_prpsinfo): Forward declare.
11469 * gdbarch.h, gdbarch.c: Regenerate.
11470 * linux-tdep.c: Include `cli/cli-utils.h'.
11471 (linux_fill_prpsinfo): New function.
11472 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11473 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11474 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11475 depending on gdbarch pointer bitness.
11476 * ppc-linux-tdep.c: Include elf-bfd.h.
11477 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11480 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11481 Marcus Shawcroft <marcus.shawcroft@arm.com>
11482 Nigel Stephens <nigel.stephens@arm.com>
11483 Yufeng Zhang <yufeng.zhang@arm.com>
11485 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11487 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11488 Marcus Shawcroft <marcus.shawcroft@arm.com>
11489 Nigel Stephens <nigel.stephens@arm.com>
11490 Yufeng Zhang <yufeng.zhang@arm.com>
11492 * aarch64-newlib-tdep.c: New file.
11493 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11495 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11496 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11497 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11498 * osabi.c (gdb_osabi_names): Add "Newlib".
11500 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11501 Marcus Shawcroft <marcus.shawcroft@arm.com>
11502 Nigel Stephens <nigel.stephens@arm.com>
11503 Yufeng Zhang <yufeng.zhang@arm.com>
11505 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11506 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11507 * aarch64-linux-tdep.c: New file.
11508 * aarch64-linux-tdep.h: New file.
11509 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11510 * configure.tgt: Add aarch64-none-linux-gnu.
11512 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11513 Marcus Shawcroft <marcus.shawcroft@arm.com>
11514 Nigel Stephens <nigel.stephens@arm.com>
11515 Yufeng Zhang <yufeng.zhang@arm.com>
11517 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11518 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11519 (ALLDEPFILES): Add aarch64-tdep.c.
11520 * aarch64-tdep.c: New file.
11521 * aarch64-tdep.h: New file.
11522 * configure.tgt: Add AArch64.
11523 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11524 (aarch64-expedite): New definition.
11525 * features/aarch64-core.xml: New file.
11526 * features/aarch64-fpu.xml: New file.
11527 * features/aarch64-without-fpu.c: New file (generated).
11528 * features/aarch64-without-fpu.xml: New file.
11529 * features/aarch64.c: New file (generated).
11530 * features/aarch64.xml: New file.
11531 * regformats/aarch64-without-fpu.dat: New file (generated).
11532 * regformats/aarch64.dat: New file (generated).
11534 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11536 * contrib/expect-read1.c: New file.
11537 * contrib/expect-read1.sh: New file.
11539 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11541 * dwarf2read.c (file_file_name): New function with code from
11543 (file_full_name): Move most of the code to file_file_name.
11544 (macro_start_file): Rename variable full_name to file_name and use
11545 file_file_name for it. Add comp_dir parameter to new_macro_table.
11546 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11547 macro_source_file->filename access by macro_source_fullname call.
11548 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11550 * macrotab.c (struct macro_table): New field comp_dir.
11551 (macro_include): New variables link_fullname and source_fullname.
11552 Replace any macro_source_file->filename access by macro_source_fullname
11554 (macro_lookup_inclusion): Remove the partial filenames checking code.
11555 (check_for_redefinition): New variables source_fullname and
11556 found_key_fullname. Replace any macro_source_file->filename access by
11557 macro_source_fullname call.
11558 (macro_undef): New variables source_fullname and key_fullname. Replace
11559 any macro_source_file->filename access by macro_source_fullname call.
11560 (macro_lookup_definition): New variables retval and source_fullname.
11561 Replace any macro_source_file->filename access by macro_source_fullname
11563 (foreach_macro): New variable key_fullname. Replace any
11564 macro_source_file->filename access by macro_source_fullname call.
11565 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11566 macro_source_file->filename access by macro_source_fullname call.
11567 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11568 (macro_source_fullname): New function.
11569 * macrotab.h (struct macro_source_file): Extent the filename field
11571 (new_macro_table): New parameter comp_dir, add a comment for it.
11572 (macro_source_fullname): new declaration.
11574 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11576 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11577 this_real_name to outer block. Use it also for
11578 compare_filenames_for_search.
11579 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11580 with dw2_get_real_path for file_matcher, considering also
11581 BASENAMES_MAY_DIFFER.
11582 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11584 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11586 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11587 to the file_matcher parameter. Pass 0 to it.
11588 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11589 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11590 NULL psymtab_to_fullname result.
11591 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11592 an expected filename instead.
11593 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11594 file_matcher parameter. Call also psymtab_to_fullname, after newly
11595 considering BASENAMES_MAY_DIFFER.
11596 * source.c (rewrite_source_path): Remove static.
11597 * source.h (rewrite_source_path): New declaration.
11598 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11599 the expand_symtabs_matching field. Comment it.
11600 * symtab.c (file_matches): New function comment. Add parameter
11601 basenames, implement it.
11602 (search_symbols_file_matches): Add basenames parameter. Update the
11603 file_matches caller.
11604 (search_symbols): Match FILES also against symtab_to_fullname.
11605 Optimize it for BASENAMES_MAY_DIFFER.
11607 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11609 * source.c (print_source_lines_base): Print for TUI also "fullname".
11610 * tui/tui-data.c (init_content_element): Change tui_locator_element
11611 field to full_name.
11612 * tui/tui-data.h (struct tui_locator_element): Likewise.
11613 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11614 tui_update_locator_filename calls to tui_update_locator_fullname.
11615 Replace symtab->filename refererence by symtab_to_fullname call.
11616 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11617 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11618 field to full_name. Replace symtab->filename refererence by
11619 symtab_to_fullname call.
11620 (tui_show_symtab_source): Rename parameter to fullname. Change
11621 tui_locator_element field to full_name.
11622 * tui/tui-stack.c: Include source.h.
11623 (tui_set_locator_filename): Rename the declaration to ...
11624 (tui_set_locator_fullname): ... here. Rename its parameter to
11625 fullname, updates its comment.
11626 (tui_set_locator_info): Rename its parameter to fullname.
11627 (tui_set_locator_filename): Rename the definition to ...
11628 (tui_set_locator_fullname): ... here. Rename its parameter to
11629 fullname, updates its comment. Change tui_locator_element field to
11631 (tui_set_locator_info): Rename its parameter to fullname.
11632 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11633 (tui_update_locator_filename): Rename to ...
11634 (tui_update_locator_fullname): ... here. Rename callee to
11635 tui_set_locator_fullname.
11636 (tui_show_frame_info): Replace symtab->filename refererence by
11637 symtab_to_fullname call.
11638 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11639 (tui_update_locator_fullname): ... here.
11640 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11641 tui_update_locator_fullname. Replace symtab->filename refererence by
11642 symtab_to_fullname call.
11643 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11644 Rename the callee to tui_update_locator_fullname.
11645 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11647 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11649 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11650 by symtab_to_filename_for_display calls.
11651 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11652 (clear_command): New variable sal_fullname, initialize it. Replace
11653 compare_filenames_for_search by filename_cmp with sal_fullname.
11654 (say_where, update_static_tracepoint): Replace symtab->filename
11655 refererences by symtab_to_filename_for_display calls.
11656 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11658 * dwarf2read.c: Include source.h.
11659 (fixup_go_packaging): Replace symtab->filename refererences by
11660 symtab_to_filename_for_display calls.
11661 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11662 Replace symtab->filename refererences by symtab_to_filename_for_display
11664 (create_sals_line_offset, convert_linespec_to_sals): New variable
11665 fullname, initialize it, replace symtab->filename reference by the
11667 * linux-fork.c: Include source.h.
11668 (info_checkpoints_command): Replace symtab->filename refererences by
11669 symtab_to_filename_for_display calls.
11670 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11671 by symtab_to_filename_for_display calls.
11672 * mdebugread.c: Include source.h.
11673 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11674 symtab_to_filename_for_display calls.
11675 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11676 (mi_cmd_file_list_exec_source_files): Likewise.
11677 * printcmd.c: Include source.h.
11678 (build_address_symbolic): Replace symtab->filename refererences by
11679 symtab_to_filename_for_display calls.
11680 * psymtab.c (partial_map_symtabs_matching_filename)
11681 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11682 with psymtab_to_fullname.
11683 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11684 by symtab_to_filename_for_display calls.
11685 (stpy_get_filename): New variable filename, initialize it, use instead
11686 of symtab->filename refererences.
11687 (salpy_str): Make variable filename const char *. Replace
11688 symtab->filename refererences by symtab_to_filename_for_display calls.
11689 * skip.c: Include source.h and filenames.h.
11690 (skip_file_command): Remove const from the symtab variable. Replace
11691 symtab->filename refererences by symtab_to_fullname call.
11692 (function_name_is_marked_for_skip): New variables searched_for_fullname
11693 and fullname. Use them to search also with symtab's fullname.
11694 * source.c (find_source_lines): Replace symtab->filename refererences
11695 by symtab_to_filename_for_display calls.
11696 (print_source_lines_base): New variable filename, use it instead of
11697 symtab->filename. Replace symtab->filename refererences by
11698 symtab_to_filename_for_display calls.
11699 (line_info, forward_search_command): Replace symtab->filename
11700 refererences by symtab_to_filename_for_display calls.
11701 (reverse_search_command): Replace symtab->filename refererences by
11702 symtab_to_filename_for_display calls. New variable filename for it.
11703 * stack.c (frame_info): Likewise.
11704 * symmisc.c: Include source.h.
11705 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11706 (maintenance_info_symtabs): Replace symtab->filename refererences by
11707 symtab_to_filename_for_display calls.
11708 * symtab.c (iterate_over_some_symtabs): Call
11709 compare_filenames_for_search also with symtab_to_fullname.
11710 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11711 symtab->filename refererences by symtab_to_filename_for_display calls.
11712 (find_line_symtab): Replace symtab->filename refererences by
11713 symtab_to_filename_for_display calls.
11714 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11715 (print_symbol_info): Make the last parameter const char *. New
11716 variable s_filename. Use it in the function.
11717 (symtab_symbol_info): Make the last_filename variable const char *.
11718 Replace symtab->filename refererences by symtab_to_filename_for_display
11720 (rbreak_command): New variable fullname. Use it. Replace
11721 symtab->filename refererence by symtab_to_filename_for_display call.
11722 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11723 (print_one_static_tracepoint_marker): Replace symtab->filename
11724 refererences by symtab_to_filename_for_display calls.
11725 * tui/tui-source.c (tui_set_source_content): New variables filename and
11726 s_filename. Replace symtab->filename refererences by this variable.
11727 Replace other symtab->filename refererences by
11728 symtab_to_filename_for_display calls.
11730 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11731 Jan Kratochvil <jan.kratochvil@redhat.com>
11733 Add a new variable that controls a way in which filenames are
11735 * NEWS (set filename-display): New entry.
11736 * source.c (filename_display_basename, filename_display_relative)
11737 (filename_display_absolute, filename_display_kind_names)
11738 (filename_display_string, show_filename_display_string)
11739 (symtab_to_filename_for_display): New.
11740 (_initialize_source): Added initialization of 'filename-display'
11742 * source.h (symtab_to_filename_for_display): Added declaration.
11743 * stack.c (print_frame): Added new variable and calling of a new
11744 function and condition with this variable. Changed third argument of
11745 calling of a function.
11747 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11749 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11750 Rename field reference filename to fullname.
11751 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11752 fullname. New comment for it.
11753 * tui/tui-source.c (tui_set_source_content): Rename field reference
11754 filename to fullname. Initialize field by symtab_to_fullname now.
11755 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11756 reference filename to fullname. Use symtab_to_fullname during
11759 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11762 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11763 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11764 filename to fullname. Rename variable this_name to this_fullname.
11765 Lowercase FILENAME_CMP call.
11766 (dw2_find_symbol_file): New comment for the returned string.
11767 (dwarf2_gdb_index_functions): Rename the function to
11768 dw2_expand_symtabs_with_fullname.
11769 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11770 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11772 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11773 * symfile.h (struct quick_symbol_functions): Rename field
11774 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11775 parameter filename to fullname. Document returned string meaning for
11777 * symtab.c (find_line_symtab): Rename the called function to
11778 expand_symtabs_with_fullname.
11780 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11783 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11784 call of filename_cmp with compare_filenames_for_search.
11785 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11786 is_abs, unify the call of FILENAME_CMP with
11787 compare_filenames_for_search. New gdb_asserts for real_path and name.
11788 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11789 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11790 * symfile.h (struct quick_symbol_functions): Extend the comment for
11791 map_symtabs_matching_filename.
11792 * symtab.c (compare_filenames_for_search): Remove the function comment
11793 relative path requirement. Handle absolute filenames, with a comment.
11794 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11795 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11796 real_path and name. Unify the call of compare_filenames_for_search
11798 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11800 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11803 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11804 source_file references by symtab field references. Remove variables
11806 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11807 (clear_command, say_where): Replace bp_location field source_file
11808 references by symtab field references.
11809 (bp_location_dtor): Remove the source_file reference.
11810 (update_static_tracepoint): Replace bp_location field source_file
11811 references by symtab field references.
11812 (breakpoint_free_objfile): New function.
11813 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11814 Replace the field source_file by field symtab, extend its comment.
11815 (breakpoint_free_objfile): New declaration.
11816 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11817 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11818 field source_file references by symtab field references.
11820 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11822 Replace xfullpath calls by gdb_realpath calls.
11823 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11825 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11826 Remove it from the iterate_over_some_symtabs call.
11827 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11828 Remove it from the dw2_map_expand_apply calls, remove a block handling
11830 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11831 Remove it from the iterate_over_some_symtabs call.
11832 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11833 Remove it from the partial_map_expand_apply calls, remove a block
11834 handling it. Drop gdb_realpath call and cleanups from the real_path
11836 * source.c (openp): Drop the comment part about xfullpath. Replace
11837 xfullpath calls by gdb_realpath calls.
11838 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11839 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11840 from method map_symtabs_matching_filename and its comment.
11841 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11843 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11844 remove it also from the function comment, remove a block handling it.
11845 Drop gdb_realpath call and cleanups from the real_path handling.
11846 (iterate_over_symtabs): Drop variable full_path and its use.
11847 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11848 * utils.c (xfullpath): Remove.
11849 * utils.h (xfullpath): Remove.
11851 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11853 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11854 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11855 (ALLDEPFILES): Add ppc64-tdep.c.
11856 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11857 ppc64-tdep.o to gdb_target_obs.
11858 * ppc64-tdep.h: New file.
11859 * ppc64-tdep.c: New file.
11860 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11861 ppc-linux-tdep.c to here.
11862 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11863 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11864 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11865 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11866 from ppc-linux-tdep.c to here.
11867 (ppc64_convert_from_func_ptr_addr): Rename from
11868 ppc64_linux_convert_from_func_ptr_addr to
11869 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11872 (read_insn): Move from ppc-linux-tdep.c to here.
11873 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11874 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11875 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11876 Removed above functions.
11877 (ppc_linux_init_abi): Adjust.
11879 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11881 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11883 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11885 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11887 2013-02-01 Pedro Alves <palves@redhat.com>
11889 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11890 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11892 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11894 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11895 files with no separate debug info.
11896 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11897 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11898 only for files with no separate debug info.
11900 2013-01-31 Tom Tromey <tromey@redhat.com>
11902 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11904 (struct jit_program_space_data): Rename from jit_inferior_data.
11906 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11907 Change return type. Attach data to program space.
11908 (jit_program_space_data_cleanup): Rename from
11909 jit_inferior_data_cleanup; change argument type.
11910 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11912 (jit_register_code): Update.
11913 (jit_update_inferior_cache): Remove.
11914 (jit_breakpoint_deleted): Get jit data from the location's program
11916 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11917 'ps_data', change type.
11918 (jit_inferior_init, jit_breakpoint_re_set_internal)
11919 (jit_event_handler): Update.
11920 (free_objfile_data): Get data from objfile's program space.
11921 (_initialize_jit): Update.
11923 2013-01-31 Tom Tromey <tromey@redhat.com>
11926 * jit.c (struct jit_inferior_data) <cached_code_address,
11927 jit_breakpoint>: New fields.
11928 (jit_breakpoint_re_set_internal): Fix logging. Only create
11929 breakpoint if cached address has changed.
11930 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11932 (_initialize_jit): Register breakpoint deleted observer.
11934 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11936 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11937 (save_infcall_suspend_state): Ifdef out unused inf.
11938 (restore_infcall_suspend_state): Ifdef out unused inf.
11939 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11940 (jit_frame_sniffer): Remove unused inf_data.
11942 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11944 * c-exp.y (classify_inner_name): Remove unused type.
11945 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11946 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11948 (c_get_string): Remove unused kind.
11949 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11951 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11953 * charset.c (intermediate_encoding): Remove unused i.
11954 * completer.c (signal_completer): Remove unused i.
11955 * continuations.c (discard_my_continuations_1): Remove unused
11957 * corelow.c (core_close): Remove unuseD name.
11958 (get_core_siginfo): Remove unused pid.
11959 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11961 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11962 (loclist_describe_location): Remove unused first.
11963 * event-top.c (command_line_handler): Remove unused got_eof.
11964 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11965 (resize_section_table): Remove unused old_value.
11966 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11967 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11968 * i386-tdep.c (i386_process_record): Remove unused rex.
11969 * infcmd.c (get_return_value): Remove unused uiout.
11970 * jv-lang.c (type_from_class): Remove unused is_array.
11971 * jv-valprint.c (java_val_print): Remove unused i.
11972 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11973 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11974 * m2-typeprint.c (m2_print_type): Remove unused code.
11975 * macroexp.c (get_character_constant): Remove unused body_start.
11976 (macro_stringify): Remove unused result.
11977 * objc-lang.c (find_methods): Remove unused gdbarch.
11978 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11979 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11980 * stack.c (print_frame_args): Remove unused summary.
11981 * thread.c (thread_apply_command): Remove unused p.
11982 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11983 * valops.c (search_struct_method): Remove unused skip.
11984 * valprint.c (generic_val_print): Remove unused byte_order.
11985 * varobj.c (varobj_update): Remove unused changed.
11986 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11987 (alias_command): Remove unused c.
11988 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11989 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11991 (mi_cmd_data_write_memory): Remove unused word_format.
11992 (mi_cmd_data_write_memory_bytes): Remove unused r.
11993 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11995 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11996 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11999 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12001 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12002 * symtab.c (iterate_over_symtabs): Remove unused s.
12003 (find_pc_sect_symtab): Remove unused pspAce.
12004 (find_pc_sect_line): Remove unused alt_symtab.
12005 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12006 (completion_list_add_name): Remove unused newsize.
12008 2013-01-31 Tom Tromey <tromey@redhat.com>
12011 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12014 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12016 * target.c (target_read_string): Remove unused origlen.
12018 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12020 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12021 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12022 * ax-general.c (ax_print): Remove unused is_float.
12023 * blockframe.c (block_innermost_frame): Remove unused start, end.
12024 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12026 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12028 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12029 (svr4_read_so_list): Remove unused lmo.
12030 * solib-target.c (solib_target_relocate_section_addresses): Remove
12033 2013-01-30 Tom Tromey <tromey@redhat.com>
12035 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12037 2013-01-30 Tom Tromey <tromey@redhat.com>
12039 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12040 * utils.c (gnu_debuglink_crc32): Remove.
12041 * utils.h (gnu_debuglink_crc32): Don't declare.
12043 2013-01-30 Tom Tromey <tromey@redhat.com>
12045 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12046 (read_structure_type, read_enumeration_type): Remove cast.
12048 2013-01-30 Tom Tromey <tromey@redhat.com>
12050 * dwarf2read.c (read_namespace_type): Remove cast.
12051 (read_typedef): Likewise.
12053 2013-01-29 Tom Tromey <tromey@redhat.com>
12055 * dwarf2read.c (free_dwo_file): Remove assert.
12057 2013-01-29 Tom Tromey <tromey@redhat.com>
12059 * value.c (deprecated_set_value_modifiable): Remove.
12060 * value.h (deprecated_set_value_modifiable): Remove.
12062 2013-01-28 Doug Evans <dje@google.com>
12064 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12065 to addresses from dwo files.
12067 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12069 * valops.c (find_overload_match): Remove unused argument 'lax'.
12070 * value.h: Remove unused argument 'lax' from the declaration of
12071 find_overload_match.
12072 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12073 to find_overload_match.
12074 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12075 argument to find_overload_match.
12077 2013-01-25 Tom Tromey <tromey@redhat.com>
12079 * dwarf2read.c (processing_has_namespace_info): Remove.
12080 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12081 (process_die, read_func_scope, dwarf2_start_symtab)
12082 (new_symbol_full): Update.
12084 2013-01-25 Tom Tromey <tromey@redhat.com>
12086 * cp-namespace.c (cp_set_block_scope): Remove.
12087 * cp-support.h (cp_set_block_scope): Remove.
12088 * dbxread.c: Include block.h.
12089 (cp_set_block_scope): New function.
12090 (process_one_symbol): Update.
12091 * dwarf2read.c (read_func_scope): Use block_set_scope.
12093 2013-01-25 Pedro Alves <palves@redhat.com>
12095 * remote.c (add_current_inferior_and_thread): Tweak comment.
12097 2013-01-25 Tom Tromey <tromey@redhat.com>
12099 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12100 (cp_add_using_directive): Add 'copy_names' argument.
12101 * cp-support.h (cp_add_using_directive): Update.
12102 (struct using_direct) <import_src, import_dest, alias,
12103 declaration>: Now const.
12104 * dwarf2read.c (read_import_statement): Use obconcat.
12105 Don't copy names passed to cp_add_using_directive.
12107 2013-01-25 Tom Tromey <tromey@redhat.com>
12109 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12111 2013-01-25 Pedro Alves <palves@redhat.com>
12113 * remote.c (stop_reply_extract_thread): New.
12114 (add_current_inferior_and_thread): New parameter 'wait_status'.
12116 (remote_start_remote): Pass wait status to
12117 add_current_inferior_and_thread.
12118 (extended_remote_run): Update comment.
12119 (extended_remote_create_inferior_1): Pass wait status to
12120 add_current_inferior_and_thread.
12122 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12123 Ulrich Weigand <uweigand@de.ibm.com>
12125 * valarith.c (value_vector_widen): New function for replicating a
12126 scalar into a vector.
12127 (value_binop): Use value_vector_widen to widen scalar to vector
12128 rather than casting, this better matches gcc C behaviour.
12129 * valops.c (value_casst): Update logic for casting between vector
12130 types, and for casting from scalar to vector, try to match gcc C
12132 * value.h (value_vector_widen): Declare.
12133 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12134 function, handle special case for casting scalar to vector.
12135 (opencl_relop): Use opencl_value_cast.
12136 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12137 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12138 in order to use opencl_value_cast.
12140 2013-01-25 Yao Qi <yao@codesourcery.com>
12142 * event-loop.c: Include "queue.h".
12143 (gdb_event_p): New typedef.
12144 (DECLARE_QUEUE_P): Use.
12145 (DEFINE_QUEUE_P): Use.
12146 (async_queue_event): Remove.
12147 (gdb_event_xfree): New.
12148 (initialize_event_loop): New.
12149 (process_event): Use QUEUE macros.
12150 (event_queue): Remove.
12151 (gdb_wait_for_event): Caller update.
12152 (check_async_event_handlers): Likewise.
12153 (poll_timers): Likewise.
12154 * event-loop.h (initialize_event_loop): Declare.
12155 * event-loop.c (gdb_event_xfree): New.
12156 * top.c (gdb_init): Call initialize_event_loop.
12158 2013-01-25 Yao Qi <yao@codesourcery.com>
12160 * event-loop.c (async_queue_event): Remove one parameter
12161 'position'. Remove code handling 'position' == TAIL.
12162 (gdb_wait_for_event): Caller update.
12163 (check_async_event_handlers): Caller update.
12164 (poll_timers): Caller update.
12165 * event-loop.h (enum queue_position): Remove.
12167 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12169 * MAINTAINERS: Update my email.
12171 2013-01-25 Yao Qi <yao@codesourcery.com>
12173 * main.c (print_gdb_help): Remove "--epoch" from the help
12176 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12178 * symtab.c (skip_prologue_using_sal): Consider a file
12179 change the same as an increased line number
12181 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12183 * MAINTAINERS (Write After Approval): Add myself to the list.
12185 2013-01-24 Tom Tromey <tromey@redhat.com>
12187 * ada-lang.h (ada_decode_symbol): Make return type const.
12188 * ada-lang.c (ada_decode_symbol): Likewise.
12190 2013-01-23 Doug Evans <dje@google.com>
12192 * linespec.c (find_linespec_symbols): Make static.
12194 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12196 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12197 type on float conversion for complex type.
12199 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12201 Add a new class gdb.Architecture which exposes GDB's
12202 internal representation of architecture via GDB Python API.
12203 * Makefile.in: Add entries corresponding to the new file
12205 * NEWS (Python Scripting): Add entries for the new class
12206 gdb.Architecture and the new method gdb.Frame.architecture.
12207 * python/py-arch.c: Implement gdb.Architecture class.
12208 * python/py-frame.c (frapy_arch): Implement the method
12209 gdb.Frame.architecture().
12210 (frame_object_methods): Add 'architecture' to the method table.
12211 * python/python-internal.h: Add declarations of new utility
12213 * python/python.c (_initialize_python): Initialize
12214 gdb.Architecture class.
12216 2013-01-23 Doug Evans <dje@google.com>
12218 Work around binutils/15021.
12219 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12220 type_unit_group out of union s. All uses updated.
12221 (read_index_from_section): Watch for index version 8.
12222 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12223 an imported symtab.
12224 (write_psymtabs_to_index): Increment version number to 8.
12226 2013-01-22 Pedro Alves <palves@redhat.com>
12228 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12231 2013-01-22 Pedro Alves <palves@redhat.com>
12233 * annotate.c (annotate_breakpoints_changed): Rename to ...
12234 (annotate_breakpoints_invalid): ... this. Make static.
12235 (breakpoint_changed): Adjust.
12236 (_initialize_annotate): Always install the observers. Install a
12237 "breakpoint_created" observer.
12238 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12239 * breakpoint.c (set_breakpoint_condition)
12240 (breakpoint_set_commands, do_map_commands_command)
12241 (init_raw_breakpoint, clear_command, set_ignore_count)
12242 (enable_breakpoint_disp): No longer call
12243 annotate_breakpoints_changed.
12245 2013-01-22 Pedro Alves <palves@redhat.com>
12247 * annotate.c: Include "inferior.h".
12248 (frames_invalid_emitted)
12249 (breakpoints_invalid_emitted): New globals.
12250 (async_background_execution_p): New function.
12251 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12252 emitting the annotation if it has already been emitted.
12253 (annotate_display_prompt): New function.
12254 * annotate.h (annotate_display_prompt): New declaration.
12255 * event-top.c: Include annotate.h.
12256 (display_gdb_prompt): Call annotate_display_prompt.
12258 2013-01-22 Pedro Alves <palves@redhat.com>
12260 * annotate.c (ignore_count_changed): Delete.
12261 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12262 (annotate_ignore_count_change): Delete.
12263 (annotate_stopped): Don't emit a delayed breakpoints-changed
12265 * annotate.h (annotate_ignore_count_change): Delete.
12266 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12267 annotate_ignore_count_change.
12269 2013-01-22 Tom Tromey <tromey@redhat.com>
12271 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12272 require_rvalue for a register location.
12274 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12276 * breakpoint.c (print_one_breakpoint_location): Add MI
12277 field 'thread-groups' when printing a breakpoint.
12278 (output_thread_groups): New function.
12280 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12282 * python/lib/gdb/commands/explore.py
12283 (CompoundExplorer.explore_expr): Correct the name of a method
12285 (ExploreTypeCommand.invoke): Add a missing 'return'.
12287 2013-01-21 Tom Tromey <tromey@redhat.com>
12289 * gdb_obstack.h (obconcat): Move declaration here, from...
12290 * symfile.h (obconcat): ... here.
12291 * gdb_obstack.c: New file.
12292 (obconcat): Move from...
12293 * symfile.c (obconcat): ... here.
12294 * Makefile.in (SFILES): Add gdb_obstack.c.
12295 (COMMON_OBS): Add gdb_obstack.o.
12297 2013-01-21 Tom Tromey <tromey@redhat.com>
12299 * symfile.h (obsavestring): Don't declare.
12300 * symfile.c (obsavestring): Remove.
12301 * ada-exp.y: Use obstack_copy0, not obsavestring.
12302 * ada-lang.c: Use obstack_copy0, not obsavestring.
12303 * coffread.c: Use obstack_copy0, not obsavestring.
12304 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12305 * dbxread.c: Use obstack_copy0, not obsavestring.
12306 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12307 * jit.c: Use obstack_copy0, not obsavestring.
12308 * mdebugread.c: Use obstack_copy0, not obsavestring.
12309 * psymtab.c: Use obstack_copy0, not obsavestring.
12310 * stabsread.c: Use obstack_copy0, not obsavestring.
12311 * xcoffread.c: Use obstack_copy0, not obsavestring.
12313 2013-01-21 Tom Tromey <tromey@redhat.com>
12315 * dwarf2read.c (fixup_go_packaging): Save package name
12316 on objfile obstack.
12317 * gdbtypes.c (init_type): Don't copy name.
12319 2013-01-21 Tom Tromey <tromey@redhat.com>
12321 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12323 (struct attribute) <u.str>: Now const.
12324 (struct fnfieldlist) <name>: Now const.
12325 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12326 (partial_die_parent_scope): Make return type const.
12327 (partial_die_full_name, add_partial_symbol): Update.
12328 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12330 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12331 (read_file_scope, read_func_scope, dwarf2_add_field)
12332 (dwarf2_add_member_fn, read_structure_type)
12333 (process_enumeration_scope, read_array_type, read_module_type)
12334 (read_base_type, read_subrange_type): Update.
12335 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12336 (new_symbol_full, guess_full_die_structure_name): Update.
12337 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12338 (dwarf2_name): Return const type.
12339 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12342 2013-01-21 Tom Tromey <tromey@redhat.com>
12344 * gdbtypes.c (init_type): Make 'name' const.
12345 * gdbtypes.h (init_type): Update.
12347 2013-01-21 Tom Tromey <tromey@redhat.com>
12349 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12350 (start_symtab): Make 'name' and 'dirname' const. Use
12351 set_last_source_file.
12352 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12353 (last_source_file): Define. Now static.
12354 (set_last_source_file, get_last_source_file): New functions.
12355 * buildsym.h (last_source_file): Don't declare.
12356 (start_symtab): Update.
12357 (set_last_source_file, get_last_source_file): Declare.
12358 * coffread.c (complete_symtab): Use set_last_source_file.
12359 (coff_end_symtab): Likewise.
12360 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12361 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12362 set_last_source_file.
12363 (process_one_symbol): Use get_last_source_file.
12364 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12365 (psymtab_to_symtab_1): Use get_last_source_file.
12366 * xcoffread.c (process_linenos): Use get_last_source_file.
12367 (complete_symtab): Use set_last_source_file.
12368 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12369 (scan_xcoff_symtab): Use set_last_source_file.
12371 2013-01-21 Tom Tromey <tromey@redhat.com>
12373 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12374 (symbol_set_names): Remove casts. Handle field const-ness.
12376 2013-01-21 Tom Tromey <tromey@redhat.com>
12378 * dwarf2read.c (new_symbol_full): Remove cast.
12379 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12380 * symtab.h (symbol_set_demangled_name): Update.
12382 2013-01-21 Tom Tromey <tromey@redhat.com>
12384 * main.c (captured_main): Call bfd_init.
12386 2013-01-21 Tom Tromey <tromey@redhat.com>
12388 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12389 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12390 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12393 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12395 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12397 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12399 Fix gdb.fortran/common-block.exp crash in PIE mode.
12400 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12402 * f-valprint.c (info_common_command_for_block): Expect
12403 LOC_COMMON_BLOCK in gdb_assert.
12404 * symtab.h (struct general_symbol_info): Update comment for the
12405 common_block member.
12406 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12407 (enum address_class): New member LOC_COMMON_BLOCK.
12409 2013-01-18 David Blaikie <dblaikie@gmail.com>
12411 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12413 2013-01-18 Tom Tromey <tromey@redhat.com>
12416 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12417 Call require_rvalue.
12419 2013-01-18 Yao Qi <yao@codesourcery.com>
12421 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12422 (dbx_read_symtab): New declaration.
12423 (dbx_psymtab_to_symtab): Delete.
12424 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12425 Rename parameter PST to SELF. Exchanged two parameters.
12426 (start_psymtab): Caller update.
12427 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12428 (dwarf2_read_symtab): New declaration.
12429 (dwarf2_psymtab_to_symtab): Delete.
12430 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12431 Rename parameter PST to SELF. Exchanged two parameters.
12432 (create_partial_symtab): Caller update.
12433 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12434 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12435 Rename parameter PST to SELF. Exchanged two parameters.
12436 (parse_partial_symbols, new_psymtab): Caller update.
12437 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12439 * psymtab.c (psymtab_to_symtab): Caller update.
12440 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12441 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12442 Rename parameter PST to SELF. Exchanged two parameters.
12443 (xcoff_start_psymtab): Caller update.
12445 2013-01-18 Yao Qi <yao@codesourcery.com>
12447 * infrun.c (proceed): Rename local variable 'oneproc' to
12450 2013-01-17 Doug Evans <dje@google.com>
12452 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12453 (dw2_build_type_unit_groups): Delete. All uses updated.
12455 * symtab.h (struct symbol_search): Add comment.
12457 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12459 * symtab.c (compare_filenames_for_search): New comment for
12462 2013-01-17 Tom Tromey <tromey@redhat.com>
12464 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12466 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12468 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12469 initialize it by existing make_cleanup. Call new do_cleanups.
12471 2013-01-17 Tom Tromey <tromey@redhat.com>
12473 * cp-abi.c (cp_abi_completer): New function.
12474 (_initialize_cp_abi): Set completer for "set cp-abi".
12476 2013-01-17 Tom Tromey <tromey@redhat.com>
12478 * mem-break.c: Remove obsolete comment.
12479 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12481 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12483 * jit.c (jit_reader_load_command): Interpret the jit reader name
12484 as an absolute path if it begins with a forward slash.
12486 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12490 * jit.c (finalize_symtab): Ensure that only the global block has a
12493 2013-01-17 Pedro Alves <palves@redhat.com>
12495 * acinclude.m4: Include ../config/plugins.m4,
12496 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12497 * Makefile.in (aclocal_m4_deps): Update.
12498 * aclocal.m4: Renegerate.
12500 2013-01-16 Doug Evans <dje@google.com>
12502 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12504 2013-01-16 Pedro Alves <palves@redhat.com>
12505 Tom Tromey <tromey@redhat.com>
12508 * NEWS: Add "catch signal".
12509 * breakpoint.c (base_breakpoint_ops): No longer static.
12510 (bpstat_explains_signal): New function.
12511 (init_catchpoint): No longer static.
12512 (base_breakpoint_explains_signal): New function.
12513 (base_breakpoint_ops): Initialize new field.
12514 * breakpoint.h (enum bpstat_signal_value): New.
12515 (struct breakpoint_ops) <explains_signal>: New field.
12516 (bpstat_explains_signal): Remove macro, declare as function.
12517 (base_breakpoint_ops, init_catchpoint): Declare.
12518 * break-catch-sig.c: New file.
12519 * inferior.h (signal_catch_update): Declare.
12520 * infrun.c (signal_catch): New global.
12521 (handle_syscall_event): Update for change to
12522 bpstat_explains_signal.
12523 (handle_inferior_event): Likewise. Always handle random signals
12525 (signal_cache_update): Check signal_catch.
12526 (signal_catch_update): New function.
12527 (_initialize_infrun): Initialize signal_catch.
12528 * Makefile.in (SFILES): Add break-catch-sig.c.
12529 (COMMON_OBS): Add break-catch-sig.o.
12531 2013-01-16 Tom Tromey <tromey@redhat.com>
12533 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12534 (print_one_catch_solib, print_one_catch_syscall)
12535 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12538 2013-01-16 Yao Qi <yao@codesourcery.com>
12540 * printcmd.c (current_display_number): Make it static.
12542 2013-01-16 Yao Qi <yao@codesourcery.com>
12544 * infcmd.c (step_once): Don't check '!single_inst' as it was
12547 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12549 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12551 2013-01-14 Tom Tromey <tromey@redhat.com>
12553 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12555 * command.h (add_setshow_string_noescape_cmd): Update.
12556 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12557 (complete_set_gnutarget): New function.
12558 (_initialize_core): Set the "set gnutarget" completer.
12560 2013-01-14 Tom Tromey <tromey@redhat.com>
12563 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12564 (c_type_print_modifier): Likewise.
12565 * dwarf2read.c (read_tag_restrict_type): New function.
12566 (read_type_die_1): Handle DW_TAG_restrict_type.
12567 * gdbtypes.c (make_restrict_type): New function.
12568 (recursive_dump_type): Handle TYPE_RESTRICT.
12569 * gdbtypes.h (enum type_flag_values): Renumber.
12570 (enum type_instance_flag_value): Add
12571 TYPE_INSTANCE_FLAG_RESTRICT.
12572 (TYPE_RESTRICT): New macro.
12573 (make_restrict_type): Declare.
12575 2013-01-14 Tom Tromey <tromey@redhat.com>
12578 * psymtab.c (struct psymtab_state): New.
12579 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12581 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12582 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12584 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12585 Pedro Alves <palves@redhat.com>
12589 * remote.c (remote_threads_info): Make a copy of the reply from
12590 qfThreadInfo and use that instead of rs->buf.
12592 2013-01-14 Yao Qi <yao@codesourcery.com>
12594 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12595 (dbx_psymtab_to_symtab): Likewise.
12596 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12597 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12598 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12600 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12602 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12603 make_cleanup_restore_current_language. Call set_language. Move
12604 OLD_CHAIN and INNER_CHAIN cleanups.
12605 * utils.c (do_restore_current_language)
12606 (make_cleanup_restore_current_language): New functions.
12607 * utils.h (make_cleanup_restore_current_language): New declaration.
12609 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12611 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12612 non-existing files.
12614 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12615 non-existing files if FILENAME is already absolute.
12617 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12619 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12620 fputs_filtered. Append trailing newline.
12622 2013-01-11 Yao Qi <yao@codesourcery.com>
12623 Stan Shebs <stan@codesourcery.com>
12625 * psymtab.c (init_psymbol_list): Clarify the comment.
12627 2013-01-11 Yao Qi <yao@codesourcery.com>
12629 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12630 (update_dprintf_command_list): Assert that 'printf_line' is
12631 non-null. Remove condition check.
12633 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12636 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12638 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12640 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12642 2013-01-09 Anthony Green <green@moxielogic.com>
12644 * cp-abi.c (cplus_print_vtable): Don't return value from void
12646 * ada-lang.c (re_set_catch_assert): Ditto.
12648 2013-01-09 Doug Evans <dje@google.com>
12650 * symfile.h (quick_symbol_functions): Delete member
12651 pre_expand_symtabs_matching. All uses removed.
12652 * dwarf2read.c (dw2_lookup_symbol): Implement.
12653 (dw2_do_expand_symtabs_matching): Delete.
12654 (dw2_pre_expand_symtabs_matching): Delete.
12655 (struct dw2_symtab_iterator): New type.
12656 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12657 (dw2_expand_symtabs_for_function): Rewrite.
12658 (dwarf2_gdb_index_functions): Update.
12659 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12660 (psym_functions): Update.
12662 2013-01-09 Tom Tromey <tromey@redhat.com>
12664 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12665 * configure: Rebuild.
12666 * configure.ac: Add somread.o to the build if BFD has SOM
12668 * somread.c: Include som/aout.h, not syms.h.
12669 (som_symtab_read): Use som_external_symbol_dictionary_record.
12670 Unpack records manually.
12671 (_initialize_somread): Declare.
12673 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12675 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12676 Cast return_address to 64bits.
12678 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12680 * printcmd.c: Remove define of function output_command.
12681 * tracepoint.c: Remove extern of function output_command.
12682 * valprint.h: (output_command): New extern.
12684 2013-01-07 Tom Tromey <tromey@redhat.com>
12686 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12688 (objc_language_defn): Use c_printchar, c_printstr,
12691 2013-01-07 Tom Tromey <tromey@redhat.com>
12695 * ada-valprint.c (printstr, print_field_values): Remove
12697 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12699 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12701 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12702 * main.c (captured_main): Remove "epoch" argument.
12703 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12704 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12705 * p-valprint.c (pascal_object_print_value_fields): Remove
12707 * printcmd.c (print_command_1): Remove 'inspect' argument.
12708 (print_command, call_command): Update.
12709 (inspect_command): Remove.
12710 (_initialize_printcmd): Make "inspect" an alias for "print".
12711 * top.c (epoch_interface): Remove.
12712 * top.h (epoch_interface): Remove.
12713 * valprint.c (user_print_options): Update.
12714 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12715 * valprint.h (struct value_print_options) <inspect_it>: Remove
12718 2013-01-04 Tom Tromey <tromey@redhat.com>
12720 * valprint.h (read_string): Add 'extern'.
12722 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12724 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12725 used to decide whether to define darwin_read_dyld_info or not.
12727 2013-01-03 Pierre Muller <muller@sourceware.org>
12729 * main.c (relocate_gdb_directory): Avoid calling stat function
12732 2013-01-03 Yao Qi <yao@codesourcery.com>
12734 * psymtab.c (fixup_psymbol_section): Update declaration.
12735 (fixup_psymbol_section): Remove code returning value.
12737 2013-01-03 Yao Qi <yao@codesourcery.com>
12739 * symtab.h: Remove some out of date comments.
12740 (enum exception_event_kind): Move it ...
12741 * breakpoint.c: ... here.
12743 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12746 * darwin-nat.c (darwin_read_dyld_info): Only build if
12747 TASK_DYLD_INFO_COUNT is defined.
12748 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12749 TASK_DYLD_INFO_COUNT is defined.
12751 2013-01-02 Tom Tromey <tromey@redhat.com>
12753 * symfile.h (struct ecoff_debug_hack): Remove.
12754 * objfiles.c: Don't include mdebugread.h.
12756 2013-01-02 Tom Tromey <tromey@redhat.com>
12758 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12759 * configure.ac: Check for Mach-O support in BFD. Update
12761 * configure: Rebuild.
12763 2013-01-02 Tom Tromey <tromey@redhat.com>
12765 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12766 * configure.ac: Use GDB_AC_CHECK_BFD.
12767 * configure: Rebuild.
12769 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12771 * MAINTAINERS: Update my email.
12773 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12775 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12777 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12779 * rs6000-nat.c (bss_data_overlap): New function.
12780 (vmap_symtab): Use it to adjust the .bss section's offset.
12782 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12784 Update year range in copyright notice of all files.
12786 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12788 * top.c (print_gdb_version): Update copyright year.
12790 For older changes see ChangeLog-2012.
12796 version-control: never