Re: warnings with cvs texinfo version

2012-07-10 Thread Eli Zaretskii
Date: Tue, 10 Jul 2012 22:39:58 +0200 From: Patrice Dumas pertu...@free.fr Cc: bug-gdb@gnu.org, k...@freefriends.org On Thu, Jun 21, 2012 at 05:52:55AM +0300, Eli Zaretskii wrote: ./gdb.texinfo:190: warning: @contents should only appear at beginning or end of document This

linking with python

2012-07-05 Thread Paul Emsley
Hi, maybe you know, just in case not... You allow use of bespoke python build for the most part. There is an issue in the linking though - I had to make the following change so that gdb was linked with my python rather than the system one. I suppose that you should set some sort of

Re: warnings with cvs texinfo version

2012-06-23 Thread Patrice Dumas
On Thu, Jun 21, 2012 at 10:54:15PM +0300, Eli Zaretskii wrote: I don't think so. If I am not wrong, a colon means that there is a label before the node name, but it still leads to a cross reference. That's true, but an asterisk '*' cannot be a valid label, I can't see why. and

Re: warnings with cvs texinfo version

2012-06-23 Thread Eli Zaretskii
Date: Sat, 23 Jun 2012 13:29:38 +0200 From: Patrice Dumas pertu...@free.fr Cc: bug-gdb@gnu.org, k...@freefriends.org On Thu, Jun 21, 2012 at 10:54:15PM +0300, Eli Zaretskii wrote: I don't think so. If I am not wrong, a colon means that there is a label before the node name, but

Re: warnings with cvs texinfo version

2012-06-23 Thread Patrice Dumas
On Thu, Jun 21, 2012 at 10:51:16PM +0300, Eli Zaretskii wrote: That demand would be satisfied by an optional warning. E.g., like with GCC's -Wfoo switches. As to whether this means that the manual is in bad shape, I would be tempted to say that it is the case. Here's the output that

Re: warnings with cvs texinfo version

2012-06-23 Thread Eli Zaretskii
Date: Sat, 23 Jun 2012 15:07:38 +0200 From: Patrice Dumas pertu...@free.fr Cc: bug-gdb@gnu.org, k...@freefriends.org You missed my point. The manual is formatted fine, but since it uses an undocummented Texinfo feature it is in a bad shape Texinfo-wise and the formatting could change in

Re: warnings with cvs texinfo version

2012-06-21 Thread Patrice Dumas
On Thu, Jun 21, 2012 at 05:52:55AM +0300, Eli Zaretskii wrote: ./gdb.texinfo:22939: warning: @table has text but no @item Why is this warning needed? This one is clear to me. A @table without @item does not make sense. A @table specifies a series of headings and associated texts, so a

Re: warnings with cvs texinfo version

2012-06-21 Thread Patrice Dumas
On Thu, Jun 21, 2012 at 05:56:49AM +0300, Eli Zaretskii wrote: Date: Wed, 20 Jun 2012 22:37:53 +0200 From: Patrice Dumas pertu...@free.fr Cc: Karl Berry k...@freefriends.org ./gdb.texinfo:11503: warning: @strong{Note...} produces a spurious cross-reference in Info No, it doesn't,

Re: warnings with cvs texinfo version

2012-06-21 Thread Eli Zaretskii
Date: Thu, 21 Jun 2012 15:50:29 +0200 From: Patrice Dumas pertu...@free.fr Cc: bug-gdb@gnu.org, k...@freefriends.org On Thu, Jun 21, 2012 at 05:52:55AM +0300, Eli Zaretskii wrote: ./gdb.texinfo:22939: warning: @table has text but no @item Why is this warning needed? This one is

Re: warnings with cvs texinfo version

2012-06-21 Thread Eli Zaretskii
Date: Thu, 21 Jun 2012 15:58:57 +0200 From: Patrice Dumas pertu...@free.fr Cc: bug-gdb@gnu.org, k...@freefriends.org On Thu, Jun 21, 2012 at 05:56:49AM +0300, Eli Zaretskii wrote: Date: Wed, 20 Jun 2012 22:37:53 +0200 From: Patrice Dumas pertu...@free.fr Cc: Karl Berry

Re: warnings with cvs texinfo version

2012-06-21 Thread Patrice Dumas
On Thu, Jun 21, 2012 at 07:15:47PM +0300, Eli Zaretskii wrote: On Thu, Jun 21, 2012 at 05:52:55AM +0300, Eli Zaretskii wrote: ./gdb.texinfo:22939: warning: @table has text but no @item Why is this warning needed? This one is clear to me. A @table without @item does not make

Re: warnings with cvs texinfo version

2012-06-21 Thread Patrice Dumas
On Thu, Jun 21, 2012 at 07:17:40PM +0300, Eli Zaretskii wrote: ./gdb.texinfo:11503: warning: @strong{Note...} produces a spurious cross-reference in Info No, it doesn't, not with a colon immediately following the Note. My testing shows that it indeed does, at least with info

Re: warnings with cvs texinfo version

2012-06-21 Thread Eli Zaretskii
Date: Thu, 21 Jun 2012 19:18:19 +0200 From: Patrice Dumas pertu...@free.fr Cc: bug-gdb@gnu.org, k...@freefriends.org On Thu, Jun 21, 2012 at 07:15:47PM +0300, Eli Zaretskii wrote: On Thu, Jun 21, 2012 at 05:52:55AM +0300, Eli Zaretskii wrote: ./gdb.texinfo:22939: warning: @table

Re: warnings with cvs texinfo version

2012-06-21 Thread Eli Zaretskii
Date: Thu, 21 Jun 2012 19:24:51 +0200 From: Patrice Dumas pertu...@free.fr Cc: bug-gdb@gnu.org, k...@freefriends.org On Thu, Jun 21, 2012 at 07:17:40PM +0300, Eli Zaretskii wrote: ./gdb.texinfo:11503: warning: @strong{Note...} produces a spurious cross-reference in Info

warnings with cvs texinfo version

2012-06-20 Thread Patrice Dumas
Hello, The following warnings remain when using the cvs makeinfo version. It is unclear to me how to solve these, but hipefully, you should be able to fix them, or bear with warnings: ./gdb.texinfo:22939: warning: @table has text but no @item ./gdb.texinfo:22991: warning: @table has text but no

Re: warnings with cvs texinfo version

2012-06-20 Thread Eli Zaretskii
Date: Wed, 20 Jun 2012 22:37:53 +0200 From: Patrice Dumas pertu...@free.fr Cc: Karl Berry k...@freefriends.org The following warnings remain when using the cvs makeinfo version. It is unclear to me how to solve these, but hipefully, you should be able to fix them, or bear with warnings:

fixes in the texinfo documentation

2012-06-15 Thread Patrice Dumas
Hello, Please find attached a patch for the gdb documentation that fixes issues such as @itemx instead of @item, empty @item, a missing @node, @menu entries order inconsistent with respect with sectioning, and @@ to be protected in @tex comments. -- Pat ? GDBvn.texi ? Makefile ? annotate.info ?

Re: fixes in the texinfo documentation

2012-06-15 Thread Eli Zaretskii
Date: Fri, 15 Jun 2012 02:43:35 +0200 From: Patrice Dumas pertu...@free.fr Cc: Karl Berry k...@freefriends.org Please find attached a patch for the gdb documentation that fixes issues such as @itemx instead of @item, empty @item, a missing @node, @menu entries order inconsistent with

no address info for some global symbols available ?

2012-06-07 Thread mibcat
Hi all! I'm working for a tool which has to extract some information (for example the address) of variables from a PIC32 elf file. For this I use gdb to read in the elf file and get the address information with the print varname command. This works for almost all symbols but not for all. And I

find command fix

2012-06-07 Thread Balogh, Ray
Hi all, I'm using an older version of a cross-platform GDB build (7.0.1 based). Having to use the find command a lot, as I do, is a pain because it seem to always have been broken and never fixed (?). The problem is that find sometimes works, but often returns bogus matches. I came across

[64-bit code] procfs:4200 -- process not stopped. from gdb 7.4 on Solaris10 x86_64

2012-04-05 Thread Kiyoshi KANAZAWA
Hello, Gdb 7.4 can not run 64-bit code program, on Solaris10 x86_64. [How-To-Repeat] % cat hello.c #includestdio.h int main (void) { printf (Hello.\n); return 0; } % gcc -g -m32 hello.c % gdb a.out GNU gdb (GDB) 7.4 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+:

Re: How to control number of disassembly lines displayed when single-stepping

2012-03-29 Thread Pedro Alves
On 02/01/2012 07:38 PM, Frank wrote: I have a short script that generates an instruction-by-instruction execution trace of a program. However, as the script executes the stepi command in a loop, GDB displays several lines of disassembled machine code at each step instead of just the precise

GDB on remote target - SIGINT (CTRL+C) Terminates remote connection

2012-03-28 Thread riccardo
Differently from as on subject I would like the behaviour to be that gdb stops code execution. Is there someway to do that ? ___ bug-gdb mailing list bug-gdb@gnu.org https://lists.gnu.org/mailman/listinfo/bug-gdb

Gdb failed to create new inferior for new process

2012-03-28 Thread Family Zevin
Hello, I am using GDB 7.3 for MIPS to debug multi process application on linux kernel 2.6.18.8 I am running the main process from GDB. This process forks and executes some other processes but I cannot see that new inferior is created within the debugger while new process is spawned. I am using

Break at address on darwin

2012-03-28 Thread Ben L. Titzer
I am generating very simple Mach-O binaries by hand without symbol information and trying to debug them with gdb by setting breakpoints at various addresses. However, the breakpoints I set do not fire, though I am certain those addresses are being executed (program runs to completion, I can put in

Write only memory area detected...

2012-02-19 Thread Jagged
Once upon a time, there was a little Princess called Amiga... she had a devoted companion known as Prince Agnus, who had a bad habit: he employed some not so trusty registry officers that did not allow to read back the values written to their registers... Well, that was the long awaited

Write only memory area detected...

2012-02-19 Thread Jagged
Once upon a time, there was a little Princess called Amiga... she had a devoted companion known as Prince Agnus, who had a bad habit: he employed some not so trusty registry officers that did not allow to read back the values written to their registers... Well, that was the long awaited

and that happens when Archives are refreshed every 30 minutes... :-/

2012-02-19 Thread Jagged
___ bug-gdb mailing list bug-gdb@gnu.org https://lists.gnu.org/mailman/listinfo/bug-gdb

not able to execute two commands at a same time....

2012-01-20 Thread rohan patil
Hi, I tried to use user-defined commands in gdb, Below is the code snippet saved in gdb.txt file... define gpr p $arg0 p $arg1 set $i = $arg0 set $j = $arg1 while $i = $j info reg r(p $i) set $i++ end end document gpr Displays GPR contents from start index to destination index. end in

Soved: beware of WinZip (Re: Trouble building gdb 7.3.1 in Cygwin on Win7-64)

2011-12-17 Thread manu0507
Hello again, I think this may be useful to others trying to build gdb in Cygwin: - the problem reported below was caused by CR/LF ending of the script's lines - Cygwin converts most of DOS's CR/LFs into LFs, but apparently not all - however, I'm told the gdb distribution (gdb-7.3.1.tar.gz) does

Undeclared symbols and functions building gdb-7.3.1

2011-12-17 Thread manu0507
Hello, I'm trying to build gdb 7.3.1 from the gdb-7.3.1.tar.gz distribution, with - Win7-64 - Cygwin (GNU bash, version 4.1.10(4)-release (i686-pc-cygwin)) - MinGW32 (gcc.exe (GCC) 4.6.1) - mingw32-make (GNU Make 3.82, Built for i386-pc-mingw32) - and more than willing to supply other config

Trouble building gdb 7.3.1 in Cygwin on Win7-64

2011-12-15 Thread manu0507
Hello, Having only found gdb 7.2 pre-built for Win-64, I decided I'd try and build the 7.3.1 myself, using MinGW64. To do so, I first installed the latest Cygwin environment (1.7.9-1), which appears to be running flawlessly. Once in Cygwin, I cd'd to the previously extracted gdb-7.3.1 and tried

invalid vptr after gdb prints the return value of a virtual function member on a 64 bit system

2011-11-11 Thread Böjthe Zoltán
The virtual function getMyVal() of MyClass returns a MyVal object as value, and MyVal object size is small, and MyVal object has copy constructor. When I use p myClass-getMyVal(), the gdb calls the copy ctor of MyVal badly, and copy ctor overwrite the vptr of the myClass. When I remove the

GDB failed to get lines triggering floating point exceptions

2011-09-19 Thread Thanh Vo
Hi, I'm Thanh Vo. I've been using gdb to debug some numeric code and I've run into puzzling behavior that appears to be sensitive to the order of the inputs. Attached is the source of a test program and 2 set of inputs. The inputs only differ in the order of arguments. Run on the test program

GDB 7.3 rs6000-tdep.c skip_prologue lr_reg computed/used incorrectly

2011-08-15 Thread Doug Graham
In skip_prologue() in rs6000-tdep.c, lr_reg is extracted from an mflr instruction as follows: lr_reg = (op 0x03e0) 21; This makes lr a register number between 0 and 31. When it is later tested when looking for a stw etc. instruction: if ((op 0x) == (lr_reg | 0x9001))

Possible deadlock when gdb calls 'SuspendThread' function

2011-07-18 Thread Jose Manuel Pulido
Hello all. I'm using gdb 7.2, release version to debug a program written in c++ and compiled with gcc 4.5.0 in a MinGW environment under Windows XP SP3 32 bits. This is how my debugging session goes on: I usually attach gdb to my program when it's already running (gdb --pid ), then gdb takes

Very strange slowdown in memset() when running in gdb

2011-07-08 Thread Andrew Athan
All: We have thus far been unable to reproduce the following application behavior when running outside of gdb running inside emacs. Therefore, I am starting with this list for suggestions on how to proceed. The high level description of the problem is this: At times, when running an

ask a question about the bug

2011-06-15 Thread Chuan-jun He
Hi, Dear Sir I have a very simple program below, gdb can't print the value of fabs(1.0+3.5). Is it a bug? Really appreciate. GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

Attach to remote pid of one of multiple inferiors fails.

2011-06-03 Thread Asif
### GDB VERSION: GNU gdb (GDB) 7.2 This GDB was configured as --host=x86_64-unknown-linux-gnu --target=powerpc-linux-gnu. powerpc-linux-gnu-gdb: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped ### GDBSERVER VERSION: GNU

GDB Developer Job at CISCO in San Jose, California

2011-05-24 Thread brero...@cisco.com
Hello! I am a recruiter at CISCO. We are looking for a strong GDB Developer. Please contact me if you are interested. Brent brero...@cisco.com GDB Developer Job at CISCO Location - San Jose, CA Description Cisco Systems, Inc. is the worldwide leader in networking for the Internet. Today,

Source of psymtab/symtab discrepancy?

2011-04-26 Thread Greg Nelson
I am running with arm-elf-gdb and I am getting the classic Internal error: pc 0x0 in read in psymtab, but not in symtab error. I'm using a vendor-supplied toolchain with GDB 6.6, and not in a position where I can readily upgrade. However, I don't think it is a bug because the problem occurs only

add-symbol-file bug when used with with address 0x0?

2011-02-10 Thread Kristian Otnes
I am trying to debug u-boot on a PowerPC (MPC8260) target configured to have u-boot located from address 0x0 after reset. Basically, u-boot have to be linked to some other address since RAM must be allocated to address 0x0, so I need to use the 'add-symbol-file' command until the memory mapping

improperly generated PDF at gnu.org/software/gdb/documentation

2011-01-26 Thread Jeanne Rasata
Hello, The PDF's at http://www.gnu.org/software/gdb/documentation/ are missing the ToC and the index. Is it possible to have them replaced with correctly generated ones? Thanks for your time. Sincerely, j. ___ bug-gdb mailing list bug-gdb@gnu.org

GDB 7.2 build fails in m68klinux-nat.c - undeclared symbols

2011-01-14 Thread Horvath, Lars Michael
Hello all, I am trying to build gdb 7.2, but it fails. See errors below. My target is m68k (MCF5441x) and compiler is gcc-4.4.54-eglibc-2.10.54. Kernel target version 2.6.29. gdb 6.8 also fails, but gdb 6.6 succeeded. Obviously the PT_D0... are not defined, but I can't figure out

GDB m68k debug multi-thread application fails: capability not available

2011-01-14 Thread Horvath, Lars Michael
Hello, On a ColdFire (twr-mcf5441x) board, I am trying to debug an application linked with -lpthread, but GDB fails: Starting program: /upcodepr.linux.mcf54415 Reading symbols from /lib/ld.so.1...done. Reading symbols from /lib/libc.so.6...done. Reading symbols from /lib/libpthread.so.0...done.

Re: gdb-7.2 c++ break points

2011-01-05 Thread kousiknandy
Noticing the same problem, is there any workaround? The one noted in OP doesn't work for me. $ cat 5.cpp namespace foo { int bar (void) {return __LINE__;} int bar (int n) { return n;} } ; int main (int ac, char **av) { return foo::bar(__LINE__) - foo::bar(); } $ g++4 -g -o 5

improperly generated PDF at gnu.org/software/gdb/documentation

2010-12-22 Thread Jeanne Rasata
Hello, The PDF's at http://www.gnu.org/software/gdb/documentation/ are missing the ToC and the index. Is it possible to have them replaced with correctly generated ones? Thanks for your time. Sincerely, j. ___ bug-gdb mailing list bug-gdb@gnu.org

Symbols are not loaded from QT33 (even there are)

2010-12-09 Thread kenorb
I've qt33 which is compiled with debug symbols: objdump -t /usr/local/lib/libqt-mt.so.3 | wc -l 25160 nm /usr/local/lib/libqt-mt.so.3 | wc -l 24715 But still have backtrace as follows: #6 0x00b48546 in QDragObject::metaObject () #7 0x00080172daaa in QWidget::event () from

gdb: How to run debugger on start

2010-12-09 Thread kenorb
Tried this: echo run | gdb ls (gdb) Hangup detected on fd 0 error detected on stdin And this: echo run | gdb -x /dev/stdin ls Program exited normally. (gdb) Hangup detected on fd 0 error detected on stdin Nothing in help and manual. Anything? ___

Re: gdb: How to run debugger on start

2010-12-09 Thread Aleksandr Vinokurov
kenorb ken...@gmail.com writes: Tried this: echo run | gdb ls (gdb) Hangup detected on fd 0 error detected on stdin And this: echo run | gdb -x /dev/stdin ls Program exited normally. (gdb) Hangup detected on fd 0 error detected on stdin Nothing in help and manual. Anything? $ echo

gdb7.x missing symbols for some functions

2010-12-09 Thread Soren
Hi, I am developing code in C++ on RHEL4.7 with gcc4.4.4 and using gdb7.1. I am encountering a very strange problem debugging code in a shared library (.so) with gdb7.x. The shared library is built on a RHEL4.7 platform with gcc4.4.4. The library is linked from a mix of object files most of

How to run gdb in the continuous mode

2010-12-08 Thread parag
is there any way to run the gdb into a viewer mode like if I were to see how 1000 next instructions will work and I want it to do so slowly, with a difference of .5 s or something like that ___ bug-gdb mailing list bug-gdb@gnu.org

multi threaded core file

2010-11-18 Thread t a
I have a simple multithreaded test case program. If I attached to it in gdb I get a useful backtrace. If I run gcore and then load the core file I do not. Here is the gdb output for the attached gdb: (gdb) attach 9299 Attaching to program: /root/multithread, process 9299 Reading symbols from

gdb-7.2 c++ break points

2010-09-29 Thread Harald Koenig
Hi, gdb-7.2 seems to have some trouble with c++ symbol completion for setting break points which did not show up in gdb-7.1 and earlier (built myself with gcc-4.3.2 on opensuse 11.1 64bit): a) for the small hello-world program below, when I try to set a bp to h1 by typing b 'h1TAB

