Hi. Im tryin to learn some debugging and asm.
I have problem when I set a breakpoint at strcpy().
gdb ask me if I want to set bp. after loading the library
but It does not resolve the breakpoint and skip func so I cant examine it.
Enough rant. Think the log is quite clear: #591381 - Pastie
first par is my problem and second is how it should looks.
So, where is my mistake? Do I miss some library?
I run last gcc from Debian repo.
2 replies to this topic
#1
Posted 24 August 2009 - 03:16 AM
|
|
|
#2
Posted 24 August 2009 - 06:23 AM
Are you trying to view inside the strcpy function, or inside main at line 8?
#3
Posted 24 August 2009 - 08:03 AM
Thanks for reply. I was tryin to view inside the function and already have solution.
When I compile it with just -g parameter the code is optimized so strcpy() is memcpy()
and printf is puts. C code - 31 lines - codepad -fno-builtin param is needed to examine strcpy function.
When I compile it with just -g parameter the code is optimized so strcpy() is memcpy()
and printf is puts. C code - 31 lines - codepad -fno-builtin param is needed to examine strcpy function.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









