From: Simon Marchi <simark@simark.ca>
To: Jameson Nash <vtjnash@gmail.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb: define COFF file offsets with file_ptr
Date: Thu, 26 Nov 2020 10:30:25 -0500 [thread overview]
Message-ID: <3ae1bf3c-4804-0acf-c7e3-58c26f03f161@simark.ca> (raw)
In-Reply-To: <CADnnjUV0ZRQqKu_m4w2XfaW4+Fnq1FBhUWo0nygQ7SaUsW5zZg@mail.gmail.com>
On 2020-11-25 2:14 p.m., Jameson Nash via Gdb-patches wrote:
> The arguments to these functions are file_ptr, so these declarations
> were accidentally implicitly down-casting them to signed int. This
> allows for reading files between 2 and 4 GB in size in my testing (I
> don't have a larger dll currently to test). These may not be natively
> supported by Windows, but can appear when using split-dwarf information.
>
> This solves a "can't get string table" error resulting from attempting to
> pass a negative offset to bfd_seek. I encountered this occuring while
> trying to use a debug file for libLLVM.dll, but searching online reveals at
> least one other person may have run into a similar problem with Firefox?
> https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/CA+cU71k2bU0azQxjy4-77ynQj1O+TKmgtaTKe59n7Bjub1y7Tg@mail.gmail.com/
> With this patch, the debug file appears to load successfully and I can see
> debug information in gdb for the library.
Hi Jameson,
Thanks for the patch, I think that makes sense.
I am however unable to apply the patch, probably because you sent it
using an email client that wrapped lines or something. Can you please
send it again but using git-send-email this time?
https://sourceware.org/gdb/wiki/ContributionChecklist#Submitting_patches
> gdb/ChangeLog:
> *gdb/coffread.c: define COFF file offsets with file_ptr to support
> files over 2GB
For the ChangeLog entry:
- Remove the "gdb/" portion of the file name
- Start with a capital letter
- End with a period.
- Wrap at 74 columns
Simon
next prev parent reply other threads:[~2020-11-26 15:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-25 19:14 Jameson Nash
2020-11-26 15:30 ` Simon Marchi [this message]
2020-11-26 18:11 Jameson Nash
2020-11-26 18:51 ` Simon Marchi
2020-11-26 21:49 ` Simon Marchi
2020-11-27 20:49 ` Jameson Nash
2020-11-27 20:55 ` Simon Marchi
2020-12-18 19:12 ` Simon Marchi
2020-11-27 2:46 Jameson Nash
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=3ae1bf3c-4804-0acf-c7e3-58c26f03f161@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--cc=vtjnash@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).