# Proposal for updating zbacktrace in gdbinit

- Thread: https://externals.io/message/56789
- Original archive: https://news-web.php.net/php.internals/56789
- Started by Laruence on 2011-12-06T06:33:18+00:00
- Messages: 9
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #56789 — Laruence — 2011-12-06T06:33:18+00:00

URL: https://externals.io/message/56789#56789

Hi:
   I am plan to commit a new change to 5.4-trunk/.gdbinit which can be
found at http://pastebin.com/N6hTRMRA.

   after update,  the zbacktrace will print arguments info:

 (gdb) zbacktrace
[0x95dac5d8] sleep(long: 1000) /tmp/1.php:21
[0x95dac4b8] e(resource(#5)) /tmp/1.php:17
[0x95dac3e8] d(bool: true) /tmp/1.php:13
[0x95dac2f8] c(array(3)[0x95de78a0]) /tmp/1.php:10
[0x95dac1c8] b(object[0x95de5158]) /tmp/1.php:7
[0x95dac0e8] a(string(8): "laruence") /tmp/1.php:24

    any objections?

thanks
-- 
Laruence  Xinchen Hui
http://www.laruence.com/

---

## #56790 — Laruence — 2011-12-06T06:44:20+00:00

URL: https://externals.io/message/56789#56790 · In reply to: #56789

Hi:

    patch upateded,  http://pastebin.com/cr6N7NUx

thanks


> Hi:
>   I am plan to commit a new change to 5.4-trunk/.gdbinit which can be
> found at http://pastebin.com/N6hTRMRA.
>
>   after update,  the zbacktrace will print arguments info:
>
>  (gdb) zbacktrace
> [0x95dac5d8] sleep(long: 1000) /tmp/1.php:21
> [0x95dac4b8] e(resource(#5)) /tmp/1.php:17
> [0x95dac3e8] d(bool: true) /tmp/1.php:13
> [0x95dac2f8] c(array(3)[0x95de78a0]) /tmp/1.php:10
> [0x95dac1c8] b(object[0x95de5158]) /tmp/1.php:7
> [0x95dac0e8] a(string(8): "laruence") /tmp/1.php:24
>
>    any objections?
>
> thanks
> --
> Laruence  Xinchen Hui
> http://www.laruence.com/



-- 
Laruence  Xinchen Hui
http://www.laruence.com/

---

## #56792 — Laruence — 2011-12-06T09:51:02+00:00

URL: https://externals.io/message/56789#56792 · In reply to: #56789

Hi:
   I update the patch,  instead of change the behavior of zbacktrace,
I add a new one "zbacktrace_ex",

   I am going to commit it,  if there comes some problems,  then we
could revert or edit it.

thanks


> Hi:
>   I am plan to commit a new change to 5.4-trunk/.gdbinit which can be
> found at http://pastebin.com/N6hTRMRA.
>
>   after update,  the zbacktrace will print arguments info:
>
>  (gdb) zbacktrace
> [0x95dac5d8] sleep(long: 1000) /tmp/1.php:21
> [0x95dac4b8] e(resource(#5)) /tmp/1.php:17
> [0x95dac3e8] d(bool: true) /tmp/1.php:13
> [0x95dac2f8] c(array(3)[0x95de78a0]) /tmp/1.php:10
> [0x95dac1c8] b(object[0x95de5158]) /tmp/1.php:7
> [0x95dac0e8] a(string(8): "laruence") /tmp/1.php:24
>
>    any objections?
>
> thanks
> --
> Laruence  Xinchen Hui
> http://www.laruence.com/



-- 
Laruence  Xinchen Hui
http://www.laruence.com/

---

## #56793 — Ferenc Kovacs — 2011-12-06T09:53:51+00:00

URL: https://externals.io/message/56789#56793 · In reply to: #56792

Laruence, I think that there is no point opening a thread if you will go
ahead and commit after waiting 3 hours and 0 replies.
Or did I miss someting here?



> Hi:
>   I update the patch,  instead of change the behavior of zbacktrace,
> I add a new one "zbacktrace_ex",
>
>   I am going to commit it,  if there comes some problems,  then we
> could revert or edit it.
>
> thanks
>
> 
> > […]
>
>
>
> --
> Laruence  Xinchen Hui
> http://www.laruence.com/
>
> --
> 
> 
>
>


-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu

---

## #56794 — Laruence — 2011-12-06T09:59:14+00:00

URL: https://externals.io/message/56789#56794 · In reply to: #56793

Hi:
    I am not sure whether is okey to change the existing zbacktrace,
so I open a thread that let people know.

    after that I change the patch,  add a new zbacktrace_ex.   I think
this should be okey, so I commit it.  :)

 sorry & thanks


> Laruence, I think that there is no point opening a thread if you will go
> ahead and commit after waiting 3 hours and 0 replies.
> Or did I miss someting here?
>
> 
> > […]
>
>
>
> --
> Ferenc Kovács
> @Tyr43l - http://tyrael.hu



-- 
Laruence  Xinchen Hui
http://www.laruence.com/

---

## #56795 — Antony Dovgal — 2011-12-06T10:04:44+00:00

URL: https://externals.io/message/56789#56795 · In reply to: #56789

> Hi:
>     I am plan to commit a new change to 5.4-trunk/.gdbinit which can be
> found at http://pastebin.com/N6hTRMRA.

Looks nice, please commit it.

-- 
Wbr,
Antony Dovgal
---
http://pinba.org - realtime profiling for PHP

---

## #56796 — johannes@schlueters.de — 2011-12-06T11:20:58+00:00

URL: https://externals.io/message/56789#56796 · In reply to: #56794

> Hi:
>     I am not sure whether is okey to change the existing zbacktrace,
> so I open a thread that let people know.
> 
>     after that I change the patch,  add a new zbacktrace_ex.   I think
> this should be okey, so I commit it.  :)

I don't see a reason for not changing zbacktrace. Only issue would be if
it becomes really slow or such, besides that having more information is
good!

johannes

>  sorry & thanks
> 
> 
> > […]
> 
> 
> 
> -- 
> Laruence  Xinchen Hui
> http://www.laruence.com/

---

## #56797 — Pierre Joye — 2011-12-06T11:37:55+00:00

URL: https://externals.io/message/56789#56797 · In reply to: #56789

hi!

Good idea and very handy.

Btw, please add the bug # in the commit msg next time :)

Thanks!


> Hi:
>   I am plan to commit a new change to 5.4-trunk/.gdbinit which can be
> found at http://pastebin.com/N6hTRMRA.
>
>   after update,  the zbacktrace will print arguments info:
>
>  (gdb) zbacktrace
> [0x95dac5d8] sleep(long: 1000) /tmp/1.php:21
> [0x95dac4b8] e(resource(#5)) /tmp/1.php:17
> [0x95dac3e8] d(bool: true) /tmp/1.php:13
> [0x95dac2f8] c(array(3)[0x95de78a0]) /tmp/1.php:10
> [0x95dac1c8] b(object[0x95de5158]) /tmp/1.php:7
> [0x95dac0e8] a(string(8): "laruence") /tmp/1.php:24
>
>    any objections?
>
> thanks
> --
> Laruence  Xinchen Hui
> http://www.laruence.com/
>
> --
> 
> 
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #56799 — Laruence — 2011-12-06T12:11:10+00:00

URL: https://externals.io/message/56789#56799 · In reply to: #56796

Hi:
   okey, if there is no objection,   I will update the zbacktrace. :)

thanks

2011/12/6 Johannes Schlüter <johannes@schlueters.de>:
> 
> > […]
>
> I don't see a reason for not changing zbacktrace. Only issue would be if
> it becomes really slow or such, besides that having more information is
> good!
>
> johannes
>
> > […]
>
>



-- 
Laruence  Xinchen Hui
http://www.laruence.com/
