~ubuntu-branches/ubuntu/gutsy/pkg-create-dbgsym/gutsy

« back to all changes in this revision

Viewing changes to dhtest.compatenvvar/crash2.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-09-21 20:51:28 UTC
  • Revision ID: james.westby@ubuntu.com-20060921205128-4ooxk5bk1apja6p3
Tags: 0.14
* Use more elaborate test crash programs with a three-function deep stack,
  so that gdb's current 'Could not find the frame base' failure in the
  topmost function does not completely break the test suite.
* Add dhtest.dbg2 test case: Use dh_strip --keep-debug and manually move
  around the debug symbols to dhtest1-dbg. This replicates the current FTBFS
  of opal.
* dh_strip: Handle --keep-debug option gracefully to err on the safe side.
  Fixes current opal FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#include <math.h>
10
10
#include <signal.h>
11
11
 
12
 
int g( int x, int y )
 
12
double h()
13
13
{
14
14
    double a = 1./0;
15
15
    if (isinf(a))
16
16
        raise(SIGFPE);
17
 
    return x+y+(int) a;
 
17
    return a;
 
18
}
 
19
 
 
20
int g( int x, int y )
 
21
{
 
22
    
 
23
    return x+y+(int) h();
18
24
}
19
25
 
20
26
int f( int x )