Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО05-29-2009 07:22 AM
тАО05-29-2009 07:22 AM
When i run gdb
I tried with a simple c program and it is alright but with the Pro C makefile it doesn't work. I've done some research but i could'nt find anything.
Can anyone help??
My Hp Ux version is HP-UX 11i v1
and my Gdb version is 5.4.0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 07:55 PM
тАО05-29-2009 07:55 PM
Re: GDB
How did you specify "the -g flag" when
"compiling Pro C programs"?
> [...] with the Pro C makefile it doesn't
> work.
And what's in "the Pro C makefile"?
Assuming that this is actually Oracle Pro*C,
I'm told that "Your system-specific Oracle
documentation has instructions on how to link
a Pro*C/C++ application." Have you looked?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 10:35 PM
тАО05-29-2009 10:35 PM
Re: GDB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2009 10:35 PM
тАО05-31-2009 10:35 PM
Re: GDB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 01:35 AM
тАО06-01-2009 01:35 AM
Re: GDB
I'm using cc to compile the program and i added the -g option to every compile lines in the makefile.
env_pre.mk
GFLAG = -g +d
CFLAGS = -c -I$(REFHEA) -I$(USRXIT) -D_HPUX_SOURCE +DAportable -Ae
CFLAGS1 = -c -I$(REFHEA) -I$(USRXIT) -D_HPUX_SOURCE +DAportable -Ae
makefile
$(CC) $(GFLAG) $(CFLAGS1) $(EXEC).c -o $@
the files have more code, but i would rather not to post here both code.
I think i have tryied everything, and i've seen posts with people saying that it works.
If you need more information i'll send it.
Thank you.
Jo├Г┬гo Lopes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 02:00 AM
тАО06-01-2009 02:00 AM
Re: GDB
WDB comes with wdb and HP's gdb, use the latter.
>I added the -g option to every compile lines
Did you also add it to the link line?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 02:14 AM
тАО06-01-2009 02:14 AM
Re: GDB
This is the link line, correct?? I added the -g option to this line and it didn't work.
I didn't made the makefile, it was already made, but there was no debugging option, wich can be a pain...
It's strange because i made a simple c program to test, and it worked, it must have something to do with my makefile correct...
include env_pre.mk
MKFLIBS=$(URLIB) $(USERLIB)
IAP_MK=$(EXEC).o
#$(IAPOUT)/$(EXEC): $(IAP_MK) $(MKFLIBS)
$(EXEC): $(IAP_MK) $(MKFLIBS)
@echo " HEELOO"
@echo " ******** Linkagem ******** "
@echo
$(CC) $(GFLAG) $(LDFLAGS) $^ $(OBJS) $(PROLDLIBS) -lcurses
@echo " ******** Stripagem ******** "
@echo
strip $@
chatr +s enable $@
#@rm -f $(EXEC).o
@echo
@cp $(EXEC) $(HOME)$(VERS)/BIN
@echo
@echo " ******** Link/Strip Completos ******** "
@echo
@echo " *************************************** "
@echo " ******** FIM COMPILACAO <$(EXEC).pc> "
@echo " *************************************** "
@echo
@echo
@echo
@echo
@echo
$(EXEC).o: $(EXEC).pc
@echo
@echo " *************************************** "
@echo " ******** INICIO COMPILACAO <$(EXEC).pc> "
@echo " *************************************** "
@echo
@echo " ********** Pre Compilacao ********** "
@echo
@echo
$(PROC) $(PROCPLSFLAGS) iname=$^
@echo
@echo " ********** Compilacao ********** "
@echo
@echo
$(CC) $(GFLAG) $(CFLAGS1) $(EXEC).c -o $@
# @rm -f $(EXEC).lis
# @rm -f $(EXEC).lis $(EXEC).c
@echo
@echo " ****** PComp./ Comp. Completos ****** "
@echo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 02:37 AM
- Tags:
- strip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 02:54 AM
тАО06-01-2009 02:54 AM
Re: GDB
Pro*c developing will become much easier.
Thank you so much for your attention...
You are the best.
Best regards
Joao Lopes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 03:01 AM
тАО06-01-2009 03:01 AM
Re: GDB
If you are happy with the answers you have gotten, please read the following about assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33