Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-20 Thread joaoandreferro
Citando Frank Rowand : > On 10/15/2014 10:36 AM, joaoandrefe...@sapo.pt wrote: > < snip > > >> Thanks for the fix. I changed my code but an error persists. I've >> copied the original code from the official repositories >> (https://git.kernel.org/cgit/utils/kernel/kgdb/agent-proxy.git/), >> m

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-15 Thread Frank Rowand
version 2 changes from version 1 - incorrectly tested return value from do_read(). zero is not an error, non-zero is. --- kdmx/kdmx.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) Index: b/kdmx/kdmx.c ===

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-15 Thread Frank Rowand
On 10/15/2014 10:36 AM, joaoandrefe...@sapo.pt wrote: < snip > > Thanks for the fix. I changed my code but an error persists. I've > copied the original code from the official repositories > (https://git.kernel.org/cgit/utils/kernel/kgdb/agent-proxy.git/), > made the changes you mentioned in your

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-15 Thread joaoandreferro
Citando Frank Rowand : On 10/13/2014 10:34 AM, joaoandrefe...@sapo.pt wrote: Citando Frank Rowand : < snip > Hello again, Frank, I added the "console=ttyS0,115200n8" option you mentioned in the target kernel boot line, and then rebooted the target. When CentOS finished booting on the

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-13 Thread Frank Rowand
kdmx incorrectly detects a 0xff character read from the serial port as a read error. Fix. --- kdmx/kdmx.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) Index: b/kdmx/kdmx.c === --- a/kdmx/kdmx.c +++ b/kdmx/kdmx

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-13 Thread Frank Rowand
On 10/13/2014 1:50 PM, Frank Rowand wrote: > kdmx incorrectly detects a 0xff character read from the serial port > > as a read error. Fix. That patch was corrupted on my end. I'll try again. -Frank > > > > --- > > kdmx/kdmx.c | 10 ++ > > 1 file changed, 6 insertions(+), 4 del

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-13 Thread Frank Rowand
kdmx incorrectly detects a 0xff character read from the serial port as a read error. Fix. --- kdmx/kdmx.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) Index: b/kdmx/kdmx.c === --- a/kdmx/kdmx.c +++ b

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-13 Thread Frank Rowand
On 10/13/2014 10:34 AM, joaoandrefe...@sapo.pt wrote: > Citando Frank Rowand : < snip > > Hello again, Frank, > > I added the "console=ttyS0,115200n8" option you mentioned in the > target kernel boot line, and then rebooted the target. When CentOS > finished booting on the target, I started both

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-13 Thread joaoandreferro
Citando Frank Rowand : > On 10/10/2014 2:51 AM, joaoandrefe...@sapo.pt wrote: >> Citando Frank Rowand : >>> On 10/9/2014 10:54 AM, joaoandrefe...@sapo.pt wrote: Citando Frank Rowand : > > < snip > > I'm running PuTTY on the TARGET (scheme), as the "target console". Maybe this is not

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-10 Thread Frank Rowand
On 10/10/2014 2:51 AM, joaoandrefe...@sapo.pt wrote: > Citando Frank Rowand : >> On 10/9/2014 10:54 AM, joaoandrefe...@sapo.pt wrote: >>> Citando Frank Rowand : < snip > >>> I'm running PuTTY on the TARGET (scheme), as the "target console". >>> Maybe this is not what is supposed to happen, but it

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-10 Thread joaoandreferro
Citando Frank Rowand : On 10/9/2014 10:54 AM, joaoandrefe...@sapo.pt wrote: Citando Frank Rowand : On 10/9/2014 7:51 AM, joaoandrefe...@sapo.pt wrote: Citando Frank Rowand : On 10/8/2014 3:24 PM, joaoandrefe...@sapo.pt wrote: < snip > Disclaimer #1: Yes, it seems my copy-pasted output

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-09 Thread Frank Rowand
On 10/9/2014 10:54 AM, joaoandrefe...@sapo.pt wrote: > Citando Frank Rowand : > >> On 10/9/2014 7:51 AM, joaoandrefe...@sapo.pt wrote: >>> Citando Frank Rowand : On 10/8/2014 3:24 PM, joaoandrefe...@sapo.pt wrote: >> >> < snip > >> >>> >>> Disclaimer #1: Yes, it seems my copy-pasted output is

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-09 Thread joaoandreferro
Citando Frank Rowand : > On 10/9/2014 7:51 AM, joaoandrefe...@sapo.pt wrote: >> Citando Frank Rowand : >>> On 10/8/2014 3:24 PM, joaoandrefe...@sapo.pt wrote: > > < snip > > >> >> Disclaimer #1: Yes, it seems my copy-pasted output is all messed up. >> I don't know if it was my tiredness or just Fi

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-09 Thread Frank Rowand
On 10/9/2014 7:51 AM, joaoandrefe...@sapo.pt wrote: > Citando Frank Rowand : >> On 10/8/2014 3:24 PM, joaoandrefe...@sapo.pt wrote: < snip > > > Disclaimer #1: Yes, it seems my copy-pasted output is all messed up. > I don't know if it was my tiredness or just Firefox, unfortunately > I've just d

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-09 Thread joaoandreferro
Citando Frank Rowand : > On 10/8/2014 3:24 PM, joaoandrefe...@sapo.pt wrote: > > > >> >> Thank you so much. I'm getting improvements. Running "./kdmx -n -d >> -p/dev/ttyS0 -b115200 -DtT" ouputs: >> >> serial port: /dev/ttyS0 >> Initalizing the serial port to 115200 8n1 >> /dev/pts/0 is slave pt

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-08 Thread Frank Rowand
On 10/8/2014 3:24 PM, joaoandrefe...@sapo.pt wrote: > > Thank you so much. I'm getting improvements. Running "./kdmx -n -d > -p/dev/ttyS0 -b115200 -DtT" ouputs: > > serial port: /dev/ttyS0 > Initalizing the serial port to 115200 8n1 > /dev/pts/0 is slave pty for for terminal emulator > /dev/p

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-08 Thread joaoandreferro
Citando Frank Rowand : > On 10/8/2014 4:21 AM, joaoandrefe...@sapo.pt wrote: >> Citando Frank Rowand : >> >>> On 10/7/2014 1:27 PM, Frank Rowand wrote: > > < snip > > >>> >>> Here is an example, where I am using a USB serial port to connect between >>> my host and target. I did all of the comma

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-08 Thread joaoandreferro
Citando Frank Rowand : On 10/8/2014 7:54 AM, joaoandrefe...@sapo.pt wrote: Citando joaoandrefe...@sapo.pt: Citando Frank Rowand : < snip > Host window #2 (minicom): $ minicom -o -w -p /dev/pts/1 Welcome to minicom 2.3 OPTIONS: I18n Compiled on Aug 19 2010, 05:48:57. Port /dev/ttyS0 Pr

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-08 Thread Frank Rowand
On 10/8/2014 7:54 AM, joaoandrefe...@sapo.pt wrote: > Citando joaoandrefe...@sapo.pt: > >> Citando Frank Rowand : < snip > Host window #2 (minicom): >> >> $ minicom -o -w -p /dev/pts/1 Welcome to minicom 2.3 >> >> OPTIONS: I18n Compiled on Aug 19 2010, 05:48:57. Port /dev/ttyS0 >> >> Pre

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-08 Thread Frank Rowand
On 10/8/2014 4:21 AM, joaoandrefe...@sapo.pt wrote: > Citando Frank Rowand : > >> On 10/7/2014 1:27 PM, Frank Rowand wrote: < snip > >> >> Here is an example, where I am using a USB serial port to connect between >> my host and target. I did all of the commands in "host window 1" before >> I di

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-08 Thread joaoandreferro
Citando joaoandrefe...@sapo.pt: > Citando Frank Rowand : > >> On 10/7/2014 1:27 PM, Frank Rowand wrote: >>> On 10/7/2014 12:00 PM, joaoandrefe...@sapo.pt wrote: Citando Frank Rowand : > On 10/7/2014 4:04 AM, joaoandrefe...@sapo.pt wrote: > > < snip > > >> >>

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-08 Thread joaoandreferro
Citando Frank Rowand : > On 10/7/2014 1:27 PM, Frank Rowand wrote: >> On 10/7/2014 12:00 PM, joaoandrefe...@sapo.pt wrote: >>> Citando Frank Rowand : >>> On 10/7/2014 4:04 AM, joaoandrefe...@sapo.pt wrote: < snip > > > Hello again, > > Just one more doubt,

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-07 Thread Frank Rowand
On 10/7/2014 1:27 PM, Frank Rowand wrote: > On 10/7/2014 12:00 PM, joaoandrefe...@sapo.pt wrote: >> Citando Frank Rowand : >> >>> On 10/7/2014 4:04 AM, joaoandrefe...@sapo.pt wrote: >>> >>> < snip > >>> Hello again, Just one more doubt, regarding kdmx: after researching a little

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-07 Thread Frank Rowand
On 10/7/2014 12:00 PM, joaoandrefe...@sapo.pt wrote: > Citando Frank Rowand : > >> On 10/7/2014 4:04 AM, joaoandrefe...@sapo.pt wrote: >> >> < snip > >> >>> >>> Hello again, >>> >>> Just one more doubt, regarding kdmx: after researching a little bit, >>> I need to confirm that I indeed need to use

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-07 Thread joaoandreferro
Citando Frank Rowand : > On 10/7/2014 4:04 AM, joaoandrefe...@sapo.pt wrote: > > < snip > > >> >> Hello again, >> >> Just one more doubt, regarding kdmx: after researching a little bit, >> I need to confirm that I indeed need to use it, since that in the >> cases I've found the setup seemed d

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-07 Thread Frank Rowand
On 10/7/2014 4:04 AM, joaoandrefe...@sapo.pt wrote: < snip > > > Hello again, > > Just one more doubt, regarding kdmx: after researching a little bit, > I need to confirm that I indeed need to use it, since that in the > cases I've found the setup seemed different from mine (sharing a > serial

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-07 Thread joaoandreferro
Citando joaoandrefe...@sapo.pt: > Citando Frank Rowand : > >> On 10/3/2014 11:14 AM, joaoandrefe...@sapo.pt wrote: >>> Citando Frank Rowand : >>> On 10/3/2014 4:03 AM, joaoandrefe...@sapo.pt wrote: > Hello again, > > By the way, while googling for this error I've noticed that

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-06 Thread joaoandreferro
Citando Frank Rowand : > On 10/3/2014 11:14 AM, joaoandrefe...@sapo.pt wrote: >> Citando Frank Rowand : >> >>> On 10/3/2014 4:03 AM, joaoandrefe...@sapo.pt wrote: Hello again, By the way, while googling for this error I've noticed that a common mistake is to invoke GDB on

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-03 Thread Frank Rowand
On 10/3/2014 11:14 AM, joaoandrefe...@sapo.pt wrote: > Citando Frank Rowand : > >> On 10/3/2014 4:03 AM, joaoandrefe...@sapo.pt wrote: >>> Hello again, >>> >>> By the way, while googling for this error I've noticed that a >>> common mistake is to invoke GDB on the wrong location (e. g. >>> http:

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-03 Thread joaoandreferro
Citando Frank Rowand : > On 10/3/2014 4:03 AM, joaoandrefe...@sapo.pt wrote: >> Hello again, >> >> By the way, while googling for this error I've noticed that a common >> mistake is to invoke GDB on the wrong location (e. g. >> http://ehc.ac/p/kgdb/mailman/message/23341685/). What I'm doing i

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-03 Thread Frank Rowand
On 10/3/2014 4:03 AM, joaoandrefe...@sapo.pt wrote: > Hello again, > > By the way, while googling for this error I've noticed that a common > mistake is to invoke GDB on the wrong location (e. g. > http://ehc.ac/p/kgdb/mailman/message/23341685/). What I'm doing is The answer is in that li

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-03 Thread joaoandreferro
Hello again, By the way, while googling for this error I've noticed that a common mistake is to invoke GDB on the wrong location (e. g. http://ehc.ac/p/kgdb/mailman/message/23341685/). What I'm doing is calling GDB on /boot/ directory on the host machine, where I've placed the vmlinux file

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-03 Thread joaoandreferro
Citando Frank Rowand : > On 10/2/2014 4:29 AM, joaoandrefe...@sapo.pt wrote: >> Hello all, >> >> I have two machines running CentOS connected through a serial cable. >> The connection seems to be working since I can transmit text via PuTTY >> in each direction. I have started KGDB in one machine,

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-02 Thread Frank Rowand
On 10/2/2014 4:29 AM, joaoandrefe...@sapo.pt wrote: > Hello all, > > I have two machines running CentOS connected through a serial cable. > The connection seems to be working since I can transmit text via PuTTY > in each direction. I have started KGDB in one machine, where it is > waiting fo

Re: [Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-02 Thread Frank Rowand
On 10/2/2014 4:29 AM, joaoandrefe...@sapo.pt wrote: > Hello all, > > I have two machines running CentOS connected through a serial cable. > The connection seems to be working since I can transmit text via PuTTY > in each direction. I have started KGDB in one machine, where it is > waiting fo

[Kgdb-bugreport] Connect with GDB over serial port issue

2014-10-02 Thread joaoandreferro
Hello all, I have two machines running CentOS connected through a serial cable. The connection seems to be working since I can transmit text via PuTTY in each direction. I have started KGDB in one machine, where it is waiting for a connection from remote GDB. On the second machine, I've st