Closed Thread
Results 1 to 2 of 2

Thread: linux x86 exception handling

  1. #1
    innerLOL is offline Newbie
    Join Date
    Dec 2009
    Posts
    29
    Rep Power
    0

    linux x86 exception handling

    in windows i have SEH, fs:0 point to TEB wich contain handler for exception.

    when exception occur handler is called with information about exception and context to allow changing eip for example.


    how do i do simillar thing on linux? i belive there must be some sort of exception handling. From my understanding, if i force excpetion by executing privileged instruction, dividing by 0, accessing not mapped address, and so on, kernel will send signal to my process. So instead of creating SEH frame i must temporary change signal handler. Is that correct?

    I write in asm i dont care about c methods like try/except.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    innerLOL is offline Newbie
    Join Date
    Dec 2009
    Posts
    29
    Rep Power
    0

    Re: linux x86 exception handling

    bump

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Exception handling from a class
    By crazyjackdavis in forum Python
    Replies: 1
    Last Post: 09-29-2011, 12:06 AM
  2. Intermediate Signal Handling in C Over Linux
    By mnirahd in forum C Tutorials
    Replies: 0
    Last Post: 11-21-2010, 10:54 AM
  3. C++ Exception handling
    By SPorg in forum C and C++
    Replies: 2
    Last Post: 08-05-2010, 03:41 PM
  4. General ring0 structured exception handling in asm
    By innerLOL in forum Assembly
    Replies: 1
    Last Post: 02-13-2010, 08:37 PM
  5. Exception Handling in .NET
    By Xav in forum CSharp Tutorials
    Replies: 10
    Last Post: 01-20-2009, 04:53 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts