Skip to content

Instantly share code, notes, and snippets.

@echristopherson
Created August 10, 2014 04:22
Show Gist options
  • Save echristopherson/e65c86bb22d4f00278db to your computer and use it in GitHub Desktop.
Save echristopherson/e65c86bb22d4f00278db to your computer and use it in GitHub Desktop.
gdb-7 vice-macosx-sdl-x86_64-2.4.7/x128.app/Contents/MacOS/x128
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 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-apple-darwin13.3.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from vice-macosx-sdl-x86_64-2.4.7/x128.app/Contents/MacOS/x128...done.
(gdb) break main
Breakpoint 1 at 0x100207222
(gdb) run
Starting program: /Users/eric/Code/others/vice-emu-code--svn/vice/vice-macosx-sdl-x86_64-2.4.7/x128.app/Contents/MacOS/x128
Breakpoint 1, 0x0000000100207222 in main ()
(gdb) l
1 // ---------------------------------------------------------------------------
2 // This file is part of reSID, a MOS6581 SID emulator engine.
3 // Copyright (C) 2010 Dag Lem <[email protected]>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
(gdb) l
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // ---------------------------------------------------------------------------
19
20 #include "pot.h"
(gdb) l
21
22 namespace reSID
23 {
24
25 reg8 Potentiometer::readPOT()
26 {
27 // NB! Not modeled.
28 return 0xff;
29 }
30
(gdb) l
31 } // namespace reSID
(gdb) # Note there is no main() in this source file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment