~ubuntu-branches/ubuntu/utopic/libunwind/utopic-proposed

« back to all changes in this revision

Viewing changes to tests/test-static-link-gen.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Delahaye
  • Date: 2005-04-22 11:12:14 UTC
  • mto: (4.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050422111214-0m74olipxly1ra8a
Tags: upstream-0.98.5
ImportĀ upstreamĀ versionĀ 0.98.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
int
54
54
test_generic (void)
55
55
{
56
 
  unw_cursor_t c;
57
 
 
58
56
  if (verbose)
59
57
    printf (__FILE__": funcs[0]=%p\n", funcs[0]);
60
58
 
61
59
#ifndef UNW_REMOTE_ONLY
62
60
  {
63
61
    unw_context_t uc;
 
62
    unw_cursor_t c;
64
63
 
65
64
    unw_getcontext (&uc);
66
65
    unw_init_local (&c, &uc);
67
66
    unw_init_remote (&c, unw_local_addr_space, &uc);
 
67
 
 
68
    return unw_step (&c);
68
69
  }
69
 
  return unw_step (&c);
70
70
#else
71
71
  return 0;
72
72
#endif