linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: "Joshua Horvath" <Josh_Horvath-AJH051@email.mot.com>
Cc: linuxppc-embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Abatron BDI2000
Date: Fri, 02 Nov 2001 22:03:32 +0100	[thread overview]
Message-ID: <20011102210337.9620F10CDB@denx.denx.de> (raw)
In-Reply-To: Your message of "Fri, 02 Nov 2001 09:55:07 CST." <3BE2C1DB.8B975906@labs.mot.com>


Dear Joshua,

in message <3BE2C1DB.8B975906@labs.mot.com> you wrote:
>
> Since we haven't had a problem bringing the kernel up on our boards, 1) isn't
> (currently) a big deal.  What we really need is to be able to debug loadable
> modules, which from what I've gathered is only possible with kgdb.  Is this
> assumption correct?

No, this is wrong. Of course you can debug loadable modules with  the
BDI2000  as  well. You just have to manually load the symbol table in
GDB, for instance:

On the target: load the module:

	# insmod -m ./buzzer
	Sections:       Size      Address   Align
	.this           00000060  cf007000  2**2
	.text           000005a4  cf007060  2**2
	.rodata         00000128  cf007604  2**2
	.data           00000048  cf00772c  2**2
	.sdata          00000018  cf007774  2**2
	.kstrtab        000000ed  cf00778c  2**0
	.sbss           00000020  cf00787c  2**2
	.bss            00000000  cf00789c  2**0
	.plt            000000a0  cf0078a0  2**4
	__ksymtab       00000060  cf007940  2**2
	__archdata      00000000  cf0079a0  2**4

	Symbols:
	00000000 a buzzer.c
	cf007000 d __this_module
	cf007000 D __insmod_buzzer_O/tmp/buzzer_M3B276319_V132100
	cf007060 T buzzer_init
	cf007060 T __insmod_buzzer_S.text_L1444
	cf007060 t .text        <<============================================
	cf007170 t buzzer_open
	cf0071d8 t buzzer_release
	cf007218 t buzzer_read
	cf007220 t buzzer_write
	cf007284 t buzzer_ioctl
	...

In GDB:

	^C
	Program received signal SIGSTOP, Stopped (signal).
	0xc0003cdc in idled ()
	(gdb) add-symbol-file ../driver/buzzer 0xcf007060
	add symbol table from file "../driver/buzzer" at
		.text_addr = 0xcf007060
	(y or n) y
	Reading symbols from ../driver/buzzer...done.
	(gdb) b buzzer_op
	buzzer_open  buzzer_ops
	(gdb) b buzzer_open
	Breakpoint 2 at 0xcf007170: file buzzer.c, line 236.
	(gdb) b buzzer_ioctl
	Breakpoint 3 at 0xcf0072a0: file buzzer.c, line 316.
	(gdb) c
	Continuing.
	...
	Breakpoint 2, buzzer_open (inode=0xc0f28610, file=0xc01463c0) at buzzer.c:236
	236             if (!immr) {
	...


> We can flash our boards, download code, etc. and as I said, we've got the
> kernel running successfully.  So other than point 2) above, is there anything
> else I've missed that would provide a compelling reason to purchase these
> units?

You can debug device drivers (both statically linked  and  loaded  as
modules)  and  other  kernel  code.  The  BDI2000 works with many CPU
types. The price is (IMHO) fair, the quality good (3  years  warranry
on  the  hardware!),  and  I  know  no  other tool vendor with better
response.


Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
If you believe that feeling bad or worrying long enough will change a
past or future event, then you are residing on another planet with  a
different reality system.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  parent reply	other threads:[~2001-11-02 21:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-02 15:55 Abatron BDI2000 Joshua Horvath
2001-11-02 18:10 ` Scott Anderson
2001-11-02 21:03 ` Wolfgang Denk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-11-20 18:04 Williams, Kevin M.
2001-11-20 18:54 ` Wolfgang Denk
2001-11-20 16:36 Williams, Kevin M.
2001-11-20 17:13 ` Wolfgang Denk
     [not found] ` <3BFA8C23.465CD6B1@cambridgebroadband.com>
2001-11-21  1:07   ` Michael Habermann
2001-01-31  0:37 Brian Kuschak
2001-01-30 22:42 Brian Kuschak
2001-01-31  0:13 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011102210337.9620F10CDB@denx.denx.de \
    --to=wd@denx.de \
    --cc=Josh_Horvath-AJH051@email.mot.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).