UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2012-02-26 10:58 AM

useless79
Member
Registered: 2011-10-10
Posts: 30

setting global variables in gdb

Hi All,

Is is possible to set a global variable in gdb while stack tracing ?
I can change values of local variable when I am under a given stack
but not sure if global variable can be set.


thanks....

Offline

#2 2012-02-27 11:55 AM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,230

Re: setting global variables in gdb

Just try it.

I wouldn't be surprised of you could even change read-only data...

Offline

Board footer

Powered by FluxBB