A question for Xserver debug

2010-03-24 Thread Huang, FrankR
Hi,all 

I am debugging the xserver code now. But one thing has
puzzled me.

When I add some modification to /dix/main.c , then make 
make install. Though the new main.c file has been compiled, no
modification effect display.

After that, I do some modification to
/hw/xfree86/common/xf86Init.c. Do the same steps. The modification to
main.c displays at the same time. Why this happens??

 

Thanks,

Frank

___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: A question for Xserver debug

2010-03-24 Thread Alan Coopersmith
Huang, FrankR wrote:
 Hi,all
 
 I am debugging the xserver code now. But one thing has
 puzzled me.
 
 When I add some modification to /dix/main.c , then make 
 make install. Though the new main.c file has been compiled, no
 modification effect display.
 
 After that, I do some modification to
 /hw/xfree86/common/xf86Init.c. Do the same steps. The modification to
 main.c displays at the same time. Why this happens??

No one has ever gone through the exercise of ensuring the complex
dependencies are properly setup to force rebuilding the Xorg server
any time any related file changes.   Sometimes you just have to
manually rm hw/xfree86/Xorg and then make install.   If this annoys
you, we're happy to review proposed patches to improve it.

-- 
-Alan Coopersmith-   alan.coopersm...@sun.com
 Oracle Solaris Platform Engineering: X Window System

___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel


Re: A question for Xserver debug

2010-03-24 Thread Adam Jackson
On Wed, 2010-03-24 at 06:20 -0700, Alan Coopersmith wrote:
 Huang, FrankR wrote:
  Hi,all
  
  I am debugging the xserver code now. But one thing has
  puzzled me.
  
  When I add some modification to /dix/main.c , then make 
  make install. Though the new main.c file has been compiled, no
  modification effect display.
  
  After that, I do some modification to
  /hw/xfree86/common/xf86Init.c. Do the same steps. The modification to
  main.c displays at the same time. Why this happens??
 
 No one has ever gone through the exercise of ensuring the complex
 dependencies are properly setup to force rebuilding the Xorg server
 any time any related file changes.   Sometimes you just have to
 manually rm hw/xfree86/Xorg and then make install.   If this annoys
 you, we're happy to review proposed patches to improve it.

I did add the 'relink' target for this reason.

- ajax


signature.asc
Description: This is a digitally signed message part
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: A question for Xserver debug

2010-03-24 Thread Huang, FrankR
Done as Alan said.
rm /hw/xfree86/Xorg , then rebuild and install.
The modificaiotn to main takes effect. The dependency is not build well
for this. 
Ajax, how to do solve this?


Thanks 
Frank



Message: 8
Date: Wed, 24 Mar 2010 13:19:25 -0400
From: Adam Jackson a...@nwnk.net
Subject: Re: A question for Xserver debug
To: Alan Coopersmith alan.coopersm...@sun.com
Cc: Huang, FrankR frankr.hu...@amd.com, xorg-devel@lists.x.org
Message-ID:
1269451165.10304.146.ca...@atropine.boston.devel.redhat.com
Content-Type: text/plain; charset=utf-8

On Wed, 2010-03-24 at 06:20 -0700, Alan Coopersmith wrote:
 Huang, FrankR wrote:
  Hi,all
  
  I am debugging the xserver code now. But one thing has
  puzzled me.
  
  When I add some modification to /dix/main.c , then make

  make install. Though the new main.c file has been compiled, no
  modification effect display.
  
  After that, I do some modification to
  /hw/xfree86/common/xf86Init.c. Do the same steps. The modification
to
  main.c displays at the same time. Why this happens??
 
 No one has ever gone through the exercise of ensuring the complex
 dependencies are properly setup to force rebuilding the Xorg server
 any time any related file changes.   Sometimes you just have to
 manually rm hw/xfree86/Xorg and then make install.   If this annoys
 you, we're happy to review proposed patches to improve it.

I did add the 'relink' target for this reason.

- ajax


___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel