diff options
author | Tristan Gingold <gingold@adacore.com> | 2013-07-02 07:34:38 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2013-07-02 07:34:38 +0000 |
commit | a685c4e6d5a1b407ac284abbbf1bd740515f7512 (patch) | |
tree | 507774ffba71820ddd9a5f586f1db3a34dc5f0bd /bfd | |
parent | 9d3056cd1d007df30bca4871421b3bea29525930 (diff) | |
download | gdb-a685c4e6d5a1b407ac284abbbf1bd740515f7512.zip gdb-a685c4e6d5a1b407ac284abbbf1bd740515f7512.tar.gz gdb-a685c4e6d5a1b407ac284abbbf1bd740515f7512.tar.bz2 |
2013-07-02 Tristan Gingold <gingold@adacore.com>
* coff-rs6000.c (xcoff_find_nearest_line_discriminator): New function.
(rs6000coff_vec): Reference it.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/coff-rs6000.c | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 35bcba9..d915a7d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2013-07-02 Tristan Gingold <gingold@adacore.com> + + * coff-rs6000.c (xcoff_find_nearest_line_discriminator): New function. + (rs6000coff_vec): Reference it. + 2013-07-02 Marcus Shawcroft <marcus.shawcroft@arm.com> * elfnn-aarch64.c (aarch64_elf_create_got_section): New. diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index aa61afb..cad7268 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -449,6 +449,22 @@ xcoff_find_nearest_line (bfd *abfd, line_ptr); } +xcoff_find_nearest_line_discriminator (bfd *abfd, + asection *section, + asymbol **symbols, + bfd_vma offset, + const char **filename_ptr, + const char **functionname_ptr, + unsigned int *line_ptr, + unsigned int *discriminator) +{ + *discriminator = 0; + return coff_find_nearest_line_with_names (abfd, xcoff_debug_sections, + section, symbols, offset, + filename_ptr, functionname_ptr, + line_ptr); +} + void _bfd_xcoff_swap_sym_in (bfd *abfd, void * ext1, void * in1) @@ -4120,7 +4136,7 @@ const bfd_target rs6000coff_vec = coff_bfd_is_target_special_symbol, coff_get_lineno, xcoff_find_nearest_line, - _bfd_generic_find_nearest_line_discriminator, + xcoff_find_nearest_line_discriminator, _bfd_generic_find_line, coff_find_inliner_info, coff_bfd_make_debug_symbol, |