Questions tagged [gflags]

Gflags is a commandline flags library used within Google. The commandline flags are specified by users on the command line when they run an executable.

Typically, an application lists what flags the user is allowed to pass in, and what arguments they take -- in this example, -l takes no argument, and -f takes a string (in particular, a filename) as an argument. Users can use a library to help parse the commandline and store the flags in some data structure.

86 questions
2
votes
2 answers

Why does Loader Snaps not work when attaching to a process?

When I configure GFlags to show loader snaps on an image MYEXE.exe and run the executable from windbg I get loader snaps output in the debug window. But when I use windbg to attach to the process already running I do not, even though I enabled…
insipid
  • 3,238
  • 3
  • 26
  • 38
2
votes
1 answer

Page Heap doesn't record useful stack infomation?

I'm trying to test a crash scenario (in an isolated test-app) with normal page heap (not full). I have set up the flags with gflags /p /enable Test.exe and I'm overwriting an integer buffer by one element ... const size_t s = 100; vector v1(s,…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
2
votes
2 answers

gflags doesn't work in 64 bit Windows 7, but 32 bit environment

I'm trying to debug a 32 bit program on 64 bit Windows 7. So I use gflags to set the debugger for that app. I fill in the path of the application, and the one of the debugger. But when I start the application, WinDBG doesn't run. The same…
daisy
  • 22,498
  • 29
  • 129
  • 265
2
votes
1 answer

Show Loader Snaps in GFlags.exe, fails to capture any output in WinDbg

I'm having a customer use Show Loader Snaps in WinDbg to capture output in WinDbg so we can figure out what library is failing to load in our product on their Win7 machine. Unfortunately all that the Debugger seemed to capture was the command 'go'…
JosephA
  • 1,187
  • 3
  • 13
  • 27
1
vote
1 answer

Unable to specify gflag in GCP

I have a Go server program which needs to be passed a particular gflag value at runtime, but I am unable to specify that in GCP's app.yaml file. I am pretty new to GCP, so this might be an uninitiated query. Here's my Go code…
rahulpaul
  • 13
  • 2
1
vote
1 answer

Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags - both are detected

I am not able to compile the sfm module for opencv using cmake. The following log shows that cmake finds both glog and gflags, but compilation fails. Glog: YES freetype2: NO harfbuzz: NO Julia not found. Not compiling Julia Bindings. Module…
kyle
  • 126
  • 1
  • 8
1
vote
0 answers

Why gflags "Enable heap tail checking" is not working alone on Windows?

The gflags was configured to only have "Enable heap tail checking" enabled. The PageHeap was not enabled. c:\Program Files (x86)\Windows Kits\10\Debuggers\x64>gflags /i test.exe Current Registry Settings for test.exe executable are: 00000010 htc…
Eric Z
  • 14,327
  • 7
  • 45
  • 69
1
vote
0 answers

ExternalProject_Add for gflags, but build many times

Got stuck when I'm trying ExternalProject_Add for gflags. Appreciate for anyone's help. The snippet for CMakeLists.txt as follows. ExternalProject_Add(gflags PREFIX ${CMAKE_CURRENT_BINARY_DIR}/gflags-prefix SOURCE_DIR …
sazpw
  • 23
  • 5
1
vote
1 answer

Is there a way to pass an array of ints with a command line parameter in GFlags?

I want to pass an array of ints in the following way: ./main --scores 1 49 1 24 4 5 6 I did find a similar question but it's sort of old, hopefully it's changed now. The accepted answer says I should pass them as string with a delimiter.
Alex
  • 579
  • 1
  • 6
  • 14
1
vote
1 answer

Could NOT find LMDB (missing: LMDB_INCLUDE_DIR LMDB_LIBRARIES)

Windows 10 Visual Studio 14 I am trying to build a c++ code based on this github repository. However, when I try to generate lib files in Cmake I get this error: How can I make it recognize LMDB, GFALGS, and GLOG?
Hadi GhahremanNezhad
  • 2,377
  • 5
  • 29
  • 58
1
vote
0 answers

Add mulitple commands with go-flags

Working with jessevdk/go-flags, I would like to get the following usage command: ./main [OPTIONS] arg1 [arg2] I am able to get the OPTIONS right but I cannot add commands. I see that I can use AddCommand but I have not been able to generate my…
Arkon
  • 2,648
  • 6
  • 26
  • 46
1
vote
2 answers

windows - How can i access total "user mode stack trace database(ust)"?

How can i access the total "user mode stack trace database" created by "gflags.exe" like sql DB? Otherwise, could you tell me some API docs about ust DB? I truned on the +ust flag using "gflags.exe", So i can get stack trace creating a memory block.…
RammerChoi
  • 99
  • 6
1
vote
1 answer

gflags linker-error: undefined reference

I installed gflags: $ ls /usr/local/lib/ | grep gflags libgflags.a libgflags_nothreads.a $ ls /usr/local/include/ | grep gflags gflags And included #include DEFINE_bool(a, false, "test"); int main(int argc,…
Wonter
  • 293
  • 1
  • 5
  • 15
1
vote
1 answer

Is there a way to have short names in GFlags?

I am trying to see if there is a way in gflags to have --server_configure and --sc map to same variable. Is there a way to have a short name for an option?
goose
  • 41
  • 2
1
vote
1 answer

Failure compiling glog with gflags support using Bazel

I'm getting a failure when I try to compile glog with gflags support using Bazel. A github repo reproducing this problem and showing the compilation error message is here: https://github.com/dionescu/bazeltrunk.git I suspect that the problem occurs…