Message-ID: <33E99C56.1A5C@gapeach.com> Date: Thu, 07 Aug 1997 05:58:46 -0400 From: Jacob Martin Reply-To: jake AT gapeach DOT com MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp,rec.games.programmer,comp.lang.c Subject: GDB Info for my problem above...Þ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: ip157.iainc.net Lines: 91 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ok, when I run it in GDB, here's what I get... Program received signal SIGSEGV, Segmentation fault. 0x978a in set_gfx_mode () (gdb) inf frame Stack level 0, frame at 0x0: eip = 0x978a in set_gfx_mode; saved eip 0x11fee0 (FRAMELESS), Arglist at unknown address. Locals at unknown address, Previous frame's sp is 0x0 Saved registers: eip at 0x4 What does eip usually do/point to? what's a frame's sp? (gdb)disass 0x978a Dump of assembler code for function set_gfx_mode: 0x9740 : subl $0x40,%esp 0x9743 : pushl %ebp 0x9744 : pushl %edi 0x9745 : pushl %esi 0x9746 : pushl %ebx 0x9747 : movl 0x54(%esp,1),%ebx 0x974b : movl 0x60(%esp,1),%ebp 0x974f : movl 0x64(%esp,1),%edi 0x9753 : movl 0x2bf5c,%eax 0x9758 : movl %eax,0x18(%esp,1) 0x975c : call 0x95d0 <_check_gfx_virginity> 0x9761 : pushl $0x0 0x9763 : call 0x906c 0x9768 : movl $0x0,0x2c0f4 0x9772 : addl $0x4,%esp 0x9775 : movl 0x2bb18,%esi 0x977b : testl %esi,%esi 0x977d : je 0x97dc 0x977f : movl 0x2bb1c,%edx 0x9785 : xorl %eax,%eax 0x9787 : movl 0x24(%edx),%ecx 0x978a : call *%ecx 0x978c : xorl %eax,%eax 0x978e : movl 0x20(%edx),%ecx 0x9791 : call *%ecx 0x9793 : movl 0x10(%esi),%edx 0x9796 : testl %edx,%edx 0x9798 : je 0x97a3 0x979a : pushl $0x0 When I run it from the prompt, it just sits there....and locks up... Thanks again... Jake ...