Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - An error happen when running on gdb: (4 Items)
   
An error happen when running on gdb  

An error happen when running on gdb.

 

At now, We try to run a application program as called(‘pacrun’).

And loading onto gdb via ‘gdb pacrun’,

 And next simply executing the application.(please see below attached)

 But it did not work, and appeared message as below.

 

The message of __i686.get_pc_thunk.cx is used move program counter to resister while manipulate global variables.

In this case probably thought  same reason.

 

Please let us know surround information and cause of did not run.

Regards.

 

--------------------------------------------------------------------

gdb version 6.8 qnx-nto 347[i386-pc-nto-qnx6.4.0

gcc version 4.3.3

cpu-type: x86

---------------------------------------------------------------------

# gdb pacrun

GNU gdb 6.8 qnx-nto (rev. 347)

Copyright (C) 2008 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 "i386-pc-nto-qnx6.4.0"...

(gdb) run

Starting program: /root/pac/Unit/Release/bin/pacrun

[New process 88096801]

 

Program received signal 0, Signal 0.

0xb0319254 in __i686.get_pc_thunk.cx () from /usr/qnx641/target/qnx6/x86/lib/libc.so.3

(gdb) continue

Continuing.

 

Program received signal 0, Signal 0.

0xb0319254 in __i686.get_pc_thunk.cx () from /usr/qnx641/target/qnx6/x86/lib/libc.so.3

 
Re: An error happen when running on gdb  
Could you, please, try with an updated version of gdb?

You can download one from:

http://community.qnx.com/sf/frs/do/listReleases/projects.toolchain/frs.gdb

Let me know if it works better.

Thank you,

Aleksandar


On Mon, 2010-08-30 at 04:29 -0400, Kengo Kinoshita wrote:
> 
> An error happen when running on gdb.
> 
>  
> 
> At now, We try to run a application program as called(‘pacrun’).
> 
> And loading onto gdb via ‘gdb pacrun’,
> 
>  And next simply executing the application.(please see below attached)
> 
>  But it did not work, and appeared message as below.
> 
>  
> 
> The message of __i686.get_pc_thunk.cx is used move program counter to resister while manipulate global variables.
> 
> In this case probably thought  same reason.
> 
>  
> 
> Please let us know surround information and cause of did not run.
> 
> Regards.
> 
>  
> 
> --------------------------------------------------------------------
> 
> gdb version 6.8 qnx-nto 347[i386-pc-nto-qnx6.4.0
> 
> gcc version 4.3.3
> 
> cpu-type: x86
> 
> ---------------------------------------------------------------------
> 
> # gdb pacrun
> 
> GNU gdb 6.8 qnx-nto (rev. 347)
> 
> Copyright (C) 2008 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 "i386-pc-nto-qnx6.4.0"...
> 
> (gdb) run
> 
> Starting program: /root/pac/Unit/Release/bin/pacrun
> 
> [New process 88096801]
> 
>  
> 
> Program received signal 0, Signal 0.
> 
> 0xb0319254 in __i686.get_pc_thunk.cx () from /usr/qnx641/target/qnx6/x86/lib/libc.so.3
> 
> (gdb) continue
> 
> Continuing.
> 
>  
> 
> Program received signal 0, Signal 0.
> 
> 0xb0319254 in __i686.get_pc_thunk.cx () from /usr/qnx641/target/qnx6/x86/lib/libc.so.3
> 
>  
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post64959

Thank you Aleksandar.  
Thank you Aleksandar.

 

We tried your suggestion, But did not solve the problem.

 

If you know another approach Please let me know it.

Regards.  

 

---

# gdb pacrun
GNU gdb 6.8 qnx-nto update 4 (rev. 387)
Copyright (C) 2008 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 "i386-pc-nto-qnx6.3.0"...
(gdb) run
Starting program: /root/pac/Unit/Release/bin/pacrun
[New pid 639009 tid 1]

Program received signal 0, Signal 0.
0xb0319254 in __i686.get_pc_thunk.cx () from /usr/qnx641/target/qnx6/x86/lib/libc.so.3
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /root/pac/Unit/Release/bin/pacrun
[New pid 639010 tid 1]

Program received signal 0, Signal 0.
0xb0319254 in __i686.get_pc_thunk.cx () from /usr/qnx641/target/qnx6/x86/lib/libc.so.3
(gdb)
RE: Thank you Aleksandar.  
The log you sent with your latest reply shows that you have used the same revision (update 4, rev. 347).

Please make sure you use the latest gdb and see if it is different. If it continues to give you problems, is there a 
possibility of you attaching your test here?

Thank you,

Aleksandar

-----Original Message-----
From: Kengo Kinoshita [mailto:community-noreply@qnx.com]
Sent: Mon 8/30/2010 7:35 PM
To: general-community
Subject: Thank you Aleksandar.
 
Thank you Aleksandar.

 

We tried your suggestion, But did not solve the problem.

 

If you know another approach Please let me know it.

Regards.  

 

---

# gdb pacrun
GNU gdb 6.8 qnx-nto update 4 (rev. 387)
Copyright (C) 2008 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 "i386-pc-nto-qnx6.3.0"...
(gdb) run
Starting program: /root/pac/Unit/Release/bin/pacrun
[New pid 639009 tid 1]

Program received signal 0, Signal 0.
0xb0319254 in __i686.get_pc_thunk.cx () from /usr/qnx641/target/qnx6/x86/lib/libc.so.3
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /root/pac/Unit/Release/bin/pacrun
[New pid 639010 tid 1]

Program received signal 0, Signal 0.
0xb0319254 in __i686.get_pc_thunk.cx () from /usr/qnx641/target/qnx6/x86/lib/libc.so.3
(gdb)




_______________________________________________

General
http://community.qnx.com/sf/go/post65109


Attachment: Text winmail.dat 3.28 KB