components/gdb/README
branchs11-update
changeset 2814 dff3ca0071d6
parent 2813 db0bfa0fa498
child 2815 d5aa6839ee2e
equal deleted inserted replaced
2813:db0bfa0fa498 2814:dff3ca0071d6
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 
       
    24 NAME:             gdb
       
    25 VERSION:          6.8
       
    26 DESCRIPTION:      GDB: The GNU Project Debugger
       
    27 LICENSE:          GPLv3
       
    28 BUGTRAQ:          solaris/utility/gnu_compiler
       
    29 COMMENTS:         
       
    30 
       
    31 This file contains information about the emacs package within the Userland
       
    32 consolidation. Along with the comments in the Makefile, it documents any
       
    33 deviations from standard Userland or emacs practice, as well as miscellaneous
       
    34 information needed to understand how this component is put together.
       
    35 
       
    36 
       
    37 We made the following changes to the gdb sources:
       
    38 
       
    39 gdb/auxv.c (gdb.auxv.c.patch);
       
    40     This patch accounts for differences between the aux vector on
       
    41     solaris versus Linux and big endian (Sparc) versus little
       
    42     endian (AMD/Intel):
       
    43 
       
    44     - Solaris pads out the auxv for 32 bit process to 64 bits when
       
    45       being read by a 64 bit process.  Use the native pointer size in
       
    46       gdb itself to determine the auxv field size.
       
    47 
       
    48     - On 64 bit Solaris SPARC, i.e. big endian, the type will be in the
       
    49       left 4 bytes for 32 bit processes and the right 4 bytes for 64
       
    50       bit processes.  The padding is 0.
       
    51 
       
    52 gdb/fork-child.c (gdb.fork-child.c.patch):
       
    53     Solaris could require 2 or 3 exec's to start the debugged process
       
    54     depending on whether the user's SHELL is isaexec'ed or not.  Modify
       
    55     startup_inferior to loop until it finds the correct process rather
       
    56     than assuming a fixed count.
       
    57 
       
    58 gdb/solib-svr4.c (gdb.solib-svr4.patch):
       
    59     Enhance gdb's dectection of the runtime linker to include amd64 and
       
    60     sparcv9 when debugging 64 bit processes.