delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/06/25/06:38:23

From: pavenis AT lanet DOT lv
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, djgpp-workers AT delorie DOT com
Date: Tue, 25 Jun 2002 13:38:18 +0300
MIME-Version: 1.0
Subject: Re: gcc-3.1.X and DWARF2 debugging info for DJGPP
Message-ID: <3D18724A.14470.A93C94@localhost>
References: <3D186451 DOT 1096 DOT 72A757 AT localhost>
In-reply-to: <Pine.SUN.3.91.1020625131114.191D-100000@is>
X-mailer: Pegasus Mail for Windows (v4.01)
X-MIME-Autoconverted: from Quoted-printable to 8bit by delorie.com id g5PAcMt22921
Reply-To: djgpp-workers AT delorie DOT com

On 25 Jun 2002 at 13:12, Eli Zaretskii wrote:

> On Tue, 25 Jun 2002 pavenis AT lanet DOT lv wrote:
> 
> > I tried to change to DWARF2 as default debugging info and run into trouble.
> > GDB-5.2 (and also rather recent development snapshot of GDB) does not recognize
> > debugging info of executables generated by this build (currently only tested
> > executables from build of stage2 of gcc bootstrapping):
> > 
> > D:\...cc-3.11-prerelease\build.djg\gcc>gdb cc1.exe
> 
> Does this work with unstubbed images?
> 
> Also, what's changed since GCC 3.1?  IIRC, that version produced 
> executables that GDB 5.2 did recognize, no?
> 
> Finally, I assume this problem doesn't happen on GNU/Linux, does it?

True.

Tried to look what happens with GDB. Below is backtrace from site where
I'm getting the error message and some other information from GDB.

Andris

(top-gdb) r
Starting program: d:/Devel/rhide3/gdb-5.2/gdb/gdb.exe
GNU gdb 5.2
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-pc-msdosdjgpp".
Setting up the environment for debugging gdb.
gdb.ini:5: Error in sourced command file:
No symbol table is loaded.  Use the "file" command.
(gdb) file cc1.exe
Reading symbols from cc1.exe...
Breakpoint 3, dwarf2_build_psymtabs_hard (objfile=0xfe9fb5c8, mainline=1)
    at dwarf2read.c:1062
1062              error ("Dwarf Error: wrong version in compilation unit header
");
(top-gdb) where
#0  dwarf2_build_psymtabs_hard (objfile=0xfe9fb5c8, mainline=1)
    at dwarf2read.c:1062
#1  0x000b27e1 in coff_symfile_read (objfile=0xfe9fb5c8, mainline=1)
    at coffread.c:663
#2  0x0000957a in syms_from_objfile (objfile=0xfe9fb5c8, addrs=0x25d4d0,
    mainline=1, verbo=1) at symfile.c:729
#3  0x00009a09 in symbol_file_add (name=0xfe9ac110 "cc1.exe", from_tty=1,
    addrs=0x0, mainline=1, flags=32) at symfile.c:858
#4  0x00009abb in symbol_file_add_main_1 (args=0xfe9ac110 "cc1.exe",
    from_tty=1, flags=32) at symfile.c:919
#5  0x00009c81 in symbol_file_command (args=0x25ef45 "cc1.exe", from_tty=1)
    at symfile.c:1007
#6  0x0000ed1d in file_command (arg=0x25ef45 "cc1.exe", from_tty=1)
    at exec.c:357
#7  0x000fe264 in do_cfunc (c=0xfff04f30, args=0x25ef45 "cc1.exe", from_tty=1)
    at cli-decode.c:50
#8  0x0000344b in execute_command (p=0x25ef4b "e", from_tty=1) at top.c:715
#9  0x0003e47c in command_handler (command=0x25ef40 "") at event-top.c:504
#10 0x0003e8e6 in command_line_handler (rl=0xfff12bc8 "©-%") at event-top.c:800
#11 0x00147907 in rl_callback_read_char ()
#12 0x0003dd6a in rl_callback_read_char_wrapper (client_data=0x0)
    at event-top.c:168
#13 0x0003e30e in stdin_event_handler (error=0, client_data=0x0)
    at event-top.c:418
#14 0x000890fc in handle_file_event (event_file_desc=0) at event-loop.c:714
#15 0x00088c44 in process_event () at event-loop.c:335
#16 0x00088c96 in gdb_do_one_event (data=0x0) at event-loop.c:372
#17 0x0000300f in do_catch_errors (uiout=0xfff0ea38, data=0x25db60)
    at top.c:491
#18 0x00002f10 in catcher (func=0x3000 <do_catch_errors>,
    func_uiout=0xfff0ea38, func_args=0x25db60, func_val=0x25db58,
    func_caught=0x25db5c, errstring=0x88c9d "", mask=6) at top.c:423
#19 0x00003057 in catch_errors (func=0x88c60 <gdb_do_one_event>,
    func_args=0x0, errstring=0x88c9d "", mask=6) at top.c:503
#20 0x00088cb8 in start_event_loop () at event-loop.c:396
#21 0x00001624 in captured_command_loop (data=0x0) at main.c:94
#22 0x0000300f in do_catch_errors (uiout=0xfff0ea38, data=0x25dcf0)
    at top.c:491
#23 0x00002f10 in catcher (func=0x3000 <do_catch_errors>,
    func_uiout=0xfff0ea38, func_args=0x25dcf0, func_val=0x25dce8,
    func_caught=0x25dcec, errstring=0x1713 "", mask=6) at top.c:423
#24 0x00003057 in catch_errors (func=0x15e0 <captured_command_loop>,
    func_args=0x0, errstring=0x1713 "", mask=6) at top.c:503
#25 0x0000233b in captured_main (data=0x25df58) at main.c:723
#26 0x0000300f in do_catch_errors (uiout=0x1a5b20, data=0x25df30) at top.c:491
#27 0x00002f10 in catcher (func=0x3000 <do_catch_errors>, func_uiout=0x1a5b20,
    func_args=0x25df30, func_val=0x25df28, func_caught=0x25df2c,
    errstring=0x1713 "", mask=6) at top.c:423
#28 0x00003057 in catch_errors (func=0x18b0 <captured_main>,
#29 0x00002459 in main (argc=1, argv=0x25e588) at main.c:734
#30 0x00185f47 in __crt1_startup ()
(top-gdb) p *objfile
$4 = {next = 0x0, name = 0xfe9ac2f0 "d:/Devel/rhide3/gdb-5.2/gdb/cc1.exe",
  flags = 36, symtabs = 0xfff7ef18, psymtabs = 0x2c330c, free_psymtabs = 0x0,
  obfd = 0xfe9ac1f8, mtime = 1024998528, psymbol_obstack = {chunk_size = 4072,
    chunk = 0x2c3200, object_base = 0x2c3384 "", next_free = 0x2c3384 "",
    chunk_limit = 0x2c41e8 "", temp = 0, alignment_mask = 3,
    chunkfun = 0x6a10 <xmalloc>, freefun = 0x6a70 <xfree>, extra_arg = 0x0,
    use_extra_arg = 0, maybe_empty_object = 0, alloc_failed = 0},
  symbol_obstack = {chunk_size = 4072, chunk = 0xfff805e0,
    object_base = 0xfffcb8b8 "\213P\004\215B\004ݦH2",
    next_free = 0xfffcb8b8 "\213P\004\215B\004ݦH2",
    chunk_limit = 0xfffcb914 "2", temp = 0, alignment_mask = 3,
    chunkfun = 0x6a10 <xmalloc>, freefun = 0x6a70 <xfree>, extra_arg = 0x0,
    use_extra_arg = 0, maybe_empty_object = 0, alloc_failed = 0},
  type_obstack = {chunk_size = 4072, chunk = 0xfeac0588,
    object_base = 0xfeac0ad0 "def", next_free = 0xfeac0ad0 "def",
    chunk_limit = 0xfeac1570 "Íw§\002", temp = 0, alignment_mask = 3,
    chunkfun = 0x6a10 <xmalloc>, freefun = 0x6a70 <xfree>, extra_arg = 0x0,
    use_extra_arg = 0, maybe_empty_object = 0, alloc_failed = 0},
  psymbol_cache = {cache = {chunk_size = 4072, chunk = 0x2daca0,
      object_base = 0x2daf50 
"\f¹\237_D¹\237_|¹\237_¦¹\237_ò¹\237_$³\237_\\³\237
_\224³\237_¦³\237_\004²\237_@²\237_|²\237_˲\237_°²\237_4_\237_t_\237___\237_ò_\
237_( \237_h \237_¼ \237_ò \237_,",
      next_free = 0x2daf50 
"\f¹\237_D¹\237_|¹\237_¦¹\237_ò¹\237_$³\237_\\³\237_\
224³\237_¦³\237_\004²\237_@²\237_|²\237_˲\237_°²\237_4_\237_t_\237___\237_ò_\23
7_( \237_h \237_¼ \237_ò \237_,", chunk_limit = 0x2dbc88 "í\017", temp = 0,
      alignment_mask = 3, chunkfun = 0x6a10 <xmalloc>,
      freefun = 0x6a70 <xfree>, extra_arg = 0x0, use_extra_arg = 0,
      maybe_empty_object = 0, alloc_failed = 0}, num_buckets = 1021,
    bucket = 0x2c41f8, unique_count = 3083, total_count = 9366,
    unique_size = 70844, total_size = 215815, structure_size = 99592},
  global_psymbols = {list = 0xfeab3450, next = 0xfeab34b0, size = 102},
  static_psymbols = {list = 0x2dedf8, next = 0x2e36c4, size = 6528},
  msymbols = 0xfff805e8, minimal_symbol_count = 7697, msymbol_hash = {
    0xfffc9680, 0xfffc7f10, 0xfffb60f8, 0xfffb2ed0, 0xfffbe2a8, 0xfffb8bf0,
    0xfffb8f60, 0xfffc0558, 0xfffb7660, 0xfffb2f98, 0xfffc6908, 0xfffbda60,
    0xfffc5968, 0xfffc15c0, 0xfffb1620, 0xfffb1648, 0xfffb5c98, 0xfffb1698,
    0xfffc2650, 0xfffb16e8, 0xfffcb7f0, 0xfffc7f60, 0xfffcb5c0, 0xfffa4740,
    0xfffb88d0, 0xfffc7588, 0x0, 0xfffcafd0, 0x0, 0xfffc7268, 0xfffc0828,
    0xfffc57d8, 0xfffba068, 0xfffc4e78, 0xfffbafb8, 0xfffbe4d8, 0xfffc7fb0,
    0xfffb7e80, 0xfffb0428, 0xfffb0450, 0xfffc8618, 0xfffc1b88, 0xfffb5860,
    0xfff93c88, 0xfffc5238, 0xfffaf078, 0xfffbc318, 0xfffbbdf0, 0xfffb5310,
    0xfffc6bd8, 0xfffc9b80, 0xfffb8718, 0xfffc23d0, 0xfff89d28, 0xfff83040,
    0xfffc7010, 0xfffca260, 0xfffc35a0, 0xfffc96f8, 0xfff9f0b0, 0xfffbbf80,
    0xfffab630, 0xfffc80c8, 0xfffcb390, 0xfffc64d0, 0xfffbced0, 0xfffa0fc8,
    0xfffb2fc0, 0xfffc2858, 0xfffc99f0, 0xfffb3038, 0xfffbb328, 0xfffb3088,
    0xfffbe398, 0xfffb30d8, 0xfffc5670, 0xfffc6390, 0xfffb86a0, 0xfff95d30,
    0xfffaba90, 0xfffb1788, 0xfffb17b0, 0xfffb4398, 0x0, 0xfffbcc78,
    0xfffb8e48, 0xfffab018, 0xfffb6580, 0xfffbca48, 0xfffc44f0, 0xfffc4568,
    0xfffb05e0, 0xfffc4db0, 0xfffc6408, 0xfffcaff8, 0xfffcb048, 0xfffa47b8,
    0xfffb0478, 0xfffb04a0, 0xfffc8000, 0xfffb04f0, 0xfffc78f8, 0xfffb0540,
    0xfffb0568, 0xfffb64b8, 0xfffc5580, 0xfffc4298, 0xfffae560, 0xfffc8690,
    0xfff982d8, 0xfffc5da0, 0xfffc3140, 0xfffbbb98, 0xfffb2660, 0xfffc9ab8,
    0xfffc9c70, 0xfffc9c98, 0xfff91028, 0xfffbd240, 0xfffaf320, 0xfffcb070,
    0xfffb9500, 0xfffb24a8, 0xfffaf898, 0xfff91550, 0xfffc0c88, 0xfffa4308,
    0xfffaf938, 0xfffc9d10, 0xfffaf410, 0xfffbd970, 0xfff97d88, 0xfffc1ac0,
    0xfffc6e80, 0xfffc5198, 0xfffbabd0, 0xfff85b10, 0xfffbb738, 0xfffc8cd0,
    0xfffb6968, 0xfffb8920, 0xfffcb818, 0xfffc1fc0, 0xfffc4fb8, 0xfffc8730,
    0xfffba720, 0xfffc62f0, 0xfffc1d40, 0xfffc62a0, 0xfffc7b00, 0xfffcafa8,
    0xfffad638, 0xfffca738, 0xfffb0c20, 0xfffa0b68, 0xfffca2d8, 0xfffc8208,
    0xfffb9050, 0xfffb45c8, 0xfffa8a98, 0xfffa8750, 0xfffb6648, 0xfffc5558,
    0xfffb2700, 0x0, 0xfffca1e8, 0xfffaf3e8, 0xfffc6ae8, 0xfffbeac8,
    0xfffbce58, 0xfffacf80, 0xfff8b830, 0xfffc73a8, 0xfff8f458, 0xfffb7138,
    0xfffb9af0, 0xfff976a8, 0xfffc6278, 0xfffc6728, 0xfffc84b0, 0xfffc8848,
    0xfffbe6e0, 0xfffc4978, 0xfffc4a40, 0x0, 0xfffb9f50, 0xfffc21a0,
    0xfffc14a8, 0xfffaf9d8, 0xfff81588, 0xfffcb728, 0xfffb8150, 0xfffbbe40,
    0xfffb1d00, 0xfffafac8, 0xfffba6f8, 0xfffcae68, 0xfffcaf30, 0xfffa6e78,
    0xfffad660...}, msymbol_demangled_hash = {0x0 <repeats 2039 times>},
  fundamental_types = 0xfea02718, md = 0x0, mmfd = 0, sf = 0x1ab30c, ei = {
    entry_point = 4624, entry_func_lowpc = 3, entry_func_highpc = 1,
    entry_file_lowpc = 4624, entry_file_highpc = 5920, main_func_lowpc = 3,
    main_func_highpc = 1}, sym_stab_info = 0xfe9ac350,
  sym_private = 0xfe9ac390, obj_private = 0x0, section_offsets = 0xfea00770,
  num_sections = 64, sect_index_text = 0, sect_index_data = 1,
  sect_index_bss = 2, sect_index_rodata = -1, sections = 0xfea00728,
  sections_end = 0xfea00770, auxf1 = 0x0, auxf2 = 0x0, import_list = 0x0,
  import_list_size = 0, export_list = 0x0, export_list_size = 0, stats = {
    n_minsyms = 7697, n_psyms = 4683, n_syms = 0, n_stabs = 0, n_types = 353,
    sz_strtab = 0}}
(top-gdb) p cu_header
$5 = {length = 2298478592, version = 152, abbrev_offset = 1946157568,
  addr_size = 13 '\r', signed_addr_p = 1 '\001', offset_size = 4,
  initial_length_size = 4}
(top-gdb)



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019