Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] remote: Avoid unwanted shlib internal BPs When debugging Linux kernel or u-boot with Abatron BDI emulator an error occurs:
Date: Fri, 01 Jun 2012 15:01:00 -0000	[thread overview]
Message-ID: <OFC2980EE9.51F3238A-ONC1257A10.005283F1-C1257A10.00528A81@transmode.se> (raw)
In-Reply-To: <4FC8D7F4.9000102@redhat.com>



Pedro Alves <palves@redhat.com> wrote on 2012/06/01 16:55:48:

> From: Pedro Alves <palves@redhat.com>
> To: Joakim Tjernlund <joakim.tjernlund@transmode.se>,
> Cc: gdb-patches@sourceware.org
> Date: 2012/06/01 16:56
> Subject: Re: [PATCH] remote: Avoid unwanted shlib internal BPs When debugging Linux kernel or u-boot with Abatron BDI emulator an error occurs:
>
> On 06/01/2012 03:53 PM, Joakim Tjernlund wrote:
>
> > Pedro Alves <palves@redhat.com> wrote on 2012/06/01 16:40:38:
> >>
> >> On 06/01/2012 03:38 PM, Joakim Tjernlund wrote:
> >>
> >>>> GDB has no special knowledge of the Linux kernel, nor of u-boot.
> >>>>> A GNU/Linux targeted GDB (*-*-linux-gnu) recognizes, and knows how to
> >>>>> debug user space applications.  If the kernel binary or the u-boot binary
> >>>>> look very much like GNU/Linux user space programs, the *-*-linux-gnu targeted
> >>>>> GDB will assume that's what they are.  If you used a bare metal elf/eabi
> >>>>> targeted GDB, which is really what those programs are, you'd not see this.
> >>>
> >>
> >>>
> >>> Yes you would, the error comes from this in solibsvr4.c:
> >>
> >>> static const char * const bkpt_names[] =
> >>> {
> >>>   "_start",
> >>>   "__start",
> >>>   "main",
> >>>   NULL
> >>> };
> >>
> >>
> >> No you wouldn't, because solib-svr4 is not used (or even compiled in)
> >> on a bare metal targeted GDB.
> >
> > One suggesting I got is to wrap this last test with
> > if (interp_name) /* Check if there is a ld.so at all */
> >     if (!current_inferior ()->attach_flag)
> >      ...
> >     }
> >
> > What do you think about that?
>
>
> That makes sense.

Done, see new patch on list


      reply	other threads:[~2012-06-01 15:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-01 13:37 Joakim Tjernlund
2012-06-01 14:08 ` Pedro Alves
2012-06-01 14:39   ` Joakim Tjernlund
2012-06-01 14:40     ` Pedro Alves
2012-06-01 14:48       ` Joakim Tjernlund
     [not found]       ` <OF322378AB.B2F2176F-ONC1257A10.0051062C-C1257A10.00514CCD@LocalDomain>
2012-06-01 14:49         ` Joakim Tjernlund
2012-06-01 14:53       ` Joakim Tjernlund
2012-06-01 14:56         ` Pedro Alves
2012-06-01 15:01           ` Joakim Tjernlund [this message]

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=OFC2980EE9.51F3238A-ONC1257A10.005283F1-C1257A10.00528A81@transmode.se \
    --to=joakim.tjernlund@transmode.se \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.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