Error Cannot Find Bounds Of Current Function
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of cannot find bounds of current function in gdb this site About Us Learn more about Stack Overflow the company Business
Cannot Find Bounds Of Current Function C++
Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask cannot find bounds of current function code blocks Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign
Gdb Step Cannot Find Bounds Of Current Function
up Using gdb to single-step assembly code outside specified executable causes error “cannot find bounds of current function” up vote 57 down vote favorite 33 I'm outside gdb's target executable and I don't even have a stack that corresponds to that target. I want to single-step anyway, so that I can verify what's going on in my assembly code, because I'm not an gdb single step assembly expert at x86 assembly. Unfortunately, gdb refuses to do this simple assembly-level debugging. It allows me to set and stop on appropriate breakpoint, but as soon as I try to single-step onwards, gdb reports the error "Cannot find bounds of current function" and the EIP doesn't change. Additional details: The machine code was generated by gcc asm statements and I copied it to the kernel memory location where it's executing, from the output of objdump -d. I wouldn't mind a simple way to use a loader to load my object code to a relocated address, but bear in mind the loading has to be done in a kernel module. I suppose another alternative would be to produce a fake kernel module or debug info file to give to gdb, to cause it to believe this area is within the program code. gdb works fine on the kernel executable itself. (For those who really want to know, I'm inserting code at runtime into Linux kernel data space inside a VMware VM and debugging it from gdb remote debugging the kernel via VMware Workstation's built-in gdb stub. N
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about
Gdb Print Stack
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask
Gdb Cheat Sheet
Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. gdb commands Join them; it only takes a minute: Sign up code::blocks debugger, “Cannot find the bounds of current function” up vote 1 down vote favorite I want to debug a simple c++ program in code::blocks. "Run to cursor" works, but http://stackoverflow.com/questions/2420813/using-gdb-to-single-step-assembly-code-outside-specified-executable-causes-error not "step into" or "next line", these give the message "Cannot find the bounds of current funciton". What I've done: The -g compilation option is checked, and the -s one is not Latest version of code::blocks just installed the right executable path for GDB is set My setup: Windows 7 64 bit Code::Blocks 13.12 GCC compiler The c++ code: #include
Re: message: "Cannot find bounds of current function" From: Peter Barada
Website Downloads (Laz+FPC) FAQ Wiki Bugtracker IRC channel Developer Blog Follow us on Twitter Latest SVN Mailing List Other languages Foundation Website Useful Wiki Links Project Roadmap Getting the Source Screenshots About donations (wiki) Bookstore Computer Math and Games in Pascal Lazarus, the complete guide (only a few left) Search Advanced search « previous next » Print Pages: [1] 2 Author Topic: Cannot find bounds of current function error (Read 7641 times) KMagic Full Member Posts: 100 Cannot find bounds of current function error « on: January 26, 2014, 02:54:37 pm » Hi everyone, I wanted to check the value of the variables in each step in my short program, so I opened the watch list and added a variable just like this: http://postimg.org/image/ps7marvlp/ Then I press F7, but this error message appeared:http://postimg.org/image/4jtxtch4t/ When I clicked OK, the Assembler appeared, which I didn't expect: http://postimg.org/image/gvwu6u4zh/ Next, I ignored it then continued pressing F7. This windows appeared: http://postimg.org/image/uaf7fnfbf/ Can anyone help me with this problem? Logged Martin_fr Administrator Hero Member Posts: 4031 Re: Cannot find bounds of current function error « Reply #1 on: January 26, 2014, 03:17:46 pm » Try to set a breakpoint on the first line of the main code, then press F9.Once the breakpoint is reached, you can use F7/F8 to step.When the application is started directly with F7/F8 it steps into internal code, and that does not work (it's a bug, and someday will get fixed) Logged KMagic Full Member Posts: 100 Re: Cannot find bounds of current function error « Reply #2 on: January 26, 2014, 05:36:15 pm » Thank you for replying to my thread. However, I still encounter this problem. When I set a break point and press F9 as you said, the program stopped at the beginning, which is normal: http://postimg.org/image/debaw85rl/When I closed the black window and pressed F7, the error message appeared again: http://postimg.org/image/yp8v0hnw1/ Logged Martin_fr Administrator Hero Member Posts: 4031 Re: Cannot find bounds of current function error « Reply #3 on: January 26, 2014, 07:11:57 pm » The black window is the console of your app. When you CLOSE it, you kill your app. Then there is nothing to be debugged.Make sure your setup is correc