public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/15541] New: arguments printed in reverse order
@ 2013-05-28  5:41 dje at google dot com
  2013-05-28  5:51 ` [Bug symtab/15541] " jan.kratochvil at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dje at google dot com @ 2013-05-28  5:41 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug symtab/15541] arguments printed in reverse order
  2013-05-28  5:41 [Bug symtab/15541] New: arguments printed in reverse order dje at google dot com
@ 2013-05-28  5:51 ` jan.kratochvil at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-05-28  5:51 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jan.kratochvil at redhat dot com
         Resolution|---                         |DUPLICATE

--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
The function is most probably inlined.

*** This bug has been marked as a duplicate of bug 15223 ***

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-28  5:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28  5:41 [Bug symtab/15541] New: arguments printed in reverse order dje at google dot com
2013-05-28  5:51 ` [Bug symtab/15541] " jan.kratochvil at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).