NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/49979: gdb does not work properly on NetBSD-6.1.1/i386



The following reply was made to PR bin/49979; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/49979: gdb does not work properly on NetBSD-6.1.1/i386
Date: Wed, 17 Jun 2015 06:38:01 +0000

 On Tue, Jun 16, 2015 at 12:00:01PM +0000, darrenr%netbsd.org@localhost wrote:
  > >Synopsis:       gdb does not work properly on NetBSD-6.1.1/i386
                                                                ^^^^
  > Architecture: x86_64
  > Machine: amd64
             ^^^^^^^^^^^
 
 to confirm, you do mean 32-bit i386 and the amd64 is just because you
 filed the PR from another machine?
 
  > Whilst using gdb to step through a problem and debug an application,
  > it randomly stops working. e.g.:
  > (gdb) run -O -d -r test.cap ip
  > Starting program: /home/darrenr/tcpdump-4.7.4/tcpdump -O -d -r test.cap ip
  > reading from file test.cap, link-type EN10MB (Ethernet)
  > 
  > Breakpoint 1, flatten_bpfprog (start=0xbfbfebe4) at ./optimize.c:2276
  > 2276            flen = start->bf_len;
  > (gdb) n
  > 2277            for (slen = 0, fp = start->bf_insns; flen > 0; flen--, fp++)
  > (gdb)
  > 2278                    slen += BPFX_WORDS(fp->code);
  > (gdb)
  > 0x081d17f3 in ?? ()
  > netbsd: {790} file tcpdump
  > tcpdump: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for NetBSD 6.1.1, not stripped
  > >How-To-Repeat:
  > Use gdb to debug program.
 
 I take it it's not repeatable in the ordinary sense? How often does it
 happen? Are the symptoms more or less the same each time? Is it
 correlated with anything that you've observed?
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index