From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: Date: 20 Nov 1997 18:27:27 +0200 From: Harvey J. Stein Subject: Re: Strange gdb behavior - Hit heuristic-fence-post!!?! I'm getting a strange warning from gdb when trying to get a backtrace: (gdb) c Continuing. Breakpoint 5, read_collat_loan () at cmo_new_file_routines.c:2617 $18 = 0 (gdb) bt #0 read_collat_loan () at cmo_new_file_routines.c:2617 warning: Hit heuristic-fence-post without finding warning: enclosing function for address 0xffffffffffffffa5 According to the GDB Info pages: MIPS based computers use an unusual stack frame, which sometimes requires GDB to search backward in the object code to find the beginning of a function. To improve response time (especially for embedded applications, where GDB may be restricted to a slow serial line for this search) you may want to limit the size of this search, using one of these commands: `set heuristic-fence-post LIMIT' Restrict GDB to examining at most LIMIT bytes in its search for the beginning of a function. A value of 0 (the default) means there is no limit. However, except for 0, the larger the limit the more bytes `heuristic-fence-post' must search and therefore the longer it takes to run. `show heuristic-fence-post' Display the current limit. These commands are available *only* when GDB is configured for debugging programs on MIPS processors. Isn't this a strange thing to have happen under Linux/axp? Any ideas about what's going on? Could it be related to very large stack frames (which I do sometimes have floating around...)? Thanks, -- Dr. Harvey J. Stein Berger Financial Research hjstein@bfr.co.il -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com