Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
129 user(s) are online (112 user(s) are browsing Forums)

Members: 0
Guests: 129

more...

Headlines

Report message:*
 

Re: GDB

Subject: Re: GDB
by billyfish on 2021/2/23 16:10:34

@salass00


Ah yup 64 bit! So the debug print is now

(gdbfile helloworld
file helloworld
0 calling bfd seek with Workspace
:/helloworld with pos 0 (8) and direction 0 (4)
bfd_seek called with Workspace:/helloworld with pos 0 (8) and direction 0 (4)
BFDBFD (GNU Binutils2.22.52.20120718 assertion fail ../../bfd/elf.c:241
bfd_seek called with Workspace
:/helloworld with pos 0 (8) and direction 0 (4)
1seeking Workspace:/helloworld with pos 12060 and direction 0 has result -1
4
seeking Workspace:/helloworld has error 29
returning Workspace
:/helloworld : -1
"Workspace:/helloworld"not in executable formatIllegal seek
(gdb)


The numbers in the brackets after the pos and direction are the sizeof values to make sure I don't get caught out with that again

So it's calculated the right position to scroll to for my executable but the subseqeunt seek to this position fails

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project