From: Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
To: Nitin Shah <NitinS2@KPITCummins.com>
Cc: gdb@sources.redhat.com
Subject: Re: GDB crash problem on cygwin.
Date: Thu, 05 May 2005 12:56:00 -0000 [thread overview]
Message-ID: <427A17E4.40200@codito.com> (raw)
In-Reply-To: <4A1BE23A7B777442B60F4B4916AE0F1305627CF5@sohm.kpit.com>
Hi,
With today's cvs and your testcase, (again you haven't mentioned which
version of gcc and binutils you used to build it.) With whatever older
version of the h8 toolchain that I have , on cygwin I didn't get any
problems with the simulator. (from GCC CVS head in July / August 04 and
binutils head in the same period . )
info frame gave me correct frame info and the simulator did not crash.
One way for you to go forward would be to run gdb within gdb and see
exactly where it crashes, then maybe you can analyze it further.
HTH
cheers
Ramana
>
> Breakpoint 1, main () at test.c:2
>
> Regards,
> Nitin Shah
>
>
> -----Original Message-----
> From: Ramana Radhakrishnan [mailto:ramana.radhakrishnan@codito.com]
> Sent: Wednesday, May 04, 2005 4:11 PM
> To: Nitin Shah
> Cc: gdb@sources.redhat.com
> Subject: Re: GDB crash problem on cygwin.
>
> Nitin Shah wrote:
>
>>Hi,
>>I have built gdb-6.3 on cygwin-1.5.9 for h8300 (coff and elf) target.
>>I tried to use command
>>(gdb) info frame, for h8300-elf target after putting breakpoint at
>
> main.
>
>>But it is crashing, although it works fine for h8300-coff target. I
>>have built the same gdb-6.3 on Linux, it works fine for both h8300-elf
>
>
>>and h8300-coff targets.
>>
>>**************test_code.c**************************
>>int main()
>>{
>> int i=1;
>> i++;
>> return 0;
>>}
>>***************************************************
>>Command to compile:
>>h8300-elf-gcc test_code.c -g
>>
>>Command to debug:
>>h8300-elf-gdb
>>(gdb) file a.out
>>(gdb) target sim
>>(gdb) load
>>(gdb) b 1
>>(gdb) r
>>(gdb) info frame
>
>
> set debug frame 1 and send the output on the list. Maybe someone can
> then see the error.
>
>
>
>
>
>
>>Here it crashes.
>
>
> What is the crash message ? Use the script command and send
> that output on the list.
>
>
> cheers
> Ramana
next prev parent reply other threads:[~2005-05-05 12:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-04 13:06 Nitin Shah
2005-05-05 12:56 ` Ramana Radhakrishnan [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-04 10:21 Nitin Shah
2005-05-04 10:41 ` Ramana Radhakrishnan
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=427A17E4.40200@codito.com \
--to=ramana.radhakrishnan@codito.com \
--cc=NitinS2@KPITCummins.com \
--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