From: Yao Qi <yao@codesourcery.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Fix gdb.dwarf2/dwz.exp for thumb mode
Date: Sun, 14 Sep 2014 14:37:00 -0000 [thread overview]
Message-ID: <87bnqil1bb.fsf@codesourcery.com> (raw)
In-Reply-To: <87siju7816.fsf@igel.home> (Andreas Schwab's message of "Sun, 14 Sep 2014 13:31:33 +0200")
Andreas Schwab <schwab@linux-m68k.org> writes:
>> -if { $main_length == "" } {
>> +set main_label_offset ""
>> +set test "p main_label"
>> +gdb_test_multiple $test $test {
>> + -re ".* = {.*} $hex <main\\+($decimal)>.*\r\n$gdb_prompt $" {
>> + set main_label_offset $expect_out(1,string)
>> + }
>> +}
>
> This will also fail to match if assembler labels are prefixed.
If you meant 'main' could be prefixed to '_main' for example, then GDB
can get rid of the prefix on display. On mingw target, function 'foo'
is prefixed to '_foo', but GDB still shows 'foo' rather than '_foo'.
$ i686-w64-mingw32-objdump -t 2.exe | grep foo
[ 64](sec 1)(fl 0x00)(ty 20)(scl 3) (nx 1) 0x00000560 _foo
Dump of assembler code from 0x401560 to 0x401565:
0x00401560 <foo+0>: push %ebp
0x00401561 <foo+1>: mov %esp,%ebp
--
Yao (齐尧)
next prev parent reply other threads:[~2014-09-14 14:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-14 11:31 Andreas Schwab
2014-09-14 14:37 ` Yao Qi [this message]
2014-09-14 15:24 ` Andreas Schwab
2014-09-15 2:09 ` Yao Qi
2014-09-15 8:57 ` Andreas Schwab
-- strict thread matches above, loose matches on Subject: below --
2014-09-03 1:23 Yao Qi
2014-09-03 17:51 ` Doug Evans
2014-09-05 11:08 ` Yao Qi
2014-09-14 9:35 ` Yao Qi
2014-09-15 12:29 ` Yao Qi
2014-09-22 13:52 ` Yao Qi
2014-09-30 14:04 ` Yao Qi
2014-10-07 14:03 ` Yao Qi
2014-10-08 15:21 ` Doug Evans
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=87bnqil1bb.fsf@codesourcery.com \
--to=yao@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=schwab@linux-m68k.org \
/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).