* -fomit-frame-pointer + -g
@ 2004-10-10 11:07 Ricardo Catalinas Jimenez
2004-10-10 11:15 ` Jan-Benedict Glaw
0 siblings, 1 reply; 5+ messages in thread
From: Ricardo Catalinas Jimenez @ 2004-10-10 11:07 UTC (permalink / raw)
To: linux-c-programming
hi everybody,
my system is configures with the CHOST, CFLAGS & CXXFLAGS to use the useful
'-fomit-frame-pointer' flag. But when I want to debug one of my binaries, I
add manualy to the compilation process the '-g' flag.
My computer is an ia32 where the '-fomit-frame-pointer' is incompatible for
debuging.
I looked on the web but I didn't find if when I use both options what happend.
So when I do: gcc -o test test.c -g -fomit-frame-pointer
What happend, can I debug correctly?
If not, what I have to do? Should I disable the '-fomit-frame-pointer'
manually every time I want to debug?
Thanks in advande.
--
Ricardo Catalinas Jimenez Madrid, Spain.
th1nk3r(at)server01(dot)org citizen01@jabber.org
My gpg public key at: http://www.server01.org/pubkey
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: -fomit-frame-pointer + -g
2004-10-10 11:07 -fomit-frame-pointer + -g Ricardo Catalinas Jimenez
@ 2004-10-10 11:15 ` Jan-Benedict Glaw
2004-10-10 16:09 ` Ricardo Catalinas Jimenez
0 siblings, 1 reply; 5+ messages in thread
From: Jan-Benedict Glaw @ 2004-10-10 11:15 UTC (permalink / raw)
To: linux-c-programming
[-- Attachment #1: Type: text/plain, Size: 740 bytes --]
On Sun, 2004-10-10 13:07:17 +0200, Ricardo Catalinas Jimenez <th1nk3r@server01.org>
wrote in message <20041010110717.GA3207@jehuty.server01.org>:
> So when I do: gcc -o test test.c -g -fomit-frame-pointer
>
> What happend, can I debug correctly?
Even easier than asking others to dig into your problem, how about just
firing up a gdb yourself and have a try? You'd just see the result:-)
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: -fomit-frame-pointer + -g
2004-10-10 11:15 ` Jan-Benedict Glaw
@ 2004-10-10 16:09 ` Ricardo Catalinas Jimenez
2004-10-10 22:55 ` Is there any function to delete lines from a text file Edward Parrilla
0 siblings, 1 reply; 5+ messages in thread
From: Ricardo Catalinas Jimenez @ 2004-10-10 16:09 UTC (permalink / raw)
To: linux-c-programming
I have tried it. The debuging is not imposible. But I not an expert in that,
so I don't find the limitations of debuging with '-fomit-frame-poiner'.
Further more I made sure that when I compile with both options the binary is
different when I compile only with '-g'.
--
Ricardo Catalinas Jimenez Madrid, Spain.
th1nk3r(at)server01(dot)org citizen01@jabber.org
My gpg public key at: http://www.server01.org/pubkey
^ permalink raw reply [flat|nested] 5+ messages in thread
* Is there any function to delete lines from a text file
2004-10-10 16:09 ` Ricardo Catalinas Jimenez
@ 2004-10-10 22:55 ` Edward Parrilla
2004-10-11 5:31 ` Jan-Benedict Glaw
0 siblings, 1 reply; 5+ messages in thread
From: Edward Parrilla @ 2004-10-10 22:55 UTC (permalink / raw)
To: linux-c-programming
Hi there,
I know that fputs(), or fgets() can store or get a line from a file, is
there a way to delete a line from a text file?
Thanks in advance
Edward
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is there any function to delete lines from a text file
2004-10-10 22:55 ` Is there any function to delete lines from a text file Edward Parrilla
@ 2004-10-11 5:31 ` Jan-Benedict Glaw
0 siblings, 0 replies; 5+ messages in thread
From: Jan-Benedict Glaw @ 2004-10-11 5:31 UTC (permalink / raw)
To: Edward Parrilla; +Cc: linux-c-programming
[-- Attachment #1: Type: text/plain, Size: 889 bytes --]
On Sun, 2004-10-10 17:55:00 -0500, Edward Parrilla <eparrilla@comcast.net>
wrote in message <JLEEKLMLBNBBGELJFIHPGELICIAA.eparrilla@comcast.net>:
> Hi there,
> I know that fputs(), or fgets() can store or get a line from a file, is
> there a way to delete a line from a text file?
No.
The only way to do that is to copy the whole file and omitting the line
you want to omit (using the "f" functions). Alternatively, you'd use the
"normal" functions and only copy the part after the line to be deleted
some bytes towards the front...
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-10-11 5:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-10 11:07 -fomit-frame-pointer + -g Ricardo Catalinas Jimenez
2004-10-10 11:15 ` Jan-Benedict Glaw
2004-10-10 16:09 ` Ricardo Catalinas Jimenez
2004-10-10 22:55 ` Is there any function to delete lines from a text file Edward Parrilla
2004-10-11 5:31 ` Jan-Benedict Glaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).