~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/suspend.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2011-01-11 14:55:23 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110111145523-hb3ap33jpgf838lt
Tags: 4.8.7-0ubuntu1
* New upstream release v4.8.7 (NSPR_4_8_7_RTM)
* Refresh patches
  - update debian/patches/30_config_64bits.patch
  - update debian/patches/99_configure.patch
* Drop the link shuffeling now, as all upgraders to this version will be
  using a fixed package anyway
  - remove debian/libnspr4-0d.postinst
  - remove debian/libnspr4-0d.postrm
  - remove debian/libnspr4-0d.preinst
  - remove debian/libnspr4-0d.prerm
* Drop arch-specific symbols files for architectures we don't support
  - remove debian/libnspr4-0d.symbols.hurd_i386
  - remove debian/libnspr4-0d.symbols.ia64
  - remove debian/libnspr4-0d.symbols.lpia
* Ship the main SO files in an unversioned binary, as we don't have
  versioned SO's in Ubuntu. Maintain a transitional versioned binary
  package containing the versioned symlinks, to maintain compatibility with
  Debian
  - update debian/control
  - mass rename debian/libnspr4-0d* => debian/libnspr4*
  - update debian/rules
* Fix postinst-must-call-ldconfig - dh_makeshlibs doesn't seem to add
  the maintainer script hooks with the unversioned SO files, so add them
  manually
  - add debian/libnspr4.postinst
  - add debian/libnspr4.postrm

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        (PR_GLOBAL_THREAD == PR_GetThreadScope(thread)) ?
109
109
        "PR_GLOBAL_THREAD" : "PR_LOCAL_THREAD", i);
110
110
    registers = PR_GetGCRegisters(thread, 0, (int *)&words);
111
 
    printf("Regsters R0 = 0x%x R1 = 0x%x R2 = 0x%x R3 = 0x%x\n",
112
 
        registers[0],registers[1],registers[2],registers[3]);
 
111
    if (registers)
 
112
        printf("Registers R0 = 0x%x R1 = 0x%x R2 = 0x%x R3 = 0x%x\n",
 
113
            registers[0],registers[1],registers[2],registers[3]);
113
114
    printf("Stack Pointer = 0x%lx\n", PR_GetSP(thread));
114
115
    return PR_SUCCESS;
115
116
}
149
150
    PR_SuspendAll();
150
151
    PR_EnumerateThreads(print_thread, NULL);
151
152
    registers = PR_GetGCRegisters(me, 1, (int *)&words);
152
 
    printf("My Registers: R0 = 0x%x R1 = 0x%x R2 = 0x%x R3 = 0x%x\n",
153
 
        registers[0],registers[1],registers[2],registers[3]);
 
153
    if (registers)
 
154
        printf("My Registers: R0 = 0x%x R1 = 0x%x R2 = 0x%x R3 = 0x%x\n",
 
155
            registers[0],registers[1],registers[2],registers[3]);
154
156
    printf("My Stack Pointer = 0x%lx\n", PR_GetSP(me));
155
157
    PR_ResumeAll();
156
158