Kamaraju S Kusumanchi | 4 Oct 2007 10:28
Favicon

reading breakpoints from a file

Is it possible to read the list of breakpoints from a file? If so, how can I
do it? I looked in the manual but could not find how to do this.

If it matters, I am using gdb 6.3.0.0 on CentOS 4.4

raju

--

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/

Charles Manning | 4 Oct 2007 23:40
Picon

Re: reading breakpoints from a file

On Thursday 04 October 2007 20:28:27 Kamaraju S Kusumanchi wrote:
> Is it possible to read the list of breakpoints from a file? If so, how can
> I do it? I looked in the manual but could not find how to do this.

Use the source command to read a list of commands from a file

So if you have a list of symbols:
sym1
sym2
...
Run this through a suitable sed script to generate

break sym1
break sym2
...

then use the source command to load this file.

Franzi Edo. | 28 Oct 2007 15:10
Picon
Favicon

gdb-6.7 and 68k

Hi,
Just an help request for trying to build a correct executable of  
gdb-6.7 for a m68k cpu.
The host machine is OSX (10.4.10 or 10.5).
Here is my script (it works with gdb-6.6)

TARGET=m68k-elf
BINUTILS_VER=2.18.50
GCC_VER=4.2.2
NEWLIB_VER=1.15.0
GDB_VER=6.7
TARGET_DIR=/Users/Shared

...
export target=$TARGET
export prefix=$TARGET_DIR/cross/$TARGET

...

cd $TARGET_DIR/builds/$TARGET
mkdir gdb-$GDB_VER
cd gdb-$GDB_VER
../../../GCC/gdb-$GDB_VER/configure --target=$target --prefix=$prefix
make
make install
make clean

It fails during the make

make[2]: *** [m68k-tdep.o] Error 1
(Continue reading)

Andre Hagley | 30 Oct 2007 17:09
Picon
Favicon

GDB sigsev violation in DDD

Hello,

I am trying to get GDB to work as the inferior debugger in ddd, running
under cygwin. 

I have cygwin installed on my pc running XP(SP2), with an intel 
Core2 Duo T7800 processor.

The various versions of the code I have installed are:

Cygwin - 1.5.24-2
ddd    - 3.3.11
gcc    - 3.4.4-3
gdb    - 6.7
expat-win32 2.0.2

I made the ddd installation following the instructions in the manual
(./configure, make, make check, make install) and it seems to be 
working.

I did the same for the gdb build after installing expat and rebooting.
When I ran make check, it failed almost all of the tests. Proceeding
anyway with make install, I get the following error when I try to debug
in ddd using the sample program in the ddd manual.

(gdb) break sample.c:20
Breakpoint 1 at 0x40110e: file sample.c, line 20.
(gdb) run

Program received signal SIGSEGV, Segmentation fault.
(Continue reading)

Jim Marshall | 30 Oct 2007 20:13
Favicon

use GDB to debug Win32 app with gcc components?

Should I be able to use GDB to load and execute a VC++ application, and 
debug DLLs that application loads that where built with gcc?

fwiw:
Windows XP Pro SP2
GNU gdb 6.5.50.20060706-cvs (cygwin-special)

more detail:
I have an application that was compiled with MS Visual C++ 6.0, it is a 
"Release" build. This application loads DLLs on demand and executes some 
functions in those DLLs. I have built a DLL using gcc (gcc (GCC) 3.4.4 
(cygming special, gdc 0.12, using dmd 0.125)) with the debug option (as 
well as -mno-cygwin). I would like to use GDB to debug the DLL I developed.

When I run GDB and tell it to start my application ('run' command) it 
starts to load the program but eventually GDB 'stops' as it loading 
various DLL's

Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
...
Loaded symbols for /cygdrive/c/Program Files/foo/lib/doo.dll

[1]+  Stopped                 gdb cwbemserver.exe

and I get bounced down to the xterm shell, if I type 'fg' at the xterm 
window GDB will come up:

$ fg
gdb myserver.exe
(Continue reading)


Gmane