Ed Peschko | 16 Jul 04:05 2005

'intelligent' history in gdb

hey all,

I've been playing around with gdb, noticed a couple of things that I'd
really like to have, and was wondering if they'd been implmented.

First, I have the setting:

	bindkey -k up history-search-backward
	bindkey -k down history-search-backward

in my .tcshrc, and was wondering if gdb has an equivalent. This allows me
to type:

	mak

then up arrow, to see all the list of commands that I've typed in my history,
instead of just forgetting that I've typed 'mak' and going back to the last
typed command (like gdb does by default).

Second, I'd like the ability of gdb to 'remember' the programs that I've edited,
so the next time I run gdb with that executable, all the commands/definitions
that I've typed in previous sessions with that executable are retrieved.

I'm thinking that this could be done by md5'ing the executable and its name, and then 
storing the commands in a buffer that gets recalled when a new session with that
executable starts.

A list of these stored sessions could be gotten by a catalog command (something 
like 'ls') and an import command could be used to retrieve any prior session to 
tie it to the current session, ie:
(Continue reading)

Fred J. | 20 Jul 22:06 2005
Picon

run proj1

Hello
(gdb) n
The program is not geing run
(gdb) run proj1
Starting program: ...
Enger a number between 0 and 255: 

well, first problem, why (run proj1), on my emacs
minibuffer, typing gdb <enter>, gdb proj1 should be
all what it needs, isn't it?

second problem, where all the steps in my code before
we get to "Enter a number between ..." line.

thanks

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Fred J. | 23 Jul 21:08 2005
Picon

gdb loading the wrong file

Hello

using gdb under emacs, when I type "b 13" as the first
command on the
gdb prompt, I get,
Breakpoint 1 at 0x8048720: file
../sysdeps/i386/elf/start.S, line 13.
hold a minute, what is this funny looking file
../system/whatever?
I thought it should say,
/home/sam/Exercies/ThinkingInC++/Vol1/C03/13/proj1
after all thats what showed up when I 
M-x gdb
Run gdb (like this): gdb
Exercies/ThinkingInC++/Vol1/C03/13/proj1 

here it is all in one go,

Current directory is
/home/sam/Exercies/ThinkingInC++/Vol1/C03/13/
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General
Public License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as "i386-linux"...Using host
(Continue reading)


Gmane