Split i386_stap_parse_special_token into smaller functions
authorSergio Durigan Junior <sergiodj@redhat.com>
Sun, 12 Jan 2014 03:32:26 +0000 (01:32 -0200)
committerSergio Durigan Junior <sergiodj@redhat.com>
Sun, 12 Jan 2014 03:32:26 +0000 (01:32 -0200)
commit5acfdbae5d2b0aaa2320ddfa3aa1f2cddce7b978
treeadc2501a0a83040e3d5331f90df9a5762c25a1d0
parent024f4684065717944ab36c96154b023992fc56f1
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.
gdb/ChangeLog
gdb/i386-tdep.c
This page took 0.025064 seconds and 4 git commands to generate.