Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocamldebug and relative filenames #2423

Closed
vicuna opened this issue Apr 24, 2000 · 1 comment
Closed

ocamldebug and relative filenames #2423

vicuna opened this issue Apr 24, 2000 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 24, 2000

Original bug ID: 86
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Samuel Hériard
Version: 3.0
OS: Linux
Submission from: rde1-68.adsl1.club-internet.fr (195.36.220.68)

I don't understand why ocamldebug searchs the program to run in PATH
instead of the current directory when the filename is not an absolute path.
shouldn't something like this be better :

--- /home/heriard/src/caml/ocaml/debugger/program_management.ml Wed Nov 17
19:57:27 1999
+++ program_management.ml Mon Apr 24 16:40:39 2000
@@ -118,11 +118,13 @@
let initialize_loading () =
if !debug_loading then
prerr_endline "Loading debugging informations...";

  • Symbols.read_symbols
  • (try search_in_path !program_name with
  •   Not_found ->
    
  •     prerr_endline "Program not found.";
    
  •     raise Toplevel);
    
  • if Filename.is_implicit !program_name then
  • program_name := (getcwd () ^ "/" ^ !program_name) ;
  • (try access !program_name [ X_OK ] with
  • Unix_error _ ->
  •  prerr_endline "Program not found.";
    
  •  raise Toplevel );
    
  • Symbols.read_symbols !program_name ;
    if !debug_loading then
    prerr_endline "Opening a socket...";
    open_connection !socket_name

SHD

@vicuna
Copy link
Author

vicuna commented Apr 27, 2000

Comment author: administrator

Redundant with #2421

@vicuna vicuna closed this as completed Aug 25, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant