Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* trying to build gdb with renamed cygwin1.dll
@ 2007-04-30 15:05 Fahd Abidi
  2007-04-30 15:10 ` Bob Rossi
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Fahd Abidi @ 2007-04-30 15:05 UTC (permalink / raw)
  To: gdb

Hello,

I was trying to build a gdb version that would use a renamed version of
cygwin1.dll and some of the other dll's that gdb seem to depend on. I
determined all the dll's that gdb relies on using the "cygcheck" command

My purpose is to try and build a gdb that so I can move it across
different windows platforms with out worrying about newer or older
versions of the cygwin dll interfering. I already looked at the MinGW
option but the newer versions of gdb do not build against mingw32.

My procedure was something like so, copied and renamed the dll's
cygwin1, cygiconv-2,cygitl-3,cygcurses-8,tcl84,tk84 into another
directory. Then tried to compile gdb against these renamed dll's by
using the --libdir configure option. Unfortunately the resulting gdb
executable totally ignores these renamed libraries and still links
against the original dlls.

Is this going to be possible to do?

Thanks allot in advance.

Fahd
 


^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: trying to build gdb with renamed cygwin1.dll
@ 2007-04-30 15:38 Fahd Abidi
  2007-04-30 15:49 ` Andrew STUBBS
  0 siblings, 1 reply; 13+ messages in thread
From: Fahd Abidi @ 2007-04-30 15:38 UTC (permalink / raw)
  To: Andrew STUBBS; +Cc: gdb

I tried the -mno-cygwin option but got several compile errors. I didn't
want to debug the sources because of time constraints. That is why I
thought that compiling against a renamed cygwin1.dll might be an eaisier
solution.

Fahd
 

-----Original Message-----
From: Andrew STUBBS [mailto:andrew.stubbs@st.com] 
Sent: Monday, April 30, 2007 11:30 AM
To: Fahd Abidi
Cc: gdb@sourceware.org
Subject: Re: trying to build gdb with renamed cygwin1.dll

Fahd Abidi wrote:
> My purpose is to try and build a gdb that so I can move it across 
> different windows platforms with out worrying about newer or older 
> versions of the cygwin dll interfering. I already looked at the MinGW 
> option but the newer versions of gdb do not build against mingw32.

I don't know about the exact solution you had in mind, but ....

You might want to investigate the -mno-cygwin GCC option. This builds
"MinGW" binaries (Minimum GNU for Windows) which do not depend upon
anything not present in a standard Windows installation. This is how our
Windows tools are built.

Obviously there are issues with doing it this way - no automatic support
for Cygwin pathnames being the biggest - but most of these can be
overcome with little effort, and all overcome with more effort.

Andrew




^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: trying to build gdb with renamed cygwin1.dll
@ 2007-04-30 16:38 Fahd Abidi
  2007-04-30 17:04 ` Andrew STUBBS
  2007-04-30 20:12 ` Dave Korn
  0 siblings, 2 replies; 13+ messages in thread
From: Fahd Abidi @ 2007-04-30 16:38 UTC (permalink / raw)
  To: gdb

Actually I am planning on eventually building a cross debugger for
arm/ppc/mips/xscale. But that will be afterwards. Right now I am just
trying to get the gdb binary to be stand alone. Actually I had allot of
success with building with the --disable-shared and --enable-static
option and was able to move the resulting gdb across different versions
of cygwin1.dll without it complain about using an incompatible version
of cygwin1.dll.

I think I will use this and play some games with a batch script and
figure out how to detect an existing version of cygwin1.dll then use
that info to decide whether to install my own version before gdb starts
up. Sounds like that will be the easiest solution.

Thanks for all the help. Sorry if I posted your email will be more
careful in the future. Is there a moderator here that can remove the
email address from my previous post?

thanks,

Fahd
 

-----Original Message-----
From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
Behalf Of Andrew STUBBS
Sent: Monday, April 30, 2007 12:30 PM
To: gdb@sourceware.org
Cc: Fahd Abidi
Subject: Re: trying to build gdb with renamed cygwin1.dll

Brian Dessent wrote:
> I think the two of you are talking about two different things.  It 
> sounds like he's trying to build a native debugger, and you're talking

> about a MinGW-hosted cross.  As far as I know (and I could be wrong), 
> building a native MinGW gdb does not work currently and hasn't for 
> some years, because it requires a ton of local patches that were never

> contributed.  The MinGW site indeed offers only a circa-2003 gdb v6.0 
> and a 2005 vintage v6.3, and that's it.

Fair point, I am talking about my experience with a cross-debugger.

He doesn't actually say what his debugger targets, but I had assumed it
was not native because, if he has Cygwin, he already has a native GDB.

Sorry if I've confused the matter.

Andrew




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-04-30 20:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-30 15:05 trying to build gdb with renamed cygwin1.dll Fahd Abidi
2007-04-30 15:10 ` Bob Rossi
2007-04-30 15:13   ` Bob Rossi
2007-04-30 15:18 ` Andrew STUBBS
2007-04-30 15:32 ` Brian Dessent
2007-04-30 15:38 Fahd Abidi
2007-04-30 15:49 ` Andrew STUBBS
2007-04-30 15:57   ` Brian Dessent
2007-04-30 16:15     ` Andrew STUBBS
2007-04-30 16:38 Fahd Abidi
2007-04-30 17:04 ` Andrew STUBBS
2007-04-30 20:12 ` Dave Korn
2007-04-30 20:18   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox