From: Jim Blandy <jimb@redhat.com>
To: Jeff Johnston <jjohnstn@redhat.com>
Cc: Daniel Jacobowitz <drow@false.org>, gdb-patches@sources.redhat.com
Subject: Re: [RFA]: Java Inferior Call Take 3
Date: Fri, 10 Sep 2004 20:12:00 -0000 [thread overview]
Message-ID: <vt24qm5opc9.fsf@zenia.home> (raw)
In-Reply-To: <4140EA35.9080009@redhat.com>
Jeff Johnston <jjohnstn@redhat.com> writes:
> Ok. How about the following revised patch which modifies
> typename_concat as suggested above plus incorporates your other
> comments?
Great --- thanks for revising this.
> @@ -1599,7 +1601,11 @@ partial_die_full_name (struct partial_di
> if (parent_scope == NULL)
> return NULL;
> else
> - return concat (parent_scope, "::", pdi->name, NULL);
> + {
> + if (cu->language == language_java)
> + return concat (parent_scope, ".", pdi->name, NULL);
> + return concat (parent_scope, "::", pdi->name, NULL);
> + }
> }
>
> static void
Any reason we're not using typename_concat here, too?
> @@ -3877,7 +3891,10 @@ read_namespace (struct die_info *die, st
> char *temp_name = alloca (strlen (previous_prefix)
> + 2 + strlen(name) + 1);
> strcpy (temp_name, previous_prefix);
> - strcat (temp_name, "::");
> + if (cu->language == language_java)
> + strcat (temp_name, ".");
> + else
> + strcat (temp_name, "::");
> strcat (temp_name, name);
>
> processing_current_prefix = temp_name;
Here, too. I guess you'll need to add a cleanup to free it, since
typename_concat can't use alloca.
next prev parent reply other threads:[~2004-09-10 20:12 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-17 20:53 [RFA]: Java Inferior Call Take 2 Jeff Johnston
2004-06-11 17:49 ` Jeff Johnston
2004-06-17 3:06 ` Daniel Jacobowitz
2004-06-17 20:52 ` Jeff Johnston
2004-06-19 23:59 ` Daniel Jacobowitz
2004-06-21 10:49 ` Andrew Haley
2004-06-21 15:17 ` Andrew Haley
2004-06-23 11:06 ` Andrew Haley
2004-06-23 13:47 ` Daniel Jacobowitz
2004-06-23 16:06 ` Andrew Haley
2004-06-23 16:08 ` Daniel Jacobowitz
2004-06-23 21:55 ` Jeff Johnston
2004-06-23 23:01 ` Daniel Jacobowitz
2004-06-24 17:57 ` Tom Tromey
2004-07-06 21:47 ` Jeff Johnston
2004-07-26 19:49 ` Jeff Johnston
2004-07-26 19:51 ` Daniel Jacobowitz
2004-08-02 10:17 ` Andrew Haley
2004-08-02 15:17 ` Andrew Haley
2004-08-02 20:20 ` Daniel Jacobowitz
2004-08-03 18:45 ` Andrew Haley
2004-08-16 13:08 ` Andrew Haley
2004-08-16 13:18 ` Daniel Jacobowitz
2004-08-16 20:32 ` Daniel Jacobowitz
2004-08-16 20:35 ` Daniel Jacobowitz
2004-08-24 18:53 ` [RFA]: Java Inferior Call Take 3 Jeff Johnston
2004-08-24 19:05 ` Michael Chastain
2004-08-24 19:28 ` Jeff Johnston
2004-08-24 19:10 ` Michael Chastain
2004-08-24 19:48 ` Andrew Cagney
2004-09-01 4:51 ` Jim Blandy
2004-09-09 23:41 ` Jeff Johnston
2004-09-10 20:12 ` Jim Blandy [this message]
2004-09-15 22:58 ` Jeff Johnston
2004-09-20 18:23 ` Jim Blandy
2004-09-20 20:19 ` Jeff Johnston
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=vt24qm5opc9.fsf@zenia.home \
--to=jimb@redhat.com \
--cc=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=jjohnstn@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