This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/14959] Software watchpoint deleted when we have a call to @plt function


http://sourceware.org/bugzilla/show_bug.cgi?id=14959

--- Comment #6 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2013-03-24 15:21:32 UTC ---
(In reply to comment #3)
> And before executing instruction, that "read from" or "write to"
> memory, GDB should check, does it write or read to this software break places

GDB (almost) never decodes instructions (only 'record' does).  It brings in the
problem to keep GDB up to date with all the instruction extensions (AVX2 etc.).


(In reply to comment #5)
> Sorry for double posting. Also
> http://sourceware.org/bugzilla/show_bug.cgi?id=15299

I do not see how it is related.


But this Bug is rather a problem of the libraries.  Recent GNU ld and also gold
provide unwind information even for the plt frames.  GDB could workaround it
somehow but I do not see any need for it nowadays.

Fedora 17 x86_64:

GNU gdb (GDB) 7.6.50.20130322-cvs
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jkratoch/t/sbp...done.
(gdb) b main
Breakpoint 1 at 0x40055b: file sbp.c, line 12.
(gdb) r
Starting program: /home/jkratoch/t/sbp 

Breakpoint 1, main () at sbp.c:12
12      int q = 0;
(gdb) set can-use-hw-watchpoints 0
(gdb) watch q
Watchpoint 2: q
(gdb) n
13      func2();
(gdb) c
Continuing.
global = 0  
Watchpoint 2: q

Old value = 0
New value = 1
main () at sbp.c:15
15      return 0;
(gdb)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]