On Thu, Mar 30, 2000 at 09:56:34AM +0800, renwei mentioned:
> i use my linux box (RH6.1) to debug some multi-thread programs.
> when i created the new thread,and make it suspend,
> then i want to trace it,i use the gdb 4.18 . but when i use
> attach command, it tells me: "Error: ptrace: Operation not permitted."
> it seems the gdb4.18 DOSE NOT support multi-thread,i'm not sure.
> how to get a correct gdb version so i can debug my threads?
It does - I've seen people here do it! Perhaps you just cannot attach to
a running threaded program, but must run the program under GDB from the
"The fool must be beaten with a stick, for an intelligent person
the merest hint is sufficient" -- Zen Master Greg
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!