Hi all, Attaching the patch for fetching the inferior process ID using current_inferior() function in AIX. AIX is still using inferior_ptid.pid() to get the inferior pid instead of the new object current_inferior().With this it is not possible to debug any sample program as the it fails with assertion check for pid!=0. In the gdb to access the process id of the debugged inferior process, a function current_inferior is used which returns the struct type variable inferior. As current_inferior() holds the inferior pid one must use this object to hold the inferior pid. The attached patch is to the current_inferior() object to get the inferior pid and continue debugging. This can be demonstrated using the below sample program. #include #include int main() { int i = 1; return 0; } Sample output without patch: (gdb) b main Breakpoint 1 at 0x1000070c: file test.cc, line 3. (gdb) r Starting program: /home/gdb_tests/test inferior.c:303: internal-error: find_inferior_pid: Assertion `pid != 0' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. ----- Backtrace ----- 0x100e874a3 ??? 0x100e8766b ??? 0x10003724b ??? 0x100037697 ??? 0x1000363f3 ??? 0x1000593a3 ??? 0x1000594ff ??? 0x10053aa5b ??? 0x1002f6e37 ??? 0x1002f2e7f ??? 0x100b26ca3 ??? 0x1003029bf ??? 0x10077e373 ??? 0x10077b107 ??? 0x100001dff ??? 0x100002007 ??? 0x10000421b ??? 0x1000042ef ??? 0x100000a9f ??? 0x100000583 ??? --------------------- inferior.c:303: internal-error: find_inferior_pid: Assertion `pid != 0' failed. Output with patch: (gdb) b main Breakpoint 1 at 0x1000070c: file test.cc, line 3. (gdb) r Starting program: /home/gdb_tests/test Breakpoint 1, main () at test.cc:3 3 int i = 1; ---------------------------------------------------------------------------------- Summary of the gdb.base testsuites. Without Patch ------------------------ # of expected passes 8096 # of unexpected failures 2160 # of unexpected successes 1 # of expected failures 4 # of known failures 5 # of unresolved testcases 113 # of untested testcases 83 # of unsupported tests 40 # of paths in test names 2 # of duplicate test names 13 With Patch ------------------- # of expected passes 13831 # of unexpected failures 7397 # of unexpected successes 1 # of expected failures 11 # of known failures 6 # of unresolved testcases 78 # of untested testcases 88 # of unsupported tests 63 # of paths in test names 1 # of duplicate test names 2 (See attached file: ChangeLog)(See attached file: current_inferior.patch). Thanks and regards, Aditya.