|
From: Ed P. <es...@pg...> - 2006-03-06 23:53:38
|
hey all, I was wondering if gdbserver could be used with valgrind - ie: I have a process that I'd like to debug but it is run through xinetd. Hence I'd like valgrind to spawn off a gdbserver process which I would attach to inside another window on the event of a memory leak. I've already had to modify valgrind once for this (taking away the prompt to start the debugger) - now I notice that gdb is called with gdb -nw %f %p by default. in other words, it has the ability to write into the executable or core file. However, I don't think that gdbserver has this ability. Anyways, I was wondering if anyone had done this - used gdbserver to debug with valgrind. Technically this is probably a gdb question, but I thought I would cover all bases.. Thanks much for any help, and if you could CC me personally with any feedback I'd appreciate it. Ed |
|
From: Olly B. <ol...@su...> - 2006-03-07 00:08:06
|
On 2006-03-06, Ed Peschko <es...@pg...> wrote:
> I notice that gdb is called with
>
> gdb -nw %f %p
>
> by default. in other words, it has the ability to write into the executable
> or core file.
Erm, for gdb "-nw" means "don't use a window interface". You seem to be
confusing it with "--write".
Cheers,
Olly
|