* some questions about gdb
@ 2011-01-08 13:50 loody
2011-01-08 14:14 ` loody
2011-01-10 20:58 ` Tom Tromey
0 siblings, 2 replies; 7+ messages in thread
From: loody @ 2011-01-08 13:50 UTC (permalink / raw)
To: gdb
hi all:
I have some questions about using gdb
1. I compile the kernel with -g but I cannot see the disassembly.
My pc increase 4 when I type 'n' but I cannot see the disassembly.
Program received signal 0, Signal 0.
0x8043e59c in kernel_entry () at arch/mips/kernel/head.S:97
97 #else
(gdb) n
Program received signal 0, Signal 0.
0x8043e5a0 in kernel_entry () at arch/mips/kernel/head.S:97
97 #else
(gdb) si
Program received signal 0, Signal 0.
0x8043e5a4 in kernel_entry () at arch/mips/kernel/head.S:97
97 #else
(gdb)
Did I miss any configuration?
2. I search gdb and which tell me there is a command, disassemble /m,
which can mix source and assembly.
But I use it on my mips platform, it said:
(gdb) disassemble /m irq_enter
A syntax error in expression, near `/m'.
(gdb) list
276 void irq_enter(void)
277 {
278 int cpu = smp_processor_id();
279
280 rcu_irq_enter();
281 if (idle_cpu(cpu) && !in_interrupt()) {
282 __irq_enter();
283 tick_check_idle(cpu);
284 } else
285 __irq_enter();
(gdb)
3. is any document about how to compile insight6.8.1 with mips gdb 7.2?
I google it and I found for arm version
http://old.nabble.com/patch-for-insight-6.8.1-to29485252.html
if I do the same thing for mips gdb, should I patch gdb?
--
Thanks for your help,
miloody
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: some questions about gdb
2011-01-08 13:50 some questions about gdb loody
@ 2011-01-08 14:14 ` loody
2011-01-10 20:58 ` Tom Tromey
1 sibling, 0 replies; 7+ messages in thread
From: loody @ 2011-01-08 14:14 UTC (permalink / raw)
To: gdb
hi all:
2011/1/8 loody <miloody@gmail.com>:
> hi all:
> I have some questions about using gdb
> 1. I compile the kernel with -g but I cannot see the disassembly.
> My pc increase 4 when I type 'n' but I cannot see the disassembly.
>
> Program received signal 0, Signal 0.
> 0x8043e59c in kernel_entry () at arch/mips/kernel/head.S:97
> 97 #else
> (gdb) n
>
> Program received signal 0, Signal 0.
> 0x8043e5a0 in kernel_entry () at arch/mips/kernel/head.S:97
> 97 #else
> (gdb) si
>
> Program received signal 0, Signal 0.
> 0x8043e5a4 in kernel_entry () at arch/mips/kernel/head.S:97
> 97 #else
> (gdb)
>
> Did I miss any configuration?
>
> 2. I search gdb and which tell me there is a command, disassemble /m,
> which can mix source and assembly.
> But I use it on my mips platform, it said:
> (gdb) disassemble /m irq_enter
> A syntax error in expression, near `/m'.
> (gdb) list
> 276 void irq_enter(void)
> 277 {
> 278 int cpu = smp_processor_id();
> 279
> 280 rcu_irq_enter();
> 281 if (idle_cpu(cpu) && !in_interrupt()) {
> 282 __irq_enter();
> 283 tick_check_idle(cpu);
> 284 } else
> 285 __irq_enter();
> (gdb)
>
> 3. is any document about how to compile insight6.8.1 with mips gdb 7.2?
> I google it and I found for arm version
> http://old.nabble.com/patch-for-insight-6.8.1-to29485252.html
> if I do the same thing for mips gdb, should I patch gdb?
There is something I forget to say, I can successfully compile insight
6.8.1 for debug mips but source window is blank.
so I want to try whether it will be fine if I change the default gdb
from 6.8 to 7.2.
What I only need to do is just change gdb folder with the new one.
thanks a lot,
miloody
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: some questions about gdb
2011-01-08 13:50 some questions about gdb loody
2011-01-08 14:14 ` loody
@ 2011-01-10 20:58 ` Tom Tromey
2011-01-10 21:47 ` Keith Seitz
1 sibling, 1 reply; 7+ messages in thread
From: Tom Tromey @ 2011-01-10 20:58 UTC (permalink / raw)
To: loody; +Cc: gdb
>>>>> ">" == loody <miloody@gmail.com> writes:
>> 1. I compile the kernel with -g but I cannot see the disassembly.
>> My pc increase 4 when I type 'n' but I cannot see the disassembly.
I don't know what is going on here.
>> 2. I search gdb and which tell me there is a command, disassemble /m,
>> which can mix source and assembly.
>> But I use it on my mips platform, it said:
>> (gdb) disassemble /m irq_enter
>> A syntax error in expression, near `/m'.
You probably have too old a version of gdb.
>> 3. is any document about how to compile insight6.8.1 with mips gdb 7.2?
You can't do this. You have to get a corresponding version of Insight.
I don't know whether a new version of Insight has been released.
Tom
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: some questions about gdb
2011-01-10 20:58 ` Tom Tromey
@ 2011-01-10 21:47 ` Keith Seitz
2011-01-16 13:47 ` loody
2011-01-16 19:03 ` Petr Hluzín
0 siblings, 2 replies; 7+ messages in thread
From: Keith Seitz @ 2011-01-10 21:47 UTC (permalink / raw)
To: loody; +Cc: Tom Tromey, gdb
On 01/10/2011 12:58 PM, Tom Tromey wrote:
> You can't do this. You have to get a corresponding version of Insight.
> I don't know whether a new version of Insight has been released.
No, I haven't made a release since 6.8. Mostly because I didn't think no
one else was using it. There have been enough requests, though, to
warrant a release.
I will release Insight shortly after the next GDB release. I am just
fiddling with MinGW (which I hope to have "done" today-ish).
But as it is, you can grab a CVS snapshot of src/gdb/gdbtk and
src/libgui (and src/tcl, src/tk/, src/itcl if you need those) from the
around the same date as the release you're interested in.
If you want a 7.2 vintage Insight, CVS HEAD should work. Just drop in
src/gdb/gdbtk and src/libgui, and you should be able to build Insight.
This can be discussed on the insight@ mailing list if more details are
needed.
Keith
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: some questions about gdb
2011-01-10 21:47 ` Keith Seitz
@ 2011-01-16 13:47 ` loody
2011-01-17 17:16 ` Tom Tromey
2011-01-16 19:03 ` Petr Hluzín
1 sibling, 1 reply; 7+ messages in thread
From: loody @ 2011-01-16 13:47 UTC (permalink / raw)
To: Keith Seitz; +Cc: Tom Tromey, gdb
hi keith and Tom:
2011/1/11 Keith Seitz <keiths@redhat.com>:
> On 01/10/2011 12:58 PM, Tom Tromey wrote:
>>
>> You can't do this. You have to get a corresponding version of Insight.
>> I don't know whether a new version of Insight has been released.
>
> No, I haven't made a release since 6.8. Mostly because I didn't think no one
> else was using it. There have been enough requests, though, to warrant a
> release.
>
> I will release Insight shortly after the next GDB release. I am just
> fiddling with MinGW (which I hope to have "done" today-ish).
>
> But as it is, you can grab a CVS snapshot of src/gdb/gdbtk and src/libgui
> (and src/tcl, src/tk/, src/itcl if you need those) from the around the same
> date as the release you're interested in.
>
> If you want a 7.2 vintage Insight, CVS HEAD should work. Just drop in
> src/gdb/gdbtk and src/libgui, and you should be able to build Insight. This
> can be discussed on the insight@ mailing list if more details are needed.
I got the head version from insight CVS and it works with gdb 7.2.
But each time I press "n", gdb step as I press "si".
That means "n" should be like execute a line of c code, but on my gdb,
it execute an assembly line.
I config it as mipsel-linux.
Should I add more configs?
Thanks your help,
miloody
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: some questions about gdb
2011-01-10 21:47 ` Keith Seitz
2011-01-16 13:47 ` loody
@ 2011-01-16 19:03 ` Petr Hluzín
1 sibling, 0 replies; 7+ messages in thread
From: Petr Hluzín @ 2011-01-16 19:03 UTC (permalink / raw)
To: Keith Seitz; +Cc: loody, Tom Tromey, gdb
Hello
On 10 January 2011 22:47, Keith Seitz <keiths@redhat.com> wrote:
> On 01/10/2011 12:58 PM, Tom Tromey wrote:
>>
>> You can't do this. You have to get a corresponding version of Insight.
>> I don't know whether a new version of Insight has been released.
>
> No, I haven't made a release since 6.8. Mostly because I didn't think no one
> else was using it. There have been enough requests, though, to warrant a
> release.
Just to throw some numbers for amusement:
According to Ubuntu Popularity Contest [1] about 21 people did use
Insight package recently. If this includes only last 30 days (I do not
know, it is not documented) the Holidays did skew the number. About
2443 did install the package, though.
Of course Ubuntu's audience is not programmers. Debian's Popularity
Contest claims 95204 submissions so we cannot tell either.
[1] http://popcon.ubuntu.com/by_inst (17 MB)
--
Petr Hluzin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: some questions about gdb
2011-01-16 13:47 ` loody
@ 2011-01-17 17:16 ` Tom Tromey
0 siblings, 0 replies; 7+ messages in thread
From: Tom Tromey @ 2011-01-17 17:16 UTC (permalink / raw)
To: loody; +Cc: Keith Seitz, gdb
>>>>> ">" == loody <miloody@gmail.com> writes:
>> I got the head version from insight CVS and it works with gdb 7.2.
>> But each time I press "n", gdb step as I press "si".
>> That means "n" should be like execute a line of c code, but on my gdb,
>> it execute an assembly line.
>> I config it as mipsel-linux.
>> Should I add more configs?
Offhand, I don't know what this problem is. Do you have the same
problem with the CLI gdb?
Note that insight has its own mailing list.
You may get better results asking there.
Tom
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-01-17 17:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-08 13:50 some questions about gdb loody
2011-01-08 14:14 ` loody
2011-01-10 20:58 ` Tom Tromey
2011-01-10 21:47 ` Keith Seitz
2011-01-16 13:47 ` loody
2011-01-17 17:16 ` Tom Tromey
2011-01-16 19:03 ` Petr Hluzín
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox