From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15633 invoked by alias); 9 May 2002 03:10:17 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15623 invoked from network); 9 May 2002 03:10:14 -0000 Received: from unknown (HELO duracef.shout.net) (204.253.184.12) by sources.redhat.com with SMTP; 9 May 2002 03:10:14 -0000 Received: (from mec@localhost) by duracef.shout.net (8.11.6/8.11.6) id g493A7118780; Wed, 8 May 2002 22:10:07 -0500 Date: Wed, 08 May 2002 20:10:00 -0000 From: Michael Elizabeth Chastain Message-Id: <200205090310.g493A7118780@duracef.shout.net> To: ac131313@cygnus.com, msnyder@redhat.com Subject: Re: [RFA/RFC] MI: accept (void) as well as (). Cc: gdb-patches@sources.redhat.com X-SW-Source: 2002-05/txt/msg00257.txt.bz2 Andrew Cagney writes: > It shouldn't be. Just want to be sure that the difference isn't > something MI can control. Anyone know? This might be overkill, so if it is, just ignore me or something ... I've attached some log excerpts for everyone's enjoyment. All the dwarf-2 logs look like the first one (gcc 2.95.3, gcc 2.96-rh, gcc 3.0.4, gcc gcc-3_1-branch%20020505, gcc HEAD%20020505). All the stabs+ logs look like the second one (same batch of gcc compilers). It's definitely a dwarf-2 versus stabs+ issue with argument types in pointer-to-function, not a v2 versus v3 "void" representation thing. Look at the _struct_decl declaration. (The hard part about the test suite is mining half a million test results and putting it in a form where people can see a pattern). Michael C # target=native, host=i686-pc-linux-gnu%rh-7.2, gdb=HEAD%20020505, # gcc=2.95.3, goption=-gdwarf-2 -var-list-children struct_declarations^M ^done,numchild="11",children={child={name="struct_declarations.integer",exp="integer",numchild="0",type="int"},child={name="struct_declarations.character",exp="character",numchild="0",type="char"},child={name="struct_declarations.char_ptr",exp="char_ptr",numchild="1",type="char *"},child={name="struct_declarations.long_int",exp="long_int",numchild="0",type="long int"},child={name="struct_declarations.int_ptr_ptr",exp="int_ptr_ptr",numchild="1",type="int **"},child={name="struct_declarations.long_array",exp="long_array",numchild="10",type="long int [10]"},child={name="struct_declarations.func_ptr",exp="func_ptr",numchild="0",type="void (*)(void)"},child={name="struct_declarations.func_ptr_struct",exp="func_ptr_struct",numchild="0",type="struct _struct_decl (*)(int, char *, long int)"},child={name="struct_declarations.func_ptr_ptr",exp="func_ptr_ptr",numchild="0",type="struct _struct_decl *(*)(int, char *, long int)"},child={name="struct_declarations.u1",exp="u1",numchild="4! ",type="union {...}"},child={name="struct_declarations.s2",exp="s2",numchild="4",type="struct {...}"}}^M (gdb) ^M FAIL: gdb.mi/mi-var-child.exp: get children of struct_declarations # target=native, host=i686-pc-linux-gnu%rh-7.2, gdb=HEAD%20020505, # gcc=2.95.3, goption=-gstabs+ -var-list-children struct_declarations^M ^done,numchild="11",children={child={name="struct_declarations.integer",exp="integer",numchild="0",type="int"},child={name="struct_declarations.character",exp="character",numchild="0",type="char"},child={name="struct_declarations.char_ptr",exp="char_ptr",numchild="1",type="char *"},child={name="struct_declarations.long_int",exp="long_int",numchild="0",type="long int"},child={name="struct_declarations.int_ptr_ptr",exp="int_ptr_ptr",numchild="1",type="int **"},child={name="struct_declarations.long_array",exp="long_array",numchild="10",type="long int [10]"},child={name="struct_declarations.func_ptr",exp="func_ptr",numchild="0",type="void (*)()"},child={name="struct_declarations.func_ptr_struct",exp="func_ptr_struct",numchild="0",type="struct _struct_decl (*)()"},child={name="struct_declarations.func_ptr_ptr",exp="func_ptr_ptr",numchild="0",type="struct _struct_decl *(*)()"},child={name="struct_declarations.u1",exp="u1",numchild="4",type="union {...}"},child={name="struct_decl! arations.s2",exp="s2",numchild="4",type="struct {...}"}}^M (gdb) ^M PASS: gdb.mi/mi-var-child.exp: get children of struct_declarations