On 07/02/2013 08:30 PM, Fox Fossati wrote:
> Hi! I have a problem with GDB and i don't know if is a bug or maybe i made a 
> mistake
> I'm using the last GDB 7.6 on Linux Mint Debian and i'm tryng some easy 
> example of cpuid from the book:
> Professional Assembly Language of Richard Blum.
> 
> The problem is that when i put a breakpoint after the nop instruction, for 
> example
> break *_start+1

Note that with modern GDBs you no longer need the +1 trick.  GDB will
nowadays stop for a breakpoint at _start.

> and then i run the program, i have this error:
> 
> Warning:
> Cannot insert breakpoint 1.
> Error accessing memory address : Input/output error.
> 
> If i run without breakpoints the program ends end exit without problems 
> so...i think there isnt any error
> in the code that i copyied and pasted from the book.

Impossible to say what's going on without more info...
At least paste the whole GDB session.

-- 
Pedro Alves


_______________________________________________
bug-gdb mailing list
bug-gdb@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gdb

Reply via email to