Questions tagged [totalview]

RogueWave's GUI-based source code defect analysis tool.

TotalView is a GUI-based source code defect analysis tool from RogueWave that gives you unprecedented control over processes and thread execution and visibility into program state and variables.

28 questions
31
votes
6 answers

How big can a malloc be in C?

I have a malloc in C that is 26901^2*sizeof(double) This got me thinking what the largest value can be here? Also, would I have any problems defining a macro to access this 2D array? #define DN(i,j) ((int)i * ny + (int)j) Because this seems to…
Derek
  • 11,715
  • 32
  • 127
  • 228
8
votes
1 answer

How do you set the current directory of a debugged process?

I have an application that is sensitive to the directory it gets invoked from — it loads some files using relative paths. When I start the program through a debugger, how can I control what the initial current directory will be? I'd prefer to avoid…
Rob Kennedy
  • 161,384
  • 21
  • 275
  • 467
7
votes
2 answers

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…
balaji
  • 83
  • 3
4
votes
1 answer

Large executable causes debuggers to hang

I have a C++ binary that is 190 MB in size. When I put this binary into dbx and try to create a breakpoint, dbx hangs. While dbx is hung, I have observed its memory quickly grow to over 10 GB. TotalView allows me to set breakpoints; however, all the…
Hitman
  • 123
  • 10
4
votes
2 answers

How do i view source code in totalview?

I just fired up totalview on my "hello world" application (c++) and i only get to view the assembly code. Is there any settings/flags i need to set to view the source code? Menubar->View->Source As->Source does not work for me. the application im…
Jason94
  • 13,320
  • 37
  • 106
  • 184
3
votes
1 answer

Debug complex return statement

I am using totalview as a linux C++ debugger. Functions in our code often look something like this double foo() { int a = 2; int b = 3; return bar(a,b); } where some preliminary work is done and than a more or less complex function bar…
schorsch312
  • 5,553
  • 5
  • 28
  • 57
3
votes
4 answers

how to represent int * as array in totalview?

How do I 'dive' an int * which points to a dynamically allocated array of integers and represent it as a fixed int[] array? Put otherwise, if I dive an int * it shows the address and the int pointed to, but instead I would like to see the array of…
andreas buykx
  • 12,608
  • 10
  • 62
  • 76
2
votes
0 answers

How to disallow my debugger (totalview) to step into the standard library implementation?

Is it possible to disallow my debugger (totalview) to step into the standard library code on linux? Quite often when debugging C++ code I step into standard library code. I expect that it is correct; I am not interested in debugging it. I am only…
schorsch312
  • 5,553
  • 5
  • 28
  • 57
2
votes
2 answers

Malloc call on delete[] showing up as memory leak in totalview

I am using HDF5 to read a string into a char* allocated by new[]. I then use a string::assign() call to copy this data to where I actually want it. I then call delete[] on that char*. This is showing up as the source of a memory leak using…
Dave
  • 5,133
  • 21
  • 27
2
votes
2 answers

Totalview get the value of QString

When I double clicked on QString object in totalview debugger this window appears. How can I get the exact value of it. I have tried command.toUtf8().constData() but it prints Cannot find name "toUtf8".
Ashot
  • 10,807
  • 14
  • 66
  • 117
2
votes
1 answer

How to dive dynamic 2D array in totalview

Following this thread I would like to share a related issue: how to dive int ** as 2D array in totalview? (in which the solution is discussed here). In case anyone faces the same issue, I hope this would help! Let's say in my code I have a dynamic…
HuaTham
  • 7,486
  • 5
  • 31
  • 50
1
vote
0 answers

How to resolve error in debugging a program in totalview?

I installed TotalView on Ubuntu. For the begining I just tried to debug a very simple Hello Word program in but I got the following error: "Fatal Error: Can't set up library cache directory -- cannot debug this target. Do you want to run the…
1
vote
2 answers

Totalview: is there a way to hardcode a break point?

I have a parallel (MPI) c/c++ program that from time to time leads to an error under certain conditions. Once the error occurs, a message is printed and the program exits; I'd like to set a break point to see the stack and more detail regarding what…
Yann
  • 33,811
  • 9
  • 79
  • 70
1
vote
1 answer

totalview only recognizes some variables, executable lines

How can I make totalview offer access to all the variables in my code? I'm trying to debug a Fortran90 program using totalview. I compiled and linked with Intel's ifort, using the "-g" flag. totalview can step through my program, but only offers…
1
vote
1 answer

Intel Fortran character pointer corruption when enabling OpenMP

I'm working on Intel Fortran compatibility for a fairly large code (weather prediction model). On Intel Fortran (and only Intel Fortran) some character data seems to get scrambled looping through and point character pointers to it. The characters I…
Michel Müller
  • 5,535
  • 3
  • 31
  • 49
1
2