diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2014-01-12 01:32:26 -0200 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2014-01-12 01:32:26 -0200 |
commit | 5acfdbae5d2b0aaa2320ddfa3aa1f2cddce7b978 (patch) | |
tree | adc2501a0a83040e3d5331f90df9a5762c25a1d0 /gdb/ada-lang.c | |
parent | 024f4684065717944ab36c96154b023992fc56f1 (diff) | |
download | binutils-5acfdbae5d2b0aaa2320ddfa3aa1f2cddce7b978.zip binutils-5acfdbae5d2b0aaa2320ddfa3aa1f2cddce7b978.tar.gz binutils-5acfdbae5d2b0aaa2320ddfa3aa1f2cddce7b978.tar.bz2 |
Split i386_stap_parse_special_token into smaller functions
This patch reorganizes code on gdb/i386-tdep.c's SystemTap SDT probe
support functions. Before it, the code to parse special operands on x86
lived in a single, big function. This patch creates 2 new functions
that makes the code more organized and removes a few indentation levels
(which is always good IMO).
I haven't modified anything logical in the functions, i.e., there's still
one latent bug on i386_stap_parse_special_token_triplet now. I will soon
post a patch to fix this, and to also improve the readability of the two
new functions.
2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
* i386-tdep.c (i386_stap_parse_special_token_triplet): New
function, with code from i386_stap_parse_special_token.
(i386_stap_parse_special_token_three_arg_disp): Likewise.
(i386_stap_parse_special_token): Move code to the two functions
above; simplify it.
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions