gdb에서 process attach 후 디버깅이 되지 않습니다.

김경태의 이미지

1. debugging 화면

(gdb) attach 1840
Attaching to program: /home/lsfadm/client/cli, process 1840
warning: reading `r3' register: 데이터가 없습니다.
0xc020da10 in ()
(gdb) where
#0 0xc020da10 in ()
warning: Attempting to unwind past bad PC 0xc020da10
#1 0xc0219a7c in ()
#2 0xc0219a7c in ()

2. Process 정보 화면

lsfadm 19525 1840 0 17:35:03 pts/tm 0:00 cli 127.0.0.1

3. H/W, OS 정보 화면
HP gdb 5.2 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00
and target hppa1.1-hp-hpux11.00.

4. gdb 버전 정보 화면

HP gdb 5.2 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00
and target hppa1.1-hp-hpux11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.2 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.

위와 같은 환경에서 r3 register 데이타가 없다고 하더니 디버깅 정보를 전혀 알수가 없습니다.

물론 process는 존재하고 물론 -g 옵션을 썼고 같은 디렉토리에 실행파일이 있습니다.

이상한 것은 어떤 process는 debugging 정보를 볼수 있고 어떤 process는 볼수 없습니다.

왜 이런 일이 벌어졌을까요? 뭐가 문제일까요?

아시는 분은 리플 달아주시면 고맙겠습니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.