all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs + gdb
@ 2006-12-28 19:29 laerte
  2006-12-30  6:24 ` Richard Stallman
  2006-12-30 14:02 ` Eli Zaretskii
  0 siblings, 2 replies; 4+ messages in thread
From: laerte @ 2006-12-28 19:29 UTC (permalink / raw)


Hi,
    I have a problem when using gdb with emacs: I can't use breakpoint
feature:

(gdb) run
Starting program: /home/laerte/Estudos2006.1/programacao/Debug.out
Enter an integer: 2
1
2

Program exited normally.
(gdb) break 25
Breakpoint 1 at 0x8048610: file ../sysdeps/i386/elf/start.S, line 25.
(gdb) run
Starting program: /home/laerte/Estudos2006.1/programacao/Debug.out

Breakpoint 1, _start () at ../sysdeps/i386/elf/start.S:65
65	../sysdeps/i386/elf/start.S: Arquivo ou diretório inexistente(File or
Directory doesn'r exist).
	in ../sysdeps/i386/elf/start.S
Current language:  auto; currently asm

    Thank you.
    Laerte.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* emacs + gdb
@ 2006-12-28 20:24 laerte-junior
  0 siblings, 0 replies; 4+ messages in thread
From: laerte-junior @ 2006-12-28 20:24 UTC (permalink / raw)


[-- Attachment #1: Mail message body --]
[-- Type: text/plain, Size: 623 bytes --]

Hi, 
    I have a problem when using gdb with emacs: I can't use breakpoint 
feature: 

(gdb) run 
Starting program: /home/laerte/Estudos2006.1/programacao/Debug.out Enter an 
integer: 2 
1 
2 

Program exited normally. 
(gdb) break 25 
Breakpoint 1 at 0x8048610: file ../sysdeps/i386/elf/start.S, line 25. (gdb) 
run 
Starting program: /home/laerte/Estudos2006.1/programacao/Debug.out 

Breakpoint 1, _start () at ../sysdeps/i386/elf/start.S:65 
65	../sysdeps/i386/elf/start.S: Arquivo ou diretório inexistente(File or 
Directory doesn'r exist). 
	in ../sysdeps/i386/elf/start.S 
Current language:  auto; currently asm 



[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs + gdb
  2006-12-28 19:29 emacs + gdb laerte
@ 2006-12-30  6:24 ` Richard Stallman
  2006-12-30 14:02 ` Eli Zaretskii
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2006-12-30  6:24 UTC (permalink / raw)
  Cc: bug-gnu-emacs

This would seem to be a GDB bug rather than an Emacs bug.  It probably
depends on the details of your system (which you did not identify).  I
run Enacs under GDB just fine on GNU/Linux.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs + gdb
  2006-12-28 19:29 emacs + gdb laerte
  2006-12-30  6:24 ` Richard Stallman
@ 2006-12-30 14:02 ` Eli Zaretskii
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2006-12-30 14:02 UTC (permalink / raw)
  Cc: bug-gnu-emacs

> 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".

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-30 14:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-28 19:29 emacs + gdb laerte
2006-12-30  6:24 ` Richard Stallman
2006-12-30 14:02 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2006-12-28 20:24 laerte-junior

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.