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

Document all sorts of C debugging tips #9000

Merged
merged 1 commit into from
Nov 14, 2014
Merged

Document all sorts of C debugging tips #9000

merged 1 commit into from
Nov 14, 2014

Conversation

timholy
Copy link
Member

@timholy timholy commented Nov 13, 2014

Fulfills a pledge I made on on julia-dev. This moves some info I wrote from the FAQ to the "developer docs", and blatantly steals from sources posted by @ihnorton and @staticfloat. Finally, there's a small number of whitespace changes.

^^^^^^^^^^^^^^

The main challenge is that Julia and gdb each need to have their own
terminal, to allow you to interact with them both. One approach is to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I usually start julia directly under gdb. I think the only time I have used separate processes is when running julia under valgrind. (perhaps it is a matter of taste though?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's funny is that I'd swear Ctrl-C did not interrupt to gdb when I first tried it oh-so-long ago. So that's why I figured this out.

I'll change this (probably just delete the whole section).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be because of the new REPL.
On Nov 13, 2014 12:19 PM, "Tim Holy" [email protected] wrote:

In doc/devdocs/interactivegdb.rst:

@@ -0,0 +1,68 @@
+Interactive debugging with gdb
+----------------------------------
+
+First, you should build the debug version of julia with make +debug. Below, lines starting with (gdb) mean things you should
+type at the gdb prompt.
+
+From the shell
+^^^^^^^^^^^^^^
+
+The main challenge is that Julia and gdb each need to have their own
+terminal, to allow you to interact with them both. One approach is to

What's funny is that I'd swear Ctrl-C did not interrupt to gdb when I
first tried it oh-so-long ago. So that's why I figured this out.

I'll change this (probably just delete the whole section).


Reply to this email directly or view it on GitHub
https://github.com/JuliaLang/julia/pull/9000/files#r20319864.

@ihnorton
Copy link
Member

Awesome 👍

@staticfloat
Copy link
Member

:D

timholy added a commit that referenced this pull request Nov 14, 2014
Document all sorts of C debugging tips
@timholy timholy merged commit f3017ff into master Nov 14, 2014
@timholy timholy deleted the devdocs branch November 14, 2014 02:55
@staticfloat
Copy link
Member

What does the scouter say about our PR level?!

@timholy
Copy link
Member Author

timholy commented Nov 18, 2014

@JuliaBackports

@tkelman
Copy link
Contributor

tkelman commented Nov 18, 2014

thanks @timholy - what's the right conflict resolution for

  .. toctree::
-    :maxdepth: 1
+    :maxdepth: 2

++<<<<<<< HEAD
 +   devdocs/cartesian
++=======
+    devdocs/julia
+    devdocs/C
++>>>>>>> cbb4bc3... Document all sorts of C debugging tips

@timholy
Copy link
Member Author

timholy commented Nov 18, 2014

Pick the second one. Surprised there was a conflict...

Thanks for doing it!

@tkelman
Copy link
Contributor

tkelman commented Nov 18, 2014

No problem, backported in 507a4c6

I think the conflict might be because devdocs/meta was not backported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants