• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 284
  • Last Modified:

GDB for Appweb

Can someone help provide me the steps to setting up GDB for debugging Appweb?
0
sctccomm
Asked:
sctccomm
  • 3
  • 2
1 Solution
 
Duncan RoeSoftware DeveloperCommented:
You may well find it easiest to attach to the Appweb process once it is running. That way, you don't need to mess with the start-up. This assumes you can make happen whatever it is you want to debug after attaching gdb. I have scripts to do that - would it be a suitable approach?
0
 
sctccommAuthor Commented:
I have been able to attach to appweb using GDB as well as set up breakpoints.

But I was not successful when trying to step through or viewing the code in GDB.
0
 
Duncan RoeSoftware DeveloperCommented:
You need to have built appweb from source with -g. As well, you may find that make install strips symbols. Compare the sizes of installed executables and shared libraries with those of the built ones. If the built ones are larger, overwrite the installed ones with them - that will get you back your debug symbols.
Failing all that, please post output from a gdb session.
0
 
sctccommAuthor Commented:
I am not quite sure how to compile the source code with the -g option.  Can you tell me where I should set the -g?

Also, I thought that you can still debug with the binaries and libraries on the target stripped, while debugging with the unstripped files on the host PC.  Is this not correct?

We have limited space on our units, so if we can keep those files stripped, it would be ideal.
0
 
Duncan RoeSoftware DeveloperCommented:
I never tried that. Do you mean you gdb myprog where myprog has full debug info then you attach to a process in which a stripped version of myprog is running?
You can do ./configure --type=DEBUG or use --debug according to ./configure --help
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now