Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143883051
D27499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27499.diff
View Options
Index: head/devel/gdb/files/kgdb/fbsd-kvm.c
===================================================================
--- head/devel/gdb/files/kgdb/fbsd-kvm.c
+++ head/devel/gdb/files/kgdb/fbsd-kvm.c
@@ -22,11 +22,10 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * $FreeBSD$
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include "defs.h"
#include "command.h"
#include "elf-bfd.h"
@@ -339,18 +338,10 @@
if (symfile_objfile &&
(bfd_get_file_flags(symfile_objfile->obfd) &
(EXEC_P | DYNAMIC)) != 0) {
- struct section_offsets *new_offsets;
- int i;
- CORE_ADDR displacement;
-
- displacement = kvm_kerndisp(nkvm);
+ CORE_ADDR displacement = kvm_kerndisp(nkvm);
if (displacement != 0) {
- new_offsets = XALLOCAVEC (struct section_offsets,
- symfile_objfile->num_sections);
-
- for (i = 0; i < symfile_objfile->num_sections; i++)
- new_offsets->offsets[i] = displacement;
-
+ section_offsets new_offsets (symfile_objfile->section_offsets.size (),
+ displacement);
objfile_relocate(symfile_objfile, new_offsets);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 2, 11:46 AM (18 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28412935
Default Alt Text
D27499.diff (1 KB)
Attached To
Mode
D27499: Update kernel relocation code in kgdb for GDB 10.
Attached
Detach File
Event Timeline
Log In to Comment