Unable to set an IO redirection terminal

2010-08-16 Thread Nathan BIAGINI
Hi, i m a new user of gdb. I work on the last release of Debian Lenny and i ve installed last stable release of gdb to debug my C apps. I want to set the IO redirection terminal (cause my program need an input an output management). But, in the specified terminal (tty command of gdb), i get that

Re: Bizarre GCC problem - how do I debug it?

2010-08-09 Thread Bruce Korb
On 08/06/10 10:24, David Daney wrote: On 08/06/2010 10:19 AM, Bruce Korb wrote: The problem seems to be that GDB thinks all the code belongs to a single line of text. At first, it was a file of mine, so I presumed I had done something strange and passed it off. I needed to do some more

Re: Bizarre GCC problem - how do I debug it?

2010-08-09 Thread Bruce Korb
On Fri, Aug 6, 2010 at 11:19 AM, David Daney dda...@caviumnetworks.com wrote: That seems to work.  There are one or two or three bugs then. Either gdb needs to recognize an out of sync object code It cannot do this as it was released before GCC-4.5. GDB and GCC communicate with each other

Re: Bizarre GCC problem - how do I debug it?

2010-08-09 Thread Bruce Korb
Hi Richard, On Fri, Aug 6, 2010 at 11:43 AM, Richard Guenther richard.guent...@gmail.com wrote: The gdb version on openSUSE that ship with GCC 4.5 is perfectly fine (it's 7.1 based).  No idea what the reporter is talking about (we don't ship insight IIRC). You are remembering correctly. I

bug in msp430-gdb

2010-08-08 Thread Paul
In the windows version it tries to read .gdbinit on start up, but that's in illegal file name in windows. Why not make it gdb.ini? Regards, Paul ___ bug-gdb mailing list bug-gdb@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gdb

Re: bug in msp430-gdb

2010-08-08 Thread asmwarrior
On 2010-8-6 0:00, Paul wrote: In the windows version it tries to read .gdbinit on start up, but that's in illegal file name in windows. Why not make it gdb.ini? Regards, Paul No, you can change the filesname in windows command line. strange is only works on cmd, not the windows shell. :-)

gdbserver+gdb Malformed packet(b)

2010-06-12 Thread 李云岗
Dear all, I use gdbserver + gdb to debug remote arm-linux system, gdb-7.0.1. Compile gdb ./configure --host=i686-pc-linux-gnu --target=armv5tl-montavista-linux-gnueabi --prefix=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le Compile gdbserver

Re: gdb show ?? symbols

2010-05-23 Thread skdas
Hi, I am facing exactly the same problem as mentioned above. I am using kgdb on x86_64 machine with Debian installation. Even I don't see CONFIG_DEBUG_LL option in the .config file. Did you get any resolution to this problem? Please let me know. Any pointers in this direction will be of great

aix debuging with gdb

