public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/12857] New: Output of "info line variable" needs improvement
@ 2011-06-07 20:22 dje at google dot com
  2011-06-08  8:12 ` [Bug gdb/12857] " schwab@linux-m68k.org
  2011-06-08 15:18 ` dje at google dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dje at google dot com @ 2011-06-07 20:22 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: Output of "info line variable" needs improvement
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dje@google.com


play$ cat info-line-var.c
int foo;
int main () { return 0; }
play$ gcc -g info-line-var.c
play$ gdb a.out
(gdb) info line foo
Line 1 of "info-line-var.c" is at address 0x4004c4 <main> but contains no code.


The line number and file name are correct,
but the address is wrong, and printing "but contains no code"
is kinda lame.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12857] Output of "info line variable" needs improvement
  2011-06-07 20:22 [Bug gdb/12857] New: Output of "info line variable" needs improvement dje at google dot com
@ 2011-06-08  8:12 ` schwab@linux-m68k.org
  2011-06-08 15:18 ` dje at google dot com
  1 sibling, 0 replies; 3+ messages in thread
From: schwab@linux-m68k.org @ 2011-06-08  8:12 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2011-06-08 08:12:11 UTC ---
Why do you think the address is wrong?

(gdb) help info line
Core addresses of the code for a source line.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12857] Output of "info line variable" needs improvement
  2011-06-07 20:22 [Bug gdb/12857] New: Output of "info line variable" needs improvement dje at google dot com
  2011-06-08  8:12 ` [Bug gdb/12857] " schwab@linux-m68k.org
@ 2011-06-08 15:18 ` dje at google dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dje at google dot com @ 2011-06-08 15:18 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from dje at google dot com 2011-06-08 15:17:42 UTC ---
Ok, let's first establish whether it is legit to pass a variable name to "info
line".

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2011-06-08 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-07 20:22 [Bug gdb/12857] New: Output of "info line variable" needs improvement dje at google dot com
2011-06-08  8:12 ` [Bug gdb/12857] " schwab@linux-m68k.org
2011-06-08 15:18 ` dje at google 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).