Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: jonr

Search: Search took 0.00 seconds.

  1. For linux users who want to do things manually,...

    For linux users who want to do things manually, this quick "gdb.sh" script works for me and is convenient:



    #!/bin/bash

    # find port
    port=`ls /dev/ttyACM* | tail -1`

    # find latest build
  2. I learned that on linux I can install...

    I learned that on linux I can install "gdb-multiarch" and then use this newer version (V8.1) of gdb. Maybe this effects how the call function issue should be resolved.
  3. Everything is working well for me now. Thanks,...

    Everything is working well for me now. Thanks, this will definitely speed up debugging.
  4. If anyone is debugging a teensy that is not...

    If anyone is debugging a teensy that is not connected via dual serial USB (eg, hardware serial port), this should be useful:

    gdb_out_print(const char *msg)

    It causes gdb to display a string.
    ...
  5. Anybody running on linux that could try: void...

    Anybody running on linux that could try:

    void setup() {
    Serial.begin(19200);
    debug.begin(SerialUSB1);
    delay(1000);
    halt();
    }

    This often causes gbd to not connect. Works fine...
  6. I don't use the python stuff, but here is proof:...

    I don't use the python stuff, but here is proof:


    (gdb) monitor digitalWrite(13,1)
    (gdb) monitor foo()
    Target does not support this command.
    (gdb)
  7. Nice, ftrias implemented gdb commands like...

    Nice, ftrias implemented gdb commands like "monitor digitalWrite(13,1)" (this turns on the LED). Also "monitor call" to call any function in your code.
  8. Does anyone know how gdb determines where the IVT...

    Does anyone know how gdb determines where the IVT (vector table) is located? gdb thinks 0x60001000, not knowing that it has been relocated.
  9. I look forward to more features. Perhaps "write...

    I look forward to more features. Perhaps "write register" and workarounds for calling target functions from the gdb command line?
  10. It's works well - a debugger saves time and using...

    It's works well - a debugger saves time and using one should be standard practice. Unfortunately, teensy doesn't support hardware debuggers.

    On linux, start gdb with something like ...
Results 1 to 10 of 10