From: Wolfgang Denk Date: Thu, 12 May 2011 23:34:48 +0200 Subject: [U-Boot] [PATCH v3 2/2] README.arm-relocation: get relocated address in gdb In-Reply-To: <7ed11e02b0db005231f5c6baa299761f3aa04f6f.1304024417.git.bengardiner@nanometrics.ca> References: <7ed11e02b0db005231f5c6baa299761f3aa04f6f.1304024417.git.bengardiner@nanometrics.ca> Message-ID: <20110512213448.3CECAD6F24F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Ben Gardiner, In message <7ed11e02b0db005231f5c6baa299761f3aa04f6f.1304024417.git.bengardiner@nanometrics.ca> you wrote: > When your emulator is connected at reset (or is used to load u-boot) > it is possible to get the relocation address from the gd->relocaddr > since gd is always in r8 (on ARM) it is addressable before the > gdb has remapped symbols. > > Document this alternate method in-line with the original method > written by Heiko Schocher. > > Signed-off-by: Ben Gardiner > CC: Heiko Schocher > CC: Wolfgang Denk > > --- > Changes since V2: > * add gd->relocaddr as a secondary method of obtaining the symbol-file > gdb argument > Changes since V1: > * update to reflect proposed changes to existing debug instructions: > renumber steps, remove note about -DDEBUG > --- > doc/README.arm-relocation | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Military secrets are the most fleeting of all. -- Spock, "The Enterprise Incident", stardate 5027.4