Hi, I have got a problem using kgdb over a serial connection to my Beagleboard xm running Angstrom.
uEnv.txt contains: [...] kgdbwait kgdboc=ttyO2,115200 kgdbcon The kernel is compiled with: KGDB: ->use kgdb over serial console and ->Load all symbols for debugging/ksymoops ->Include all symbols in kallsyms The board stops during kernel-boot and starts kgdb, as expected. On my host machine (x86_64, debian wheezy) I used Bitbake (MACHINE=beagleboard ./oebb.sh bitbake -c compile gdb-cross -fv) for building a cross version of the gdb. Hope this is correct? $:~/Angstrom/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-mainline/3.2.28-r0/git/arch/arm/boot/compressed$ sudo gdb vmlinux [sudo] password for david: GNU gdb (GDB) 7.5.1 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-linux --target=arm-angstrom-linux-gnueabi". <----------------------------------------------------------------Cross Version!! For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/david/Angstrom/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-mainline/3.2.28-r0/git/arch/arm/boot/compressed/vmlinux...done. $(gdb) set remotebaud 115200 $(gdb) target remote /dev/ttyUSB1 Remote debugging using /dev/ttyUSB1 0xc0078364 in ?? ()) A connection seems to be established, although the line above looks strange.. ( .. ??()) $(gdb) l 1 /* 2 * linux/arch/arm/boot/compressed/head.S 3 * 4 * Copyright (C) 1996-2002 Russell King 5 * Copyright (C) 2004 Hyok S. Choi (MPU support) 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as 9 * published by the Free Software Foundation. 10 */ (gdb) info file Symbols from "/home/david/Angstrom/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-mainline/3.2.28-r0/git/arch/arm/boot/compressed/vmlinux". Remote serial target in gdb-specific protocol: Debugging a target over a serial line. While running this, GDB does not access memory from... Local exec file: `/home/david/Angstrom/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-mainline/3.2.28-r0/git/arch/arm/boot/compressed/vmlinux', file type elf32-littlearm. Entry point: 0x0 0x00000000 - 0x000018f0 is .text 0x000018f0 - 0x00001a34 is .rodata 0x00001a34 - 0x00427e1d is .piggydata 0x00427e20 - 0x00427e2c is .got.plt 0x00427e2c - 0x00427e58 is .got 0x00427e58 - 0x00427e60 is .pad 0x00427e60 - 0x00427e80 is .bss 0x00427e80 - 0x00428e80 is .stack Here starts the problem: I am unable to set breakpoints or to step. Does anybody have an idea, what I am doing wrong? (gdb) next Cannot access memory at address 0x0 Cannot find bounds of current function (gdb) step Cannot find bounds of current function (gdb) break schedule Function "schedule" not defined. Make breakpoint pending on future shared library load? (y or [n]) n (gdb) break sched.c:schedule No source file named sched.c. Make breakpoint pending on future shared library load? (y or [n]) n Thanks a lot and best regards David -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.