Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* 1) SIGTRAP issue :/ 2) libbfd
@ 2001-06-25  9:21 Keith Warno
  2001-06-25 10:17 ` Keith Warno
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Warno @ 2001-06-25  9:21 UTC (permalink / raw)
  To: gdb list

1) I recently upgraded glibc on one linux box to 2.2.2.  I built it from
source tarballs and now, for whatever reason, I cannot debug any
programs with gdb.  I wind up with something like the following:

(gdb) run
Starting program: /home/kw/a.out 

Program received signal SIGTRAP, Trace/breakpoint trap.
Cannot remove breakpoints because program is no longer writable.
It might be running in another process.
Further execution is probably impossible.
0x40001fa0 in ?? ()
(gdb)

Hrmm ok so maybe I left out a configuration option or two with the glibc
build?  If so, any thoughts?  I haven't any idea.
gcc here is ver. 2.95.3 & the kernel is 2.2.19.

2) libbfd is distributed with gdb and binutils.  I would like to rebuild
gcc, gdb, and binutils and I know that the three of them can be built
together.  Question is: will the differing versions of libbfd provided
with gdb and binutils potentially cause any issues, and if so how could
such issues be avoided?

Regards,
kw

--                           
| Keith Warno                       cell: +1 609-209-5800
| http://www.valaran.com/           work: +1 609-716-7200 x243
| Valaran Corporation Penguin Guy   SMS : kw-mobile@valaran.com
+--------------------------------------------------------------//


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 1) SIGTRAP issue :/ 2) libbfd
  2001-06-25  9:21 1) SIGTRAP issue :/ 2) libbfd Keith Warno
@ 2001-06-25 10:17 ` Keith Warno
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Warno @ 2001-06-25 10:17 UTC (permalink / raw)
  To: gdb list

Keith Warno wrote:
> 
> 1) I recently upgraded glibc on one linux box to 2.2.2.  I built it from
> source tarballs and now, for whatever reason, I cannot debug any
> programs with gdb.  I wind up with something like the following:
> 
> (gdb) run
> Starting program: /home/kw/a.out
> 
> Program received signal SIGTRAP, Trace/breakpoint trap.
> Cannot remove breakpoints because program is no longer writable.
> It might be running in another process.
> Further execution is probably impossible.
> 0x40001fa0 in ?? ()
> (gdb)

*Sigh*.  I fight with this for a day, nearly give up, then post to the
list.  30 mins after I post, the solution dawns on me.

I have a somewhat weird login setup as my login shell (bash, of course)
is a child of ssh-agent.  In other words, after login, my shell if the
equivalent of ``ssh-agent /bin/bash --login''.  This is for convenience
in the world of SSH more than anything else but now that I think of it,
probably not the wisest of ideas.

For reasons unknown to me, when my login bash shell is a child of
ssh-agent gdb barfs as shown above.  When not a child of ssh-agent gdb
works fine.  The question for the members of this list is simply: why? 
I unfortunately don't know enough about signal handling in the context
of the shell to take a stab at this one.  :/

Regards,
kw
--                           
| Keith Warno                       cell: +1 609-209-5800
| http://www.valaran.com/           work: +1 609-716-7200 x243
| Valaran Corporation Penguin Guy   SMS : kw-mobile@valaran.com
+--------------------------------------------------------------//


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 1) SIGTRAP issue :/ 2) libbfd
@ 2001-06-25  9:41 Michael Elizabeth Chastain
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Elizabeth Chastain @ 2001-06-25  9:41 UTC (permalink / raw)
  To: gdb, keith.warno

I can address the libbfd issue.

I've appended (slightly edited) versions of the scripts that I use
to check out and combine the gcc tree from gcc.gnu.org and the
gdb/dejagnu/binutils modeuls from anoncvs.cygnus.com.  Every weekend, I
build from this combined tree on several native linux and native solaris
machines.

For each file and subdirectory, I choose either the gcc version or the
gdb/dejagnu/binutils version.  For bfd in particular, I choose the
gdb/dejagnu/binutils version.

If any of the scripts breaks on your system, you get to keep both pieces.

Other people have other ways of dealing with this, I just munged this up
around February 2001 for my own use.  Comments welcomed.

Hope this helps,

Michael Elizabeth Chastain
<chastain@redhat.com>
"love without fear"



== fsf-checkout.sh

#! /bin/sh

# exit on error
# echo commands as they execute

set -e
set -x

# define path
# show who I am

