Search Results

Search: Posts Made By: bagpussnz
Forum: Programming 09-08-2014
2,374
Posted By bagpussnz
GDB problem accessing static variables in C
Hi,
Can anyone explain this please..... This is on AIX with GDB (tried a few versions). It only happens when program compiled in 64 bit and only with static variables....

A simple test program......
Forum: AIX 09-08-2014
4,128
Posted By bagpussnz
Gdb on a 64 bit executable - cannot access memory
Hi,
Can anyone explain this please.....

A simple test program...

### snip
#include <stdio.h>

main() {
static int n;

n = 6;

printf("hello %d\n", n);
n=7;
}
### snip

64 bit...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy