Skip to contentSkip to conversation

-fomit-frame-pointer + -g

DISCUSSION Ricardo Catalinas Jimenez 3 participants 5 messages Oct 10, 2004 – Oct 11, 2004

lore
Share & tools
lore
#0 lore raw

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.

Signature · 3 lines
Ricardo Catalinas Jimenez    Madrid, Spain.
th1nk3r(at)server01(dot)org  [email protected] 
My gpg public key at: http://www.server01.org/pubkey
#1 lore raw

On Sun, 2004-10-10 13:07:17 +0200, Ricardo Catalinas Jimenez <[email protected]> wrote in message <[email protected]>:

Quoted 3 lines

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

Signature · 4 lines
Jan-Benedict Glaw       [email protected]    . +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));
#2 lore raw

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'.

Signature · 3 lines
Ricardo Catalinas Jimenez    Madrid, Spain.
th1nk3r(at)server01(dot)org  [email protected] 
My gpg public key at: http://www.server01.org/pubkey
#3 lore raw

Is there any function to delete lines from a text file

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

#4 lore raw

Re: Is there any function to delete lines from a text file

On Sun, 2004-10-10 17:55:00 -0500, Edward Parrilla <[email protected]> wrote in message <[email protected]>:

Quoted 3 lines

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

Signature · 4 lines
Jan-Benedict Glaw       [email protected]    . +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));