From: Christoph Bartoschek <bartoschek@or.uni-bonn.de>
To: gdb@sourceware.org
Subject: Re: Differences between program runs with and without gdb
Date: Wed, 10 Jan 2007 16:21:00 -0000 [thread overview]
Message-ID: <200701101720.46536.bartoschek@or.uni-bonn.de> (raw)
In-Reply-To: <200701101517.20024.bartoschek@or.uni-bonn.de>
Am Mittwoch, 10. Januar 2007 15:17 schrieb Christoph Bartoschek:
> Hi,
>
> is there a list of things that could be different between to runs of a
> programm once with and once without running it under gdb?
>
> I have a programm that calls the custom memory allocator less often when
> run under gdb. Now I search for all possible causes for this behaviour.
>
Hi,
thanks to all that helped.
I've just found the problem. When the program is started with gdb the
commandline differs. This means that argv[0] is different and that has the
effect that our commandline parser needs a different number of allocations.
Starting the programm with:
gdb ./prog
results in an argv[0] of
/home/ponto/source/prog
Starting it with
./prog
results in an argv[0] of
./prog
Greetings
Christoph Bartoschek
prev parent reply other threads:[~2007-01-10 16:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-10 14:18 Christoph Bartoschek
2007-01-10 14:35 ` Joel Brobecker
2007-01-10 14:49 ` Christoph Bartoschek
2007-01-10 14:53 ` Markus Deuling
2007-01-10 14:59 ` Christoph Bartoschek
2007-01-10 14:57 ` Andrew STUBBS
2007-01-10 14:59 ` Christoph Bartoschek
2007-01-10 15:29 ` Andrew STUBBS
2007-01-10 16:21 ` Christoph Bartoschek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200701101720.46536.bartoschek@or.uni-bonn.de \
--to=bartoschek@or.uni-bonn.de \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox