First step: run arm-mingw32ce-gcc -g --save-temps test.c -o test.exe
this crashes after quite a LONG time (several seconds).
then:
C:\MinGW>del test.o
C:\MinGW>gcc3\bin\gdb.exe arm-mingw32ce-as.exe
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) break coffcode.h:3656
Breakpoint 1 at 0x45fef1: file
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h, line 3656. (2
locations)
(gdb) run test.s
Starting program: c:\MinGW\cross41-debug\bin/arm-mingw32ce-as.exe test.s
[New thread 2316.0x3b0]
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h: No such
file or directory.
in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
(gdb) print len
$1 = 5
(gdb) print string_size
$2 = 4
(gdb) print *current
$3 = {name = 0x4a0a6e ".text", id = 16, index = 0, next = 0x1591608, prev =
0x0, flags = 279, user_set_vma = 0, linker_mark = 0,
linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0,
use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma =
0, size = 72, rawsize = 0, relax = 0x0, relax_count = 0,
output_offset = 0, output_section = 0x1591550, alignment_power = 2,
relocation = 0x0, orelocation = 0x14e54a0, reloc_count = 2, filepos = 500,
rel_filepos = 1596, line_filepos = 0, userdata = 0x2328b0, contents = 0x0,
lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
moving_line_filepos = 0, target_index = 1, used_by_bfd = 0x0,
constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e3358,
symbol_ptr_ptr = 0x15915e8, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
(gdb)
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
(gdb) display len
1: len = 5
(gdb) display string_size
2: string_size = 4
(gdb) display *current
3: *current = {name = 0x4a0a74 ".data", id = 17, index = 1, next =
0x15916c0, prev = 0x1591550, flags = 3, user_set_vma = 0, linker_mark = 0,
linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0,
use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma =
0, size = 0, rawsize = 0, relax = 0x0, relax_count = 0,
output_offset = 0, output_section = 0x1591608, alignment_power = 2,
relocation = 0x0, orelocation = 0x0, reloc_count = 0, filepos = 0,
rel_filepos = 0, line_filepos = 0, userdata = 0x2328f8, contents = 0x0,
lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
moving_line_filepos = 0, target_index = 2, used_by_bfd = 0x0,
constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e34c0,
symbol_ptr_ptr = 0x15916a0, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
(gdb)
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x4a0a7a ".bss", id = 18, index = 2, next = 0x15918e8,
prev = 0x1591608, flags = 1, user_set_vma = 0, linker_mark = 0,
linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0,
use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma =
0, size = 0, rawsize = 0, relax = 0x0, relax_count = 0,
output_offset = 0, output_section = 0x15916c0, alignment_power = 2,
relocation = 0x0, orelocation = 0x0, reloc_count = 0, filepos = 0,
rel_filepos = 0, line_filepos = 0, userdata = 0x232940, contents = 0x0,
lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
moving_line_filepos = 0, target_index = 3, used_by_bfd = 0x0,
constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e3628,
symbol_ptr_ptr = 0x1591758, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 4
1: len = 4
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x16d7418 ".debug_abbrev", id = 21, index = 3, next =
0x15919a0, prev = 0x15916c0, flags = 298, user_set_vma = 0,
linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0,
sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0,
reloc_done = 0, vma = 0, lma = 0, size = 145, rawsize = 0, relax = 0x0,
relax_count = 0, output_offset = 0, output_section = 0x15918e8,
alignment_power = 0, relocation = 0x0, orelocation = 0x0, reloc_count = 0,
filepos = 572, rel_filepos = 0, line_filepos = 0, userdata = 0x16d7440,
contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
kept_section = 0x0, moving_line_filepos = 0, target_index = 4, used_by_bfd
= 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e3d58,
symbol_ptr_ptr = 0x1591980, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 4
1: len = 13
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x14e6518 ".debug_info", id = 22, index = 4, next =
0x1591a58, prev = 0x15918e8, flags = 302, user_set_vma = 0,
linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0,
sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0,
reloc_done = 0, vma = 0, lma = 0, size = 451, rawsize = 0, relax = 0x0,
relax_count = 0, output_offset = 0, output_section = 0x15919a0,
alignment_power = 0, relocation = 0x0, orelocation = 0x1814718, reloc_count
= 9,
filepos = 717, rel_filepos = 1616, line_filepos = 0, userdata = 0x14e6540,
contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
kept_section = 0x0, moving_line_filepos = 0, target_index = 5, used_by_bfd
= 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e3ee8,
symbol_ptr_ptr = 0x1591a38, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 18
1: len = 11
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x14e75e0 ".debug_line", id = 23, index = 5, next =
0x1591b10, prev = 0x15919a0, flags = 8460, user_set_vma = 0,
linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0,
sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0,
reloc_done = 0, vma = 0, lma = 0, size = 248, rawsize = 0, relax = 0x0,
relax_count = 0, output_offset = 0, output_section = 0x1591a58,
alignment_power = 0, relocation = 0x0, orelocation = 0x18149e0, reloc_count
= 1,
filepos = 1168, rel_filepos = 1706, line_filepos = 0, userdata =
0x14e8600, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
kept_section = 0x0, moving_line_filepos = 0, target_index = 6, used_by_bfd
= 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e4078,
symbol_ptr_ptr = 0x1591af0, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 30
1: len = 11
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x14e96f8 ".rdata", id = 24, index = 6, next =
0x1591bc8, prev = 0x1591a58, flags = 290, user_set_vma = 0, linker_mark = 0,
linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0,
use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma =
0, size = 12, rawsize = 0, relax = 0x0, relax_count = 0,
output_offset = 0, output_section = 0x1591b10, alignment_power = 2,
relocation = 0x0, orelocation = 0x0, reloc_count = 0, filepos = 1416,
rel_filepos = 0, line_filepos = 0, userdata = 0x14e9718, contents = 0x0,
lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
moving_line_filepos = 0, target_index = 7, used_by_bfd = 0x0,
constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e77a0,
symbol_ptr_ptr = 0x1591ba8, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 42
1: len = 6
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x14ecf58 ".debug_frame", id = 25, index = 7, next =
0x1591c80, prev = 0x1591b10, flags = 302, user_set_vma = 0,
linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0,
sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0,
reloc_done = 0, vma = 0, lma = 0, size = 48, rawsize = 0, relax = 0x0,
relax_count = 0, output_offset = 0, output_section = 0x1591bc8,
alignment_power = 2, relocation = 0x0, orelocation = 0x1814a68, reloc_count
= 2,
filepos = 1428, rel_filepos = 1716, line_filepos = 0, userdata =
0x14ecf80, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
kept_section = 0x0, moving_line_filepos = 0, target_index = 8, used_by_bfd
= 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e7b88,
symbol_ptr_ptr = 0x1591c60, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 42
1: len = 12
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x14edfc8 ".debug_loc", id = 26, index = 8, next =
0x1591d38, prev = 0x1591bc8, flags = 298, user_set_vma = 0,
linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0,
sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0,
reloc_done = 0, vma = 0, lma = 0, size = 42, rawsize = 0, relax = 0x0,
relax_count = 0, output_offset = 0, output_section = 0x1591c80,
alignment_power = 0, relocation = 0x0, orelocation = 0x0, reloc_count = 0,
filepos = 1476, rel_filepos = 0, line_filepos = 0, userdata = 0x16d7868,
contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
kept_section = 0x0, moving_line_filepos = 0, target_index = 9, used_by_bfd
= 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e7e08,
symbol_ptr_ptr = 0x1591d18, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 55
1: len = 10
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x16d79b0 ".debug_pubnames", id = 27, index = 9, next
= 0x1591df0, prev = 0x1591c80, flags = 302, user_set_vma = 0,
linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0,
sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0,
reloc_done = 0, vma = 0, lma = 0, size = 30, rawsize = 0, relax = 0x0,
relax_count = 0, output_offset = 0, output_section = 0x1591d38,
alignment_power = 0, relocation = 0x0, orelocation = 0x1814b38, reloc_count
= 1,
filepos = 1518, rel_filepos = 1736, line_filepos = 0, userdata =
0x16d79d8, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
kept_section = 0x0, moving_line_filepos = 0, target_index = 10,
used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol =
0x14e7fc0,
symbol_ptr_ptr = 0x1591dd0, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 66
1: len = 15
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x16d7a20 ".debug_aranges", id = 28, index = 10, next
= 0x1591ea8, prev = 0x1591d38, flags = 302, user_set_vma = 0,
linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0,
sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0,
reloc_done = 0, vma = 0, lma = 0, size = 32, rawsize = 0, relax = 0x0,
relax_count = 0, output_offset = 0, output_section = 0x1591df0,
alignment_power = 0, relocation = 0x0, orelocation = 0x1814ba0, reloc_count
= 2,
filepos = 1548, rel_filepos = 1746, line_filepos = 0, userdata =
0x16d7a48, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
kept_section = 0x0, moving_line_filepos = 0, target_index = 11,
used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol =
0x14e8128,
symbol_ptr_ptr = 0x1591e88, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 82
1: len = 14
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x16d7a90 ".debug_str", id = 29, index = 11, next =
0x0, prev = 0x1591df0, flags = 298, user_set_vma = 0, linker_mark = 0,
linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0,
use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma =
0, size = 13, rawsize = 0, relax = 0x0, relax_count = 0,
output_offset = 0, output_section = 0x1591ea8, alignment_power = 0,
relocation = 0x0, orelocation = 0x0, reloc_count = 0, filepos = 1580,
rel_filepos = 0, line_filepos = 0, userdata = 0x16d7ab8, contents = 0x0,
lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
moving_line_filepos = 0, target_index = 12, used_by_bfd = 0x0,
constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e8290,
symbol_ptr_ptr = 0x1591f40, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 97
1: len = 10
(gdb) c
Continuing.
Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at
/home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656 in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x16d7a90 ".debug_str", id = 29, index = 11, next =
0x0, prev = 0x1591df0, flags = 298, user_set_vma = 0, linker_mark = 0,
linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0,
use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma =
0, size = 13, rawsize = 0, relax = 0x0, relax_count = 0,
output_offset = 0, output_section = 0x1591ea8, alignment_power = 0,
relocation = 0x0, orelocation = 0x0, reloc_count = 0, filepos = 1580,
rel_filepos = 0, line_filepos = 0, userdata = 0x16d7ab8, contents = 0x0,
lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
moving_line_filepos = 0, target_index = 12, used_by_bfd = 0x0,
constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e8290,
symbol_ptr_ptr = 0x1591f40, map_head = {link_order = 0x0, s = 0x0},
map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 97
1: len = 10
(gdb) c
Continuing.
Program exited normally.
All of this seems very normal to me. What about you?
Sebastien
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel