[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Starting gdb
From: |
Kay Ulbrich |
Subject: |
Re: Starting gdb |
Date: |
Thu, 03 Sep 2009 12:27:06 +0200 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Torsten Mueller wrote:
> Many years ago I did this using a gdb-init file. I don't remember the
> exact name, look into gdb documentation, but I surely know that gdb
> reads a file in the current directory while starting up. This file can
> also contain paths to source files and much more.
>
> T.M.
Hello,
thank you for your suggestion.
It implies an entry in ~/.gdbinit like:
define myprog
file myprog.exe
set args --arg val
end
The problem is, that, when starting gdb in Emacs and running this macro,
one nice feature is not realized. This is the automatic opening of the
file containing the main() - function.
I thought, maybe gdb-mode offers some interface ...
Greetings
Kay