On Mon 22 Oct 2007 13:21, Xiaofeng Tan pondered:
> Hi there:
> 
> I am porting Linux-GPIB to a blackfin-uclinux platform with a Bfin532 
> processor (Linux version 2.6.16.27-ADI-2006R2 patched with 
> kgdb_bfin-linux-2.6.x.patch). When I tried to debug a driver module in 
> Linux-GPIB by setting a break point at the device open function, kgdb 
> failed to trig when the driver was opened. Instead, it trigged when 
> linux began to shut down. The cross compiler flags used to build the 
> driver module were:
> 
> -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing 
> -fno-common -ffreestanding -Os     -fno-omit-frame-pointer 
> -fno-optimize-sibling-calls -g -Wdeclaration-after-statement 
> -Wno-pointer-sign   -DMODULE -mlong-calls
> 
> Any idea of what the problem might be? Thank you.
> 

Xiaofeng:

You might ask on the blackfin/Linux forums at http://blackfin.uclinux.org

I assume that you are following the instructions at:

http://docs.blackfin.uclinux.org/doku.php?id=kgdb#debugging_kernel_modules

That worked for me last time I tried - on 2007R1. 

I have seen optimisations turn things upside down - you might want to try just 
the module with -O0 (if it compiles that way) for debug purposes.

-Robin
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to