From: Wolfgang Denk Date: Mon, 24 Mar 2003 09:05:33 +0100 Subject: [U-Boot-Users] Debug problem? In-Reply-To: Your message of "Mon, 24 Mar 2003 08:12:00 +0200." <002401c2f1cc$47ede2b0$3002a8c0@yigitcan> Message-ID: <20030324080539.05099C58BA@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <002401c2f1cc$47ede2b0$3002a8c0@yigitcan> you wrote: > I am using Denx ELDK > > For debug of ppcboot: > The Commands I wrote and responses are : > > #ppc_8xx-gdb ppcboot Which is your current directory when you enter this comand? Where did you build the ppcboot binary? > =>dir /opt/eldk/ppc_8xx/usr/src/ppcboot-1.2.1 > directory searched ... Why are you entering this command? If you built thePPCBoot binary in this directory, it should not be necessary, since GDB will automatically use $cdir:$cwd as it's directory search. If you built PPCBoot in a different directory and use this as current directory the command should not be necessary either for the same reason. > =>l > > 1 {standard input}: No such file or directory. > in {standard input} You are not running the program yet. No source file is being executed yet. You cannot show other information like registers, either: (gdb) info registers The program has no registers now. (gdb) print $pc No registers. > what can i do with this error > I can see -g option in compilation logs Start the program (by attaching to a remote target and "continue"), and everything will be well :-) Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de He'd been wrong, there _was_ a light at the end of the tunnel, and it was a flamethrower. - Terry Pratchett, _Mort_