home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,650 of 4,675   
   Tavis Ormandy to Borax Man   
   Re: Debugger problems   
   03 Dec 23 16:43:39   
   
   From: taviso@nospicedham.gmail.com   
      
   On 2023-12-03, Borax Man wrote:   
   > On 2023-12-02, Tavis Ormandy  wrote:   
   >> On 2023-12-02, Borax Man wrote:   
   >>> NASM can generate debugging information which I believe will generate   
   >>> line info.  Pass '-F dwarf' option to nasm if under Linux, and you should   
   see each   
   >>> line of source in the debugger.   
   >>   
   >> You're thinking of line markers I think (like %line 123), but I think   
   >> Martijn wants the assembler to do that automatically so that b   
   >> foo.asm:123 works, like it does in gas.   
   >>   
   >> As far as I know nasm won't do that?   
   >>   
   >   
   > I did a test using nasm with the '-F dwarf' and '-g' parameters, and I   
   > was able to add breakpoints in GDB specifying the line using the   
   > syntax you mentioned.   
      
   Weird.... and this is for elf64?   
      
   Perhaps you have a newer version than me, good to know it will arrive   
   eventually!   
      
   Tavis.   
      
   --   
    _o)            $ lynx lock.cmpxchg8b.com   
    /\\  _o)  _o)  $ finger taviso@sdf.org   
   _\_V _( ) _( )  @taviso   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca