projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/
[deliverable/binutils-gdb.git]
/
gdb
/
exec.c
diff --git
a/gdb/exec.c
b/gdb/exec.c
index 383d3010aaefd161ba310cdb2e4e6432a2bf615a..58fb55e2bf7ae1546f0051e64d892fb8370008d3 100644
(file)
--- a/
gdb/exec.c
+++ b/
gdb/exec.c
@@
-1,8
+1,6
@@
/* Work with executable files, for GDB.
/* Work with executable files, for GDB.
- Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
- 1998, 1999, 2000, 2001, 2002, 2003, 2007, 2008, 2009, 2010, 2011
- Free Software Foundation, Inc.
+ Copyright (C) 1988-2003, 2007-2012 Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-25,6
+23,7
@@
#include "target.h"
#include "gdbcmd.h"
#include "language.h"
#include "target.h"
#include "gdbcmd.h"
#include "language.h"
+#include "filenames.h"
#include "symfile.h"
#include "objfiles.h"
#include "completer.h"
#include "symfile.h"
#include "objfiles.h"
#include "completer.h"
@@
-668,7
+667,7
@@
section_table_xfer_memory_partial (gdb_byte *readbuf, const gdb_byte *writebuf,
return 0; /* We can't help. */
}
return 0; /* We can't help. */
}
-struct target_section_table *
+st
atic st
ruct target_section_table *
exec_get_section_table (struct target_ops *ops)
{
return current_target_sections;
exec_get_section_table (struct target_ops *ops)
{
return current_target_sections;
@@
-762,7
+761,10
@@
print_section_info (struct target_section_table *t, bfd *abfd)
static void
exec_files_info (struct target_ops *t)
{
static void
exec_files_info (struct target_ops *t)
{
- print_section_info (current_target_sections, exec_bfd);
+ if (exec_bfd)
+ print_section_info (current_target_sections, exec_bfd);
+ else
+ puts_filtered (_("\t<no file loaded>\n"));
if (vmap)
{
if (vmap)
{
@@
-814,9
+816,9
@@
set_section_command (char *args, int from_tty)
table = current_target_sections;
for (p = table->sections; p < table->sections_end; p++)
{
table = current_target_sections;
for (p = table->sections; p < table->sections_end; p++)
{
- if (!strncmp (secname, bfd_section_name (
exec_
bfd,
+ if (!strncmp (secname, bfd_section_name (
p->
bfd,
p->the_bfd_section), seclen)
p->the_bfd_section), seclen)
- && bfd_section_name (
exec_
bfd, p->the_bfd_section)[seclen] == '\0')
+ && bfd_section_name (
p->
bfd, p->the_bfd_section)[seclen] == '\0')
{
offset = secaddr - p->addr;
p->addr += offset;
{
offset = secaddr - p->addr;
p->addr += offset;
@@
-845,7
+847,7
@@
exec_set_section_address (const char *filename, int index, CORE_ADDR address)
table = current_target_sections;
for (p = table->sections; p < table->sections_end; p++)
{
table = current_target_sections;
for (p = table->sections; p < table->sections_end; p++)
{
- if (
str
cmp (filename, p->bfd->filename) == 0
+ if (
filename_
cmp (filename, p->bfd->filename) == 0
&& index == p->the_bfd_section->index)
{
p->endaddr += address - p->addr;
&& index == p->the_bfd_section->index)
{
p->endaddr += address - p->addr;
This page took
0.027435 seconds
and
4
git commands to generate.