- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Debugging C++ code called through Java routines
Operating System - HP-UX
1755130
Members
3327
Online
108830
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2002 07:27 AM
тАО10-15-2002 07:27 AM
Debugging C++ code called through Java routines
I have an application running using WebLogic on HP UNIX. The code internally calls many C++ methods. I want to debug the C++ code called using debugger.
I tried in HP-DDE by attaching the running process. I was able to attach the running process through DDE. I was also able to see the code but I am not able to set break points. When I set breakpoints it says "Permission Denied".
I checked in the HP-DDE manual for attaching running processes. One point which was written there was that breakpoint cannot be set in shared libraries used by program unless we run /usr/lib/pxdb -s on.
As WebLogic runs the process through java when I did /usr/lib/pxdb -s on java it gives me the error:
crt0 out of date
pxdb32: java is not a valid executable file.
Can anyone suggest some more things about debugging this
I tried in HP-DDE by attaching the running process. I was able to attach the running process through DDE. I was also able to see the code but I am not able to set break points. When I set breakpoints it says "Permission Denied".
I checked in the HP-DDE manual for attaching running processes. One point which was written there was that breakpoint cannot be set in shared libraries used by program unless we run /usr/lib/pxdb -s on
As WebLogic runs the process through java when I did /usr/lib/pxdb -s on java it gives me the error:
crt0 out of date
pxdb32: java is not a valid executable file.
Can anyone suggest some more things about debugging this
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2002 07:56 AM
тАО10-15-2002 07:56 AM
Re: Debugging C++ code called through Java routines
Hi,
you can debug JNI application with gdb.
on dspp developper site, there is some documentations which explain how to debugging JNI application:
- "debugging a native JNI library with gdb on Java??? SDK 1.2": http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,914,00.html
- "debugging a native JNI library with Java??? 2 HotSpot VM under gdb": http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2732,00.html
Nicolas
you can debug JNI application with gdb.
on dspp developper site, there is some documentations which explain how to debugging JNI application:
- "debugging a native JNI library with gdb on Java??? SDK 1.2": http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,914,00.html
- "debugging a native JNI library with Java??? 2 HotSpot VM under gdb": http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2732,00.html
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2002 08:46 AM
тАО10-16-2002 08:46 AM
Re: Debugging C++ code called through Java routines
As hinted in the links that Nicolas pointed you to, the bin/java "command" is a script that really invokes a program such as /opt/java1.2/jre/bin/PA_RISC/native_threads/java
You would need to use pxdb against the real program.
An easier alternative is to set
DEBUG_PROG=wdb in your environment. The java startup script will then invoke the java program with the wdb debugger.
The java program will still need the arguments set, since wdb does not pass them on. You can set them with "set args myargs" or with "r myargs".
I often see a "SIGSEGV" in starting java under wdb. Just
continue on with "c" and java will catch the SIGSEGV and work correctly!
You can get the latest wdb from
http://www.hp.com/go/wdb . The latest one can even unwind the stack into java code
You would need to use pxdb against the real program.
An easier alternative is to set
DEBUG_PROG=wdb in your environment. The java startup script will then invoke the java program with the wdb debugger.
The java program will still need the arguments set, since wdb does not pass them on. You can set them with "set args myargs" or with "r myargs".
I often see a "SIGSEGV" in starting java under wdb. Just
continue on with "c" and java will catch the SIGSEGV and work correctly!
You can get the latest wdb from
http://www.hp.com/go/wdb . The latest one can even unwind the stack into java code
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP