This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


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

Re: What to do when no debug info?


Perhaps a warning would be more appropriate.  It seems to me this dialog was 
inserted because someone was upset that GDB wasn't detecting that he was 
trying to run a source debugger on an executable that couldn't be debugged.

On Wednesday 17 October 2001 12:14 pm, Keith Seitz wrote:
> Hi,
>
> For a long, long time now, Insight has, for historical reasons, disallowed
> the debugging of executables with no debug information when opened with
> the File->Open... menu.
>
> Anyone see any reason whatsoever that this restriction shouldn't be nuked?
> Keith
>
> PS. Proposed patch:
> Index: gdbtk/library/interface.tcl
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbtk/library/interface.tcl,v
> retrieving revision 1.30
> diff -u -p -r1.30 interface.tcl
> --- interface.tcl	2001/10/06 18:10:50	1.30
> +++ interface.tcl	2001/10/17 19:12:27
> @@ -860,13 +860,6 @@ proc set_exe {} {
>        set gdb_exe_name {}
>        set file_done 0
>        return
> -    } elseif {[string match {*no debugging symbols found*} $msg]} {
> -      tk_messageBox -icon error -default ok \
> -	-title "GDB" -type ok -modal system \
> -	-message "This executable has no debugging information."
> -      set gdb_exe_name {}
> -      set file_done 0
> -      return
>      }
>
>      # force new target command


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