This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GDB 5.0.92 available


Andrew Cagney writes:
> 
> See the file gdb/NEWS.  This is a pre 5.1 snap so is really only for 
> testing.
> 

Most of the  snapshots worked just fine for me ... ;o)

> > Anyway, may be you can answer my question on .gdbinit.
> > 
> > Prior versions (4.*) of gdb would read local  .gdbinit files too, not
> > just .gdbinit in your HOME dir. So, for each project you could have a
> > separate .gdbinit located in the directory of the executables.
> > 
> > I have tried several snapshots and none of them will read any init
> > file except the one in the HOME.
> > 
> > Is there a workaround ??
> 
> I think you'll need to provide more information (os, ...).  the above 
> works for me.
> 
> Andrew
> 
 
Linux kernel 2.4.13, glibc 2.2.3, latest gdb used either alone or
through any other inteface. The behaviour is the same.

I place .gdbinit in a directory with executable, do:

gdb --cd=[directory where executable is located] executable

and none of the init commands in .gdbinit is executed. Example of one
of my .gdbinits:

set print sevenbit off
handle SIGUSR1 nostop noprint
handle SIGUSR2 nostop noprint
handle SIGWAITING nostop noprint
handle SIGLWP nostop noprint
handle SIGPIPE nostop
handle SIGALRM nostop
handle SIGHUP nostop
handle SIGTERM nostop noprint
set args --one-thread --datadir=/usr/local/var --skip-stack-trace --core-file --skip-grant-tables --language=/mnt/hdc/Sinisa/mysql-4.0/sql/share/english/

What other info do you require ??

-- 
Regards,
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <sinisa@mysql.com>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
       <___/   www.mysql.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]