From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26571 invoked by alias); 13 Nov 2001 10:42:06 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 26522 invoked from network); 13 Nov 2001 10:42:04 -0000 Received: from unknown (HELO hrtades9.atea.be) (194.78.143.109) by sourceware.cygnus.com with SMTP; 13 Nov 2001 10:42:04 -0000 Received: from hrtades10.atea.be (siemens.atea.be [139.10.143.141]) by hrtades9.atea.be with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id T8JB184F; Tue, 13 Nov 2001 11:41:22 +0100 Received: by siemens.atea.be with Internet Mail Service (5.5.2653.19) id ; Tue, 13 Nov 2001 11:40:59 +0100 Message-ID: From: Vermeulen Jan To: "'gdb@sources.redhat.com'" Subject: powerpc simulator questions Date: Thu, 01 Nov 2001 15:25:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2001-11/txt/msg00025.txt.bz2 Hello everybody, I'm already subscribed to the crossgcc list for some time now, so i thought "why not venture into the gdb-world as well?" :) I noticed that you have the option of stepping through your code by means of a simulator. Whoever invented that: hats off :) It's really usefull. (if i ever get it working... hehe) However, being a complete n00b on the gdb-topic, I compiled/installed Insight-5.0 with the "--target=powerpc-eabi" option. I made a little test program, called 'destest' which simply encrypts and decrypts an 8 byte value. No include files are used, there is only destest.c I compiled it with "powerpc-eabi-gcc -g -Wl,-Tmylink.ld -o destest destest.c". mylink.ld: OUTPUT_ARCH(powerpc) /* Specify the output machine architecture */ ENTRY(main); /* MEMORY { vects (rx): ORIGIN = 0x0, LENGTH = 1023 rom1 (rx): ORIGIN = 0x400, LENGTH= 511K ramcode (rwx): ORIGIN = 0x800000, LENGTH = 2048K ramdata (rw): ORIGIN = 0x0A00000, LENGTH = 2048K } */ SECTIONS { . = 0x0; .vector0 : { LONG(ABSOLUTE( main )) } . = 0x400; .text : { *(.text) } . = 0xA00000; .data : { *(.data) } .bss : { *(.bss) end = ALIGN(0x8); } } Then i ran insight, did "target sim", "load" and it spit out something like /openprom/init/load-binary: broken transfer. I have no clue as to what's going on. I first made the directory 'openprom' under root, but i have a hunch that's not really what i should be doing. My guess is that /openprom is something in memory being used by powerpc-eabi-gdb. Can anybody help me? Or point me to a HOWTO/FAQ/manual? I read the gdb manual and the psim manual, but no real step-by-step (holding-the-newbie's-hand) procedure is explained there. :-) Thank you in advance, Jan