bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem Breakpoint


From: Pedro Alves
Subject: Re: Problem Breakpoint
Date: Wed, 03 Jul 2013 10:29:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]