remote_gdb.cc (12031:46116545e745) | remote_gdb.cc (12122:20512f6810d7) |
---|---|
1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2002-2005 The Regents of The University of Michigan 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 236 unchanged lines hidden (view full) --- 245 if (sfd != -1) { 246 if (gdb->isattached()) 247 close(sfd); 248 else 249 gdb->attach(sfd); 250 } 251} 252 | 1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2002-2005 The Regents of The University of Michigan 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 236 unchanged lines hidden (view full) --- 245 if (sfd != -1) { 246 if (gdb->isattached()) 247 close(sfd); 248 else 249 gdb->attach(sfd); 250 } 251} 252 |
253int 254GDBListener::getPort() const 255{ 256 panic_if(!listener.islistening(), 257 "Remote GDB port is unknown until GDBListener::listen() has " 258 "been called.\n"); 259 260 return port; 261} 262 |
|
253BaseRemoteGDB::InputEvent::InputEvent(BaseRemoteGDB *g, int fd, int e) 254 : PollEvent(fd, e), gdb(g) 255{} 256 257void 258BaseRemoteGDB::InputEvent::process(int revent) 259{ 260 if (gdb->trapEvent.scheduled()) { --- 856 unchanged lines hidden --- | 263BaseRemoteGDB::InputEvent::InputEvent(BaseRemoteGDB *g, int fd, int e) 264 : PollEvent(fd, e), gdb(g) 265{} 266 267void 268BaseRemoteGDB::InputEvent::process(int revent) 269{ 270 if (gdb->trapEvent.scheduled()) { --- 856 unchanged lines hidden --- |