From: Michael Snyder <msnyder@cygnus.com>
To: jtc@redback.com
Cc: gdb-patches@sources.redhat.com, cagney@redhat.com,
kevinb@redhat.com, hunt@redhat.com
Subject: Re: [RFA] Link remote target with svr4 solibs.
Date: Tue, 17 Apr 2001 13:29:00 -0000 [thread overview]
Message-ID: <3ADCA7AD.F6F2ED59@cygnus.com> (raw)
In-Reply-To: <5mu24xfpf9.fsf@jtc.redback.com>
"J.T. Conklin" wrote:
>
> >>>>> "Andrew" == Andrew Cagney <ac131313@cygnus.com> writes:
> Andrew> Assuming ok with J.T. as well, can you add it to those functions along
> Andrew> with a FIXME. Plenty of other examples can already be found.
>
> I was going to mention this yesterday as well. I don't want to be
> unreasonable and make you fix the problems with the _open vector, but
> I do want the code marked so once that is fixed it can be migrated to
> the proper place. So as long as you add a FIXME, the change is OK by
> me.
>
> --jtc
After a long delay, I'm finally checking in this change. I'll append the
change again here to save anyone interested from rooting thru the archive.
2001-04-17 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_open_1): On opening the remote target, activate
the solib_create_inferior_hook, so that it can detect when the
target loads shared libraries.
(remote_async_open_1): Ditto.
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.44
diff -c -3 -p -r1.44 remote.c
*** remote.c 2001/04/03 01:42:17 1.44
--- remote.c 2001/04/17 20:28:51
***************
*** 50,55 ****
--- 50,57 ----
#include <signal.h>
#include "serial.h"
+ #include "gdbcore.h" /* for exec_bfd */
+
/* Prototypes for local functions */
static void cleanup_sigint_signal_handler (void *dummy);
static void initialize_sigint_signal_handler (void);
*************** serial device is attached to the remote
*** 2148,2158 ****
if (extended_p)
{
! /* tell the remote that we're using the extended protocol. */
char *buf = alloca (PBUFSIZ);
putpkt ("!");
getpkt (buf, PBUFSIZ, 0);
}
}
/* Just like remote_open but with asynchronous support. */
--- 2150,2169 ----
if (extended_p)
{
! /* Tell the remote that we are using the extended protocol. */
char *buf = alloca (PBUFSIZ);
putpkt ("!");
getpkt (buf, PBUFSIZ, 0);
}
+ /* FIXME: need a master target_open vector from which all
+ remote_opens can be called, so that stuff like this can
+ go there. Failing that, the following code must be copied
+ to the open function for any remote target that wants to
+ support svr4 shared libraries. */
+ #ifdef SOLIB_CREATE_INFERIOR_HOOK
+ if (exec_bfd) /* No use without an exec file. */
+ SOLIB_CREATE_INFERIOR_HOOK (inferior_pid);
+ #endif
}
/* Just like remote_open but with asynchronous support. */
*************** serial device is attached to the remote
*** 2242,2252 ****
if (extended_p)
{
! /* tell the remote that we're using the extended protocol. */
char *buf = alloca (PBUFSIZ);
putpkt ("!");
getpkt (buf, PBUFSIZ, 0);
}
}
/* This takes a program previously attached to and detaches it. After
--- 2253,2272 ----
if (extended_p)
{
! /* Tell the remote that we are using the extended protocol. */
char *buf = alloca (PBUFSIZ);
putpkt ("!");
getpkt (buf, PBUFSIZ, 0);
}
+ /* FIXME: need a master target_open vector from which all
+ remote_opens can be called, so that stuff like this can
+ go there. Failing that, the following code must be copied
+ to the open function for any remote target that wants to
+ support svr4 shared libraries. */
+ #ifdef SOLIB_CREATE_INFERIOR_HOOK
+ if (exec_bfd) /* No use without an exec file. */
+ SOLIB_CREATE_INFERIOR_HOOK (inferior_pid);
+ #endif
}
/* This takes a program previously attached to and detaches it. After
From msnyder@cygnus.com Tue Apr 17 13:30:00 2001
From: Michael Snyder <msnyder@cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA] info breakpoints: handle 64-bit addresses
Date: Tue, 17 Apr 2001 13:30:00 -0000
Message-id: <3ADCA523.D140103D@cygnus.com>
References: <3AB0235F.FB3710FD@cygnus.com>
X-SW-Source: 2001-04/msg00176.html
Content-length: 4013
Michael Snyder wrote:
>
> I know I'm the maintainer, but I'm gonna ask for approval anyway,
> to make sure I haven't violated either portability or aesthetic standards.
Committed (with the change suggested by Ed Satterthwaite).
>
> ----------------------------------------------------------------------------------------------------
> 2001-03-14 Michael Snyder <msnyder@redhat.com>
>
> * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
>
> Index: breakpoint.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/breakpoint.c,v
> retrieving revision 1.27
> diff -c -3 -p -r1.27 breakpoint.c
> *** breakpoint.c 2001/03/06 08:21:05 1.27
> --- breakpoint.c 2001/03/15 02:15:37
> *************** print_one_breakpoint (struct breakpoint
> *** 3156,3162 ****
> /* 5 and 6 */
> strcpy (wrap_indent, " ");
> if (addressprint)
> ! strcat (wrap_indent, " ");
> switch (b->type)
> {
> case bp_none:
> --- 3156,3167 ----
> /* 5 and 6 */
> strcpy (wrap_indent, " ");
> if (addressprint)
> ! {
> ! if (TARGET_ADDR_BIT <= 32)
> ! strcat (wrap_indent, " ");
> ! else
> ! strcat (wrap_indent, " ");
> ! }
> switch (b->type)
> {
> case bp_none:
> *************** print_one_breakpoint (struct breakpoint
> *** 3330,3341 ****
> #else
> if (addressprint)
> {
> annotate_field (4);
> ! /* FIXME-32x64: need a print_address_numeric with
> ! field width */
> ! printf_filtered ("%s ",
> ! local_hex_string_custom
> ! ((unsigned long) b->address, "08l"));
> }
> annotate_field (5);
> *last_addr = b->address;
> --- 3335,3350 ----
> #else
> if (addressprint)
> {
> + char *tmp;
> +
> annotate_field (4);
> !
> ! if (TARGET_ADDR_BIT <= 32)
> ! tmp = longest_local_hex_string_custom (b->address, "08l");
> ! else
> ! tmp = longest_local_hex_string_custom (b->address, "016l");
> !
> ! printf_filtered ("%s ", tmp);
> }
> annotate_field (5);
> *last_addr = b->address;
> *************** breakpoint_1 (int bnum, int allflag)
> *** 3570,3576 ****
> if (addressprint)
> {
> annotate_field (4);
> ! ui_out_table_header (uiout, 10, ui_left, "Address"); /* 5 */
> }
> annotate_field (5);
> ui_out_table_header (uiout, 40, ui_noalign, "What"); /* 6 */
> --- 3579,3588 ----
> if (addressprint)
> {
> annotate_field (4);
> ! if (TARGET_ADDR_BIT <= 32)
> ! ui_out_table_header (uiout, 10, ui_left, "Address"); /* 5 */
> ! else
> ! ui_out_table_header (uiout, 18, ui_left, "Address"); /* 5 */
> }
> annotate_field (5);
> ui_out_table_header (uiout, 40, ui_noalign, "What"); /* 6 */
> *************** breakpoint_1 (int bnum, int allflag)
> *** 3587,3593 ****
> if (addressprint)
> {
> annotate_field (4);
> ! printf_filtered ("Address ");
> }
> annotate_field (5);
> printf_filtered ("What\n");
> --- 3599,3608 ----
> if (addressprint)
> {
> annotate_field (4);
> ! if (TARGET_ADDR_BIT <= 32)
> ! printf_filtered ("Address ");
> ! else
> ! printf_filtered ("Address ");
> }
> annotate_field (5);
> printf_filtered ("What\n");
prev parent reply other threads:[~2001-04-17 13:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-12 16:13 Michael Snyder
[not found] ` <5m1ys2cxxt.fsf@jtc.redback.com>
2001-03-12 16:38 ` Andrew Cagney
2001-03-12 16:44 ` J.T. Conklin
[not found] ` <3AAD6D7D.77A18268@cygnus.com>
2001-03-13 8:52 ` Andrew Cagney
2001-03-13 10:31 ` Michael Snyder
2001-03-13 11:19 ` J.T. Conklin
2001-03-13 16:02 ` Michael Snyder
2001-04-17 13:29 ` Michael Snyder [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=3ADCA7AD.F6F2ED59@cygnus.com \
--to=msnyder@cygnus.com \
--cc=cagney@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=hunt@redhat.com \
--cc=jtc@redback.com \
--cc=kevinb@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