<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Hello Stefan,</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN>&nbsp;</div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">I ran few commands and we have gdb version 7.4. I had installed gdb using apt-get. </SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"><FONT size=2></FONT></SPAN>&nbsp;</div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"><FONT size=2>Please let me know if you suggest to&nbsp;download the source,&nbsp;comment out the file(gdb/remote.c) and compile it.</FONT></SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"><FONT size=2></FONT></SPAN><SPAN style="RIGHT: auto"></SPAN><SPAN style="RIGHT: auto"></SPAN>&nbsp;</div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN><SPAN style="RIGHT: auto"><A style="RIGHT: auto" href="mailto:root@bf015:/etc/gdb">root@bf015:/etc/gdb</A># cat gdbinit<BR># System-wide GDB initialization file<BR>set architecture i386:x86-64:intel<BR>#--with-expat</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN>&nbsp;</div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"><A href="mailto:root@bf015:/home">root@bf015:/home</A># whereis gdb<BR>gdb: /usr/bin/gdb /etc/gdb /usr/bin/X11/gdb /usr/share/gdb /usr/share/man/man1/gdb.1.gz</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN>&nbsp;</div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"><A href="mailto:root@bf015:/home">root@bf015:/home</A># gdb -version<BR>GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04<BR>Copyright (C) 2012 Free Software Foundation, Inc.<BR>License GPLv3+: GNU GPL version 3 or later &lt;<A href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</A>&gt;<BR>This is free software: you are free to change and redistribute it.<BR>There is NO WARRANTY, to the extent permitted by law.&nbsp; Type "show copying"<BR>and "show warranty" for details.<BR>This GDB was configured as "x86_64-linux-gnu".<BR>For bug reporting instructions, please see:<BR>&lt;<A href="http://bugs.launchpad.net/gdb-linaro/">http://bugs.launchpad.net/gdb-linaro/</A>&gt;.</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN>&nbsp;</div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"><A href="mailto:root@bf015:/home">root@bf015:/home</A># sudo apt-get install gdb<BR>Reading package lists... Done<BR>Building dependency tree<BR>Reading state information... Done<BR>gdb is already the newest version.<BR>The following packages were automatically installed and are no longer required:<BR>&nbsp; linux-headers-3.2.0-58 linux-headers-3.2.0-59 linux-headers-3.2.0-58-generic linux-headers-3.2.0-59-generic<BR>Use 'apt-get autoremove' to remove them.<BR>0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.<BR><A href="mailto:root@bf015:/home">root@bf015:/home</A>#<BR></div></SPAN>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto">&nbsp;</div></SPAN>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto">&nbsp;</div></SPAN>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">&nbsp;</div></SPAN>
<DIV></DIV>
<DIV style="RIGHT: auto">&nbsp;</DIV>
<DIV style="RIGHT: auto" id=RTEContent>
<DIV style="RIGHT: auto" id=RTEContent><B style="RIGHT: auto"><FONT face="comic sans ms">--------------------<BR>Thanks and Regards, <BR>Vishwas K.M. <BR>09448535935</FONT></B></DIV></DIV>
<div><BR></div>
<DIV style="FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; FONT-SIZE: 12pt">
<DIV style="RIGHT: auto" dir=ltr>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><FONT size=2 face=Arial><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Kästle Stefan &lt;stefan.kaestle@inf.ethz.ch&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Vishwas K. M. &lt;vishwaskm2000@yahoo.com&gt; <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, March 5, 2014 8:12 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [Barrelfish-users] Barrelfish OS-gdb session<BR></FONT></DIV>
<DIV style="RIGHT: auto" class=y_msg_container><BR>Hello,<BR clear=none><BR clear=none>I saw this problem before and as far as I remember, you can just comment out the line in the gdb source file and recompile it (gdb/remote.c). Does this work for you?<BR clear=none><BR clear=none>Cheers,<BR clear=none>Stefan<BR clear=none><BR clear=none>________________________________ 
<DIV style="RIGHT: auto" id=yqtfd94143 class=yqt1612139171><BR clear=none>From: Vishwas K.M. [<A href="mailto:vishwaskm2000@yahoo.com" shape=rect ymailto="mailto:vishwaskm2000@yahoo.com">vishwaskm2000@yahoo.com</A>]<BR clear=none>Sent: Wednesday, March 05, 2014 7:04 AM<BR clear=none>To: <A style="RIGHT: auto" href="mailto:barrelfish-users@lists.inf.ethz.ch" shape=rect ymailto="mailto:barrelfish-users@lists.inf.ethz.ch">barrelfish-users@lists.inf.ethz.ch</A><BR clear=none>Subject: Re: [Barrelfish-users] Barrelfish OS-gdb session<BR clear=none><BR clear=none>Hello Stefan,<BR clear=none><BR clear=none>Thanks for the info. I progressed few steps and got stuck with&nbsp; “Remote 'g' packet reply is too long: “<BR clear=none><BR clear=none>I did the following:<BR clear=none><BR clear=none>make debugsim<BR clear=none>file x86_64/sbin/elver<BR clear=none>l<BR clear=none>b 1<BR clear=none>b 100<BR clear=none>info breakpoints<BR clear=none>info sources<BR
 clear=none>c<BR clear=none><BR clear=none>it breaks at execution line 1 and type n to next or s to step into the function -<BR clear=none><BR clear=none>(gdb) file x86_64/sbin/elver<BR clear=none>A program is being debugged already.<BR clear=none>Are you sure you want to change the file? (y or n) y<BR clear=none>Reading symbols from /home/sarmaji/barrelfish/build/x86_64/sbin/elver...done.<BR clear=none>(gdb) b 1<BR clear=none>Breakpoint 1 at 0x10000c: file ../tools/elver/boot.S, line 1.<BR clear=none>(gdb) b 100<BR clear=none>Breakpoint 2 at 0x10006f: file ../tools/elver/boot.S, line 100.<BR clear=none>(gdb) info breakpoints<BR clear=none>Num&nbsp; &nbsp; Type&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Disp Enb Address&nbsp; &nbsp; What<BR clear=none>1&nbsp; &nbsp; &nbsp; breakpoint&nbsp; &nbsp; keep y&nbsp; 0x0010000c ../tools/elver/boot.S:1<BR clear=none>2&nbsp; &nbsp; &nbsp; breakpoint&nbsp; &nbsp; keep y&nbsp; 0x0010006f ../tools/elver/boot.S:100<BR
 clear=none>(gdb) c<BR clear=none>Continuing.<BR clear=none>Found Realtek 8029 at 0xc000, ROM address 0xae00<BR clear=none>Probing...[Realtek 8029]<BR clear=none>NE2000 base 0xc000, addr 52:54:00:12:34:56<BR clear=none>Address: 10.0.2.15<BR clear=none>Netmask: 255.255.255.0<BR clear=none>Server: 10.0.2.2<BR clear=none>Gateway: 10.0.2.2<BR clear=none>Address: 10.0.2.15<BR clear=none>Netmask: 255.255.255.0<BR clear=none>Server: 10.0.2.2<BR clear=none>Gateway: 10.0.2.2<BR clear=none>&nbsp; Booting 'Chain-load /menu.lst from TFTP'<BR clear=none><BR clear=none>root&nbsp; (nd)<BR clear=none>Filesystem type is tftp, using whole disk<BR clear=none>configfile (nd)/menu.lst<BR clear=none>TFTP error 1 (File not found)<BR clear=none>&nbsp; Booting 'Barrelfish'<BR clear=none><BR clear=none>root (nd)<BR clear=none>Filesystem type is tftp, using whole disk<BR clear=none>kernel /x86_64/sbin/elver loglevel=5 logmask=1<BR clear=none>&nbsp; [Multiboot-elf,
 &lt;0x100000:0x2560:0x0&gt;, &lt;0x103fe4:0x1c:0x6000&gt;, shtab=0x10a2f<BR clear=none>8, entry=0x10000c]<BR clear=none>module /x86_64/sbin/cpu loglevel=5 logmask=1<BR clear=none>------------------------<BR clear=none>------------------------<BR clear=none>------------------------<BR clear=none>------------------------<BR clear=none>&nbsp; [Multiboot-module @ 0x5b86000, 0x539760 bytes]<BR clear=none>module /x86_64/sbin/fish loglevel=5 logmask=1<BR clear=none>&nbsp; [Multiboot-module @ 0x60c0000, 0x84b1bf bytes]<BR clear=none><BR clear=none><BR clear=none>Breakpoint 1, start () at ../tools/elver/boot.S:39<BR clear=none>39&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; movl&nbsp; &nbsp; $(stack + STACK_SIZE), %esp<BR clear=none>(gdb) n<BR clear=none>start () at ../tools/elver/boot.S:42<BR clear=none>42&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pushl&nbsp; $0<BR clear=none>(gdb) n<BR clear=none>start () at ../tools/elver/boot.S:43<BR
 clear=none>43&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; popf<BR clear=none>(gdb) n<BR clear=none>start () at ../tools/elver/boot.S:46<BR clear=none>46&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; push&nbsp; &nbsp; %ebp<BR clear=none>(gdb) n<BR clear=none>start () at ../tools/elver/boot.S:47<BR clear=none>47&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mov&nbsp; &nbsp; %esp, %ebp<BR clear=none>(gdb) n<BR clear=none>48&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; push&nbsp; &nbsp; %ebx&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* Pointer to multiboot info struct */<BR clear=none>(gdb) n<BR clear=none>start () at ../tools/elver/boot.S:49<BR clear=none>49&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; push&nbsp; &nbsp; %eax&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* Multiboot magic value */<BR clear=none>(gdb) n<BR clear=none>start () at ../tools/elver/boot.S:50<BR clear=none>50&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; call&nbsp;
 &nbsp; startup<BR clear=none>(gdb) n<BR clear=none>Remote 'g' packet reply is too long:
 0000000000000000903d26000000000000000000000000003022630000000000c021630000000000903d260000000000902163000000000038216300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003022630000000000000000000000000060d440000000000006020000230000001b00000000000000000000000f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f03000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000801f0000<BR clear=none>I did google on this error message, they say to set the architecture to x86_64 [set architecture i386:x86-64:intel] - done, still error persists.<BR clear=none><BR clear=none>(gdb) show arch<BR clear=none>The target architecture is set automatically (currently i386:x86-64)<BR clear=none>Please assist, also I din't find the gdbinit file to check.<BR clear=none><BR clear=none><BR clear=none><BR clear=none>--------------------<BR clear=none>Thanks and Regards,<BR clear=none>Vishwas K.M.<BR clear=none>09448535935<BR clear=none><BR clear=none>From: Vishwas K.M. &lt;<A href="mailto:vishwaskm2000@yahoo.com" shape=rect ymailto="mailto:vishwaskm2000@yahoo.com">vishwaskm2000@yahoo.com</A>&gt;<BR clear=none>To: "<A href="mailto:barrelfish-users@lists.inf.ethz.ch" shape=rect
 ymailto="mailto:barrelfish-users@lists.inf.ethz.ch">barrelfish-users@lists.inf.ethz.ch</A>" &lt;<A href="mailto:barrelfish-users@lists.inf.ethz.ch" shape=rect ymailto="mailto:barrelfish-users@lists.inf.ethz.ch">barrelfish-users@lists.inf.ethz.ch</A>&gt;<BR clear=none>Sent: Friday, February 28, 2014 7:07 AM<BR clear=none>Subject: Barrelfish OS-gdb session<BR clear=none><BR clear=none><BR clear=none>Hello All,<BR clear=none><BR clear=none>I have recently stared working on BF OS and need assistance to understand the OS internals.<BR clear=none><BR clear=none>I am using "make sim" on x86_64 and it compiles and runs the BF till it reachs the fish prompt.<BR clear=none><BR clear=none>Now to get into the BF internals I am trying to get the compiled BF code into a gdb session and start the run part so that I can get into each module and see the things.<BR clear=none><BR clear=none>Please assist me a way out..<BR clear=none><BR clear=none>Thanks,<BR
 clear=none>Vishwas K.M<BR clear=none><BR clear=none></DIV><BR><BR></DIV></DIV></DIV></div></body></html>