Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Breakpoint function address
@ 2007-08-21 14:00 Spen
  2007-08-21 14:10 ` Daniel Jacobowitz
  2007-08-21 19:14 ` Daniel Jacobowitz
  0 siblings, 2 replies; 10+ messages in thread
From: Spen @ 2007-08-21 14:00 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-08-23 14:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-21 14:00 Breakpoint function address Spen
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox