Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I try and run these commands (in order):

gdb -tui main
layout regs
b main
r
s

It gives me a ton of errors on the 'r' command, giving the error in the title, so I can't even debug my program. It's nothing complex, just a main.c file, a Makefile, an asm.h and asm.s (hence layout regs). If I run these commands on a Slax VM, they work perfectly. Why doesn't Ubuntu 11.10 work then?

P.S. The output is this:

Error in re-setting breakpoint 1: Register 41 is not available
Error while reading shared library symbols for /lib/ld-linux.so.2:
Register 41 is not available
Error while reading shared library symbols for /lib/ld-linux.so.2:
Register 41 is not available
[Inferior 1 (process 1844) exited normally]
share|improve this question

closed as too localized by Bruno Pereira May 13 '12 at 16:30

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
First, I doubt this is Ubuntu specific, and you might be better off on StackOverflow. Also, I think you need to post the actual source. It is an interesting question. My guess is your Makefile or asm.s are breaking shared library loading. –  poolie Feb 20 '12 at 6:00
add comment

Browse other questions tagged or ask your own question.