Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro_alves@portugalmail.pt>
To: gdb-patches@sourceware.org
Cc: "Pierre Muller" <muller@ics.u-strasbg.fr>
Subject: Re: [RFA] win32-nat.c: Add dll names if debugevents is on
Date: Fri, 13 Jun 2008 15:35:00 -0000	[thread overview]
Message-ID: <200806131532.22427.pedro_alves@portugalmail.pt> (raw)
In-Reply-To: <000001c8cd57$c9cf3d30$5d6db790$@u-strasbg.fr>

Thanks, I've wanted this before too.

A Friday 13 June 2008 14:17:11, Pierre Muller wrote:

> $ cvs diff -up gdb/win32-nat.c
> Index: gdb/win32-nat.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/win32-nat.c,v
> retrieving revision 1.152
> diff -u -p -r1.152 win32-nat.c
> --- gdb/win32-nat.c     20 May 2008 18:36:36 -0000      1.152
> +++ gdb/win32-nat.c     13 Jun 2008 11:27:18 -0000
> @@ -744,6 +744,7 @@ handle_load_dll (void *dummy)
>    if (!dll_name)
>      return 1;
>
> +  DEBUG_EVENTS (("gdb: Loading dll \"%s\".\n",dll_name));
>    solib_end->next = win32_make_so (dll_name, (DWORD) event->lpBaseOfDll);

While you're at it, would it be useful to also include the dll
load base in the output?

>    solib_end = solib_end->next;
>
> @@ -771,6 +772,9 @@ handle_unload_dll (void *dummy)
>         so->next = sodel->next;
>         if (!so->next)
>           solib_end = so;
> +       if (sodel->so_original_name)
> +         DEBUG_EVENTS (("gdb: removing dll \"%s\".\n",

Small nit, wouldn't "gdb: Unloading dll" be clearer (and mirror
the other message) ?  And perhaps output "<unknown name>", if
there's no so_original_name to print?  Can that happen?  I
can't remember off-hand.

-- 
Pedro Alves


  reply	other threads:[~2008-06-13 14:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-13 15:28 Pierre Muller
2008-06-13 15:35 ` Pedro Alves [this message]
2008-06-13 23:07   ` Pierre Muller
2008-06-14  0:16     ` Pedro Alves
2008-06-14  3:20       ` [RFA-v3] " Pierre Muller
2008-06-16  1:26         ` Christopher Faylor
2008-06-16  6:38           ` Pedro Alves
2008-06-17  9:51             ` Christopher Faylor
2008-06-17 18:21               ` Christopher Faylor
2008-06-18  1:43               ` Pierre Muller
2008-06-18  7:33                 ` Christopher Faylor
2008-06-18 13:40                   ` Pierre Muller
2008-06-16 11:43           ` 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=200806131532.22427.pedro_alves@portugalmail.pt \
    --to=pedro_alves@portugalmail.pt \
    --cc=gdb-patches@sourceware.org \
    --cc=muller@ics.u-strasbg.fr \
    /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