Article View: gnu.gcc.help
Article #52052Question: How to get gdb to recognize dynamically loaded symbols
From: Gordie Freedman
Date: Wed, 24 Feb 1993 22:58
Date: Wed, 24 Feb 1993 22:58
21 lines
1376 bytes
1376 bytes
Hope this is the right group for this (I didn't see any gdb.help groups) - Background: I'm dynamically loading code into a running program on the Sparc (Sunos 4.1.1), I use gcc 2.3.3 to compile everything. I am not using any Unix/Sparc utilities to load the code, rather I do it myself, opening the file for the code to be loaded, mallocing storage and reading the code in, and linking everything with my own code. Question: Is there a way to tell gdb that a function "foo" in a file "foo.c" now lives at some address in memory? Or that the code from a .c file now starts at a certain point? Any help appreciated, email very appreciated. Thanks, --- Gordie Freedman: gordie@kaleida.com Sigs are for kids
Technical Details
Message-ID:
<1mguhpINNmhr@golden.kaleida.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!apple!kaleida.com!moon!gordieShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,671bedb62afe940f,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-02-24 14:58:01 PST Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!apple!kaleida.com!moon!gordie From: gordie@kaleida.com (Gordie Freedman) Newsgroups: gnu.gcc.help Subject: Question: How to get gdb to recognize dynamically loaded symbols Date: 24 Feb 1993 22:58:01 GMT Organization: Happy hacker bait and tackle shop Lines: 23 Distribution: world Message-ID: <1mguhpINNmhr@golden.kaleida.com> Reply-To: gordie@kaleida.com NNTP-Posting-Host: moon.kaleida.com Keywords: gdb sparc load