logo       

Re: gdb/2237: "set" command refuses to set a register: msg#00009

Subject: Re: gdb/2237: "set" command refuses to set a register
The following reply was made to PR gdb/2237; it has been noted by GNATS.

From: Stephen Ma <stephenma@xxxxxxxxx>
To: gdb-gnats@xxxxxxxxxxxxxxxxxx
Cc:  
Subject: Re: gdb/2237: "set" command refuses to set a register
Date: Thu, 8 Mar 2007 10:16:04 -0800

 On Wed, Mar 07, 2007 at 07:32:24AM -0500, Daniel Jacobowitz wrote:
 > On Tue, Mar 06, 2007 at 03:14:27PM -0800, Stephen Ma wrote:
 > > But before I dive into it, allow me to mention a possible crude fix:
 > > forget about stack frames when the current language is assembler,
 > > since the assembler programmer is unlikely to stick to any kind of
 > > standard frame format anyway.
 > 
 > The problem isn't unique to assembler - and assembly programmers are
 > actually very likely to use a recognizable stack layout in our experience.
 
 Not in a program written purely in assembler, in my long experience.
 In particular, ad hoc register-based -- not stack-based -- calling
 sequences are the norm in such programs, as are random pushes and
 pops, thus seriously confusing a stack decoder. 
 
 Sometimes gdb is too smart for its own good.  If the problem isn't
 unique to assembler, how about this:
 
        set dumb_gdb on
 
 This would disable the fancy stack walking.  Let me decipher the stack
 by myself and give me gdb, the dumb-but-reliable debugger!  :)



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe