mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 12:29:14 +02:00
+ generate line stabs if cs_gdb_lineinfo is aktglobalswitches
This commit is contained in:
parent
f0ea08740f
commit
b1f00f942d
@ -292,7 +292,8 @@ unit ag386att;
|
|||||||
var
|
var
|
||||||
curr_n : byte;
|
curr_n : byte;
|
||||||
begin
|
begin
|
||||||
if not (cs_debuginfo in aktmoduleswitches) then
|
if not ((cs_debuginfo in aktmoduleswitches) or
|
||||||
|
(cs_gdb_lineinfo in aktglobalswitches)) then
|
||||||
exit;
|
exit;
|
||||||
{ file changed ? (must be before line info) }
|
{ file changed ? (must be before line info) }
|
||||||
if (fileinfo.fileindex<>0) and
|
if (fileinfo.fileindex<>0) and
|
||||||
@ -382,7 +383,8 @@ unit ag386att;
|
|||||||
InlineLevel:=0;
|
InlineLevel:=0;
|
||||||
{ lineinfo is only needed for codesegment (PFV) }
|
{ lineinfo is only needed for codesegment (PFV) }
|
||||||
do_line:=(cs_asm_source in aktglobalswitches) or
|
do_line:=(cs_asm_source in aktglobalswitches) or
|
||||||
((cs_lineinfo in aktmoduleswitches) and (p=codesegment));
|
((cs_lineinfo in aktmoduleswitches)
|
||||||
|
and (p=codesegment));
|
||||||
hp:=pai(p^.first);
|
hp:=pai(p^.first);
|
||||||
while assigned(hp) do
|
while assigned(hp) do
|
||||||
begin
|
begin
|
||||||
@ -392,7 +394,8 @@ unit ag386att;
|
|||||||
begin
|
begin
|
||||||
{$ifdef GDB}
|
{$ifdef GDB}
|
||||||
{ write stabs }
|
{ write stabs }
|
||||||
if cs_debuginfo in aktmoduleswitches then
|
if (cs_debuginfo in aktmoduleswitches) or
|
||||||
|
(cs_gdb_lineinfo in aktglobalswitches) then
|
||||||
WriteFileLineInfo(hp^.fileinfo);
|
WriteFileLineInfo(hp^.fileinfo);
|
||||||
{$endif GDB}
|
{$endif GDB}
|
||||||
|
|
||||||
@ -718,7 +721,8 @@ unit ag386att;
|
|||||||
with binutils 2.9.5 under linux }
|
with binutils 2.9.5 under linux }
|
||||||
if (not calljmp) and
|
if (not calljmp) and
|
||||||
(att_needsuffix[op]<>AttSufNONE) and
|
(att_needsuffix[op]<>AttSufNONE) and
|
||||||
(op<>A_FNSTSW) and
|
(op<>A_FNSTSW) and (op<>A_FSTSW) and
|
||||||
|
(op<>A_FNSTCW) and (op<>A_FSTCW) and
|
||||||
(op<>A_FLDCW) and
|
(op<>A_FLDCW) and
|
||||||
not(
|
not(
|
||||||
(paicpu(hp)^.oper[0].typ=top_reg) and
|
(paicpu(hp)^.oper[0].typ=top_reg) and
|
||||||
@ -897,7 +901,10 @@ unit ag386att;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.31 2000-04-01 14:18:03 peter
|
Revision 1.32 2000-04-06 07:04:50 pierre
|
||||||
|
+ generate line stabs if cs_gdb_lineinfo is aktglobalswitches
|
||||||
|
|
||||||
|
Revision 1.31 2000/04/01 14:18:03 peter
|
||||||
* don't write suffix for fldcw
|
* don't write suffix for fldcw
|
||||||
|
|
||||||
Revision 1.30 2000/02/29 23:56:49 pierre
|
Revision 1.30 2000/02/29 23:56:49 pierre
|
||||||
|
@ -295,7 +295,8 @@ unit ag386bin;
|
|||||||
hp : pasmsymbol;
|
hp : pasmsymbol;
|
||||||
infile : pinputfile;
|
infile : pinputfile;
|
||||||
begin
|
begin
|
||||||
if not (cs_debuginfo in aktmoduleswitches) then
|
if not ((cs_debuginfo in aktmoduleswitches) or
|
||||||
|
(cs_gdb_lineinfo in aktglobalswitches)) then
|
||||||
exit;
|
exit;
|
||||||
{ file changed ? (must be before line info) }
|
{ file changed ? (must be before line info) }
|
||||||
if (fileinfo.fileindex<>0) and
|
if (fileinfo.fileindex<>0) and
|
||||||
@ -478,7 +479,8 @@ unit ag386bin;
|
|||||||
begin
|
begin
|
||||||
{$ifdef GDB}
|
{$ifdef GDB}
|
||||||
{ write stabs }
|
{ write stabs }
|
||||||
if (cs_debuginfo in aktmoduleswitches) then
|
if ((cs_debuginfo in aktmoduleswitches) or
|
||||||
|
(cs_gdb_lineinfo in aktglobalswitches)) then
|
||||||
begin
|
begin
|
||||||
if (objectalloc^.currsec<>sec_none) and
|
if (objectalloc^.currsec<>sec_none) and
|
||||||
not(hp^.typ in [
|
not(hp^.typ in [
|
||||||
@ -626,7 +628,8 @@ unit ag386bin;
|
|||||||
begin
|
begin
|
||||||
{$ifdef GDB}
|
{$ifdef GDB}
|
||||||
{ write stabs }
|
{ write stabs }
|
||||||
if cs_debuginfo in aktmoduleswitches then
|
if ((cs_debuginfo in aktmoduleswitches) or
|
||||||
|
(cs_gdb_lineinfo in aktglobalswitches)) then
|
||||||
begin
|
begin
|
||||||
if (objectoutput^.currsec<>sec_none) and
|
if (objectoutput^.currsec<>sec_none) and
|
||||||
not(hp^.typ in [
|
not(hp^.typ in [
|
||||||
@ -975,7 +978,10 @@ unit ag386bin;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.41 2000-03-10 16:05:57 pierre
|
Revision 1.42 2000-04-06 07:04:51 pierre
|
||||||
|
+ generate line stabs if cs_gdb_lineinfo is aktglobalswitches
|
||||||
|
|
||||||
|
Revision 1.41 2000/03/10 16:05:57 pierre
|
||||||
* generate allways symbol for stabs
|
* generate allways symbol for stabs
|
||||||
|
|
||||||
Revision 1.40 2000/03/09 14:29:47 pierre
|
Revision 1.40 2000/03/09 14:29:47 pierre
|
||||||
|
Loading…
Reference in New Issue
Block a user