Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Reg - GDB: (6 Items)
   
Reg - GDB  
Hi ,

I have wrote sample io-pkt driver and i got the devnp-sam.so.

How can i debug using gdb ?

I tried

Logs
----- 

# gdb
GNU gdb 6.7 qnx-nto (rev. 233)
Copyright (C) 2007 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)  mount -T io-pkt /lib/dll/devnp-netwokk_ddk.so
Undefined command: "mount".  Try "help".
(gdb)

-----

How can run io-pkt via gdb?

Please help me...

Thanks and Regards
K.Senthil
Re: Reg - GDB  
On Mon, Aug 17, 2009 at 09:59:34AM -0400, Senthil K wrote:
> Hi ,
> 
> I have wrote sample io-pkt driver and i got the devnp-sam.so.
> 
> How can i debug using gdb ?
> 

Like any other process.  Check out the fine gdb docs:

http://www.qnx.com/developers/docs/6.4.1/neutrino/prog/using_gdb.html

BTW what does 'Reg' mean in the title of all your posts?

-seanb
Re: Reg - GDB  
Hi,

Reg  means Regarding.

If its irritate to you

sorry for that.

i will remove that from next post onwards.

Thanks and Regards
K.Senthil
RE: Reg - GDB  
> Hi,

> Reg  means Regarding.

> If its irritate to you

> sorry for that.

> i will remove that from next post onwards.

No biggie.  Just wondering...

-seanb
Re: RE: Reg - GDB  
Hi Sean,

The link which you have sent useful and it has general gdb commands.

but i want to debug io-pkt is there any way to do.

Because in qnx we using mount command then only the io-pkt will load in to qnx stack.

Thanks and Regards
K.Senthil
Re: RE: Reg - GDB  
On Mon, Aug 17, 2009 at 10:31:24AM -0400, Senthil K wrote:
> Hi Sean,
> 
> The link which you have sent useful and it has general gdb commands.
> 
> but i want to debug io-pkt is there any way to do.

Sure, I do it all the time...

There's nothing special about io-pkt.  From gdb's point
of view it's a process like any other.  All the info
in the gdb docs should apply.

> 
> Because in qnx we using mount command then only the io-pkt will load in to qnx stack.

- You can start your driver from the io-pkt command line
  - gdb 'run' or 'set args' commands
- Run io-pkt with no args in gdb and run the mount command
  from another console.

-seanb