Re: [RFC] Entry point update with "run" command

Luis Machado
2008-05-05T16:15:31Z

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

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

[-- Attachment #2: entry_point.diff --]
[-- Type: text/x-patch, Size: 521 bytes --]

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);
}
}
}