HARRISBURG — Anti-gun violence advocates rallied Thursday and packed into a friendly legislative hearing in Pennsylvania, where a politically divided government has fought firearms policy to a virtual standstill for decades, and rising gun violence has gripped the state’s largest city.