www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/08/13:12:54

Date: Tue, 8 Jul 1997 10:11:55 -0700 (PDT)
Message-Id: <199707081711.KAA26912@adit.ap.net>
Mime-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Data breakpoints in GDB
Cc: djgpp AT delorie DOT com

At 06:53  7/7/1997 +0300, you wrote:
>On Mon, 7 Jul 1997, Nate Eldredge wrote:
>> Does GDB have data breakpoints? If so, how does one use them?
>I think you mean the `watch' command.
You're right. I found it. Thanks.

Nate Eldredge
eldredge AT ap DOT net



 loop that
>> uses mov to copy a few dwords at a time then loops back (supposed to be
>> faster then rep ? on a 486+).
>
>Depends on the function and the paramteters.  Sometimes they are
>function calls (the code in libc is well optimised) and athers, they are
>inlined and the implementation is dependent on the size of the transfer.

That bothers me slightly. It seems that certain functions such as strcpy,
memset, etc, are magically known about by the compiler (it refers to them as
builtin functions). This means I can't put a strcpy of my own in the program
unless it goes in the same source file; otherwise GCC will inline its own.

I realize rewriting strcpy would be very non-ANSI and otherwise bad, but it
seems almost like the compiler is taking liberties with the code.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019