Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gdb accepts no breakpoint
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 544
Location: Germany

PostPosted: Tue Nov 19, 2024 3:40 pm    Post subject: gdb accepts no breakpoint Reply with quote

Hello, it may appear "old problem", but the solutions offered in 2004 didn't work for me :)

When I run a program in gdb and set a breakpoint (on main or anywhere else), then after "run" I get following "Warning":

Quote:

Cannot insert breakpoint 1.
Cannot access memory at address 0x5555555553a2


This is my own program which is compiled with "-g" and even "-ggdb". I don't have hardened Kernel, at least I haven't configured it explicitly. I use latest GDB (15.2-r100).

If breakpoint is not set, then command "run" executes program without any error to the end. Which is kind of useless without breakpoints :)

So, maybe someone can offer more insights?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum