[Top][All Lists]

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

Re: emacs + gdb

From: Eli Zaretskii
Subject: Re: emacs + gdb
Date: Sat, 30 Dec 2006 16:02:40 +0200

> Date: Thu, 28 Dec 2006 16:29:31 -0300 (BRT)
> From: laerte@cchla.ufpb.br
> Program exited normally.
> (gdb) break 25
> Breakpoint 1 at 0x8048610: file ../sysdeps/i386/elf/start.S, line 25.

The last line from GDB tells it all: it put a breakpoint in the
startup code, not in your program.

The problem is that, since the program has exited, there's no useful
value of the ``current source file''.  You should say something like
this instead:

   "break main.c:25"

This will set a breakpoint on line 25 of the file main.c (change to
adapt to your file name).

Alternatively, use the `start' command to run the program till the
entry to the `main' function, and then use "break 25".

reply via email to

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