2010-05-05 Thread calfloving
I now use gdb to debug aix following C + + program, this problem occurs frequently, /opt/src/gnu/dist/gdb/gdb/utils.c:981: gdb-internal-error: virtual memory exhausted: can't allocate 11640336 bytes. An internal GDB error was detected. This may make further debugging unreliable. Quit this

RE: Can't Print Two Dimensional Array Element for Fortran

2010-04-25 Thread lylelyle
Setting language to c works. Yes, the subscript numbers are a little bit wired: the row number is from 0, and the column number is from 1. This doesn't like C or Fortran. Thanks, Lyle Date: Sat, 24 Apr 2010 04:08:18 +0200 From: ikrabbe@googlemail.com To: lyle_h...@hotmail.com CC:

Re: Can't Print Two Dimensional Array Element for Fortran

2010-04-23 Thread Ingo Krabbe
On Fri, Apr 23, 2010 at 08:22:40PM -0500, lylelyle wrote: No, I can't do this in gdb. (gdb) print a(4) Wrong number of subscripts (gdb) print a(6,1) no such vector element lyle I'm, quite sorry. As gdb relies on language features, you might either examine the memory directly

Re: Can't Print Two Dimensional Array Element for Fortran

2010-04-16 Thread Ingo Krabbe
On Sun, Mar 28, 2010 at 10:50:38PM -0500, lyle lyle wrote: Hi Guys, I write code in Fortran and found that I couldn't print an element's value if the element wasn't in the first column. For example, There is an array A and its size is 5x3. In gdb, I can get its first column elements'

Can't Print Two Dimensional Array Element for Fortran

2010-03-29 Thread lyle lyle
Hi Guys, I write code in Fortran and found that I couldn't print an element's value if the element wasn't in the first column. For example, There is an array A and its size is 5x3. In gdb, I can get its first column elements' value with the command: p A(1, 1), until A(5, 1), because the array is

Re: some compile errors fo gdb-7.0.1

2010-03-02 Thread Joel Brobecker
one more small patch for AIX in config/mh-ppc-aix in case $CC includes spaces. for some reason in older gdb version we needed CC='gcc -isystem /usr/include' shows that quoting problem. will test if this still is needed (read: what's the real problem and a better fix, iff still needed at

Re: some compile errors fo gdb-7.0.1

2010-02-23 Thread Harald Koenig
Hi Pedro, On Feb 18, Pedro Alves wrote: I encourage you to try building cvs head, or a recent snapshot with hp cc so catch other possible tweaks necessary, as gdb 7.1 is close to branching out. thanks for the hint! ok, so here are some more problems at least FYI, not sure if all of them

Re: some compile errors fo gdb-7.0.1

2010-02-23 Thread Harald Koenig
one more small patch for AIX in config/mh-ppc-aix in case $CC includes spaces. for some reason in older gdb version we needed CC='gcc -isystem /usr/include' shows that quoting problem. will test if this still is needed (read: what's the real problem and a better fix, iff still needed at alll).

Re: some compile errors fo gdb-7.0.1

2010-02-23 Thread Pedro Alves
On Tuesday 23 February 2010 15:22:33, Harald Koenig wrote: Hi Pedro, On Feb 18, Pedro Alves wrote: I encourage you to try building cvs head, or a recent snapshot with hp cc so catch other possible tweaks necessary, as gdb 7.1 is close to branching out. thanks for the hint! ok, so

Re: some compile errors fo gdb-7.0.1

2010-02-23 Thread Harald Koenig
Hi, here is a problem report for break points on AIX 5.1 and 5.3. first AIX 5.3: if a program first runs in gdb without any break points and finished, then it's not possible to set break a break point for the next run (this is the same on AIX 5.1 too): # gdb a.out GNU gdb

Re: some compile errors fo gdb-7.0.1

2010-02-18 Thread Pedro Alves
[moving from bug-gdb@gnu.org, patches go to gdb-patc...@] On Monday 15 February 2010 14:16:21, Harald Koenig wrote: Hi, trying to compile gdb-7.0.1 on HP-UX, the hp cc complains about some problems in mi-main.c and breakpoint.c symfile.c cc:

some compile errors fo gdb-7.0.1

2010-02-15 Thread Harald Koenig
Hi, trying to compile gdb-7.0.1 on HP-UX, the hp cc complains about some problems in mi-main.c and breakpoint.c symfile.c cc: /soft/os/gdb/gdb-7.0.1/gdb-7.0.1/gdb/mi/mi-main.c, line 176: error 1610: Attempting to return value from function of type void. cc:

broken links on gdb song page

2010-02-06 Thread Karl Berry
Critical stuff here: just received a report that these two links on http://www.gnu.org/software/gdb/song are broken: http://www.fsf.org/fun/humor.html#Music - replace with http://www.gnu.org/music/gdb-song.html (I surmise) http://cafe.colorado.edu/~tromey/other.html - maybe Tom can help ...

Is there any way to redefine a function

2010-02-02 Thread parag
Hi All, Is there any way to redefine an existing C function using GDB I havea function int whatsup(){ return 1; } I want to make it int whatsup() { return 0; } ___ bug-gdb mailing list bug-gdb@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gdb

Re: Is there any way to redefine a function

2010-02-02 Thread parag
On Feb 3, 5:19 am, parag parag.p...@gmail.com wrote: Hi All, Is there any way to redefine an existing C function using GDB I havea  function int whatsup(){ return 1; } I want to make it int whatsup() { return 0; } Also , is there any way you can make a symbol of a function change

回复:Re: redefine the port of gdbserv er/TCPIP

2010-01-05 Thread tytful
___ bug-gdb mailing list bug-gdb@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gdb

Re: redefine the port of gdbserver/TCPIP

2010-01-04 Thread Tribhuwan Kandpal
Hi, Would you please try port number between 0 to see if that works. Say some random number 6879   ~Tribhuwan --- On Sat, 2/1/10, tytful tyt...@163.com wrote: From: tytful tyt...@163.com Subject: redefine the port of gdbserver/TCPIP To: bug-gdb bug-gdb@gnu.org Date: Saturday, 2 January,

redefine the port of gdbserver/TCPIP

2010-01-03 Thread tytful
hello engineer, I want to use port:12345 , but i can't redefine the port of insight.because it stay port1000 stabely. what should i do to define the port flexiblly? ___ bug-gdb mailing list bug-gdb@gnu.org

Re: gdb show ?? symbols

2010-01-01 Thread Tribhuwan Kandpal
Hi, I am not an expert of kernel debugging but I found it so thought of sharing though it is for UML   1. http://user-mode-linux.sourceforge.net/new/hacking.html 2. http://user-mode-linux.sourceforge.net/old/debugging.html   Hope it helps.   ~Trib --- On Mon, 28/12/09, Alexandre Rusev

Re: patch for testing purposes

2009-12-31 Thread Michael
michael, i'll send my patches to the gdb-pathches mailing list then :) thanks, michael Michael Snyder wrote: Michael wrote: hi, does this suffice as a submission for review, or do you suggest an alternative format? greetz, michael First of all, the place to submit this is

patch for testing purposes

2009-12-30 Thread Michael
hi, does this suffice as a submission for review, or do you suggest an alternative format? greetz, michael 115,134c115 // print the status word // updated 20091227 (developm...@codenamezero.org) static void print_i387_status_word (unsigned int status, struct ui_file *file) {

patch for testing purposes

2009-12-30 Thread Michael
hi, does this suffice as a submission for review, or do you suggest an alternative format? greetz, michael 115,134c115 // print the status word // updated 20091227 (developm...@codenamezero.org) static void print_i387_status_word (unsigned int status, struct ui_file *file) {

Re: patch for testing purposes

2009-12-30 Thread Michael Snyder
Michael wrote: hi, does this suffice as a submission for review, or do you suggest an alternative format? greetz, michael First of all, the place to submit this is gdb-patc...@sourceware.org. You will want to say a bit more about the purpose of your patch (what problem are you trying to

patch for testing purposes

2009-12-29 Thread Michael
hi, does this suffice as a submission for review, or do you suggest an alternative format? greetz, michael 115,134c115 // print the status word // updated 20091227 (developm...@codenamezero.org) static void print_i387_status_word (unsigned int status, struct ui_file *file) {

Re: gdb show ?? symbols

2009-12-28 Thread Alexandre Rusev
清水河 wrote: On Dec 24, 2:00 am, Alexandre Rusev aru...@ru.mvista.com wrote: 你好!;) 清水河 wrote: Hi, I tried to use gdb to debug kernel code. I compiled with -g -ggdb flags, but it seems gdb cannot show symbols correctly, instead it shows all ?? compile kernel with debug

Re: gdb show ?? symbols

2009-12-23 Thread Alexandre Rusev
你好!;) 清水河 wrote: Hi, I tried to use gdb to debug kernel code. I compiled with -g -ggdb flags, but it seems gdb cannot show symbols correctly, instead it shows all ?? compile kernel with debug information. In kernel compilation menu make menuconfig select Kernel Hucking-Compile kernel with

Re: gdb show ?? symbols

2009-12-23 Thread 清水河
On Dec 24, 2:00 am, Alexandre Rusev aru...@ru.mvista.com wrote: 你好!;) 清水河 wrote: Hi, I tried to use gdb to debug kernel code. I compiled with -g -ggdb flags, but it seems gdb cannot show symbols correctly, instead it shows all ?? compile kernel with debug information. In kernel

