amoss@huji.ac.il (Amos Shapira) (09/04/90)
Hello, I'm trying to get GCC to write dbx symbols into .o files (i.e. implement the -g option). Is there any way to do it through assembly or must I create a .o file which contains only a names section and merge it by "ld -r"? If it matters, I'm using a Personal Iris 4D/25 (Super) and 4D/20 (Entry). Please reply by e-mail to "amoss@batata.huji.ac.il". Thanks in advance, Amos Shapira amoss@batata.huji.ac.il
meissner@osf.org (Michael Meissner) (09/06/90)
In article <amoss.652449880@shum> amoss@huji.ac.il (Amos Shapira) writes: | Hello, | I'm trying to get GCC to write dbx symbols into .o files (i.e. | implement the -g option). | | Is there any way to do it through assembly or must I create | a .o file which contains only a names section and merge it by "ld -r"? | | If it matters, I'm using a Personal Iris 4D/25 (Super) and 4D/20 | (Entry). I already put debugging in a couple of months ago. RMS did not want to incorporate the changes into 1.38, since that is supposed to be a bugfix release (my other changes relating to lots of bug fixes are in 1.38 whenever it comes out). You can FTP my stuff from foobar.colorado.edu during off hours (osf.org doesn't allow anonymous FTP at the moment). I think the directory is pub/Gcc-For-Pmax. In answer to your question though, no there is no way to set debug stuff other than the filename/line number in the assembler. The way I did it was to put the debug stuff in as comments, and then write a program which snarfed up the object file and assembly source and produced a new object file that has all of the debug information in it. I then wrote a cover program which would invoke the assembler and my program in turn, so I wouldn't have to modify gcc.c to call an extra pass. Peter Ham @ stanford is/was working on getting gas to smuggle the stabs through the symbol table, and we also are using gas (but we have YAOFF -- yet another object file format for OSF/1). I have a mailing list for people to get patches from me if you want me to add you to it. -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 Do apple growers tell their kids money doesn't grow on bushes?