[LUGSB] Make Error Fixed

Chris Wright dhasenan at gmail.com
Fri Feb 15 08:46:01 EST 2008


On 14/02/2008, Damian Tommasino <damian.itc at gmail.com> wrote:
> In response to Mark yes the machine is the same it's my laptop (dual
>  boot windows xp / ubuntu 7.10).  The gcc version for cygwin is 3.4.4.  I
>  don't know what happened with the ubuntu install because I left
>  everything the way it was fresh out of the install.  I upgraded a few of
>  the packages with the package manager but that's about it.  Anyway on
>  the windows compile I got everything working, the error isn't in
>  segment.h.  The following two attached files are where the new error
>  occurs.  The makefile works and compiles into a fd.img file.  Booting
>  that with qemu results in a memory segmentation fault.  The function
>  call is:

Segfaults are pretty much impossible to debug statically in nontrivial
code. You're looking at some fun times with gdb and qemu. Though I
don't know if gdb works on Windows.

If you comment out the 'packed' attribute on segment.h:43, it should
compile on linux just fine, which should give you a slightly easier
time debugging.


More information about the lugsb mailing list