Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Write Native C++ Debugger Visualizers in gdb/ TotalView for Complicated Types

How to Write Native C++ Debugger Visualizers in gdb/ TotalView for Complicated Types. i Mean suppose we have one complex type which contains again more different types. how to get debug symbol of these complex type. Note: for Reference you can look at link which is for Visual Studio. But i need for gdb/TOtalView on linux. http://www.idigitalhouse.com/Blog/?p=83

thanks in advance.

like image 582
balaji Avatar asked Feb 28 '11 09:02

balaji


People also ask

How do I run a program in GDB?

Starting your program. Use the run command to start your program under GDB. You must first specify the program name (except on VxWorks) with an argument to GDB (see section Getting In and Out of GDB), or by using the file or exec-file command (see section Commands to specify files).

What is GDB in C?

Gdb is a debugger for C (and C++). It allows you to do things like run the program up to a certain point then stop and print out the values of certain variables at that point, or step through the program one line at a time and print out the values of each variable after executing each line.


1 Answers

GDB and TotalView are completely different products.

Instructions for GDB are here.

Instructions for TotalView are here. If that link doesn't work, google has a copy.

like image 135
Employed Russian Avatar answered Sep 28 '22 18:09

Employed Russian