This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This patch is to address an issue in Solaris, bug 17903. This is my second submission for this issue with changes made as requested by Pedro Alvez in December, as well as adjustments to the changelog formatting as suggested by Joel Brobecker. The meat of the differences between the two patches: this change only resolves the problem in Solaris 10+ and any other OS using procfs that uses the same path convention. In any other OS currently affected it will remain broken -- though Pedro indicated in an earlier message that Solaris is the only OS of concern w/regard to gdb/procfs.c. When attaching to a process by PID the current implementation in gdb/procfs.c leaves "to_pid_to_exec_file" at the default -- a stub function that returns NULL. This causes symbols not to load when attaching, forcing the user to either attach by specifying the path on the command line or inside gdb. After specifying the file inside gdb it's also necessary to manually load symbolic information. The proposed change resembles the implementation in gdb/linux-nat.c. I don't have DejaGNU installed on my development machines at work and I don't have one [that functions] at home, so I was unable to run the test suite (otherwise I would have). Lastly: I made these changes on a machine that doesn't have network access. I had to hand-type the following diff. My apologies if there are typos; I did my best. Obviously I won't be able to push this myself. -brian
Attachment:
gdb-17903-patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |