Re: [Beginner Question] How to print the call link graph?

2023-07-03 Thread Wen Yi
OK, that helps me a lot. I just want to get the trace of function call. Thanks very much! Yours, Wen Yi

Re: [Beginner Question] How to print the call link graph?

2023-07-01 Thread Erik Wienhold
> On 01/07/2023 09:10 CEST Wen Yi wrote: > > I use the gdb to track the postgres like this: > > ... > pq_getbyte () at pqcomm.c:980 > 980 in pqcomm.c > (gdb) next > 985 in pqcomm.c > (gdb) next > 986 in pqcomm.c > (gdb) next > SocketBackend (inBuf=0x7ffc8f7e1310) at postgres.c:372 > > 372

Re: [EXT] Re: [Beginner Question] How to print the call link graph?

2023-07-01 Thread Garfield Lewis
> If no one here can, then superuser.com, unix.stackexchange.com or > stackoverflow.com should be able to. (Just don't cross-post...) If I understand the question this is a GDB question, correct? If so, I would simply set a breakpoint in GDB at that function like so: b SocketBackend commands

Re: [Beginner Question] How to print the call link graph?

2023-07-01 Thread Julien Rouhaud
On Sat, Jul 01, 2023 at 03:10:27PM +0800, Wen Yi wrote: > Hi community, > I use the gdb to track the postgres like this: > > ... > > pq_getbyte () at pqcomm.c:980 > 980 in pqcomm.c > (gdb) next > [...] > It's too slow to input 'next' to run the postgres, I used to try to use > the 'continut', but

Re: [Beginner Question] How to print the call link graph?

2023-07-01 Thread Ron
On 7/1/23 02:10, Wen Yi wrote: Hi community, I use the gdb to track the postgres like this: ... pq_getbyte () at pqcomm.c:980 980 in pqcomm.c (gdb)  next 985 in pqcomm.c (gdb)  next 986 in pqcomm.c (gdb)  next SocketBackend (inBuf=0x7ffc8f7e1310) at postgres.c:372 372

[Beginner Question] How to print the call link graph?

2023-07-01 Thread Wen Yi
Hi community, I use the gdb to track the postgres like this: ... pq_getbyte () at pqcomm.c:980 980 in pqcomm.c (gdb) next 985 in pqcomm.c (gdb) next 986 in pqcomm.c (gdb) next SocketBackend (inBuf=0x7ffc8f7e1310) at postgres.c:372 372 postgres.c: Directory not empty. (gdb) next 403 in