This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed/darwin]: Set sym_segments


Hi,

there was no routine for sym_segments in machoread.c, which is not expected by gdb and may result in
crashes.  This tiny patch fixes that.

Tristan.

2009-12-03  Tristan Gingold  <gingold@adacore.com>

	* machoread.c (macho_sym_fns): Set sym_segment routine.

diff -c -r1.8 machoread.c
*** machoread.c	2 Dec 2009 11:44:35 -0000	1.8
--- machoread.c	3 Dec 2009 14:19:22 -0000
***************
*** 738,743 ****
--- 738,745 ----
    macho_symfile_read,           /* sym_read: read a symbol file into symtab */
    macho_symfile_finish,         /* sym_finish: finished with file, cleanup */
    macho_symfile_offsets,        /* sym_offsets:  xlate external to internal form */
+   default_symfile_segments,	/* sym_segments: Get segment information from
+ 				   a file.  */
    NULL                          /* next: pointer to next struct sym_fns */
  };
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]