From: "Spen" <spen@spen-soft.co.uk>
To: <gdb@sources.redhat.com>
Subject: Breakpoint function address
Date: Tue, 21 Aug 2007 14:00:00 -0000 [thread overview]
Message-ID: <E1INUH8-000GJz-Sw@smtp2.global.net.uk> (raw)
Hi,
I have just updated to using gdb 6.6 from 6.5 (actually using insight).
Part of my startup script is to set a breakpoint @ main: thb main
This has been fine under 6.5 but seems to have broken under 6.6 (also tried
cvs head).
The problem occurs if I link with the gc-sections option, removing this
option the breakpoints are set correctly.
With gc-secions
thb main will set the breakpoint @ 0x00000004
gdb 6.6 (gdb head does not) reports the following when loading the file:
misplaced first line number at 0x48 for 'VICITCmd'
Without gc-sections
thb main set to 0x0000028c as expected.
print main produces (with/without gc-sections).
$1 = {int (void)} 0x27c <main>
My target is remote arm-elf (using openocd) running under cygwin.
The same problem occurs if building under gcc 3.4.6 or 4.2.
Any help would be greatly appreciated.
Cheers
Spen
next reply other threads:[~2007-08-21 14:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-21 14:00 Spen [this message]
2007-08-21 14:10 ` Daniel Jacobowitz
2007-08-21 14:25 ` Spen
2007-08-21 14:27 ` Daniel Jacobowitz
2007-08-21 19:14 ` Daniel Jacobowitz
2007-08-22 9:49 ` Spen
2007-08-22 11:10 ` Daniel Jacobowitz
2007-08-23 8:46 ` Spen
2007-08-23 11:46 ` Daniel Jacobowitz
2007-08-23 14:32 ` Spen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1INUH8-000GJz-Sw@smtp2.global.net.uk \
--to=spen@spen-soft.co.uk \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox