List Info

Thread: RE: Breakpoint function address




RE: Breakpoint function address
country flaguser name
Canada
2007-08-23 03:48:21
> Well, obviously I can't try it with target remote; I
don't 
> have your target.  Could you post a complete bad
session 
> using "set debug remote 1"
> before connecting to the target?

Sorry for data overload but here are various logs.

GNU gdb 6.6.50.20070813-cvs - working elf
w $qSupported#37
r +$#00
w ++$Hc-1#09
r +$#00
w +$qC#b4
r +$#00
w +$qOffsets#4b
r +$#00
w +$?#3f
r +$S02#b5
w +$Hg0#df
r +$#00
w +$g#67
r
+$ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffff00000000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
00000000000000000000000000d3000060#8d
w +$m0,4#fd
r +$18f09fe5#38
w +$qSymbol::#5b
r +$#00
w +
c 
c b main
c 
c s
w $Z0,28c,4#e3
r +$OK#9a
w +$vCont?#49
r +$#00
w +$Hc0#db
r +$#00
w +$s#73
r +$T05#b9
w +$g#67
r
+$ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffff
ffffffffffffffffffffffffffffff000a0004ffffffff44010000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
00000000000000000000000000d3000060#1b
w +$m144,4#66
r +$f0f09fe5#65
w +$mfffffffe,4#fc
r +$000018f0#bf
w +$mffffffff,4#fd
r +$0018f09f#fe
w +$m9ff017f8,4#08
r +$E05#aa
w +
c quit
w $k#6b
r +
End of log

GNU gdb 6.6.50.20070813-cvs - failed elf
w $qSupported#37
r +$#00
w ++$Hc-1#09
r +$#00
w +$qC#b4
r +$#00
w +$qOffsets#4b
r +$#00
w +$?#3f
r +$S02#b5
w +$Hg0#df
r +$#00
w +$g#67
r
+$ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffff00000000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
00000000000000000000000000d3000060#8d
w +$m0,4#fd
r +$18f09fe5#38
w +$qSymbol::#5b
r +$#00
w +
c 
c b main
c 
c s
w $Z0,4,4#4a
r +$OK#9a
w +$vCont?#49
r +$#00
w +$Hc0#db
r +$#00
w +$s#73
r +$T05#b9
w +$g#67
r
+$ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffff
ffffffffffffffffffffffffffffff000a0004ffffffff44010000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
00000000000000000000000000d3000060#1b
w +$m144,4#66
r +$f0f09fe5#65
w +$mfffffffb,4#f9
r +$00000000#80
w +$m0,4#fd
r +$18f09fe5#38
w +$mfffffff7,4#ce
r +$00000000#80
w +$z0,4,4#6a
r +$OK#9a
w +
c 
c quit
w $k#6b
r +
End of log

GNU gdb (Sourcery G++ 4.1-40) 6.6.50.20061124-cvs - works on
both files
w $qSupported#37
r +$#00
w ++$Hc-1#09
r +$#00
w +$qC#b4
r +$#00
w +$qOffsets#4b
r +$#00
w +$?#3f
r +$S02#b5
w +$Hg0#df
r +$#00
w +$g#67
r
+$ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffff00000000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
00000000000000000000000000d3000060#8d
w +$m0,4#fd
r +$18f09fe5#38
w +$qSymbol::#5b
r +$#00
w +
c 
c b main
w $m27c,4#99
r +$00482de9#00
w +
C 
c s
w $Z0,27c,4#e2
r +$OK#9a
w +$vCont?#49
r +$#00
w +$Hc0#db
r +$#00
w +$s#73
r +$T05#b9
w +$g#67
r
+$ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffff
ffffffffffffffffffffffffffffff000a0004ffffffff44010000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
00000000000000000000000000d3000060#1b
w +$m144,4#66
r +$f0f09fe5#65
w +$mfffffffb,4#f9
r +$00000000#80
w +$m0,4#fd
r +$18f09fe5#38
w +$mfffffff7,4#ce
r +$00000000#80
w +$s#73
r +$T05#b9
w +$g#67
r
+$ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffff
ffffffffffffffffffffffffffffff000a0004ffffffff48010000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000
00000000000000000000000000d3000060#1f
w +$m148,4#6a
r +$0000a0e1#e7
w +$z0,27c,4#02
r +$OK#9a
w +
c 
c quit
w $k#6b
r +
End of log

GNU gdb (CodeSourcery Sourcery G++ Lite 2007q1-10)
6.6.50.20070320-cvs -
failed elf
w $qSupported#37
r +$#00
w ++$Hc-1#09
r +$#00
w +$qC#b4
r +$#00
w +$qOffsets#4b
r +$#00
w +$?#3f
r +
Then crashes with a Access Violation - 0xc0000005

Cheers
Spen


Re: Breakpoint function address
country flaguser name
United States
2007-08-23 06:46:20
On Thu, Aug 23, 2007 at 09:48:21AM +0100, Spen wrote:
> GNU gdb 6.6.50.20070813-cvs - failed elf

I compiled current CVS for arm-elf.  I connected to a
remote
gdbserver - not quite the same but as close as I can
manage.
I repeated your steps and the breakpoint went to the right
location.

Then I tried using gdbreplay on your log file.  That time I
got
the bad breakpoint.

Your ELF file shows:

 <1><196f>: Abbrev Number: 19
(DW_TAG_subprogram)
  <1970>     DW_AT_sibling     : <1a0f>
  <1974>     DW_AT_external    : 1
  <1975>     DW_AT_name        : (indirect string,
offset: 0x8f7): VIC_Config
  <1979>     DW_AT_decl_file   : 1
  <197a>     DW_AT_decl_line   : 724
  <197c>     DW_AT_prototyped  : 1
  <197d>     DW_AT_low_pc      : 0
  <1981>     DW_AT_high_pc     : 0x3f0
  <1985>     DW_AT_frame_base  : 1 byte block: 5b     
 (DW_OP_reg11)

That's interesting because that function does not exist in
your file
anywhere.  You've only got debug info for it.  I assume that
it was
discarded by --gc-sections.  This should hopefully tip you
off:

#0  VIC_Config (VIC_Source=65535, VIC_LineMode=4294967295,
VIC_Priority=255 '�')

Probably not where you expected to be when you connected to
your target.

Try building a CVS snapshot of binutils or using the 2.18
prerelease
snapshot from two weeks ago, and relinking.  I recently
changed the
way the linker behaves when updating debug info for
discarded
functions.  It will now set the high PC of the function to
0, so we
will never decide it is current.

-- 
Daniel Jacobowitz
CodeSourcery

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )