postgres附加过程 [英] postgres attaching a process

查看:217
本文介绍了postgres附加过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将连接查询等SQL查询附加到eclipse中的现有gdb进程?每当我尝试使用eclipse中的调试配置(这是一个共享库)来分配给定的进程时,我收到以下错误:

How do we attach a sql query such as join query to an existing gdb process in eclipse? Whenever I try to fork the given process using debug configurations in eclipse, which is a shared library , I am getting the following error:

无源可用于 __kernel_vsyscall()at 0xb729c424

此外,每当我在eclipse中的特定程序中设置断点时,控件将进入main.c,最后进程永远不会

Also, whenever I set break points in a specific program in eclipse, control goes to main.c and finally the process never comes back to the actual program.

有没有办法只将过程限制在我的具体程序中?

Is there any way that the process be constrained only to my specific program?

推荐答案


我们如何在eclipse中附加一个sql查询(如连接查询)到现有的gdb进程

how do we attach a sql query such as join query to an existing gdb process in eclipse

Um,什么?

您是否尝试调试PostgreSQL服务器后端?如果是这样,请参阅 PostgreSQL维基页面,其中提供了有关该主题的详细信息。 / p>

Are you attempting to debug a PostgreSQL server backend? If so, see the PostgreSQL wiki page that provides lots of details on the topic.


每当我尝试使用eclipse中的调试配置分配给定进程时,这是一个共享库

Whenever I try to fork the given process using debug configurations in eclipse, which is a shared library

什么是共享库? Eclipse不是。 PostgreSQL不是。那么这里有什么共享库?

What is a shared library? Eclipse isn't. PostgreSQL isn't. So what's the shared library here?

您是否尝试调试PostgreSQL扩展?

Are you trying to debug a PostgreSQL extension? If so, see the above link for details on attaching to a PostgreSQL server backend.


没有可用的__kernel_vsyscall()在0xb729c424的源代码,

No source available for "__kernel_vsyscall() at 0xb729c424"

这是正常现象。这只是告诉你,在 __ kernel_vsyscall 调用中没有记录的源代码,这是 linux-gate.so 通过 glibc 使用 sysenter

That's normal. It's just telling you that there's no source code on record for the __kernel_vsyscall call that's the entrypoint into syscalls in linux-gate.so via glibc when using sysenter.

堆栈下面应该更多的信息。请查看:

The stack below it should be more informative. Get a backtrace, then look at the lower stack frames.

请参阅:

  • What is __kernel_vsyscall?
  • Having trouble finding the method __kernel_vsyscall within the Linux kernel
  • http://www.trilithium.com/johan/2005/08/linux-gate/

您的也是一个单独的问题,很难在完全缺乏提供的信息的情况下有效地回答这个问题。尝试发布一个新的,更详细的问题就这个话题。指定如何编译程序,设置调试,运行方式,尝试设置断点等。

Your "also" is really a separate question, and it's pretty hard to answer it usefully with the total lack of information provided. Try posting a new, more detailed question on just that topic. Specify how you compiled the program, set it up for debugging, how you're running it, where you're trying to set breakpoints, etc.

这篇关于postgres附加过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