From: Russell Shaw <rjshaw@netspace.net.au>
Cc: gdb@sources.redhat.com
Subject: Re: exec
Date: Sun, 02 Jan 2005 07:12:00 -0000 [thread overview]
Message-ID: <41D79FB0.4080902@netspace.net.au> (raw)
In-Reply-To: <20050102034735.GA6823@nevyn.them.org>
Daniel Jacobowitz wrote:
> On Sun, Jan 02, 2005 at 02:44:55PM +1100, Russell Shaw wrote:
>
>>Hi,
>>When i step into:
>>
>> (*func) (program, argv);
>>
>>gdb exits.
>>
>>func is execv, and program is "/usr/local/libexec/gcc/avr/3.4.3/cc1"
>>
>>How do i get into cc1 so i can set breakpoints there?
>
> Run it by hand - gcc -v will show you the command line. GDB has very
> limited support for debugging across exec, depending on your platform.
Hi,
Cc1 runs ok at the command line:
/usr/local/libexec/gcc/avr/3.4.3/cc1 -quiet -v main.c -quiet -dumpbase main.c -dP -mmcu=atmega16
-auxbase main -g -O0 -Wall -Wno-unused -version -o /tmp/cccVrfqY.s
When i try to run the same thing in gdb, it crashes:
Program received signal SIGSEGV, Segmentation fault.
0x080f3cd1 in init_emit () at ../../gcc-3.4.3/gcc/emit-rtl.c:5354
/home/russell/SRC/gcc-3.4.3/gcc/emit-rtl.c:5354:138102:beg:0x80f3cd1
(gdb)
It crashes in emit-rtl.c here:
/* Indicate that the virtual registers and stack locations are
all pointers. */
REG_POINTER (stack_pointer_rtx) = 1;
next prev parent reply other threads:[~2005-01-02 7:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-02 3:40 exec Russell Shaw
2005-01-02 3:47 ` exec Daniel Jacobowitz
2005-01-02 7:12 ` Russell Shaw [this message]
2005-01-02 9:16 ` exec Russell Shaw
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41D79FB0.4080902@netspace.net.au \
--to=rjshaw@netspace.net.au \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox