Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Stoppable gdb for MacOSX - when?

<< < (3/3)

Pecan:

--- Quote from: afb on March 02, 2007, 04:42:35 pm ---Here is a first hack: http://www.algonet.se/~afb/wx/codeblocks-macgdbpid.patch

--- End quote ---

 "if (psLine.StartsWith(mypidStr) " may not work.
I've noticed that when the output has longer and shorter length pids,
some pids may have a variable number of blanks before the pid.

And thanks for the "ps -o" idea. I've found that "ps x -o" is safer though. It appears that, on ubuntu at least, some output is skipped on "ps -o" and I miss finding the correct TTY for the console.



afb:

--- Quote from: Pecan on March 02, 2007, 07:04:37 pm --- "if (psLine.StartsWith(mypidStr) " may not work.
I've noticed that when the output has longer and shorter length pids,
some pids may have a variable number of blanks before the pid.

--- End quote ---

You are right, it does - needs to be trimmed first, thanks!

Edit: patch updated

Navigation

[0] Message Index

[*] Previous page

Go to full version