This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Entry point update with "run" command
- From: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 05 May 2008 13:14:44 -0300
- Subject: Re: [RFC] Entry point update with "run" command
- References: <1209052694.18229.6.camel@gargoyle.br.ibm.com> <20080502154355.GQ29202@caradoc.them.org>
- Reply-to: luisgpm at linux dot vnet dot ibm dot com
I've checked this in now. Thanks!
On Fri, 2008-05-02 at 11:43 -0400, Daniel Jacobowitz wrote:
> On Thu, Apr 24, 2008 at 12:58:14PM -0300, Luis Machado wrote:
> > The attached patch does this on "reread_symbols", though it seems a
> > brute-force method. Is this OK?
>
> This is OK. Wow, this function is a wreck. Despite the comments it
> really does need to be updated to share code with initial reading of
> the symfile at some point.
>
Luis
2008-05-05 Luis Machado <luisgpm@br.ibm.com>
* symfile.c (reread_symbols): Update objfile's entry point.
Index: HEAD/gdb/symfile.c
===================================================================
--- HEAD.orig/gdb/symfile.c 2008-05-05 05:27:16.000000000 -0700
+++ HEAD/gdb/symfile.c 2008-05-05 05:31:54.000000000 -0700
@@ -2474,6 +2474,7 @@
objfile->mtime = new_modtime;
reread_one = 1;
reread_separate_symbols (objfile);
+ init_entry_point_info (objfile);
}
}
}