How gdb's 'attach' command work ?

This is a discussion on How gdb's 'attach' command work ? within the Linux Security forums, part of the System Security and Security Related category; Hi everyone, I wanna know why the gdb's 'attach' command can work? In the virtual memory enviornment,Does it ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-20-2007
xi4oyu
 
Posts: n/a
Default How gdb's 'attach' command work ?

Hi everyone,
I wanna know why the gdb's 'attach' command can work?
In the virtual memory enviornment,Does it say that a program can't
direct 'invade' another's processs's space? Please tell me the
reason why gdb can do so...


thnx
Reply With Quote
  #2 (permalink)  
Old 11-23-2007
Andrei Voropaev
 
Posts: n/a
Default Re: How gdb's 'attach' command work ?

On 2007-11-20, xi4oyu <Evil.xi4oyu@gmail.com> wrote:
> I wanna know why the gdb's 'attach' command can work?
> In the virtual memory enviornment,Does it say that a program can't
> direct 'invade' another's processs's space? Please tell me the
> reason why gdb can do so...


I think you just misunderstand the statement about virtual memory.
Virtual memory is separate for each process, so the process may think
that it's the only process in memory. But since the virtual memory is
actually stored in RAM (or swap), then of course kernel has access to
that memory and may provide such access to programs that need it. So no
process can directly access the memory of another process, but some
process may request from kernel indirect access to the memory of another
process.


--
Minds, like parachutes, function best when open
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0