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 3,951 of 4,675   
   bilsch01 to Jens Kallup   
   Re: how to use gdb on a .bin file?   
   19 Sep 19 11:17:34   
   
   From: king621@nospicedham.comcast.net   
      
   On 9/19/19 10:19 AM, Jens Kallup wrote:   
   > Hello,   
   >   
   > You can inject your bin file in a common .o   
   > file by reading the .bin file byte to byte into .c file.   
   > Then you can compile the .c file: gcc -o -g foo.o foo.c   
   > And then, you can debug it with: gdb foo.o   
   >   
   > Cheers   
   > Jens   
   >   
   maybe gdb is the wrong tool.  What is the debugger I should use? My os   
   is ubuntu with gnome.  I'm using nasm.   
      
   --- 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