public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* x86 EH on BSD/OS with snapshot gas not working..
@ 1998-01-04 21:10 Shigeya Suzuki
  1998-01-04 22:28 ` Robert Lipe
  1998-01-06 14:09 ` Jeffrey A Law
  0 siblings, 2 replies; 4+ messages in thread
From: Shigeya Suzuki @ 1998-01-04 21:10 UTC (permalink / raw)
  To: egcs

Assuming EH is working fine on x86 linux, I'm trying to figure out why
EH is not working in my BSD/OS 3.1 box. (i386-pc-bsdi3.1)

I read the FAQ and tried both binutils-2.8.1.0.15 and gas-970915, no
luck.

Any idea why this is not working?

I'm testing egcs-971225, with following very simple test program. make 
bootstrap done without problem.	

This small sample working fine with gcc2.7.2.x. Is there anything I
misunderstood??


Shigeya Suzuki						shigeya@foretune.co.jp
Foretune Co., Ltd.		     http://www.foretune.co.jp/people/shigeya/


------------------------------

#include <iostream.h>

class X {
public:
    X() {};
};

class Y : public X {
public:
    Y() : X() {};
};

main()
{
    cerr << "start" << endl;
    try {
	throw Y();
    }
    catch (Y& y) {
	cerr << "Cought Y\n";
    }

    cerr << "end" << endl;
}

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

* Re: x86 EH on BSD/OS with snapshot gas not working..
  1998-01-04 21:10 x86 EH on BSD/OS with snapshot gas not working Shigeya Suzuki
@ 1998-01-04 22:28 ` Robert Lipe
  1998-01-04 22:44   ` Shigeya Suzuki
  1998-01-06 14:09 ` Jeffrey A Law
  1 sibling, 1 reply; 4+ messages in thread
From: Robert Lipe @ 1998-01-04 22:28 UTC (permalink / raw)
  To: Shigeya Suzuki; +Cc: egcs

> Assuming EH is working fine on x86 linux, I'm trying to figure out why
> EH is not working in my BSD/OS 3.1 box. (i386-pc-bsdi3.1)

EH works pretty well on several x86 targets, including GNU/Linux, 
OpenServer, and Unixware.   

Do you get any hints what isn't working?   Error messages, warnings,
or a description of the erroneous behaviour would be helpful.

> I'm testing egcs-971225, with following very simple test program. make 
> bootstrap done without problem.	

Did the compiler you built pass the provided EGCS testsuite?   This
will help us better understand if it's something unique to BSD/OS or
your environment or whatever.

I took  your sample program and ran it through whatever version of 
egcs I happened to have laying around.

(robertl) rjlhome:/tmp
$ g++  --version
egcs-2.90.22 971220 (egcs-1.01 beta)
(robertl) rjlhome:/tmp
$ g++ -melf d.C
(robertl) rjlhome:/tmp
$ ./a.out
start
Cought Y
end


So, your example does do what I'd expect it to do under OpenServer, but
we don't know if it does what it did for you, since you really didn't say.


-- 
Robert Lipe       http://www.dgii.com/people/robertl       robertl@dgii.com

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

* Re: x86 EH on BSD/OS with snapshot gas not working..
  1998-01-04 22:28 ` Robert Lipe
@ 1998-01-04 22:44   ` Shigeya Suzuki
  0 siblings, 0 replies; 4+ messages in thread
From: Shigeya Suzuki @ 1998-01-04 22:44 UTC (permalink / raw)
  To: robertl; +Cc: egcs

>>>>> "robertl" == Robert Lipe <robertl@dgii.com> writes:

robertl> Do you get any hints what isn't working?   Error messages, warnings,
robertl> or a description of the erroneous behaviour would be helpful.

Forget to show you stack trace; it just can't find correct error
handler, thus calling terminate to kill itself.

pooh 285% gdb a.out a.out.core 
Core was generated by `a.out'.
Program terminated with signal 6, Abort trap.
#0  0x122e5 in kill ()
(gdb) bt
#0  0x122e5 in kill ()
#1  0xf770 in abort ()
#2  0xaf38 in __terminate ()
#3  0xaf42 in __terminate ()
#4  0xb421 in __throw ()
#5  0x118 in main ()
(gdb) q


robertl> Did the compiler you built pass the provided EGCS testsuite?   This
robertl> will help us better understand if it's something unique to BSD/OS or
robertl> your environment or whatever.

I've ran test while ago, but not with this compiler with latest
testsuite. I'm running the test now.

robertl> So, your example does do what I'd expect it to do under
robertl> OpenServer, but we don't know if it does what it did for you,
robertl> since you really didn't say.

Right.  In my case, it dumps core as above stack trace shows. It looks
working in your environment..

I'll send test result when it finish.

shigeya

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

* Re: x86 EH on BSD/OS with snapshot gas not working..
  1998-01-04 21:10 x86 EH on BSD/OS with snapshot gas not working Shigeya Suzuki
  1998-01-04 22:28 ` Robert Lipe
@ 1998-01-06 14:09 ` Jeffrey A Law
  1 sibling, 0 replies; 4+ messages in thread
From: Jeffrey A Law @ 1998-01-06 14:09 UTC (permalink / raw)
  To: Shigeya Suzuki; +Cc: egcs

  In message < 19980105141009O.shigeya@foretune.co.jp >you write:
  > Assuming EH is working fine on x86 linux, I'm trying to figure out why
  > EH is not working in my BSD/OS 3.1 box. (i386-pc-bsdi3.1)
  > 
  > I read the FAQ and tried both binutils-2.8.1.0.15 and gas-970915, no
  > luck.
  > 
  > Any idea why this is not working?
  > 
  > I'm testing egcs-971225, with following very simple test program. make 
  > bootstrap done without problem.	
  > 
  > This small sample working fine with gcc2.7.2.x. Is there anything I
  > misunderstood??
Well, I don't think we've had anyone try to get the dwarf2 EH working
on bsdi3.1.

I think we should start simple -- I think eh6.C is the simplest EH execution
test in the testsuite.  Is it working?  (sorry, I don't have your testresults
handy at the moment).  If it is working, what other eh tests from the testsuite
are working?

jeff

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

end of thread, other threads:[~1998-01-06 14:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-04 21:10 x86 EH on BSD/OS with snapshot gas not working Shigeya Suzuki
1998-01-04 22:28 ` Robert Lipe
1998-01-04 22:44   ` Shigeya Suzuki
1998-01-06 14:09 ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).