Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Can one debug 32-bit x86 images with an x86_64 gdb?: msg#00006

Subject: Re: Can one debug 32-bit x86 images with an x86_64 gdb?
[switched mailing list as this is redhat specific]

John Yates wrote:
We are starting to port our 32 bit product to an x86_64
platform (RH 4.0 beta2).  Once we have it running as a
32 bit image (still compiled with gcc 2.96) we will start
the slog to gcc 3.x and a full 64 bit port.

Except for the 32 bit gcc which we have had to migrated
-- our code currently includes numerous anachronisms no
longer accepted by the 3.x compilers -- we have been able
to coax the native system tools (bison, ar, ld, etc) into
compliance with our 32 bit build procedure.

Debugging is a different story.  The install gdb image
describes itself as:

  6.1post-1.20040607.46rh
  x86_64-redhat-linux-gnu

It does not decline to debug our 32 bit images yet it
produces total garbage.  Is there a flag or environment
variable that I may have overlooked?  Or is a single gdb
image not intended to fulfill both roles?

I'd first confirm that the Red Hat [vendor] supplied compiler can build/debug a 32-bit application (gcc -m32).

Assuming that's the case (I expect it to since I test it and the results match 32-bit on 32-bit :-) I'd then start looking for other querks in your non-standard 32-bit build environment. Off the top of my head: was that 32-bit environment built 32-bit; does it work on 32-bit systems; is the debug info being corrupted (stabs vs dwarf-2).

Andrew



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe