This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/15541] New: arguments printed in reverse order


http://sourceware.org/bugzilla/show_bug.cgi?id=15541

            Bug ID: 15541
           Summary: arguments printed in reverse order
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

Found this while debugging something else.
Filing it so it's not forgotten.

bash$ gdb gdb
(top-gdb) b classify_inner_name
(top-gdb) r hello
(gdb) p ::main
Breakpoint 3, c_lex () at ../../src/gdb/c-exp.y:3051
3051              classification = classify_inner_name (search_block,
context_type);
(top-gdb) bt 3
#0  c_lex () at ../../src/gdb/c-exp.y:3051
During symbol reading, incomplete CFI data; unspecified registers (e.g., rax)
at 0x50efb0.
#1  c_parse_internal () at c-exp.c:2220
During symbol reading, cannot get low and high bounds for subprogram DIE at
5588382.
During symbol reading, Child DIE 0x554d33 and its abstract origin 0x55459e have
different parents.
#2  0x00000000005123c6 in c_parse () at ../../src/gdb/c-exp.y:3145
(More stack frames follow...)
(top-gdb) s
classify_inner_name (context=<optimized out>, block=<optimized out>)
    at ../../src/gdb/c-exp.y:2929
2929      if (context == NULL)
(top-gdb) 

The arguments to classify_inner_name are printed in reverse order.

c-exp.y:
static int
classify_inner_name (const struct block *block, struct type *context)
{
  struct type *type;
  char *copy;

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]