This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
-symbol-list-lines
- From: Bob Rossi <bob at brasko dot net>
- To: gdb at sources dot redhat dot com
- Date: Mon, 16 Feb 2004 15:40:35 -0500
- Subject: -symbol-list-lines
Hello,
Is the "-symbol-list-lines" command supposed to be fully functional?
I tried this.
cd src/gdb/testsuite/gdb.mi
gcc -g basics.c -o basics
gdb -i=mi ./basics
...
(gdb)
-symbol-list-lines basics.c
^done,lines=[
{pc="0x080483e0",line="7"},{pc="0x080483e6",line="8"},
{pc="0x080483ed",line="9"},{pc="0x080483f4",line="12"},
{pc="0x08048400",line="13"},{pc="0x08048404",line="14"},
{pc="0x08048404",line="14"},{pc="0x08048406",line="0"},
{pc="0x08048408",line="16"},{pc="0x0804840e",line="17"},
{pc="0x08048413",line="18"},{pc="0x08048415",line="0"},
{pc="0x08048418",line="21"},{pc="0x0804841e",line="22"},
{pc="0x0804842d",line="23"},{pc="0x0804842f",line="0"},
{pc="0x08048430",line="26"},{pc="0x08048436",line="27"},
{pc="0x08048449",line="28"},{pc="0x0804844b",line="0"},
{pc="0x0804844c",line="31"},{pc="0x08048452",line="32"},
{pc="0x0804846d",line="33"},{pc="0x08048488",line="35"},
{pc="0x08048498",line="37"},{pc="0x0804849c",line="38"},
{pc="0x0804849c",line="38"},{pc="0x080484a2",line="0"}]
I am seeing 2 potential problems,
Several lines come back as {pc="0x08048406",line="0"},
should the value "0" be documented? or is it a bug?
Also, for some reason, a value is repeated
{pc="0x0804849c",line="38"}. Is this ok?
Thanks,
Bob Rossi