public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "jrmuizel at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug tdep/27789] backtraces through unknown functions on m68k are broken
Date: Thu, 29 Apr 2021 17:53:53 +0000	[thread overview]
Message-ID: <bug-27789-4717-uxubXfYKeA@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27789-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=27789

--- Comment #3 from Jeff Muizelaar <jrmuizel at gmail dot com> ---
The core file was created by running the following code on m68k.

int h(int x) {
                *((char*)0) = 7;
                        return 7+x;
}
int g() {
                return h(4);
}
int f() {
                return g() + g();
}

int main() {
                return f();
}

The code was compiled with gcc 10.2 and then stripped.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-04-29 17:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29  2:19 [Bug tdep/27789] New: " jrmuizel at gmail dot com
2021-04-29 14:11 ` [Bug tdep/27789] " simark at simark dot ca
2021-04-29 17:51 ` jrmuizel at gmail dot com
2021-04-29 17:53 ` jrmuizel at gmail dot com [this message]
2021-04-29 18:35 ` simark at simark dot ca
2021-04-29 18:36 ` simark at simark dot ca
2021-04-29 23:19 ` jrmuizel at gmail dot com
2021-04-29 23:20 ` jrmuizel at gmail dot com
2021-04-30  0:30 ` simark at simark dot ca

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=bug-27789-4717-uxubXfYKeA@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.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).