public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Pedro Alves'" <pedro@codesourcery.com>, <gdb-patches@sourceware.org>
Subject: RE: [RFC] breakpoint.c:  Fix nasty problem with msvcrt DLL on Windows
Date: Fri, 13 Aug 2010 08:47:00 -0000	[thread overview]
Message-ID: <000301cb3ac4$107d4fc0$3177ef40$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <201008121642.47284.pedro@codesourcery.com>

 If I understood the code correctly,
"longjmp master" breakpoints type are internal breakpoints
that stay always disabled and never get enabled.

  Their function is to list all possible functions
that might do long jumps (i.e. modify the stack directly)
and trigger the creation of a normal "longjmp" breakpoint,
via a call to "set_longjmp_breakpoint" function.
This function is called only once in step_1 function in infcmd.c 
source.

The normal "longjmp" breakpoints are deleted at each stop,
by a call to "delete_longjmp_breakpoint" (2 such calls
exist, one is part of a cleanup in case an error
appears).

  Thus, when calling "maint info breakpoints" command,
only "longjmp master" internal breakpoint types are listed.

  If my analysis is correct, the answer to your two questions
is no.
 
Pierre

> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Pedro Alves
> Envoyé : Thursday, August 12, 2010 5:43 PM
> À : gdb-patches@sourceware.org
> Cc : Pierre Muller
> Objet : Re: [RFC] breakpoint.c: Fix nasty problem with msvcrt DLL on
> Windows
> 
> On Thursday 05 August 2010 12:35:51, Pierre Muller wrote:
> > (gdb) maint inf b
> > Num     Type           Disp Enb Address    What
> > -10     longjmp master keep n   0x61093868 <longjmp> inf 1
> > -11     longjmp master keep n   0x77c06d74  inf 1
> >
> > (gdb) n
> > Warning:
> > Cannot insert breakpoint -11.
> > Error accessing memory address 0x77c06d74: Input/Output error.
> 
> 1. Did we really try to insert a Enb=n breakpoint?
> 2. Did we really try to insert a longjmp master breakpoint?
> 
> If yes to any of those, something else is broken.
> 
> --
> Pedro Alves

  reply	other threads:[~2010-08-13  8:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-05 11:35 Pierre Muller
2010-08-05 12:12 ` Pierre Muller
2010-08-12 15:42 ` Pedro Alves
2010-08-13  8:47   ` Pierre Muller [this message]
2010-08-13 11:15     ` Pedro Alves
2010-08-13 13:50       ` Pierre Muller
2010-09-17 19:56         ` [PING][RFC] " Pierre Muller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000301cb3ac4$107d4fc0$3177ef40$@muller@ics-cnrs.unistra.fr' \
    --to=pierre.muller@ics-cnrs.unistra.fr \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).