summaryrefslogtreecommitdiff
path: root/src/libmach_amd64
AgeCommit message (Collapse)AuthorFilesLines
2009-08-14rename libmach_amd64 libmachRob Pike21-9718/+0
R=rsc OCL=33273 CL=33276
2009-08-13debugging symbols for 8g.Russ Cox2-0/+4
backtraces don't work, but they didn't work when i started either. R=ken OCL=33230 CL=33230
2009-08-12mechanism for putting go types into 6.out symbol table.Russ Cox1-0/+3
no types yet. R=ken OCL=33142 CL=33146
2009-08-12change gotype in symbol table fromRuss Cox1-26/+12
character string to machine address. not filled in, just carved out. R=austin DELTA=77 (11 added, 34 deleted, 32 changed) OCL=33122 CL=33124
2009-06-17runtime: stack growth adjustments, cleanupRuss Cox1-43/+90
* keep coherent SP/PC in gobuf (i.e., SP that would be in use at that PC) * gogocall replaces setspgoto, should work better in presence of link registers * delete unused system calls only amd64; 386 is now broken R=r DELTA=548 (183 added, 183 deleted, 182 changed) OCL=30381 CL=30442
2009-06-16grab bag of changes aimed at getting stack splitting to work:Kai Backman1-0/+5
- morestack support for 5l and arm runtime - argsize support in 5c, 5l, ar and nm. assembly code from 5a will break in interesting ways unless NOSPLIT is specified - explicit cond execution constants - fix 5l output to use %d instead of %ld so that negative values show. - added a lot of code to arm/asm.s. runtime entry code almost working currently aborts at gogo not implemented R=rsc APPROVED=rsc DELTA=305 (125 added, 29 deleted, 151 changed) OCL=30246 CL=30347
2009-05-26darwin support for 32-bit debuggingRuss Cox1-50/+127
R=r DELTA=129 (78 added, 1 deleted, 50 changed) OCL=29411 CL=29413
2009-05-22Added support for .5 files in libmach_64. Copied 5obj.c fromKai Backman3-3/+167
plan9 libmach. R=rsc APPROVED=rsc DELTA=142 (139 added, 3 deleted, 0 changed) OCL=29281 CL=29281
2009-04-29if the process stops with SIGTRAP (breakpoint),Russ Cox1-2/+3
don't relay the signal when restarting it. R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=28060 CL=28064
2009-04-15fix gotest by fixing nm -s to print in file order by storing a sequence numberRob Pike1-0/+3
as the .6 file is read. now tests will be run in file order. R=rsc DELTA=9 (6 added, 1 deleted, 2 changed) OCL=27542 CL=27544
2009-03-24add .8 support to libmach_amd64 [sic].Russ Cox7-82/+446
add code to handle 32-bit Mach-O and ELF binaries. R=r DELTA=452 (365 added, 29 deleted, 58 changed) OCL=26696 CL=26712
2009-02-06closures - runtime and debugger support, test caseRuss Cox1-2/+17
R=r DELTA=257 (250 added, 1 deleted, 6 changed) OCL=24509 CL=24565
2009-02-05fix build on thresher - missing constantsRuss Cox1-0/+25
TBR=r OCL=24439 CL=24439
2009-02-03libmach:Russ Cox3-151/+491
* heuristic to go farther during stack traces. * significantly improved Linux thread handing. acid: * update to new libmach interface. prof: * use new libmach interface. * multiple thread support (derived from Rob's copy). * first steps toward pprof-like graphs: keep counters indexed by pc,callerpc pairs. R=r DELTA=909 (576 added, 123 deleted, 210 changed) OCL=24240 CL=24259
2009-02-02marginally better thread debugging on Linux.Russ Cox1-18/+47
if you clone inside a traced pid, the child is automatically attached and stopped, apparently. R=r DELTA=63 (41 added, 12 deleted, 10 changed) OCL=24096 CL=24106
2009-01-30can finally close this TODO - 6l was brokenRuss Cox1-2/+0
R=r DELTA=2 (0 added, 2 deleted, 0 changed) OCL=23993 CL=23995
2009-01-16casify, cleanup sysRuss Cox1-0/+8
R=r OCL=22978 CL=22984
2008-12-18libmach: always print 0x on hex numbersRuss Cox2-8/+8
R=r DELTA=3 (0 added, 0 deleted, 3 changed) OCL=21558 CL=21558
2008-11-20symbol table changesRuss Cox1-0/+26
* add gotype string to symbol table * fill in gotype in 6l for known funcs/vars * print gotype with nm -t * load symbol and pc/ln tables into memory at magic address 0x99<<32. * add sys.symdat() to retrieve raw bytes of symbol table and pc/ln table. most of this should be considered experimental and subject to change. R=r DELTA=157 (128 added, 0 deleted, 29 changed) OCL=19746 CL=19750
2008-11-14code coverage toolRuss Cox2-12/+40
$ 6cov -g 235.go 6.out 235.go:62,62 main·main 0x27c9-0x2829 MOVL $main·.stringo(SB),AX 235.go:30,30 main·main 0x2856-0x285e ADDQ $6c0,SP $ and assorted fixes. R=r DELTA=743 (732 added, 8 deleted, 3 changed) OCL=19226 CL=19243
2008-10-20fix compiler warningsRuss Cox4-12/+18
R=r DELTA=44 (10 added, 9 deleted, 25 changed) OCL=17502 CL=17502
2008-09-26libmach_amd64: refresh darwin thread list each time we get asked.Russ Cox1-18/+19
R=r DELTA=1 (1 added, 0 deleted, 0 changed) OCL=15982 CL=15993
2008-09-23better debuggers:Rob Pike1-4/+58
- follow through segmented stacks - a couple of fixes to db R=rsc DELTA=72 (62 added, 0 deleted, 10 changed) OCL=15713 CL=15717
2008-09-19add gobuild.Russ Cox1-1/+5
use gobuild-generated Makefile for math and os. other makefile tweaks. move math/main.go to test/math.go R=r OCL=15529 CL=15537
2008-09-18make acid build on linux.Russ Cox2-2/+11
recognize symbol table info again on 64-only linux. R=r DELTA=11 (9 added, 0 deleted, 2 changed) OCL=15486 CL=15486
2008-09-16acid fixes etc. still not perfect.Russ Cox2-39/+715
R=r DELTA=764 (694 added, 38 deleted, 32 changed) OCL=15285 CL=15395
2008-08-04acid. works only on Linux for nowRuss Cox6-123/+645
R=r DELTA=7031 (6906 added, 113 deleted, 12 changed) OCL=13847 CL=13852
2008-08-03Use a single Make.conf for setting CC, etc.Russ Cox1-2/+1
This makes it easy to build with other flags (like -ggdb) or other compilers (like cc64). R=r DELTA=45 (6 added, 22 deleted, 17 changed) OCL=13790 CL=13793
2008-08-03make 6a, 6c, 6g, 6l, libmach_amd64 build on 64-bit gcc.Russ Cox11-147/+147
these guys really really want long to be 32-bits, so ,s/long/int32/ (and then manual fixup). still passes all tests. (i started out looking for just those longs that needed to be int32 instead, and it was just too hard to track them down one by one.) the longs were rare enough that i don't think it will cause integration problems. R=ken OCL=13787 CL=13789
2008-06-25put a makefile into runtimeRob Pike1-0/+33
make the runtime library an archive (rt0 is still separate) update 6l to use the archive add fakeobj.c, missing from prior change SVN=124762
2008-06-25add plan 9 ar, which understands our symbol tablesRob Pike2-0/+33
SVN=124761
2008-06-24previous change was a nit too aggressive - regular comparison should apply ↵Rob Pike1-1/+1
when comparing internal symbol names SVN=124461
2008-06-24allow an underscore to match centered dot (rune 00B7), so people don't have toRob Pike1-4/+27
type a centered dot when debugging. SVN=124460
2008-06-15add support for debugging in MACH binariesRob Pike4-3/+219
fix up libmach_amd64 to handle MACH binaries and symbols db now works on mac and linux SVN=122807
2008-06-13hack to find first instruction for decoding the pc/line table properly.Rob Pike1-1/+10
SVN=122792
2008-06-13support symbol tables and line numbers in 6.out executablesRob Pike1-1/+48
SVN=122700
2008-06-12fix name of mach_amd64 library source dirRob Pike15-0/+6963
SVN=122506