Hello world
I’m trying to debug an application running into a ptty terminal set in raw
mode.
When I set a breakpoint in my software at the following line :
printf( “car read : %X - i:%8ld\n”, car, i );
the debugger doesn’t stop when I hit a key
I compile my application with the command :
qcc -g test.c -o test_g
I join my source code (test.c)
Someone could tell me why the debbugger doesn’t stop.
Thanks!
begin 666 Test.c
M(VEN8VQU9&4@/’-T9&QI8BYH/@HC:6YC;‘5D92 <W1D:6\N:#X*(VEN8VQU
M9&4@/‘1E<FUI;W,N:#X*“FEN=”!M86EN*"!V;VED(“D*>PH)“0D);&]N9R!I
M.PH)“0D):6YT(&-A<CL*“0D)“0H@(” @<F%W*” P(“D[“B @(” (" @("\J
M"B @(" @B!3=&1I;B!I<R!N;W<@(G)A=R((" @(" J+PH@(" @:3TP3#L
M(” @(&1O"B @(”“7!R:6YT9B@@(F-A<B!R96%D(#H@)5@@+2!I.B4X;&1<;B(L
M(&-A<BP@:2 I.PH@(” @?2!W:&EL92@@8V%R(3TG("<I.PH(” @('5N<F%W
M(”@@,” I.PH*(" @(’)E=‘5R;B!%6$E47U-50T-%4U,[“GT*”@H*:6YT(’)A
M=R@@9F0@0H@(&EN="!F9#L("![“B @(”!S=’)U8W0@=&5R;6EO<R!T97)M
M:6]S7W ["@H@(" @:68H('1C9V5T871T<B@@9F0L(“9T97)M:6]S7W @2 I
M"B @(" @(’)E='5R;B@@+3$@3L"B @("!T97)M:6]S7W N8U]C8UM634E.
M72 @/2 @,3L(” @('1E<FUI;W-?<“YC7V-C6U9424U%72 ](” P.PH@(" @
M=&5R;6EO<U]P+F-?;&9L86<@)CT@?B@@14-(3WQ)0T%.3TY\25-)1WP*(" @
M(" @(" @(" @("!%0TA/17Q%0TA/2WQ%0TA/3DP@3L(" @(‘1E<FUI;W-?
M<“YC7V]F;&%G(“8]('XH($]03U-4(“D"B @("!R971U<FXH('1C<V5T871T
M<B@@9F0L(%1#4T%$4D%)3BP@)G1E<FUI;W-?<" I(“D[“B @?0H*:6YT('5N
M<F%W*”!F9” I"B @:6YT(&9D.PH@(‘L*(" @(’-T<G5C="!T97)M:6]S('1E
M<FUI;W-?<#L*“B @(”!I9B@@=&-G971A='1R*"!F9"P@)G1E<FUI;W-?<" I
M(“D*(” @(" @<F5T=7)N*" M,2 I.PH*(" @('1E<FUI;W-?<"YC7VQF;&%G
M('P1WP*(” @(” @(” @(" @($5#2$]%?$5#
M2$]+?$5#2$].3" I.PH@(" @=&5R;6EO<U]P+F-?;V9L86<@?#T@"!/4$]3
M5" I.PH@(" @<F5T=7)N"!T8W-E=&%T=’(H(&9D+"!40U-!1%)!24XL("9T
197)M:6]S7W @*2 I.PH@('T
end
Does this line get executed? i.e. does your application
read a key, and print out the character read?
Serge PAYRE <spayre@free.fr> wrote:
Hello world
I’m trying to debug an application running into a ptty terminal set in raw
mode.
When I set a breakpoint in my software at the following line :
printf( “car read : %X - i:%8ld\n”, car, i );
the debugger doesn’t stop when I hit a key
I compile my application with the command :
qcc -g test.c -o test_g
I join my source code (test.c)
Someone could tell me why the debbugger doesn’t stop.
Thanks!
begin 666 Test.c
M(VEN8VQU9&4@/’-T9&QI8BYH/@HC:6YC;‘5D92 <W1D:6\N:#X*(VEN8VQU
M9&4@/‘1E<FUI;W,N:#X*“FEN=”!M86EN*"!V;VED(“D*>PH)“0D);&]N9R!I
M.PH)“0D):6YT(&-A<CL*“0D)“0H@(” @<F%W*” P(“D[“B @(” (" @("\J
M"B @(" @B!3=&1I;B!I<R!N;W<@(G)A=R((" @(" J+PH@(" @:3TP3#L
M(” @(&1O"B @(”“7!R:6YT9B@@(F-A<B!R96%D(#H@)5@@+2!I.B4X;&1<;B(L
M(&-A<BP@:2 I.PH@(” @?2!W:&EL92@@8V%R(3TG("<I.PH(” @('5N<F%W
M(”@@,” I.PH*(" @(’)E=‘5R;B!%6$E47U-50T-%4U,[“GT*”@H*:6YT(’)A
M=R@@9F0@0H@(&EN="!F9#L("![“B @(”!S=’)U8W0@=&5R;6EO<R!T97)M
M:6]S7W ["@H@(" @:68H('1C9V5T871T<B@@9F0L(“9T97)M:6]S7W @2 I
M"B @(" @(’)E='5R;B@@+3$@3L"B @("!T97)M:6]S7W N8U]C8UM634E.
M72 @/2 @,3L(” @('1E<FUI;W-?<“YC7V-C6U9424U%72 ](” P.PH@(" @
M=&5R;6EO<U]P+F-?;&9L86<@)CT@?B@@14-(3WQ)0T%.3TY\25-)1WP*(" @
M(" @(" @(" @("!%0TA/17Q%0TA/2WQ%0TA/3DP@3L(" @(‘1E<FUI;W-?
M<“YC7V]F;&%G(“8]('XH($]03U-4(“D"B @("!R971U<FXH('1C<V5T871T
M<B@@9F0L(%1#4T%$4D%)3BP@)G1E<FUI;W-?<" I(“D[“B @?0H*:6YT('5N
M<F%W*”!F9” I"B @:6YT(&9D.PH@(‘L*(" @(’-T<G5C="!T97)M:6]S('1E
M<FUI;W-?<#L*“B @(”!I9B@@=&-G971A='1R*"!F9"P@)G1E<FUI;W-?<" I
M(“D*(” @(" @<F5T=7)N*" M,2 I.PH*(" @('1E<FUI;W-?<"YC7VQF;&%G
M('P1WP*(” @(” @(” @(" @($5#2$]%?$5#
M2$]+?$5#2$].3" I.PH@(" @=&5R;6EO<U]P+F-?;V9L86<@?#T@"!/4$]3
M5" I.PH@(" @<F5T=7)N"!T8W-E=&%T=’(H(&9D+"!40U-!1%)!24XL("9T
197)M:6]S7W @*2 I.PH@('T
end
Yes.
We have the same problem with DDD. see the question titled “How to debug
this program with DDD?” in this forum
thanks,
Richard Potter a écrit dans le message <94i49k$mqm$1@nntp.qnx.com>…
Does this line get executed? i.e. does your application
read a key, and print out the character read?
Serge PAYRE <> spayre@free.fr> > wrote:
Hello world
I’m trying to debug an application running into a ptty terminal set in
raw
mode.
When I set a breakpoint in my software at the following line :
printf( “car read : %X - i:%8ld\n”, car, i );
the debugger doesn’t stop when I hit a key
I compile my application with the command :
qcc -g test.c -o test_g
I join my source code (test.c)
Someone could tell me why the debbugger doesn’t stop.
Thanks!
begin 666 Test.c
M(VEN8VQU9&4@/’-T9&QI8BYH/@HC:6YC;‘5D92 <W1D:6\N:#X*(VEN8VQU
M9&4@/‘1E<FUI;W,N:#X*“FEN=”!M86EN*"!V;VED(“D*>PH)“0D);&]N9R!I
M.PH)“0D):6YT(&-A<CL*“0D)“0H@(” @<F%W*” P(“D[“B @(” (" @("\J
M"B @(" @B!3=&1I;B!I<R!N;W<@(G)A=R((" @(" J+PH@(" @:3TP3#L
M(” @(&1O"B @(”“7!R:6YT9B@@(F-A<B!R96%D(#H@)5@@+2!I.B4X;&1<;B(L
M(&-A<BP@:2 I.PH@(” @?2!W:&EL92@@8V%R(3TG("<I.PH(” @('5N<F%W
M(”@@,” I.PH*(" @(’)E=‘5R;B!%6$E47U-50T-%4U,[“GT*”@H*:6YT(’)A
M=R@@9F0@0H@(&EN="!F9#L("![“B @(”!S=’)U8W0@=&5R;6EO<R!T97)M
M:6]S7W ["@H@(" @:68H('1C9V5T871T<B@@9F0L(“9T97)M:6]S7W @2 I
M"B @(" @(’)E='5R;B@@+3$@3L"B @("!T97)M:6]S7W N8U]C8UM634E.
M72 @/2 @,3L(” @('1E<FUI;W-?<“YC7V-C6U9424U%72 ](” P.PH@(" @
M=&5R;6EO<U]P+F-?;&9L86<@)CT@?B@@14-(3WQ)0T%.3TY\25-)1WP*(" @
M(" @(" @(" @("!%0TA/17Q%0TA/2WQ%0TA/3DP@3L(" @(‘1E<FUI;W-?
M<“YC7V]F;&%G(“8]('XH($]03U-4(“D"B @("!R971U<FXH('1C<V5T871T
M<B@@9F0L(%1#4T%$4D%)3BP@)G1E<FUI;W-?<" I(“D[“B @?0H*:6YT('5N
M<F%W*”!F9” I"B @:6YT(&9D.PH@(‘L*(" @(’-T<G5C="!T97)M:6]S('1E
M<FUI;W-?<#L*“B @(”!I9B@@=&-G971A='1R*"!F9"P@)G1E<FUI;W-?<" I
M(“D*(” @(" @<F5T=7)N*" M,2 I.PH*(" @('1E<FUI;W-?<"YC7VQF;&%G
M('P1WP*(” @(” @(” @(" @($5#2$]%?$5#
M2$]+?$5#2$].3" I.PH@(" @=&5R;6EO<U]P+F-?;V9L86<@?#T@"!/4$]3
M5" I.PH@(" @<F5T=7)N"!T8W-E=&%T=’(H(&9D+"!40U-!1%)!24XL("9T
197)M:6]S7W @*2 I.PH@('T
end