gdb hijacks my argument list

2009-12-04 Thread Leslie Turriff
Hi, I'm writing a package that accepts arbitrary character strings from the command line, and I'm trying to debug it with gdb. When run without gdb the command line string is passed directly to my program, but when I tell gdb to pass it, gdb insists on interpreting it as a

display bug

2009-11-27 Thread Yanmeng Ba
Hello everyone, I use the GDB 7.0 with python extension to periodically attach GDB to a running process and output some variable values. The process I am investigating is quite simple: it prints out the value of a variable which decrease by 1 every 3 seconds. My method is quite simple and

Re: m4 changequote bug

2009-11-23 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [please keep replies on the list, and adding bug-gdb] According to Josef Vukovic on 11/23/2009 5:37 AM: 2009/11/19 Eric Blake e...@byu.net mailto:e...@byu.net I'm not sure when that was fixed, but I confirmed that even as far back

Re: Problem of GDB interaction with interrupted system calls

2009-11-15 Thread Hui Zhu
Sorry. I cannot agree with it. It make GDB not flexible. Hui On Fri, Nov 13, 2009 at 22:42, Alexandre Rusev aru...@ru.mvista.com wrote: teawater wrote: I think this is a hehavior of kernel. I think change pc always a danger thing. :) Yes, extremely dangeorous! ;) But GDB supports

Re: Problem of GDB interaction with interrupted system calls

2009-11-13 Thread Alexandre Rusev
teawater wrote: I think this is a hehavior of kernel. I think change pc always a danger thing. :) Yes, extremely dangeorous! ;) But GDB supports feature such as call func_name, when using it the Joe user does not even cares the PC, he just thinks that he makes call to some function...

GDB debugging for a big c language project.

2009-11-13 Thread MaiTiano
Now I have a project which include three directories **/bin**, **/ inc** and **/src**. All of header files (*.h) are included in **/inc** and all of source (*.c) files are stored in **/src**, i.e. a.c, b.c, c.c..., the final generated executable file will locate in /bin. after compling with

Re: Problem of GDB interaction with interrupted system calls

2009-11-12 Thread teawater
I think this is a hehavior of kernel. I think change pc always a danger thing. :) infrun: clear_proceed_status_thread (process 4542) infrun: proceed (addr=0x, signal=144, step=0) infrun: resume (step=0, signal=0), trap_expected=0 infrun: wait_for_inferior (treat_exec_as_sigtrap=0)

Re: Problem of GDB interaction with interrupted system calls

2009-11-02 Thread Alexandre Rusev
teawater wrote: This signal ctrl-c will not really send to inferior. But the result is interrupted system call which is restarted then by kernel. And is user changes program counter in GDB at this point, then it takes place before the modification of PC is done by kernel. The result is that

Re: GDB 7's process record/replay BDW-GC

2009-11-01 Thread teawater
http://sourceware.org/gdb/wiki/ProcessRecord On Oct 30, 5:47 am, Boehm, Hans hans.bo...@hp.com wrote: There may be an easy GC-specific workaound, int that you can probably build it with -DNO_GETCONTEXT.  Or you might be able to link statically against libc?  But this doesn't sound like this

Re: Problem of GDB interaction with interrupted system calls

2009-11-01 Thread teawater
This signal ctrl-c will not really send to inferior. (gdb) help info handle On Oct 31, 12:10 am, Alexandre Rusev aru...@ru.mvista.com wrote: Hi. When the program at ht end of message debugged under GDB is stopped with Ctrl+C it's usually found in interrupted system call. (The same result is

Problem of GDB interaction with interrupted system calls

2009-10-30 Thread Alexandre Rusev
Hi. When the program at ht end of message debugged under GDB is stopped with Ctrl+C it's usually found in interrupted system call. (The same result is observed for x86 and PPC with kernels 2.6.18 and 2.6.28) (gdb) where #0 0xb7fe2424 in __kernel_vsyscall () #1 0xb7f36ad0 in nanosleep () from

<    1   2   3   4   5   6   7   8   9   10   >