Article View: gnu.gcc.help
Article #52085Help with using gdb remote with embedded systems
From: Dave Shepperd
Date: Fri, 19 Feb 1993 00:52
Date: Fri, 19 Feb 1993 00:52
34 lines
2120 bytes
2120 bytes
I've been trying to figure out how I would use gdb with an ICE to do remote
debugging. So far, I've noticed a couple of things:
1) It appears that gdb knows deep in its bones that once the target program is
started (with a run, continue, next, etc), that nothing else (except QUIT) can
happen. The ICE has no such restriction. I'd like to be able to continue to
examine (static) variables, browse source, set breaks, etc. after I start the
target program. Anyone have any opinions about how much trouble I'm going to
have "removing" this "hang until target stops" from gdb, if it even possible
or if somebody has already done it. (Detach doesn't do the trick since it
removes all breakpoints in the process).
2) I don't completely understand this comment found in symtab.h:
/* ...
Each item used to be an int; either minus a line number, or a
program counter. If it represents a line number, that is the line
described by the next program counter value. If it is positive, it
is the program counter at which the code for the next line starts. */
struct linetable_entry
{
int line;
CORE_ADDR pc;
};
Does this mean one cannot run executables in a 32 bit address space above
location 0x7FFFFFFF or does this comment no longer apply?
Thanks in advance. Reply to shepperd@netcom.com or shepperd@agames.com
--
Dave Shepperd. agames.com!shepperd
Atari Games Corporation, 675 Sycamore Drive, Milpitas CA 95035.
Nobody knows what I'm saying. I don't even know what I'm saying.
Technical Details
Message-ID:
<1993Feb19.005257.18107@dms.agames.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!wupost!csus.edu!netcom.com!netcomsv!dms!shepperdShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,254037cad8c3f91c,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-02-18 16:52:57 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!wupost!csus.edu!netcom.com!netcomsv!dms!shepperd From: shepperd@dms.agames.com (Dave Shepperd) Subject: Help with using gdb remote with embedded systems Message-ID: <1993Feb19.005257.18107@dms.agames.com> Organization: Atari Games Corporation Date: Fri, 19 Feb 1993 00:52:57 GMT Lines: 34