Search Results

Search: Posts Made By: bean66
Forum: Programming 08-11-2008
16,663
Posted By bean66
I disagree for the following reasons: 1. #ifdef...
I disagree for the following reasons:
1. #ifdef makes code harder to read.
2. You now need to maintain two versions.
3. What happens when you need to compile for yet another platform or OS? You...
Forum: Programming 08-08-2008
4,190
Posted By bean66
Unfortunately no. There is nothing special...
Unfortunately no.

There is nothing special going on though.
Forum: Programming 08-08-2008
4,190
Posted By bean66
I introduced the segv intentionally via the...
I introduced the segv intentionally via the following

char *x;
x=0
*x = 5;

But no core file is generated, when this is in one of the threads, but in main I get a core file.

So my question...
Forum: AIX 08-08-2008
21,651
Posted By bean66
Hmm, are the purchaseorder salesorder files...
Hmm, are the purchaseorder salesorder files postfixed with a number?
Is there some 1 to 1 correlation?
If so Then cut out the number from the salesorder file name. Build the purchase order file...
Forum: Programming 08-08-2008
4,190
Posted By bean66
AIX core dumps
My program is not dumping core when hitting a segmentation violation inside a thread.
However, it dumps core when the segv occurs within main.

Any ideas on how to diagnose this?
AIX 5.3
Forum: Programming 08-08-2008
16,663
Posted By bean66
#include <inttypes.h> and use int32_t,...
#include <inttypes.h>

and use int32_t, int64_t, uint32_t, uint64_t where appropriate.

Avoid the use of a long data types. The problem being when compiled 32bit they are 4 bytes and when...
Forum: Programming 08-08-2008
7,827
Posted By bean66
Debugging 64bit code with gdb and ddd in AIX
I'm trying to use the GDB debugger and DDD to debug 64bit code. It seems that the AIX toolkit gdb version 6.0 works with 64bit code. But the ddd tool when running gdb gives the following errors :
...
Showing results 1 to 7 of 7

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