Randy Yates <yates@digitalsignallabs.com> writes:> Actually, let me ask a very naive question: Can one even use a > debugger with a largish process/OS like the AM335x/linux? I > mean, what happens if you break in some time-critical portion > of the linux kernel?You mean to debug the kernel? Or a user-level application? You can use gdb at user level and that's usually enough. I don't know about debugging kernels on those boards though.
Replace Keil/ARM tools
Started by ●May 14, 2014
Reply by ●May 19, 20142014-05-19
Reply by ●May 19, 20142014-05-19
On 2014-05-19, Randy Yates <yates@digitalsignallabs.com> wrote:> Actually, let me ask a very naive question: Can one even use a > debugger with a largish process/OS like the AM335x/linux?I can't imagine how it would be useful for application development. For that, you run gdb-server on the target and then the gdb front-end on a desktop/laptop. [Actually, I generally do most of my debugging by running the application on a desktop before I try to run the app on target hardware.] A JTAG debugger might be useful for debugging initialization and startup code. It's certainly useful for troubleshooting and testing hardware.> I mean, what happens if you break in some time-critical portion of > the linux kernel?Good question. In theory it _might_ be useful for kernel debugging, but Linux has other facilities for that. -- Grant Edwards grant.b.edwards Yow! I'm having a BIG BANG at THEORY!! gmail.com
Reply by ●May 19, 20142014-05-19
On 19.5.14 17:17, Grant Edwards wrote:>> I mean, what happens if you break in some time-critical portion of >> the linux kernel? > > Good question. > > In theory it _might_ be useful for kernel debugging, but Linux has > other facilities for that. >There is a special version of GDB, kgdb for kernel debugging. -- Tauno Voipio
Reply by ●May 24, 20142014-05-24
Randy Yates wrote:> Actually, let me ask a very naive question: Can one even use a > debugger with a largish process/OS like the AM335x/linux? I > mean, what happens if you break in some time-critical portion > of the linux kernel? > > --RY >Assuming it's even possible... seems like it might be... http://www.linux.com/learn/linux-training/33991-the-kernel-newbie-corner-kernel-and-module-debugging-with-gdb I find Eclipse/GDB tedious and don't use them. This way, all my debug cruft is available should i need it at a site. I'd rather pull the code out and run it in a test harness on a workstation for unit test, then put the code into a driver module. Yeah, I'll spend some time making test vectors and updating them from inferred or logged operation of the driver.> Randy Yates <yates@digitalsignallabs.com> writes: > >> Mike Perkins <spam@spam.com> writes: >>> [...] >>> Coupled with Eclipse, OpenOCD (though reverted back to 0.6.0 due to >>> bugs) I feel I have a pleasant and effective IDE. >> >> I get very confused on which JTAGs/debugger interfaces OpenOCD will work >> with. E.g., how about the following (some of my immediate work and/or >> possibilities): >> >> 1. TI Tiva tm4c1294ncpdt >> >> 2. Freescale Coldfire MCF52235 >> >> 3. Freescale Ketis K6x >> >> 4. TI Sitara AM335x >> >> ??? >-- Les Cargill