+ Reply to Thread
Results 1 to 2 of 2

Thread: linux x86 exception handling

  1. #1
    Newbie innerLOL is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    29

    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. #2
    Newbie innerLOL is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    29

    Re: linux x86 exception handling

    bump

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. LiveUSB - Take your system with you ANYWHERE!
    By marwex89 in forum Tutorials
    Replies: 17
    Last Post: 08-25-2009, 11:13 AM
  2. Exception Handling in .NET
    By Xav in forum CSharp Tutorials
    Replies: 10
    Last Post: 01-20-2009, 06:53 AM
  3. Replies: 0
    Last Post: 08-16-2008, 04:50 PM
  4. Mac VS. Windows VS. Linux
    By phpforfun in forum Linux/Unix General
    Replies: 14
    Last Post: 06-29-2008, 08:59 PM
  5. Linux XP 2006 SR2
    By Onur in forum Linux Applications
    Replies: 1
    Last Post: 10-07-2007, 08:29 AM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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