PATH=/bin:/usr/bin
export PATH
date
hostname

# blow away existing directories

rm -rf CVS gcc src source-gcc source-src

# check out gcc

CVSROOT=:pserver:anoncvs@gcc.gnu.org:/cvs/gcc
export CVSROOT
expect -c 'spawn cvs login' -c 'expect password: ' -c 'send -- "anoncvs\r"' -c 'expect eof'
cvs -z 9 co -r gcc-3_0-branch gcc
mv gcc source-gcc
rm -rf CVS

# update gcc

cd source-gcc
contrib/gcc_update --touch
cd ..

# check out src

CVSROOT=:pserver:anoncvs@anoncvs.cygnus.com:/cvs/src
export CVSROOT
expect -c 'spawn cvs login' -c 'expect password: ' -c 'send -- "anoncvs\r"' -c 'expect eof'
cvs -z 9 co gdb dejagnu binutils
mv src source-src
rm -rf CVS

# I am finished

du -sk *



=== fsf-combine.sh

#! /bin/sh

set -e
set -x

# IPL the target
rm -rf source
mkdir source

# Root files
cp -rl source-gcc/COPYING source
cp -rl source-gcc/COPYING.LIB source
cp -rl source-src/COPYING.NEWLIB source
cp -rl source-gcc/ChangeLog source/ChangeLog.gcc
cp -rl source-src/ChangeLog source/ChangeLog.src
cp -rl source-gcc/MAINTAINERS source/MAINTAINERS.gcc
cp -rl source-src/MAINTAINERS source/MAINTAINERS.src
cp -rl source-gcc/README source/README.gcc
cp -rl source-src/README source/README.src
cp -rl source-src/README-maintainer-mode source
cp -rl source-src/djunpack.bat source
cp -rl source-src/gettext.m4 source

# Configury files
cp -rl source-gcc/config source
cp -rl source-gcc/config-ml.in source
cp -rl source-src/config.guess source
cp -rl source-gcc/config.if source
cp -rl source-src/config.sub source
cp -rl source-gcc/configure source
cp -rl source-gcc/configure.in source
cp -rl source-gcc/ltcf-c.sh source
cp -rl source-gcc/ltcf-cxx.sh source
cp -rl source-gcc/ltcf-gcj.sh source
cp -rl source-gcc/ltconfig source
cp -rl source-gcc/ltmain.sh source
cp -rl source-src/setup.com source
cp -rl source-gcc/symlink-tree source

# Makefiles
cp -rl source-gcc/Makefile.in source
cp -rl source-gcc/libtool.m4 source
cp -rl source-src/makefile.vms source
cp -rl source-gcc/missing source
cp -rl source-gcc/mkdep source
cp -rl source-gcc/move-if-change source
cp -rl source-gcc/ylwrap source

# Install files
cp -rl source-gcc/install-sh source
cp -rl source-gcc/mkinstalldirs source

# Mpw files
cp -rl source-src/mpw-README source
cp -rl source-src/mpw-build.in source
cp -rl source-src/mpw-config.in source
cp -rl source-src/mpw-configure source
cp -rl source-src/mpw-install source

# Package directories
cp -rl source-src/bfd source
cp -rl source-src/binutils source
cp -rl source-gcc/boehm-gc source
cp -rl source-gcc/contrib source
cp -rl source-src/dejagnu source
cp -rl source-src/etc source
cp -rl source-src/expect source
cp -rl source-gcc/fastjar source
cp -rl source-src/gas source
cp -rl source-gcc/gcc source
cp -rl source-src/gdb source
cp -rl source-src/gprof source
cp -rl source-src/include source
cp -rl source-src/intl source
cp -rl source-src/ld source
# cp -rl source-gcc/libchill source
cp -rl source-gcc/libf2c source
cp -rl source-gcc/libffi source
cp -rl source-gcc/libiberty source
cp -rl source-gcc/libjava source
cp -rl source-gcc/libobjc source
cp -rl source-gcc/libstdc++-v3 source
cp -rl source-src/mmalloc source
cp -rl source-src/opcodes source
cp -rl source-src/readline source
cp -rl source-src/sim source
cp -rl source-src/tcl source
cp -rl source-src/texinfo source
cp -rl source-src/utils source
cp -rl source-gcc/zlib source


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-06-25 10:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-25  9:21 1) SIGTRAP issue :/ 2) libbfd Keith Warno
2001-06-25 10:17 ` Keith Warno
2001-06-25  9:41 Michael Elizabeth Chastain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox