redirection IO to pipe cross execv247 (2/21/2008 10:29:12 PM) comp.unix.programmer Hi all... I want to implement a gdb mi interface. So I regard the gdb as a 3rd party program, I'm trying to wire gdb's standard I/O on my program. I use pipe to approach this goal. But I got a wried results. Ev... Dave
writing a opened file552 (2/5/2008 5:26:12 PM) comp.unix.programmer hi all... I want to patch some of sections(ELF format) of my program itself. but first problem is I can't open the program in O_RDWD... for example, this program is called TEST, I execute this program by ./ TE... Dave
termios and printf in different thread036 (9/6/2007 9:53:06 AM) comp.unix.programmer Hi All: I have a multi-thread program, one thread using termios and xterm to display a shared memory which is shared between this thread and the main thread. As I use the printf in the main thread, the xt... Dave
Can pty detect my key press?442 (5/3/2007 10:10:23 PM) comp.unix.programmer Hi all: I'm using the pty (pseudo-terminal interfaces) + xterm in my project. Does any possible the pty can detect my key press (i.e. press 'a') and emit a signal to let me know someone press a key on th... Dave
xterm and press enter247 (5/1/2007 4:18:22 PM) comp.unix.programmer hi all: I'm fork a xterm(child process) and try to write the pseudo terminal pts. I'm confused when I try to write the pts in the parent process, I have to press the enter in the xterm and the data I try t... Dave
Meet a problem when using the signals730 (3/21/2007 10:24:04 PM) comp.unix.programmer Hi all: I'm following the book example to use the shared memory in my project. All of the codes reference the book "UNIX SYSTEMS Programming"(chapter 15). I meet a problem which is the signal(SIGUSER1) seems d... Dave
cast a label into a char array....732 (1/29/2007 5:27:08 PM) comp.lang.c Hi all: I have a memory area fill will 0x90(NOP). This area is allocated by the linker. I want to transfer this area into a char array. I have already known the size of this area and the beginning address... s88
A question about jmp041 (12/8/2006 9:54:40 PM) comp.unix.programmer Hi all: I'm programming in the Linux. I'm using the gcc-3.4 and the Ubuntu is the distribution I work on it. For some reason, I have to modify my code during run time. So, I create a large space( a contin... Dave
Extend memory's text section during runtime549 (11/27/2006 10:03:38 AM) comp.unix.programmer Hi all: I'm programming under X86 with C language and gcc. It's is intresting to me dose any way can make me to extend the text section in the memory of my program during it executing? thanx! Dave. ... Dave
remove memory protection339 (10/16/2006 2:22:13 AM) comp.unix.programmer Hi all: I'm trying to implement something like the gdb. In this paroject, I have to replace the instruction in the memory during run time. And I meet a problem! How do I remove the memory protection under... s88
dave.tw's replies:
Items(10) /1
non sequential execution...728 (11/3/2005 1:30:05 AM) comp.lang.c Hi all: Consider the follows code slide... void execution(int i){ printf("%d\n",i);} void add(){ execution(1); execution(3); } void sub(){ execution(2); execution(4); } Is... dave.tw(42)
combind the C and C++ program319 (5/17/2006 6:30:39 AM) comp.lang.c++ Hi all: I encounter a problem in my C++ project which I have to call some functions written in C. Could I just include the C library without g++ recompilation?? Thanks in advance, Dave. ... dave.tw(42)
combind the C and C++ programs335 (5/17/2006 8:19:01 AM) comp.programming Hi all: I encounter a problem in my C++ project which I have to call some functions written in C. Could I just include the C library without g++ recompilation?? I mean, just need to compile the C++ file... dave.tw(42)
remove memory protection339 (10/16/2006 2:22:13 AM) comp.unix.programmer Hi all: I'm trying to implement something like the gdb. In this paroject, I have to replace the instruction in the memory during run time. And I meet a problem! How do I remove the memory protection under... dave.tw(42)
Extend memory's text section during runtime549 (11/27/2006 10:03:38 AM) comp.unix.programmer Hi all: I'm programming under X86 with C language and gcc. It's is intresting to me dose any way can make me to extend the text section in the memory of my program during it executing? thanx! Dave. ... dave.tw(42)
cast a label into a char array....732 (1/29/2007 5:27:08 PM) comp.lang.c Hi all: I have a memory area fill will 0x90(NOP). This area is allocated by the linker. I want to transfer this area into a char array. I have already known the size of this area and the beginning address... dave.tw(42)
Meet a problem when using the signals730 (3/21/2007 10:24:04 PM) comp.unix.programmer Hi all: I'm following the book example to use the shared memory in my project. All of the codes reference the book "UNIX SYSTEMS Programming"(chapter 15). I meet a problem which is the signal(SIGUSER1) seems d... dave.tw(42)
Can pty detect my key press?442 (5/3/2007 10:10:23 PM) comp.unix.programmer Hi all: I'm using the pty (pseudo-terminal interfaces) + xterm in my project. Does any possible the pty can detect my key press (i.e. press 'a') and emit a signal to let me know someone press a key on th... dave.tw(42)
writing a opened file552 (2/5/2008 5:26:12 PM) comp.unix.programmer hi all... I want to patch some of sections(ELF format) of my program itself. but first problem is I can't open the program in O_RDWD... for example, this program is called TEST, I execute this program by ./ TE... dave.tw(42)
redirection IO to pipe cross execv247 (2/21/2008 10:29:12 PM) comp.unix.programmer Hi all... I want to implement a gdb mi interface. So I regard the gdb as a 3rd party program, I'm trying to wire gdb's standard I/O on my program. I use pipe to approach this goal. But I got a wried results. Ev... dave.tw(42)